From 131f690bf66636704a69b0996f069f35b07b6992 Mon Sep 17 00:00:00 2001 From: "steven.roulleau" Date: Wed, 5 Dec 2018 11:18:06 +0100 Subject: [PATCH] release: version 4.3.0 --- dist/myscript.esm.js | 227 +- dist/myscript.esm.js.map | 2 +- dist/myscript.min.js | 2 +- dist/myscript.min.js.map | 2 +- docs/ast/source/Editor.js.json | 91705 ++++++++-------- .../configuration/DefaultBehaviors.js.json | 158 +- .../DefaultConfiguration.js.json | 5870 +- .../grabber/PointerEventGrabber.js.json | 5744 +- docs/ast/source/myscript.js.json | 3283 +- .../recognizer/DefaultRecognizer.js.json | 10 +- .../recognizer/rest/networkInterface.js.json | 5790 +- .../v4/Cdkv4WSIInkRecognizer.js.json | 2333 +- docs/class/src/Editor.js~Editor.html | 319 +- docs/coverage.json | 53 +- docs/dump.json | 19177 ---- docs/file/src/Editor.js.html | 59 +- docs/file/src/EditorFacade.js.html | 3 +- docs/file/src/callback/EventCallback.js.html | 3 +- docs/file/src/configuration/Constants.js.html | 3 +- .../configuration/DefaultBehaviors.js.html | 5 +- .../DefaultConfiguration.js.html | 5 +- .../src/configuration/DefaultPenStyle.js.html | 3 +- .../src/configuration/DefaultTheme.js.html | 3 +- .../src/configuration/LoggerConfig.js.html | 3 +- .../src/grabber/PointerEventGrabber.js.html | 11 +- docs/file/src/model/InkModel.js.html | 3 +- docs/file/src/model/RecognizerContext.js.html | 3 +- docs/file/src/model/StrokeComponent.js.html | 3 +- docs/file/src/model/Symbol.js.html | 3 +- docs/file/src/model/UndoRedoContext.js.html | 3 +- docs/file/src/model/UndoRedoManager.js.html | 3 +- docs/file/src/myscript.js.html | 30 +- docs/file/src/recognizer/CryptoHelper.js.html | 3 +- .../src/recognizer/DefaultRecognizer.js.html | 5 +- .../recognizer/common/CdkCommonUtil.js.html | 3 +- .../v3/Cdkv3CommonMathRecognizer.js.html | 3 +- .../v3/Cdkv3CommonShapeRecognizer.js.html | 3 +- .../v3/Cdkv3CommonTextRecognizer.js.html | 3 +- .../recognizer/rest/networkInterface.js.html | 10 +- .../v3/Cdkv3RestAnalyzerRecognizer.js.html | 3 +- .../rest/v3/Cdkv3RestMathRecognizer.js.html | 3 +- .../rest/v3/Cdkv3RestMusicRecognizer.js.html | 3 +- .../rest/v3/Cdkv3RestRecognizerUtil.js.html | 3 +- .../rest/v3/Cdkv3RestShapeRecognizer.js.html | 3 +- .../rest/v3/Cdkv3RestTextRecognizer.js.html | 3 +- .../websocket/CdkWSRecognizerUtil.js.html | 3 +- .../websocket/networkWSInterface.js.html | 3 +- .../websocket/v3/Cdkv3WSBuilder.js.html | 3 +- .../v3/Cdkv3WSMathRecognizer.js.html | 3 +- .../v3/Cdkv3WSTextRecognizer.js.html | 3 +- .../websocket/v4/Cdkv4WSBuilder.js.html | 3 +- .../v4/Cdkv4WSIInkRecognizer.js.html | 9 +- docs/file/src/renderer/QuadraticUtils.js.html | 3 +- .../renderer/canvas/CanvasRenderer.js.html | 3 +- .../src/renderer/canvas/ImageRenderer.js.html | 3 +- .../stroker/QuadraticCanvasStroker.js.html | 3 +- .../symbols/MathSymbolCanvasRenderer.js.html | 3 +- .../symbols/MusicSymbolCanvasRenderer.js.html | 3 +- .../symbols/ShapeSymbolCanvasRenderer.js.html | 3 +- .../StrokeSymbolCanvasRenderer.js.html | 3 +- .../symbols/TextSymbolCanvasRenderer.js.html | 3 +- .../file/src/renderer/svg/SVGRenderer.js.html | 3 +- .../svg/stroker/QuadraticSVGStroker.js.html | 3 +- .../symbols/StrokeSymbolSVGRenderer.js.html | 3 +- docs/file/src/util/ModelStats.js.html | 3 +- docs/file/src/util/PromiseHelper.js.html | 3 +- docs/function/index.html | 986 +- docs/identifiers.html | 35 +- docs/image/github.png | Bin 4268 -> 0 bytes docs/index.html | 3 +- docs/manual-badge.svg | 17 - docs/manual/changelog/CHANGELOG.html | 212 - docs/manual/index.html | 6671 -- docs/package.json | 76 - docs/script/search_index.js | 38 +- docs/source.html | 124 +- docs/typedef/index.html | 5 +- docs/variable/index.html | 3 +- package-lock.json | 30 +- package.json | 2 +- 80 files changed, 62444 insertions(+), 80696 deletions(-) delete mode 100644 docs/dump.json delete mode 100644 docs/image/github.png delete mode 100644 docs/manual-badge.svg delete mode 100644 docs/manual/changelog/CHANGELOG.html delete mode 100644 docs/manual/index.html delete mode 100644 docs/package.json diff --git a/dist/myscript.esm.js b/dist/myscript.esm.js index 7be62627..7a0f4b0a 100644 --- a/dist/myscript.esm.js +++ b/dist/myscript.esm.js @@ -102,9 +102,7 @@ var loglevel = createCommonjsModule(function (module) { * Licensed under the MIT license. */ (function (root, definition) { - if (typeof undefined === 'function' && undefined.amd) { - undefined(definition); - } else if (module.exports) { + if (module.exports) { module.exports = definition(); } else { root.log = definition(); @@ -703,7 +701,7 @@ var defaultConfiguration = { } }, v4: { - alwaysConnected: false, + alwaysConnected: true, lang: 'en_US', export: { 'image-resolution': 300, @@ -876,7 +874,7 @@ function overrideDefaultConfiguration(configuration) { } var jsoncss_min = createCommonjsModule(function (module, exports) { -!function(t,e){module.exports=e();}(commonjsGlobal,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o});},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1)}([function(t,e,n){function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function t(e){var n=this;o(this,t),this.toJSON=function(t){if("string"!=typeof t)return console.error("Need a CSS string but given ",void 0===t?"undefined":r(t),t),"Not a valid CSS..!";var e={},o=void 0,i=void 0,u=void 0;try{t.split("{").forEach(function(t){if(i=t.trim())if(-1===i.indexOf("}"))e[i]={},o=i;else{i.substring(0,i.indexOf("}")).split(";").forEach(function(t){(u=t.split(":"))&&2===u.length&&(e[o][u[0].trim().replace(/^\"|\"$/g,"")]=n._trimSemiColon(u[1].trim().replace(/^\"|\"$/g,"")));});try{o=i.split("}")[1].trim(),o&&(e[o]={});}catch(t){}}});}catch(t){return"Not a valid CSS..!"}return e},this.toCSS=function(t){if("object"!==(void 0===t?"undefined":r(t)))return console.error("Need a JSON object but given ",void 0===t?"undefined":r(t),t),"Not a valid JSON..!";var e="";try{for(var n in t)if(t.hasOwnProperty(n)){e+=n+" {\n";for(var o in t[n])t[n].hasOwnProperty(o)&&(e+=o+": "+t[n][o]+";\n");e+="}\n";}}catch(t){return"Not a valid JSON..!"}return e},this._trimSemiColon=function(t){return";"===t.slice(-1)?t.slice(0,n.length-1):t};};e.default=i;},function(t,e,n){t.exports=n(0).default;}])}); +!function(t,e){module.exports=e();}(commonjsGlobal,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o});},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1)}([function(t,e,n){function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function t(e){var n=this;o(this,t),this.toJSON=function(t){if("string"!=typeof t)return console.error("Need a CSS string but given ",void 0===t?"undefined":r(t),t),"Not a valid CSS..!";var e={},o=void 0,i=void 0,u=void 0;try{t.split("{").forEach(function(t){if(i=t.trim())if(-1===i.indexOf("}"))e[i]={},o=i;else{i.substring(0,i.indexOf("}")).split(";").forEach(function(t){(u=t.split(":"))&&2===u.length&&(e[o][u[0].trim().replace(/^\"|\"$/g,"")]=n._trimSemiColon(u[1].trim().replace(/^\"|\"$/g,"")));});try{o=i.split("}")[1].trim(),o&&(e[o]={});}catch(t){}}});}catch(t){return "Not a valid CSS..!"}return e},this.toCSS=function(t){if("object"!==(void 0===t?"undefined":r(t)))return console.error("Need a JSON object but given ",void 0===t?"undefined":r(t),t),"Not a valid JSON..!";var e="";try{for(var n in t)if(t.hasOwnProperty(n)){e+=n+" {\n";for(var o in t[n])t[n].hasOwnProperty(o)&&(e+=o+": "+t[n][o]+";\n");e+="}\n";}}catch(t){return "Not a valid JSON..!"}return e},this._trimSemiColon=function(t){return ";"===t.slice(-1)?t.slice(0,n.length-1):t};};e.default=i;},function(t,e,n){t.exports=n(0).default;}])}); }); var JsonCSS = unwrapExports(jsoncss_min); @@ -1138,10 +1136,18 @@ function attach(element, editor) { var smartGuideIds = ['smartguide', 'prompter-text-container', 'prompter-text', 'tag-icon', 'ellipsis']; var scrollbarClasses = ['ps__rail-x', 'ps__thumb-x']; // Check if pointer entered into any smartguide elements or scrollbar + // Use case : when the pointer is entering the smartguide or scrollbar, a pointerout (or leave) is fired. + // The related target is then the DOM element that was left. + // We don't want this to cause editor.pointerUp because the stroke isn't finished. var pointerEnteredSmartGuide = evt.relatedTarget && (smartGuideIds.includes(evt.relatedTarget.className) || scrollbarClasses.includes(evt.relatedTarget.className)); // Check if pointer didn't stay in the smartguide and pointer exited the smartguide or scrollbar + // Use case : when the pointer is leaving the smartguide or scrollbar, a pointerout (or leave) is fired. + // The related target is then the DOM element that was left (the smart guide) + // We are entering again the editor + // We don't want this to cause editor.pointerUp because the stroke isn't finished. var pointerExitedSmartGuide = evt.relatedTarget && evt.target && (smartGuideIds.includes(evt.target.className) || scrollbarClasses.includes(evt.target.className)); // Check if pointer moved between words in smartguide + // Same use case as pointerEnteredSmartGuide but for the words in the smartguide (each word is a span). var pointerMovedWords = evt.relatedTarget && evt.target && (evt.target.tagName === 'SPAN' || evt.relatedTarget.tagName === 'SPAN'); if (pointerEnteredSmartGuide || pointerExitedSmartGuide || pointerMovedWords) { evt.stopPropagation(); @@ -2202,6 +2208,17 @@ function resetModelPositions(model) { return modelReference; } +/** + * Reset model lastRenderedPosition + * @param {Model} model + * @return {Model} + */ +function resetModelRendererPosition(model) { + var modelReference = model; + modelReference.lastPositions.lastRenderedPosition = -1; + return modelReference; +} + /** * Update model lastRenderedPosition * @param {Model} model @@ -2269,6 +2286,28 @@ function mergeModels() { }); } +var InkModel = /*#__PURE__*/Object.freeze({ + createModel: createModel, + clearModel: clearModel, + needRedraw: needRedraw, + addStroke: addStroke, + addStrokeToGroup: addStrokeToGroup, + extractPendingStrokes: extractPendingStrokes, + initPendingStroke: initPendingStroke, + appendToPendingStroke: appendToPendingStroke, + endPendingStroke: endPendingStroke, + getBorderCoordinates: getBorderCoordinates, + extractStrokesFromInkRange: extractStrokesFromInkRange, + updateModelSentPosition: updateModelSentPosition, + updateModelReceivedPosition: updateModelReceivedPosition, + resetModelPositions: resetModelPositions, + resetModelRendererPosition: resetModelRendererPosition, + updateModelRenderedPosition: updateModelRenderedPosition, + extractPendingRecognizedSymbols: extractPendingRecognizedSymbols, + cloneModel: cloneModel, + mergeModels: mergeModels +}); + /** * Renderer info * @typedef {Object} RendererInfo @@ -5447,7 +5486,8 @@ function xhr(type, url, data) { request.setRequestHeader('Content-Type', 'application/json'); } - if (mimeType === pptxMimeType) { + var isBlobType = mimeType && (mimeType === pptxMimeType || mimeType.startsWith('image/png') || mimeType.startsWith('image/jpeg')); + if (isBlobType) { request.responseType = 'blob'; } @@ -5457,7 +5497,7 @@ function xhr(type, url, data) { request.onload = function () { if (request.status >= 200 && request.status < 300) { - mimeType === pptxMimeType ? resolve(request.response) : resolve(parse(request)); + isBlobType ? resolve(request.response) : resolve(parse(request)); } else { reject(new Error(request.responseText)); } @@ -5466,7 +5506,7 @@ function xhr(type, url, data) { request.onreadystatechange = function () { if (request.readyState === 4) { if (request.status >= 200 && request.status < 300) { - mimeType === pptxMimeType ? resolve(request.response) : resolve(parse(request)); + isBlobType ? resolve(request.response) : resolve(parse(request)); } } }; @@ -5644,6 +5684,17 @@ var LOST_CONNEXION_MESSAGE = { type: 'LOST_CONNECTION' }; */ var CLOSE_RECOGNIZER_MESSAGE = 'CLOSE_RECOGNIZER'; +var RecognizerContext = /*#__PURE__*/Object.freeze({ + createEmptyRecognizerContext: createEmptyRecognizerContext, + isResetRequired: isResetRequired, + updateRecognitionPositions: updateRecognitionPositions, + setRecognitionContext: setRecognitionContext, + canReconnect: canReconnect, + shouldAttemptImmediateReconnect: shouldAttemptImmediateReconnect, + LOST_CONNEXION_MESSAGE: LOST_CONNEXION_MESSAGE, + CLOSE_RECOGNIZER_MESSAGE: CLOSE_RECOGNIZER_MESSAGE +}); + /** * @param {String} suffixUrl * @param {RecognizerContext} recognizerContext @@ -5721,7 +5772,7 @@ function extractExports(model) { * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer. * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action. * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action. - * @property {function(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback)} [resize] Resize. + * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, element: Element)} [resize] Resize. * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)} [pointerEvents] Pointer Events. * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes. * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content. @@ -6587,12 +6638,15 @@ function buildData(recognizerContext, model, conversionState) { xDPI: 96, yDPI: 96, contentType: contentType, - height: recognizerContext.editor.domElement.clientHeight, - width: recognizerContext.editor.domElement.clientWidth, theme: toCSS$1(recognizerContext.editor.theme), strokeGroups: newStrokes }; + if (recognizerContext.editor.domElement) { + data.height = recognizerContext.editor.domElement.clientHeight; + data.width = recognizerContext.editor.domElement.clientWidth; + } + if (conversionState) { data.conversionState = 'DIGITAL_EDIT'; } @@ -6603,32 +6657,7 @@ function buildData(recognizerContext, model, conversionState) { function extractExports$4(configuration, mimeType, res) { var exports = {}; - if (mimeType === 'application/vnd.myscript.jiix') { - exports['application/vnd.myscript.jiix'] = res; - } - if (configuration.recognitionParams.type === 'TEXT' && mimeType === 'text/plain') { - exports['text/plain'] = res; - } else if (configuration.recognitionParams.type === 'DIAGRAM') { - if (mimeType === 'image/svg+xml') { - exports['image/svg+xml'] = res; - } - if (mimeType === 'application/vnd.openxmlformats-officedocument.presentationml.presentation') { - exports['application/vnd.openxmlformats-officedocument.presentationml.presentation'] = res; - } - if (mimeType === 'application/vnd.microsoft.art-gvml-clipformat') { - exports['application/vnd.microsoft.art-gvml-clipformat'] = res; - } - } else if (configuration.recognitionParams.type === 'MATH') { - if (mimeType === 'application/x-latex') { - exports['application/x-latex'] = res; - } - if (mimeType === 'application/mathml+xml') { - exports['application/mathml+xml'] = res; - } - if (mimeType === 'application/mathofficeXML') { - exports['application/mathofficeXML'] = res; - } - } + exports[mimeType] = res; return exports; } @@ -6650,19 +6679,24 @@ function resultCallback$5(model, configuration, res, mimeType, callback) { * @param {RecognizerContext} recognizerContext Current recognizer context * @param {Model} model Current model * @param {RecognizerCallback} callback + * @param {Array[String]} requestedMimeTypes */ -function export_$5(recognizerContext, model, callback) { +function export_$5(recognizerContext, model, callback, requestedMimeTypes) { var configuration = recognizerContext.editor.configuration; function callPostMessage(mimeType) { postMessage$1('/api/v4.0/iink/batch', recognizerContext, model, buildData, configuration.restConversionState, mimeType).then(function (res) { - return resultCallback$5(model, configuration, res, mimeType, callback); + resultCallback$5(model, configuration, res, mimeType, callback); }).catch(function (err) { - return callback(err, model); + callback(err, model); }); } - if (configuration.recognitionParams.type === 'TEXT') { + if (requestedMimeTypes) { + requestedMimeTypes.forEach(function (mimeType) { + callPostMessage(mimeType); + }); + } else if (configuration.recognitionParams.type === 'TEXT') { configuration.recognitionParams.v4.text.mimeTypes.forEach(function (mimeType) { callPostMessage(mimeType); }); @@ -7084,7 +7118,7 @@ var mathWebSocketV3Configuration = { * Get the configuration supported by this recognizer * @return {RecognizerInfo} */ -function getInfo$10() { +function getInfo$a() { return mathWebSocketV3Configuration; } @@ -7218,7 +7252,7 @@ var Cdkv3WSMathRecognizer = /*#__PURE__*/Object.freeze({ export_: export_$6, reset: reset$2, mathWebSocketV3Configuration: mathWebSocketV3Configuration, - getInfo: getInfo$10, + getInfo: getInfo$a, clear: clear$3, close: close$2 }); @@ -7240,7 +7274,7 @@ var textWebSocketV3Configuration = { * Get the configuration supported by this recognizer * @return {RecognizerInfo} */ -function getInfo$11() { +function getInfo$b() { return textWebSocketV3Configuration; } @@ -7379,7 +7413,7 @@ var Cdkv3WSTextRecognizer = /*#__PURE__*/Object.freeze({ export_: export_$7, reset: reset$3, textWebSocketV3Configuration: textWebSocketV3Configuration, - getInfo: getInfo$11, + getInfo: getInfo$b, clear: clear$4, close: close$2 }); @@ -7816,7 +7850,7 @@ var IInkWebSocketV4Configuration = { * Get the configuration supported by this recognizer * @return {RecognizerInfo} */ -function getInfo$12() { +function getInfo$c() { return IInkWebSocketV4Configuration; } @@ -8315,10 +8349,10 @@ function waitForIdle(recognizerContext, model, _callback14) { * Resize * @param {RecognizerContext} recognizerContext Current recognition context * @param {Model} model Current model - * @param {Element} element Current element * @param {RecognizerCallback} callback + * @param {Element} element Current element */ -function resize$2(recognizerContext, model, element, _callback15) { +function resize$2(recognizerContext, model, _callback15, element) { var recognizerContextRef = setRecognitionContext(recognizerContext, { model: model, callback: function callback(err, res) { @@ -8326,7 +8360,7 @@ function resize$2(recognizerContext, model, element, _callback15) { } }); sendMessage(recognizerContextRef, buildResize, element, recognizerContext.editor.configuration.renderingParams.minHeight, recognizerContext.editor.configuration.renderingParams.minWidth).catch(function (exception) { - return retry(resize$2, recognizerContext, model, _callback15); + return retry(resize$2, recognizerContext, model, _callback15, element); }); } @@ -8430,7 +8464,7 @@ var Cdkv4WSInteractiveRecognizer = /*#__PURE__*/Object.freeze({ setPenStyleClasses: setPenStyleClasses, setTheme: setTheme, IInkWebSocketV4Configuration: IInkWebSocketV4Configuration, - getInfo: getInfo$12, + getInfo: getInfo$c, buildNewContentPackageInput: buildNewContentPackageInput, buildRestoreIInkSessionInput: buildRestoreIInkSessionInput, buildNewContentPart: buildNewContentPart, @@ -10111,9 +10145,7 @@ var select_1 = select$1; var clipboardAction = createCommonjsModule(function (module, exports) { (function (global, factory) { - if (typeof undefined === "function" && undefined.amd) { - undefined(['module', 'select'], factory); - } else { + { factory(module, select_1); } })(commonjsGlobal, function (module, _select) { @@ -10630,9 +10662,7 @@ var listen_1 = listen; var clipboard = createCommonjsModule(function (module, exports) { (function (global, factory) { - if (typeof undefined === "function" && undefined.amd) { - undefined(['module', './clipboard-action', 'tiny-emitter', 'good-listener'], factory); - } else { + { factory(module, clipboardAction, tinyEmitter, listen_1); } })(commonjsGlobal, function (module, _clipboardAction, _tinyEmitter, _goodListener) { @@ -11136,7 +11166,7 @@ function createSmartGuide(editor) { * @type {Clipboard} */ var clipboard$$1 = new Clipboard(elements.copyElement); - var perfectScrollbar = new PerfectScrollbar(elements.textContainer, { suppressScrollY: true }); + var perfectScrollbar = new PerfectScrollbar(elements.textContainer, { suppressScrollY: true, scrollXMarginOffset: 1 }); var smartGuide = { editor: editor, @@ -11424,6 +11454,21 @@ function inkImporter(editorParam, strokes, delayBetweenStrokes, lastOneDelay) { play(actions, 0, delayBetweenStrokes); } +function importStrokeGroups(editorParam, strokeGroups) { + strokeGroups.forEach(function (group) { + group.strokes.forEach(function (strokeFromGroup) { + addStroke(editorParam.model, strokeFromGroup); + addStrokeToGroup(editorParam.model, strokeFromGroup, group.penStyle); + }); + }); + editorParam.renderer.drawModel(editorParam.rendererContext, editorParam.model, editorParam.stroker); +} + +var eastereggs = /*#__PURE__*/Object.freeze({ + inkImporter: inkImporter, + importStrokeGroups: importStrokeGroups +}); + /* eslint-disable no-underscore-dangle */ /** @@ -11619,14 +11664,20 @@ function recognizerCallback(editor, error, model) { if (err.type !== 'close') { editorLogger.error('Error while firing the recognition', err.stack || err); // Handle any error from all above steps } - if (err.message === 'Invalid application key.' || err.message === 'Invalid HMAC' || err.error && err.error.result && err.error.result.error && (err.error.result.error === 'InvalidApplicationKeyException' || err.error.result.error === 'InvalidHMACSignatureException')) { + if ( + // IInk error managment before refactor + err.message === 'Invalid application key.' || err.message === 'Invalid HMAC' || + // CDK error managment + err.error && err.error.result && err.error.result.error && (err.error.result.error === 'InvalidApplicationKeyException' || err.error.result.error === 'InvalidHMACSignatureException') || + // IInk error managment after refactor + err.code && err.code === 'access.not.granted') { editorRef.error.innerText = Constants.Error.WRONG_CREDENTIALS; - } else if (err.message === 'Session is too old. Max Session Duration Reached') { + } 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; - } else if (err.message && editorRef.error.style.display === 'none') { + } else if ((err.message || err.code === 1006) && editorRef.error.style.display === 'none') { editorRef.error.innerText = Constants.Error.NOT_REACHABLE; } - if ((editorRef.error.innerText === Constants.Error.TOO_OLD || err.code === 1006 || err.reason === 'CLOSE_RECOGNIZER') && canReconnect(editor.recognizerContext)) { + if ((editorRef.error.innerText === Constants.Error.TOO_OLD || err.code === 1000 || err.reason === 'CLOSE_RECOGNIZER') && canReconnect(editor.recognizerContext)) { editorLogger.info('Reconnection is available', err.stack || err); editorRef.error.style.display = 'none'; } else { @@ -11812,13 +11863,13 @@ function launchResize(editor, model) { var editorRef = editor; window.clearTimeout(editor.resizeTimer); editorRef.resizeTimer = window.setTimeout(function () { - editor.recognizer.resize(editor.recognizerContext, model, editor.domElement, function (err, res) { + editor.recognizer.resize(editor.recognizerContext, model, function (err, res) { for (var _len14 = arguments.length, types = Array(_len14 > 2 ? _len14 - 2 : 0), _key14 = 2; _key14 < _len14; _key14++) { types[_key14 - 2] = arguments[_key14]; } recognizerCallback.apply(undefined, [editor, err, res].concat(types)); - }); + }, editor.domElement); }, editor.configuration.resizeTriggerDelay); }); resize$3(editor.smartGuide); @@ -12075,6 +12126,13 @@ var Editor = function () { launchExport(this, this.model); } } + + /** + * @Deprecated + * @param rawStrokes + * @param strokeGroups + */ + }, { key: 'reDraw', value: function reDraw(rawStrokes, strokeGroups) { @@ -12314,10 +12372,35 @@ var Editor = function () { }; } + /** + * Detach event listeners from the DOM element created at editor creation. + */ + + }, { + key: 'unload', + value: function unload() { + if (this.grabber) { + // Remove event handlers to avoid multiplication (detach grabber) + this.grabber.detach(this.domElement, this.grabberContext); + } + if (this.innerRenderer) { + this.innerRenderer.detach(this.domElement, this.rendererContext); + } + } + + /** + * Trigger the change callbacks (and by default send a change event). + */ + + }, { + key: 'forceChange', + value: function forceChange() { + triggerCallbacks(this, undefined, Constants.EventType.CHANGED); + } + /* eslint-disable class-methods-use-this */ /** * Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice). - * @returns {{inkImporter: inkImporter}} */ }, { @@ -12707,7 +12790,7 @@ var Editor = function () { }, { key: 'eastereggs', get: function get$$1() { - return { inkImporter: inkImporter }; + return eastereggs; } /* eslint-enable class-methods-use-this */ @@ -12761,15 +12844,21 @@ function getAvailableLanguageList(configuration) { var MyScript = { Constants: Constants, - LoggerConfig: log, - Editor: Editor, + // Default instantiations DefaultConfiguration: defaultConfiguration, + DefaultBehaviors: defaultBehaviors, DefaultPenStyle: defaultPenStyle, DefaultTheme: defaultTheme, + // Helper functions register: register, - getAvailableLanguageList: getAvailableLanguageList + getAvailableLanguageList: getAvailableLanguageList, + // Internals + LoggerConfig: log, + Editor: Editor, + InkModel: InkModel, + RecognizerContext: RecognizerContext }; export default MyScript; -export { Constants, log as LoggerConfig, Editor, defaultConfiguration as DefaultConfiguration, defaultPenStyle as DefaultPenStyle, defaultTheme as DefaultTheme, register, getAvailableLanguageList }; +export { Constants, defaultConfiguration as DefaultConfiguration, defaultBehaviors as DefaultBehaviors, defaultPenStyle as DefaultPenStyle, defaultTheme as DefaultTheme, register, getAvailableLanguageList, log as LoggerConfig, Editor, InkModel, RecognizerContext }; //# sourceMappingURL=myscript.esm.js.map diff --git a/dist/myscript.esm.js.map b/dist/myscript.esm.js.map index 864aa340..a7b44864 100644 --- a/dist/myscript.esm.js.map +++ b/dist/myscript.esm.js.map @@ -1 +1 @@ -{"version":3,"file":"myscript.esm.js","sources":["../src/configuration/Constants.js","../node_modules/loglevel/lib/loglevel.js","../src/configuration/LoggerConfig.js","../node_modules/is-primitive/index.js","../node_modules/assign-symbols/index.js","../node_modules/assign-deep/node_modules/kind-of/index.js","../node_modules/assign-deep/index.js","../src/configuration/DefaultConfiguration.js","../node_modules/json-css/lib/jsoncss.min.js","../src/configuration/DefaultPenStyle.js","../src/configuration/DefaultTheme.js","../src/grabber/PointerEventGrabber.js","../src/renderer/canvas/symbols/StrokeSymbolCanvasRenderer.js","../src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js","../src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js","../src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js","../src/model/StrokeComponent.js","../src/model/Symbol.js","../src/model/InkModel.js","../src/renderer/canvas/CanvasRenderer.js","../src/renderer/QuadraticUtils.js","../src/renderer/canvas/stroker/QuadraticCanvasStroker.js","../node_modules/d3-selection/src/namespaces.js","../node_modules/d3-selection/src/namespace.js","../node_modules/d3-selection/src/creator.js","../node_modules/d3-selection/src/selector.js","../node_modules/d3-selection/src/selection/select.js","../node_modules/d3-selection/src/selectorAll.js","../node_modules/d3-selection/src/selection/selectAll.js","../node_modules/d3-selection/src/matcher.js","../node_modules/d3-selection/src/selection/filter.js","../node_modules/d3-selection/src/selection/sparse.js","../node_modules/d3-selection/src/selection/enter.js","../node_modules/d3-selection/src/constant.js","../node_modules/d3-selection/src/selection/data.js","../node_modules/d3-selection/src/selection/exit.js","../node_modules/d3-selection/src/selection/merge.js","../node_modules/d3-selection/src/selection/order.js","../node_modules/d3-selection/src/selection/sort.js","../node_modules/d3-selection/src/selection/call.js","../node_modules/d3-selection/src/selection/nodes.js","../node_modules/d3-selection/src/selection/node.js","../node_modules/d3-selection/src/selection/size.js","../node_modules/d3-selection/src/selection/empty.js","../node_modules/d3-selection/src/selection/each.js","../node_modules/d3-selection/src/selection/attr.js","../node_modules/d3-selection/src/window.js","../node_modules/d3-selection/src/selection/style.js","../node_modules/d3-selection/src/selection/property.js","../node_modules/d3-selection/src/selection/classed.js","../node_modules/d3-selection/src/selection/text.js","../node_modules/d3-selection/src/selection/html.js","../node_modules/d3-selection/src/selection/raise.js","../node_modules/d3-selection/src/selection/lower.js","../node_modules/d3-selection/src/selection/append.js","../node_modules/d3-selection/src/selection/insert.js","../node_modules/d3-selection/src/selection/remove.js","../node_modules/d3-selection/src/selection/clone.js","../node_modules/d3-selection/src/selection/datum.js","../node_modules/d3-selection/src/selection/on.js","../node_modules/d3-selection/src/selection/dispatch.js","../node_modules/d3-selection/src/selection/index.js","../node_modules/d3-selection/src/select.js","../src/renderer/svg/symbols/StrokeSymbolSVGRenderer.js","../src/renderer/svg/SVGRenderer.js","../src/renderer/svg/stroker/QuadraticSVGStroker.js","../node_modules/crypto-js/core.js","../node_modules/crypto-js/enc-hex.js","../node_modules/crypto-js/x64-core.js","../node_modules/crypto-js/sha512.js","../node_modules/crypto-js/hmac.js","../node_modules/crypto-js/hmac-sha512.js","../src/recognizer/CryptoHelper.js","../src/recognizer/rest/networkInterface.js","../src/model/RecognizerContext.js","../src/recognizer/rest/v3/Cdkv3RestRecognizerUtil.js","../src/recognizer/common/v3/Cdkv3CommonTextRecognizer.js","../src/recognizer/DefaultRecognizer.js","../src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js","../src/recognizer/common/CdkCommonUtil.js","../src/recognizer/common/v3/Cdkv3CommonMathRecognizer.js","../src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js","../src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js","../src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js","../src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js","../src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js","../src/recognizer/rest/v4/iinkRestRecognizer.js","../src/recognizer/websocket/networkWSInterface.js","../src/recognizer/websocket/v3/Cdkv3WSBuilder.js","../src/util/PromiseHelper.js","../src/recognizer/websocket/CdkWSRecognizerUtil.js","../src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js","../src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js","../node_modules/uuid-js/lib/uuid.js","../src/recognizer/websocket/v4/Cdkv4WSBuilder.js","../src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js","../src/callback/EventCallback.js","../src/configuration/DefaultBehaviors.js","../src/model/UndoRedoContext.js","../src/model/UndoRedoManager.js","../src/util/ModelStats.js","../src/renderer/canvas/ImageRenderer.js","../node_modules/perfect-scrollbar/dist/perfect-scrollbar.esm.js","../node_modules/select/src/select.js","../node_modules/clipboard/lib/clipboard-action.js","../node_modules/tiny-emitter/index.js","../node_modules/good-listener/src/is.js","../node_modules/delegate/src/closest.js","../node_modules/delegate/src/delegate.js","../node_modules/good-listener/src/listen.js","../node_modules/clipboard/lib/clipboard.js","../src/smartguide/SmartGuide.js","../src/eastereggs/InkImporter.js","../src/Editor.js","../src/EditorFacade.js","../src/myscript.js"],"sourcesContent":["/**\n * @typedef {Object} Constants\n */\n\nconst Constants = {\n EventType: {\n IDLE: 'idle',\n CHANGED: 'changed',\n IMPORTED: 'imported',\n EXPORTED: 'exported',\n CONVERTED: 'converted',\n RENDERED: 'rendered', // Internal use only\n LOADED: 'loaded',\n UNDO: 'undo',\n REDO: 'redo',\n CLEAR: 'clear',\n IMPORT: 'import',\n SUPPORTED_IMPORT_MIMETYPES: 'supportedImportMimeTypes',\n EXPORT: 'export',\n CONVERT: 'convert',\n ERROR: 'error'\n },\n RecognitionType: {\n TEXT: 'TEXT',\n MATH: 'MATH',\n SHAPE: 'SHAPE',\n MUSIC: 'MUSIC',\n ANALYZER: 'ANALYZER',\n DIAGRAM: 'DIAGRAM',\n NEBO: 'NEBO',\n RAWCONTENT: 'Raw Content'\n },\n Protocol: {\n WEBSOCKET: 'WEBSOCKET',\n REST: 'REST'\n },\n ModelState: {\n INITIALIZING: 'INITIALIZING',\n INITIALIZED: 'INITIALIZED',\n EXPORTING: 'EXPORTING',\n EXPORTED: 'EXPORTED',\n PENDING: 'PENDING',\n MODIFIED: 'MODIFIED',\n ERROR: 'ERROR'\n },\n Trigger: {\n QUIET_PERIOD: 'QUIET_PERIOD',\n POINTER_UP: 'POINTER_UP',\n DEMAND: 'DEMAND'\n },\n Logger: {\n EDITOR: 'editor',\n MODEL: 'model',\n GRABBER: 'grabber',\n RENDERER: 'renderer',\n RECOGNIZER: 'recognizer',\n CALLBACK: 'callback',\n UTIL: 'util',\n SMARTGUIDE: 'smartguide'\n },\n LogLevel: {\n TRACE: 'TRACE',\n DEBUG: 'DEBUG',\n INFO: 'INFO',\n WARN: 'WARN',\n ERROR: 'ERROR'\n },\n Languages: {\n zh_CN: 'Noto Sans CJK tc',\n zh_HK: 'Noto Sans CJK tc',\n zh_TW: 'Noto Sans CJK tc',\n ko_KR: 'Noto Sans CJK kr',\n ja_JP: 'Noto Sans CJK jp',\n hy_AM: 'Noto Sans Armenian',\n default: 'Open Sans'\n },\n Error: {\n NOT_REACHABLE: 'MyScript recognition server is not reachable. Please reload once you are connected.',\n WRONG_CREDENTIALS: 'Application credentials are invalid. Please check or regenerate your application key and hmackey.',\n TOO_OLD: 'Session is too old. Max Session Duration Reached.'\n },\n Exports: {\n JIIX: 'application/vnd.myscript.jiix'\n }\n};\nexport default Constants;\n","/*\n* loglevel - https://github.com/pimterry/loglevel\n*\n* Copyright (c) 2013 Tim Perry\n* Licensed under the MIT license.\n*/\n(function (root, definition) {\n \"use strict\";\n if (typeof define === 'function' && define.amd) {\n define(definition);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = definition();\n } else {\n root.log = definition();\n }\n}(this, function () {\n \"use strict\";\n\n // Slightly dubious tricks to cut down minimized file size\n var noop = function() {};\n var undefinedType = \"undefined\";\n\n var logMethods = [\n \"trace\",\n \"debug\",\n \"info\",\n \"warn\",\n \"error\"\n ];\n\n // Cross-browser bind equivalent that works at least back to IE6\n function bindMethod(obj, methodName) {\n var method = obj[methodName];\n if (typeof method.bind === 'function') {\n return method.bind(obj);\n } else {\n try {\n return Function.prototype.bind.call(method, obj);\n } catch (e) {\n // Missing bind shim or IE8 + Modernizr, fallback to wrapping\n return function() {\n return Function.prototype.apply.apply(method, [obj, arguments]);\n };\n }\n }\n }\n\n // Build the best logging method possible for this env\n // Wherever possible we want to bind, not wrap, to preserve stack traces\n function realMethod(methodName) {\n if (methodName === 'debug') {\n methodName = 'log';\n }\n\n if (typeof console === undefinedType) {\n return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives\n } else if (console[methodName] !== undefined) {\n return bindMethod(console, methodName);\n } else if (console.log !== undefined) {\n return bindMethod(console, 'log');\n } else {\n return noop;\n }\n }\n\n // These private functions always need `this` to be set properly\n\n function replaceLoggingMethods(level, loggerName) {\n /*jshint validthis:true */\n for (var i = 0; i < logMethods.length; i++) {\n var methodName = logMethods[i];\n this[methodName] = (i < level) ?\n noop :\n this.methodFactory(methodName, level, loggerName);\n }\n\n // Define log.log as an alias for log.debug\n this.log = this.debug;\n }\n\n // In old IE versions, the console isn't present until you first open it.\n // We build realMethod() replacements here that regenerate logging methods\n function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {\n return function () {\n if (typeof console !== undefinedType) {\n replaceLoggingMethods.call(this, level, loggerName);\n this[methodName].apply(this, arguments);\n }\n };\n }\n\n // By default, we use closely bound real methods wherever possible, and\n // otherwise we wait for a console to appear, and then try again.\n function defaultMethodFactory(methodName, level, loggerName) {\n /*jshint validthis:true */\n return realMethod(methodName) ||\n enableLoggingWhenConsoleArrives.apply(this, arguments);\n }\n\n function Logger(name, defaultLevel, factory) {\n var self = this;\n var currentLevel;\n var storageKey = \"loglevel\";\n if (name) {\n storageKey += \":\" + name;\n }\n\n function persistLevelIfPossible(levelNum) {\n var levelName = (logMethods[levelNum] || 'silent').toUpperCase();\n\n if (typeof window === undefinedType) return;\n\n // Use localStorage if available\n try {\n window.localStorage[storageKey] = levelName;\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=\" + levelName + \";\";\n } catch (ignore) {}\n }\n\n function getPersistedLevel() {\n var storedLevel;\n\n if (typeof window === undefinedType) return;\n\n try {\n storedLevel = window.localStorage[storageKey];\n } catch (ignore) {}\n\n // Fallback to cookies if local storage gives us nothing\n if (typeof storedLevel === undefinedType) {\n try {\n var cookie = window.document.cookie;\n var location = cookie.indexOf(\n encodeURIComponent(storageKey) + \"=\");\n if (location !== -1) {\n storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];\n }\n } catch (ignore) {}\n }\n\n // If the stored level is not valid, treat it as if nothing was stored.\n if (self.levels[storedLevel] === undefined) {\n storedLevel = undefined;\n }\n\n return storedLevel;\n }\n\n /*\n *\n * Public logger API - see https://github.com/pimterry/loglevel for details\n *\n */\n\n self.name = name;\n\n self.levels = { \"TRACE\": 0, \"DEBUG\": 1, \"INFO\": 2, \"WARN\": 3,\n \"ERROR\": 4, \"SILENT\": 5};\n\n self.methodFactory = factory || defaultMethodFactory;\n\n self.getLevel = function () {\n return currentLevel;\n };\n\n self.setLevel = function (level, persist) {\n if (typeof level === \"string\" && self.levels[level.toUpperCase()] !== undefined) {\n level = self.levels[level.toUpperCase()];\n }\n if (typeof level === \"number\" && level >= 0 && level <= self.levels.SILENT) {\n currentLevel = level;\n if (persist !== false) { // defaults to true\n persistLevelIfPossible(level);\n }\n replaceLoggingMethods.call(self, level, name);\n if (typeof console === undefinedType && level < self.levels.SILENT) {\n return \"No console available for logging\";\n }\n } else {\n throw \"log.setLevel() called with invalid level: \" + level;\n }\n };\n\n self.setDefaultLevel = function (level) {\n if (!getPersistedLevel()) {\n self.setLevel(level, false);\n }\n };\n\n self.enableAll = function(persist) {\n self.setLevel(self.levels.TRACE, persist);\n };\n\n self.disableAll = function(persist) {\n self.setLevel(self.levels.SILENT, persist);\n };\n\n // Initialize with the right level\n var initialLevel = getPersistedLevel();\n if (initialLevel == null) {\n initialLevel = defaultLevel == null ? \"WARN\" : defaultLevel;\n }\n self.setLevel(initialLevel, false);\n }\n\n /*\n *\n * Top-level API\n *\n */\n\n var defaultLogger = new Logger();\n\n var _loggersByName = {};\n defaultLogger.getLogger = function getLogger(name) {\n if (typeof name !== \"string\" || name === \"\") {\n throw new TypeError(\"You must supply a name when creating a logger.\");\n }\n\n var logger = _loggersByName[name];\n if (!logger) {\n logger = _loggersByName[name] = new Logger(\n name, defaultLogger.getLevel(), defaultLogger.methodFactory);\n }\n return logger;\n };\n\n // Grab the current global log variable in case of overwrite\n var _log = (typeof window !== undefinedType) ? window.log : undefined;\n defaultLogger.noConflict = function() {\n if (typeof window !== undefinedType &&\n window.log === defaultLogger) {\n window.log = _log;\n }\n\n return defaultLogger;\n };\n\n defaultLogger.getLoggers = function getLoggers() {\n return _loggersByName;\n };\n\n return defaultLogger;\n}));\n","import * as loglevel from 'loglevel';\nimport Constants from './Constants';\n\n/**\n * Main log instance\n * @type {Object}\n */\nconst log = loglevel.noConflict();\nexport default log;\n\n/**\n * Log editor events\n * @type {Object}\n */\nexport const editorLogger = log.getLogger(Constants.Logger.EDITOR);\neditorLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log editor events\n * @type {Object}\n */\nexport const smartGuideLogger = log.getLogger(Constants.Logger.SMARTGUIDE);\neditorLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log model events\n * @type {Object}\n */\nexport const modelLogger = log.getLogger(Constants.Logger.MODEL);\nmodelLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log grabber events\n * @type {Object}\n */\nexport const grabberLogger = log.getLogger(Constants.Logger.GRABBER);\ngrabberLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log grabber events\n * @type {Object}\n */\nexport const rendererLogger = log.getLogger(Constants.Logger.RENDERER);\nrendererLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log recognizer events\n * @type {Object}\n */\nexport const recognizerLogger = log.getLogger(Constants.Logger.RECOGNIZER);\nrecognizerLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log callback events\n * @type {Object}\n */\nexport const callbackLogger = log.getLogger(Constants.Logger.CALLBACK);\ncallbackLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log util events\n * @type {Object}\n */\nexport const utilLogger = log.getLogger(Constants.Logger.UTIL);\nutilLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log tests events\n * @type {Object}\n */\nexport const testLogger = log.getLogger('test');\ntestLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n","/*!\n * is-primitive \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n// see http://jsperf.com/testing-value-is-primitive/7\nmodule.exports = function isPrimitive(value) {\n return value == null || (typeof value !== 'function' && typeof value !== 'object');\n};\n","/*!\n * assign-symbols \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function(receiver, objects) {\n if (receiver === null || typeof receiver === 'undefined') {\n throw new TypeError('expected first argument to be an object.');\n }\n\n if (typeof objects === 'undefined' || typeof Symbol === 'undefined') {\n return receiver;\n }\n\n if (typeof Object.getOwnPropertySymbols !== 'function') {\n return receiver;\n }\n\n var isEnumerable = Object.prototype.propertyIsEnumerable;\n var target = Object(receiver);\n var len = arguments.length, i = 0;\n\n while (++i < len) {\n var provider = Object(arguments[i]);\n var names = Object.getOwnPropertySymbols(provider);\n\n for (var j = 0; j < names.length; j++) {\n var key = names[j];\n\n if (isEnumerable.call(provider, key)) {\n target[key] = provider[key];\n }\n }\n }\n return target;\n};\n","var toString = Object.prototype.toString;\n\n/**\n * Get the native `typeof` a value.\n *\n * @param {*} `val`\n * @return {*} Native javascript type\n */\n\nmodule.exports = function kindOf(val) {\n var type = typeof val;\n\n // primitivies\n if (type === 'undefined') {\n return 'undefined';\n }\n if (val === null) {\n return 'null';\n }\n if (val === true || val === false || val instanceof Boolean) {\n return 'boolean';\n }\n if (type === 'string' || val instanceof String) {\n return 'string';\n }\n if (type === 'number' || val instanceof Number) {\n return 'number';\n }\n\n // functions\n if (type === 'function' || val instanceof Function) {\n if (typeof val.constructor.name !== 'undefined' && val.constructor.name.slice(0, 9) === 'Generator') {\n return 'generatorfunction';\n }\n return 'function';\n }\n\n // array\n if (typeof Array.isArray !== 'undefined' && Array.isArray(val)) {\n return 'array';\n }\n\n // check for instances of RegExp and Date before calling `toString`\n if (val instanceof RegExp) {\n return 'regexp';\n }\n if (val instanceof Date) {\n return 'date';\n }\n\n // other objects\n type = toString.call(val);\n\n if (type === '[object RegExp]') {\n return 'regexp';\n }\n if (type === '[object Date]') {\n return 'date';\n }\n if (type === '[object Arguments]') {\n return 'arguments';\n }\n if (type === '[object Error]') {\n return 'error';\n }\n if (type === '[object Promise]') {\n return 'promise';\n }\n\n // buffer\n if (isBuffer(val)) {\n return 'buffer';\n }\n\n // es6: Map, WeakMap, Set, WeakSet\n if (type === '[object Set]') {\n return 'set';\n }\n if (type === '[object WeakSet]') {\n return 'weakset';\n }\n if (type === '[object Map]') {\n return 'map';\n }\n if (type === '[object WeakMap]') {\n return 'weakmap';\n }\n if (type === '[object Symbol]') {\n return 'symbol';\n }\n \n if (type === '[object Map Iterator]') {\n return 'mapiterator';\n }\n if (type === '[object Set Iterator]') {\n return 'setiterator';\n }\n if (type === '[object String Iterator]') {\n return 'stringiterator';\n }\n if (type === '[object Array Iterator]') {\n return 'arrayiterator';\n }\n \n // typed arrays\n if (type === '[object Int8Array]') {\n return 'int8array';\n }\n if (type === '[object Uint8Array]') {\n return 'uint8array';\n }\n if (type === '[object Uint8ClampedArray]') {\n return 'uint8clampedarray';\n }\n if (type === '[object Int16Array]') {\n return 'int16array';\n }\n if (type === '[object Uint16Array]') {\n return 'uint16array';\n }\n if (type === '[object Int32Array]') {\n return 'int32array';\n }\n if (type === '[object Uint32Array]') {\n return 'uint32array';\n }\n if (type === '[object Float32Array]') {\n return 'float32array';\n }\n if (type === '[object Float64Array]') {\n return 'float64array';\n }\n\n // must be a plain object\n return 'object';\n};\n\n/**\n * If you need to support Safari 5-7 (8-10 yr-old browser),\n * take a look at https://github.com/feross/is-buffer\n */\n\nfunction isBuffer(val) {\n return val.constructor\n && typeof val.constructor.isBuffer === 'function'\n && val.constructor.isBuffer(val);\n}\n","/*!\n * assign-deep \n *\n * Copyright (c) 2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar isPrimitive = require('is-primitive');\nvar assignSymbols = require('assign-symbols');\nvar typeOf = require('kind-of');\n\nfunction assign(target/*, objects*/) {\n target = target || {};\n var len = arguments.length, i = 0;\n if (len === 1) {\n return target;\n }\n while (++i < len) {\n var val = arguments[i];\n if (isPrimitive(target)) {\n target = val;\n }\n if (isObject(val)) {\n extend(target, val);\n }\n }\n return target;\n}\n\n/**\n * Shallow extend\n */\n\nfunction extend(target, obj) {\n assignSymbols(target, obj);\n\n for (var key in obj) {\n if (key !== '__proto__' && hasOwn(obj, key)) {\n var val = obj[key];\n if (isObject(val)) {\n if (typeOf(target[key]) === 'undefined' && typeOf(val) === 'function') {\n target[key] = val;\n }\n target[key] = assign(target[key] || {}, val);\n } else {\n target[key] = val;\n }\n }\n }\n return target;\n}\n\n/**\n * Returns true if the object is a plain object or a function.\n */\n\nfunction isObject(obj) {\n return typeOf(obj) === 'object' || typeOf(obj) === 'function';\n}\n\n/**\n * Returns true if the given `key` is an own property of `obj`.\n */\n\nfunction hasOwn(obj, key) {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\n/**\n * Expose `assign`\n */\n\nmodule.exports = assign;\n","import assign from 'assign-deep';\nimport { editorLogger as logger } from './LoggerConfig';\n\n\n/**\n * Default configuration\n * @type {Configuration}\n * See https://developer.myscript.com/docs/interactive-ink/latest/reference/web/configuration/ for a full documentation of parameters.\n */\nconst defaultConfiguration = {\n recognitionParams: {\n type: 'TEXT',\n protocol: 'WEBSOCKET',\n apiVersion: 'V4',\n server: {\n scheme: 'https',\n host: 'cloud.myscript.com',\n applicationKey: undefined,\n hmacKey: undefined,\n useWindowLocation: false,\n websocket: {\n pingEnabled: true,\n pingDelay: 30000,\n maxPingLostCount: 10,\n autoReconnect: true,\n maxRetryCount: 2,\n fileChunkSize: 300000\n }\n },\n v4: {\n alwaysConnected: false,\n lang: 'en_US',\n export: {\n 'image-resolution': 300,\n jiix: {\n 'bounding-box': false,\n strokes: false,\n text: {\n chars: false,\n words: true\n }\n }\n },\n renderer: {\n debug: {\n 'draw-text-boxes': false,\n 'draw-image-boxes': false\n }\n },\n math: {\n mimeTypes: ['application/x-latex', 'application/mathml+xml'],\n solver: {\n enable: true,\n 'fractional-part-digits': 3,\n 'decimal-separator': '.',\n 'rounding-mode': 'half up',\n 'angle-unit': 'deg'\n },\n margin: {\n bottom: 10,\n left: 15,\n right: 15,\n top: 10\n }\n },\n text: {\n guides: {\n enable: true\n },\n smartGuide: true,\n smartGuideFadeOut: {\n enable: false,\n duration: 10000\n },\n mimeTypes: ['text/plain', 'application/vnd.myscript.jiix'],\n margin: {\n top: 20,\n left: 10,\n right: 10\n }\n },\n diagram: {\n mimeTypes: ['application/vnd.myscript.jiix'],\n margin: {\n bottom: 10,\n left: 15,\n right: 15,\n top: 10\n }\n },\n 'raw-content': {\n recognition: {\n text: false,\n shape: false\n }\n }\n },\n v3: {\n mathParameter: {\n resultTypes: ['LATEX', 'MATHML'],\n columnarOperation: false,\n userResources: [],\n scratchOutDetectionSensitivity: 1,\n },\n textParameter: {\n language: 'en_US',\n textInputMode: 'CURSIVE',\n resultDetail: 'TEXT',\n contentTypes: [],\n subsetKnowledges: [],\n userLkWords: [],\n userResources: [],\n textProperties: {\n textCandidateListSize: 1,\n wordCandidateListSize: undefined,\n wordPredictionListSize: 0,\n wordCompletionListSize: 0,\n characterCandidateListSize: undefined,\n enableOutOfLexicon: false,\n discardCaseVariations: false,\n discardAccentuationVariations: false,\n glyphDistortion: undefined,\n enableTagger: false,\n spellingDistortion: undefined\n }\n },\n shapeParameter: {\n userResources: undefined,\n rejectDetectionSensitivity: 1,\n doBeautification: true\n },\n musicParameter: {\n divisions: 480,\n resultTypes: ['MUSICXML', 'SCORETREE'],\n userResources: [],\n staff: {\n top: 100,\n count: 5,\n gap: 20\n },\n clef: {\n symbol: 'G',\n octave: 0,\n line: 2\n },\n scratchOutDetectionSensitivity: 1\n },\n analyzerParameter: {\n textParameter: {\n textProperties: {},\n language: 'en_US',\n textInputMode: 'CURSIVE'\n },\n coordinateResolution: undefined\n }\n }\n },\n // @see generated documentation on top\n listenerOptions: {\n capture: false,\n passive: true\n },\n undoRedoMaxStackSize: 20,\n xyFloatPrecision: 0,\n timestampFloatPrecision: 0,\n triggerDelay: 2000,\n processDelay: 0,\n resizeTriggerDelay: 200,\n // Configure when the action is triggered.\n // POINTER_UP : Action is triggered on every PenUP. This is the recommended mode for CDK V3 WebSocket recognitions.\n // QUIET_PERIOD : Action is triggered after a quiet period in milli-seconds on every pointer up. I value is set to 2000 for example the recognition will be fired when user stop writing 2 seconds. This is the recommended mode for all REST recognitions.\n triggers: {\n exportContent: 'POINTER_UP',\n addStrokes: 'POINTER_UP'\n },\n restConversionState: '',\n renderingParams: {\n stroker: 'quadratic',\n minHeight: 100,\n minWidth: 100\n }\n};\n\n/**\n * Generate parameters\n * @param {Configuration} configuration Configuration to be used\n * @return {Configuration} Overridden configuration\n */\nexport function overrideDefaultConfiguration(configuration) {\n const confRef = configuration;\n let currentConfiguration;\n if (confRef && confRef.recognitionParams.server && confRef.recognitionParams.server.useWindowLocation) {\n confRef.recognitionParams.server.scheme = window.location.protocol.slice(0, -1);\n confRef.recognitionParams.server.host = window.location.host;\n currentConfiguration = assign({}, defaultConfiguration, confRef === undefined ? {} : confRef);\n } else {\n currentConfiguration = assign({}, defaultConfiguration, configuration === undefined ? {} : configuration);\n }\n logger.debug('Override default configuration', currentConfiguration);\n return currentConfiguration;\n}\n\nexport default defaultConfiguration;\n","!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define([],e):\"object\"==typeof exports?exports.JsonCSS=e():t.JsonCSS=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,\"a\",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"\",e(e.s=1)}([function(t,e,n){\"use strict\";function o(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}Object.defineProperty(e,\"__esModule\",{value:!0});var r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i=function t(e){var n=this;o(this,t),this.toJSON=function(t){if(\"string\"!=typeof t)return console.error(\"Need a CSS string but given \",void 0===t?\"undefined\":r(t),t),\"Not a valid CSS..!\";var e={},o=void 0,i=void 0,u=void 0;try{t.split(\"{\").forEach(function(t){if(i=t.trim())if(-1===i.indexOf(\"}\"))e[i]={},o=i;else{i.substring(0,i.indexOf(\"}\")).split(\";\").forEach(function(t){(u=t.split(\":\"))&&2===u.length&&(e[o][u[0].trim().replace(/^\\\"|\\\"$/g,\"\")]=n._trimSemiColon(u[1].trim().replace(/^\\\"|\\\"$/g,\"\")))});try{o=i.split(\"}\")[1].trim(),o&&(e[o]={})}catch(t){}}})}catch(t){return\"Not a valid CSS..!\"}return e},this.toCSS=function(t){if(\"object\"!==(void 0===t?\"undefined\":r(t)))return console.error(\"Need a JSON object but given \",void 0===t?\"undefined\":r(t),t),\"Not a valid JSON..!\";var e=\"\";try{for(var n in t)if(t.hasOwnProperty(n)){e+=n+\" {\\n\";for(var o in t[n])t[n].hasOwnProperty(o)&&(e+=o+\": \"+t[n][o]+\";\\n\");e+=\"}\\n\"}}catch(t){return\"Not a valid JSON..!\"}return e},this._trimSemiColon=function(t){return\";\"===t.slice(-1)?t.slice(0,n.length-1):t}};e.default=i},function(t,e,n){\"use strict\";t.exports=n(0).default}])});","import JsonCSS from 'json-css';\nimport assign from 'assign-deep';\nimport { editorLogger as logger } from './LoggerConfig';\n\n/**\n * @typedef {Object} PenStyle\n * @property {String} color=#000000 Color (supported formats rgb() rgba() hsl() hsla() #rgb #rgba #rrggbb #rrggbbaa)\n * @property {String} -myscript-pen-width=1 Width of strokes and primitives in mm (no other unit is supported yet)\n * @property {String} -myscript-pen-fill-style=none\n * @property {String} -myscript-pen-fill-color=#FFFFFF00 Color filled inside the area delimited by strokes and primitives\n */\n\n/**\n * Default style\n * @type {PenStyle}\n */\nconst defaultPenStyle = undefined;\nconst parser = new JsonCSS();\n\n/**\n * Generate style\n * @param {PenStyle} style Custom style to be applied\n * @return {PenStyle} Overridden style\n */\nexport function overrideDefaultPenStyle(style) {\n const currentStyle = assign({}, defaultPenStyle, style === undefined ? {} : style);\n logger.debug('Override default pen style', currentStyle);\n return currentStyle;\n}\n\nexport function toCSS(penStyle) { // FIXME Ugly hack to parse JSON to CSS inline\n const css = parser.toCSS({ css: penStyle });\n return css.substring(6, css.length - 3);\n}\n\nexport function toJSON(penStyle) { // FIXME Ugly hack to parse CSS inline to JSON\n return parser.toJSON(`css {${penStyle}}`).css;\n}\n\nexport default defaultPenStyle;\n","import JsonCSS from 'json-css';\nimport assign from 'assign-deep';\nimport { editorLogger as logger } from './LoggerConfig';\n\n/**\n * @typedef {PenStyle} InkTheme\n */\n/**\n * @typedef {Object} MathTheme\n * @property {String} font-family=STIXGeneral Font-family to be used\n */\n/**\n * @typedef {Object} GeneratedTheme\n * @property {String} font-family=STIXGeneral Font-family to be used\n * @property {String} color=#A8A8A8FF Color to be used\n */\n/**\n * @typedef {Object} TextTheme\n * @property {String} font-family=OpenSans Font-family to be used\n * @property {Number} font-size=10 Font-size to be used\n */\n/**\n * @typedef {Object} Theme\n * @property {InkTheme} ink General settings\n * @property {MathTheme} .math Math theme\n * @property {GeneratedTheme} .math-solver Theme to be used for generated items\n * @property {TextTheme} .text Text theme\n */\n\n/**\n * Default theme\n * @type {Theme}\n */\nconst defaultTheme = {\n ink: {\n color: '#000000',\n '-myscript-pen-width': 1,\n '-myscript-pen-fill-style': 'none',\n '-myscript-pen-fill-color': '#FFFFFF00'\n },\n '.math': {\n 'font-family': 'STIXGeneral'\n },\n '.math-solved': {\n 'font-family': 'STIXGeneral',\n color: '#A8A8A8FF'\n },\n '.text': {\n 'font-family': 'Open Sans',\n 'font-size': 10\n }\n};\nconst parser = new JsonCSS();\n\n/**\n * Generate theme\n * @param {Theme} theme Custom theme to be applied\n * @return {Theme} Overridden theme\n */\nexport function overrideDefaultTheme(theme) {\n const currentTheme = assign({}, defaultTheme, theme === undefined ? {} : theme);\n logger.debug('Override default theme', currentTheme);\n return currentTheme;\n}\n\nexport function toCSS(theme) {\n return parser.toCSS(theme);\n}\n\nexport function toJSON(theme) {\n return parser.toJSON(theme);\n}\n\nexport default defaultTheme;\n","import { grabberLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Grab pointerDown, pointerMove and pointerUp events\n * @typedef {Object} Grabber\n * @property {function(element: Element, editor: Editor): GrabberContext} attach Attach events and decide when to call editor pointerDown/Move/Up methods\n * @property {function(element: Element, context: GrabberContext)} detach Detach the grabber\n */\n\n/**\n * Grabber listener\n * @typedef {Object} GrabberListener\n * @property {Array} types Event types to listen\n * @property {function(event: Event)} listener Event listener for these events\n */\n\n/**\n * Grabber context\n * @typedef {Object} GrabberContext\n * @property {Boolean|Object} options Options object that specifies characteristics about the event listener. (@see addEventListener.options for detail)\n * @property {Array} listeners Registered listeners\n */\n\nconst floatPrecisionArray = [1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000];\n\nfunction roundFloat(oneFloat, requestedFloatPrecision) {\n if (requestedFloatPrecision || requestedFloatPrecision === 0) {\n let floatPrecision;\n if (requestedFloatPrecision > 10) {\n floatPrecision = floatPrecisionArray[10];\n } else {\n floatPrecision = floatPrecisionArray[requestedFloatPrecision];\n }\n return Math.round(oneFloat * floatPrecision) / floatPrecision;\n }\n return oneFloat;\n}\n\nfunction extractPoint(event, domElement, configuration, offsetTop = 0, offsetLeft = 0) {\n let eventRef = event;\n if (eventRef.changedTouches) {\n eventRef = eventRef.changedTouches[0];\n }\n const rect = domElement.getBoundingClientRect();\n return {\n x: roundFloat(eventRef.clientX - rect.left - domElement.clientLeft - offsetLeft, configuration.xyFloatPrecision),\n y: roundFloat(eventRef.clientY - rect.top - domElement.clientTop - offsetTop, configuration.xyFloatPrecision),\n t: roundFloat(Date.now(), configuration.timestampFloatPrecision)\n };\n}\n\n/**\n * Listen for the desired events\n * @param {Element} element DOM element to attach events listeners\n * @param {Editor} editor Editor to received down/move/up events\n * @param {Number} [offsetTop=0]\n * @param {Number} [offsetLeft=0]\n * @return {GrabberContext} Grabber context\n * @listens {Event} pointermove: a pointer moves, similar to touchmove or mousemove.\n * @listens {Event} pointerdown: a pointer is activated, or a device button held.\n * @listens {Event} pointerup: a pointer is deactivated, or a device button released.\n * @listens {Event} pointerover: a pointer has moved onto an element.\n * @listens {Event} pointerout: a pointer is no longer on an element it once was.\n * @listens {Event} pointerenter: a pointer enters the bounding box of an element.\n * @listens {Event} pointerleave: a pointer leaves the bounding box of an element.\n * @listens {Event} pointercancel: a pointer will no longer generate events.\n */\nexport function attach(element, editor, offsetTop = 0, offsetLeft = 0) {\n let mMaxDiffX = 0;\n\n function unfocus() {\n if (window.getSelection().type !== 'None') {\n window.getSelection().removeAllRanges();\n }\n }\n\n function hideMenu(evt) {\n const moreMenuInDocument = document.querySelector('.more-menu');\n if (!evt.target.classList.contains('ellipsis') && !evt.target.classList.contains('more-menu') && !evt.target.classList.contains('options-label-button') && moreMenuInDocument && moreMenuInDocument.style.display !== 'none') {\n moreMenuInDocument.style.display = 'none';\n return true;\n }\n return false;\n }\n\n function hideCandidates(evt) {\n const candidatesInDocument = document.querySelector('.candidates');\n if (!evt.target.classList.contains('candidates') && !(evt.target.tagName === 'SPAN') && candidatesInDocument && candidatesInDocument.style.display !== 'none') {\n candidatesInDocument.style.display = 'none';\n return true;\n }\n return false;\n }\n\n function pointerDownHandler(evt) { // Trigger a pointerDown\n const pointerDownOnEditor = evt.target.id === editor.domElement.id || evt.target.classList.contains('ms-canvas');\n if (this.activePointerId !== undefined) {\n if (this.activePointerId === evt.pointerId) {\n logger.trace(`${evt.type} event with the same id without any pointer up`, evt.pointerId);\n }\n } else if ((evt.button !== 2) && (evt.buttons !== 2) && pointerDownOnEditor) { // Ignore right click\n if (!hideMenu(evt) && !hideCandidates(evt)) {\n this.activePointerId = evt.pointerId;\n // Hack for iOS 9 Safari : pointerId has to be int so -1 if > max value\n const pointerId = evt.pointerId > 2147483647 ? -1 : evt.pointerId;\n unfocus();\n evt.stopPropagation();\n editor.pointerDown(extractPoint(evt, element, editor.configuration, offsetTop, offsetLeft), evt.pointerType, pointerId);\n }\n } else if (evt.target.classList.contains('ellipsis') || evt.target.classList.contains('tag-icon')) {\n hideMenu(evt);\n hideCandidates(evt);\n } else { // FIXME add more complete verification to pointer down on smartguide\n hideMenu(evt);\n hideCandidates(evt);\n this.smartGuidePointerDown = true;\n this.downSmartGuidePoint = extractPoint(evt, element, editor.configuration);\n }\n }\n\n function pointerMoveHandler(evt) { // Trigger a pointerMove\n // Only considering the active pointer\n if (this.activePointerId !== undefined && this.activePointerId === evt.pointerId) {\n unfocus();\n editor.pointerMove(extractPoint(evt, element, editor.configuration, offsetTop, offsetLeft));\n } else if (this.smartGuidePointerDown) {\n const point = extractPoint(evt, element, editor.configuration, offsetTop, offsetLeft);\n const diffX = Math.abs(this.downSmartGuidePoint.x - point.x);\n const diffY = Math.abs(this.downSmartGuidePoint.y - point.y);\n mMaxDiffX = Math.max(diffX, mMaxDiffX);\n const cond1 = diffX < 5 && diffY > 5 && mMaxDiffX < 15;\n const cond2 = diffX > 5 && diffY > 5 && mMaxDiffX < 15;\n if (cond1 || cond2) {\n this.activePointerId = evt.pointerId;\n // Hack for iOS 9 Safari : pointerId has to be int so -1 if > max value\n const pointerId = evt.pointerId > 2147483647 ? -1 : evt.pointerId;\n unfocus();\n editor.pointerDown(this.downSmartGuidePoint, evt.pointerType, pointerId);\n }\n } else {\n logger.trace(`${evt.type} event from another pointerid (${evt.pointerId})`, this.activePointerId);\n }\n }\n\n function pointerUpHandler(evt) { // Trigger a pointerUp\n mMaxDiffX = 0;\n this.smartGuidePointerDown = false;\n const smartGuideIds = ['smartguide', 'prompter-text-container', 'prompter-text', 'tag-icon', 'ellipsis'];\n const scrollbarClasses = ['ps__rail-x', 'ps__thumb-x'];\n // Check if pointer entered into any smartguide elements or scrollbar\n const pointerEnteredSmartGuide = evt.relatedTarget && (smartGuideIds.includes(evt.relatedTarget.className) || scrollbarClasses.includes(evt.relatedTarget.className));\n // Check if pointer didn't stay in the smartguide and pointer exited the smartguide or scrollbar\n const pointerExitedSmartGuide = evt.relatedTarget && evt.target && (smartGuideIds.includes(evt.target.className) || scrollbarClasses.includes(evt.target.className));\n // Check if pointer moved between words in smartguide\n const pointerMovedWords = evt.relatedTarget && evt.target && (evt.target.tagName === 'SPAN' || evt.relatedTarget.tagName === 'SPAN');\n if (pointerEnteredSmartGuide || pointerExitedSmartGuide || pointerMovedWords) {\n evt.stopPropagation();\n } else if (this.activePointerId !== undefined && this.activePointerId === evt.pointerId) { // Only considering the active pointer\n this.activePointerId = undefined; // Managing the active pointer\n evt.stopPropagation();\n editor.pointerUp(extractPoint(evt, element, editor.configuration, offsetTop, offsetLeft));\n } else {\n logger.trace(`${evt.type} event from another pointerid (${evt.pointerId})`, this.activePointerId);\n }\n }\n\n const context = {\n options: editor.configuration.listenerOptions,\n listeners: [{\n types: ['pointerdown'],\n listener: pointerDownHandler\n }, {\n types: ['pointermove'],\n listener: pointerMoveHandler\n }, {\n types: ['pointerup', 'pointerout', 'pointerleave', 'pointercancel'],\n listener: pointerUpHandler\n }]\n };\n\n logger.debug('attaching listeners', context);\n context.listeners.forEach((item) => {\n item.types.forEach(type => element.addEventListener(type, item.listener, context.options));\n });\n return context;\n}\n\nexport function detach(element, context) {\n logger.debug('detaching listeners', context);\n context.listeners.forEach((item) => {\n item.types.forEach(type => element.removeEventListener(type, item.listener, context.options));\n });\n}\n","/**\n * Draw a stroke symbol\n * @param {Object} context Current rendering context\n * @param {Stroke} stroke Stroke to be drawn\n * @param {Stroker} stroker Stroker to use to render a stroke\n */\nexport function drawStroke(context, stroke, stroker) {\n if (stroker) {\n stroker.drawStroke(context, stroke);\n }\n}\n","import { rendererLogger as logger } from '../../../configuration/LoggerConfig';\n\n/**\n * @type {{table: String, shape: String, recognizedShape: String, ellipse: String, line: String}}\n */\nexport const ShapeSymbols = {\n table: 'table',\n shape: 'shape',\n recognizedShape: 'recognizedShape',\n ellipse: 'ellipse',\n line: 'line'\n};\n\nfunction phi(angle) {\n let returnedAngle = ((angle + Math.PI) % (Math.PI * 2)) - Math.PI;\n if (returnedAngle < -Math.PI) {\n returnedAngle += Math.PI * 2;\n }\n return returnedAngle;\n}\n\nfunction drawEllipseArc(context, centerPoint, maxRadius, minRadius, orientation, startAngle, sweepAngle) {\n const angleStep = 0.02; // angle delta between interpolated\n\n let z1 = Math.cos(orientation);\n let z3 = Math.sin(orientation);\n let z2 = z1;\n let z4 = z3;\n z1 *= maxRadius;\n z2 *= minRadius;\n z3 *= maxRadius;\n z4 *= minRadius;\n\n const n = Math.floor(Math.abs(sweepAngle) / angleStep);\n\n const boundariesPoints = [];\n\n context.save();\n try {\n context.beginPath();\n\n for (let i = 0; i <= n; i++) {\n const angle = startAngle + ((i / n) * sweepAngle); // points on the arc, in radian\n const alpha = Math.atan2(Math.sin(angle) / minRadius, Math.cos(angle) / maxRadius);\n\n const cosAlpha = Math.cos(alpha);\n const sinAlpha = Math.sin(alpha);\n\n // current point\n const x = (centerPoint.x + (z1 * cosAlpha)) - (z4 * sinAlpha);\n const y = (centerPoint.y + (z2 * sinAlpha)) + (z3 * cosAlpha);\n if (i === 0) {\n context.moveTo(x, y);\n } else {\n context.lineTo(x, y);\n }\n\n if (i === 0 || i === n) {\n boundariesPoints.push({ x, y });\n }\n }\n\n context.stroke();\n } finally {\n context.restore();\n }\n\n return boundariesPoints;\n}\n\nfunction drawArrowHead(context, headPoint, angle, length) {\n const alpha = phi(angle + (Math.PI * (7 / 8)));\n const beta = phi(angle - (Math.PI * (7 / 8)));\n\n const contextReference = context;\n contextReference.save();\n try {\n contextReference.fillStyle = contextReference.strokeStyle;\n\n contextReference.moveTo(headPoint.x, headPoint.y);\n contextReference.beginPath();\n contextReference.lineTo(headPoint.x + (length * Math.cos(alpha)), headPoint.y + (length * Math.sin(alpha)));\n contextReference.lineTo(headPoint.x + (length * Math.cos(beta)), headPoint.y + (length * Math.sin(beta)));\n contextReference.lineTo(headPoint.x, headPoint.y);\n contextReference.fill();\n } finally {\n contextReference.restore();\n }\n}\n\nfunction drawShapeEllipse(context, shapeEllipse) {\n const points = drawEllipseArc(\n context,\n shapeEllipse.center,\n shapeEllipse.maxRadius,\n shapeEllipse.minRadius,\n shapeEllipse.orientation,\n shapeEllipse.startAngle,\n shapeEllipse.sweepAngle);\n\n if (shapeEllipse.beginDecoration && shapeEllipse.beginDecoration === 'ARROW_HEAD') {\n drawArrowHead(context, points[0], shapeEllipse.beginTangentAngle, 12.0);\n }\n if (shapeEllipse.endDecoration && shapeEllipse.endDecoration === 'ARROW_HEAD') {\n drawArrowHead(context, points[1], shapeEllipse.endTangentAngle, 12.0);\n }\n}\n\n/**\n * Draw a line\n * @param {Object} context Current rendering context\n * @param {{x: Number, y: Number}} p1 Origin point\n * @param {{x: Number, y: Number}} p2 Destination point\n */\nexport function drawLine(context, p1, p2) {\n context.save();\n try {\n context.beginPath();\n context.moveTo(p1.x, p1.y);\n context.lineTo(p2.x, p2.y);\n context.stroke();\n } finally {\n context.restore();\n }\n}\n\nfunction drawShapeLine(context, shapeLine) {\n drawLine(context, shapeLine.firstPoint, shapeLine.lastPoint);\n if (shapeLine.beginDecoration === 'ARROW_HEAD') {\n drawArrowHead(context, shapeLine.firstPoint, shapeLine.beginTangentAngle, 12.0);\n }\n if (shapeLine.endDecoration === 'ARROW_HEAD') {\n drawArrowHead(context, shapeLine.lastPoint, shapeLine.endTangentAngle, 12.0);\n }\n}\n\n/**\n * Draw a shape symbol\n * @param {Object} context Current rendering context\n * @param {Object} symbol Symbol to draw\n */\nexport function drawShapeSymbol(context, symbol) {\n logger.debug(`draw ${symbol.type} symbol`);\n const contextReference = context;\n contextReference.save();\n try {\n contextReference.lineWidth = symbol.width;\n contextReference.strokeStyle = symbol.color;\n\n if (symbol.elementType) {\n switch (symbol.elementType) {\n case ShapeSymbols.shape:\n drawShapeSymbol(contextReference, symbol.candidates[symbol.selectedCandidateIndex]);\n break;\n case ShapeSymbols.table:\n symbol.lines.forEach(line => drawShapeSymbol(contextReference, line));\n break;\n case ShapeSymbols.line:\n drawLine(contextReference, symbol.data.p1, symbol.data.p2);\n break;\n default:\n logger.error(`${symbol.elementType} not implemented`);\n break;\n }\n } else {\n switch (symbol.type) {\n case ShapeSymbols.ellipse:\n drawShapeEllipse(contextReference, symbol);\n break;\n case ShapeSymbols.line:\n drawShapeLine(contextReference, symbol);\n break;\n case ShapeSymbols.recognizedShape:\n symbol.primitives.forEach(primitive => drawShapeSymbol(contextReference, primitive));\n break;\n default:\n logger.error(`${symbol.type} not implemented`);\n break;\n }\n }\n } finally {\n contextReference.restore();\n }\n}\n","import { rendererLogger as logger } from '../../../configuration/LoggerConfig';\nimport { drawLine } from './ShapeSymbolCanvasRenderer';\n\n/**\n * @type {{inputCharacter: String, char: String, string: String, textLine: String}}\n */\nexport const TextSymbols = {\n inputCharacter: 'inputCharacter',\n char: 'char',\n string: 'string',\n textLine: 'textLine'\n};\n\nfunction drawUnderline(context, underline, label, data) {\n const delta = data.width / label.length;\n const p1 = {\n x: data.topLeftPoint.x + (underline.data.firstCharacter * delta),\n y: data.topLeftPoint.y + data.height\n };\n const p2 = {\n x: data.topLeftPoint.x + (underline.data.lastCharacter * delta),\n y: data.topLeftPoint.y + data.height\n };\n drawLine(context, p1, p2);\n}\n\nfunction drawText(context, label, data) {\n const contextReference = context;\n contextReference.save();\n try {\n contextReference.font = `${data.textHeight}px serif`;\n contextReference.textAlign = (data.justificationType === 'CENTER') ? 'center' : 'left';\n contextReference.textBaseline = 'bottom';\n contextReference.fillStyle = contextReference.strokeStyle;\n contextReference.fillText(label, data.topLeftPoint.x, (data.topLeftPoint.y + data.height));\n } finally {\n contextReference.restore();\n }\n}\n\nfunction drawTextLine(context, textLine) {\n drawText(context, textLine.label, textLine.data);\n textLine.underlineList.forEach((underline) => {\n drawUnderline(context, underline, textLine.label, textLine.data);\n });\n}\n\n/**\n * Draw a text symbol\n * @param {Object} context Current rendering context\n * @param {Object} symbol Symbol to draw\n */\nexport function drawTextSymbol(context, symbol) {\n logger.debug(`draw ${symbol.type} symbol`);\n const contextReference = context;\n contextReference.save();\n try {\n contextReference.lineWidth = symbol.width;\n contextReference.strokeStyle = symbol.color;\n\n if (symbol.elementType) {\n switch (symbol.elementType) {\n case TextSymbols.textLine:\n drawTextLine(contextReference, symbol);\n break;\n default:\n logger.error(`${symbol.elementType} not implemented`);\n break;\n }\n } else {\n switch (symbol.type) {\n case TextSymbols.textLine:\n drawTextLine(contextReference, symbol);\n break;\n default:\n logger.error(`${symbol.type} not implemented`);\n }\n }\n } finally {\n contextReference.restore();\n }\n}\n","import { rendererLogger as logger } from '../../../configuration/LoggerConfig';\nimport { drawLine } from './ShapeSymbolCanvasRenderer';\n\n/**\n * @type {{F: {svg: String, getBoundingBox: function}, C: {svg: String, getBoundingBox: function}, G: {svg: String, getBoundingBox: function}}}\n */\nexport const MusicClefs = { // constants was calculated from the svg image, so it should remains together\n F: {\n svg: '',\n getBoundingBox: (gap, xAnchor, yAnchor) => ({\n height: gap * 3,\n width: (gap * 3) * (18 / 20),\n x: xAnchor,\n y: yAnchor - gap\n })\n },\n C: {\n svg: '',\n getBoundingBox: (gap, xAnchor, yAnchor) => ({\n height: gap * 3,\n width: (gap * 3) * (18 / 25),\n x: xAnchor,\n y: yAnchor - (gap * (3 / 2))\n })\n },\n G: {\n svg: '',\n getBoundingBox: (gap, xAnchor, yAnchor) => ({\n height: gap * (15 / 2),\n width: (gap * (15 / 2)) * (15 / 40),\n x: xAnchor,\n y: yAnchor - (gap * (9 / 2))\n })\n }\n};\n\n/**\n * @type {{accidental: String, arpeggiate: String, bar: String, beam: String, clef: String, decoration: String, dots: String, head: String, ledgerLine: String, rest: String, staff: String, stem: String, tieOrSlur: String, timeSignature: String}}\n */\nexport const MusicSymbols = {\n accidental: 'accidental',\n arpeggiate: 'arpeggiate',\n bar: 'bar',\n beam: 'beam',\n clef: 'clef',\n decoration: 'decoration',\n dots: 'dots',\n head: 'head',\n ledgerLine: 'ledgerLine',\n rest: 'rest',\n staff: 'staff',\n stem: 'stem',\n tieOrSlur: 'tieOrSlur',\n timeSignature: 'timeSignature',\n};\n\nfunction createImage(clef, src) {\n // eslint-disable-next-line no-undef\n const browserDocument = document;\n const img = browserDocument.createElement('img');\n img.dataset.clef = clef;\n img.src = src;\n img.style.display = 'none';\n return img;\n}\n\n/**\n * Retrieve music symbols elements\n * @return {Array} music symbols elements to attach\n */\nexport function getMusicClefElements() {\n return Object.keys(MusicClefs)\n .map(key => createImage(key, `data:image/svg+xml,${MusicClefs[key].svg}`));\n}\n\nfunction drawStaff(context, staff) {\n for (let i = 0; i < staff.count; i++) {\n const p1 = { x: 0, y: staff.top + (i * staff.gap) };\n const p2 = { x: context.canvas.width, y: staff.top + (i * staff.gap) };\n drawLine(context, p1, p2);\n }\n}\n\nfunction drawClef(context, clef) {\n // eslint-disable-next-line no-undef\n context.drawImage(context.canvas.parentElement.querySelector(`img[data-clef=${clef.value.symbol}]`), clef.boundingBox.x, clef.boundingBox.y, clef.boundingBox.width, clef.boundingBox.height);\n}\n\n/**\n * Draw a music symbol\n * @param {Object} context Current rendering context\n * @param {Object} symbol Symbol to draw\n */\nexport function drawMusicSymbol(context, symbol) {\n logger.debug(`draw ${symbol.type} symbol`);\n switch (symbol.type) {\n case MusicSymbols.clef:\n drawClef(context, symbol);\n break;\n case MusicSymbols.staff:\n drawStaff(context, symbol);\n break;\n default:\n logger.error(`${symbol.type} not implemented`);\n }\n}\n","import { modelLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Stroke symbol\n * @typedef {Object} Stroke\n * @property {String} type=stroke Symbol type, 'stroke' for stroke\n * @property {String} pointerType=undefined Pointer type\n * @property {Number} pointerId=undefined Pointer id\n * @property {Array} x=[] X coordinates\n * @property {Array} y=[] Y coordinates\n * @property {Array} t=[] Timestamps matching x,y coordinates\n * @property {Array} p=[] Pressure\n * @property {Array} l=[] Length from origin\n * @property {Number} width=0 (for rendering) Pen/brush width\n * @property {String} color=undefined (for rendering) Pen/brush color\n */\n\n/**\n * pointerEvents symbol\n * @typedef {Object} pointerEvents\n * @property {String} type=pointerEvents Symbol type, 'pointerEvents' for pointerEvents\n * @property {Boolean} processGestures=False indicates if the gestures have to be processed\n * @property {Array} events=[] the events to process\n */\n\nfunction computeDistance(x, y, xArray, yArray, lastIndexPoint) {\n const distance = Math.sqrt(Math.pow((y - yArray[lastIndexPoint - 1]), 2) + Math.pow((x - xArray[lastIndexPoint - 1]), 2));\n return isNaN(distance) ? 0 : distance;\n}\n\nfunction computeLength(x, y, xArray, yArray, lArray, lastIndexPoint) {\n const length = lArray[lastIndexPoint - 1] + computeDistance(x, y, xArray, yArray, lastIndexPoint);\n return isNaN(length) ? 0 : length;\n}\n\nfunction computePressure(x, y, xArray, yArray, lArray, lastIndexPoint) {\n let ratio = 1.0;\n const distance = computeDistance(x, y, xArray, yArray, lastIndexPoint);\n const length = computeLength(x, y, xArray, yArray, lArray, lastIndexPoint);\n\n if (length === 0) {\n ratio = 0.5;\n } else if (distance === length) {\n ratio = 1.0;\n } else if (distance < 10) {\n ratio = 0.2 + Math.pow(0.1 * distance, 0.4);\n } else if (distance > length - 10) {\n ratio = 0.2 + Math.pow(0.1 * (length - distance), 0.4);\n }\n const pressure = ratio * Math.max(0.1, 1.0 - (0.1 * Math.sqrt(distance)));\n return isNaN(parseFloat(pressure)) ? 0.5 : pressure;\n}\n\nfunction filterPointByAcquisitionDelta(x, y, xArray, yArray, width) {\n const delta = (2 + (width / 4));\n let ret = false;\n if (xArray.length === 0 || yArray.length === 0 || Math.abs(xArray[xArray.length - 1] - x) >= delta || Math.abs(yArray[yArray.length - 1] - y) >= delta) {\n ret = true;\n }\n return ret;\n}\n\n/**\n * Create a new stroke\n * @param {Object} properties Properties to be applied to the stroke.\n * @return {Stroke} New stroke with properties for quadratics draw\n */\nexport function createStrokeComponent(properties) {\n const defaultStroke = {\n type: 'stroke',\n x: [],\n y: [],\n t: [],\n p: [],\n l: [],\n width: 0\n };\n return Object.assign({}, defaultStroke, properties);\n}\n\n/**\n * Get a JSON copy of a stroke by filtering its properties\n * @param {Stroke} stroke Current stroke\n * @return {{type: String, x: Array, y: Array, t: Array}} Simplified stroke object\n */\nexport function toJSON(stroke) {\n return { type: stroke.type, x: stroke.x, y: stroke.y, t: stroke.t };\n}\n\n/**\n * Get a JSON copy of a stroke by filtering its properties\n * @param {Stroke} stroke Current stroke\n * @return {{x: Array, y: Array, t: Array}} Simplified stroke object\n */\nexport function toJSONV4(stroke) {\n return { x: stroke.x, y: stroke.y, t: stroke.t };\n}\n\n/**\n * Mutate a stroke by adding a point to it.\n * @param {Stroke} stroke Current stroke\n * @param {{x: Number, y: Number, t: Number}} point Point to add\n * @return {Stroke} Updated stroke\n */\nexport function addPoint(stroke, point) {\n const strokeReference = stroke;\n if (filterPointByAcquisitionDelta(point.x, point.y, strokeReference.x, strokeReference.y, strokeReference.width)) {\n strokeReference.x.push(point.x);\n strokeReference.y.push(point.y);\n strokeReference.t.push(point.t);\n strokeReference.p.push(computePressure(point.x, point.y, strokeReference.x, strokeReference.y, strokeReference.l, strokeReference.x.length - 1));\n strokeReference.l.push(computeLength(point.x, point.y, strokeReference.x, strokeReference.y, strokeReference.l, strokeReference.x.length - 1));\n } else {\n logger.trace('ignore filtered point', point);\n }\n return strokeReference;\n}\n\n/**\n * Slice a stroke and return the sliced part of it\n * @param {Stroke} stroke Current stroke\n * @param {Number} [start=0] Zero-based index at which to begin extraction\n * @param {Number} [end=length] Zero-based index at which to end extraction\n * @return {Stroke} Sliced stroke\n */\nexport function slice(stroke, start = 0, end = stroke.x.length) {\n const slicedStroke = createStrokeComponent({ color: stroke.color, width: stroke.width });\n for (let i = start; i < end; i++) {\n addPoint(slicedStroke, {\n x: stroke.x[i],\n y: stroke.y[i],\n t: stroke.t[i]\n });\n }\n return slicedStroke;\n}\n\n/**\n * Extract point by index\n * @param {Stroke} stroke Current stroke\n * @param {Number} index Zero-based index\n * @return {{x: Number, y: Number, t: Number, p: Number, l: Number}} Point with properties for quadratics draw\n */\nexport function getPointByIndex(stroke, index) {\n let point;\n if (index !== undefined && index >= 0 && index < stroke.x.length) {\n point = {\n x: stroke.x[index],\n y: stroke.y[index],\n t: stroke.t[index],\n p: stroke.p[index],\n l: stroke.l[index]\n };\n }\n return point;\n}\n","import { MusicClefs } from '../renderer/canvas/symbols/MusicSymbolCanvasRenderer';\nimport Constants from '../configuration/Constants';\n\nfunction mergeBounds(boundsA, boundsB) {\n return {\n minX: Math.min(boundsA.minX, boundsB.minX),\n maxX: Math.max(boundsA.maxX, boundsB.maxX),\n minY: Math.min(boundsA.minY, boundsB.minY),\n maxY: Math.max(boundsA.maxY, boundsB.maxY)\n };\n}\n\nfunction getLineBounds(line) {\n return {\n minX: Math.min(line.firstPoint.x, line.lastPoint.x),\n maxX: Math.max(line.firstPoint.x, line.lastPoint.x),\n minY: Math.min(line.firstPoint.y, line.lastPoint.y),\n maxY: Math.max(line.firstPoint.y, line.lastPoint.y)\n };\n}\n\nfunction getEllipseBounds(ellipse) {\n const angleStep = 0.02; // angle delta between interpolated points on the arc, in radian\n\n let z1 = Math.cos(ellipse.orientation);\n let z3 = Math.sin(ellipse.orientation);\n let z2 = z1;\n let z4 = z3;\n z1 *= ellipse.maxRadius;\n z2 *= ellipse.minRadius;\n z3 *= ellipse.maxRadius;\n z4 *= ellipse.minRadius;\n\n const n = Math.abs(ellipse.sweepAngle) / angleStep;\n\n const x = [];\n const y = [];\n\n for (let i = 0; i <= n; i++) {\n const angle = ellipse.startAngle + ((i / n) * ellipse.sweepAngle);\n const alpha = Math.atan2(Math.sin(angle) / ellipse.minRadius, Math.cos(angle) / ellipse.maxRadius);\n\n const cosAlpha = Math.cos(alpha);\n const sinAlpha = Math.sin(alpha);\n\n x.push(ellipse.center.x + ((z1 * cosAlpha) - (z4 * sinAlpha)));\n y.push(ellipse.center.y + ((z2 * sinAlpha) + (z3 * cosAlpha)));\n }\n\n return {\n minX: Math.min(...x),\n maxX: Math.max(...x),\n minY: Math.min(...y),\n maxY: Math.max(...y)\n };\n}\n\nfunction getTextLineBounds(textLine) {\n return {\n minX: textLine.data.topLeftPoint.x,\n maxX: textLine.data.topLeftPoint.x + textLine.data.width,\n minY: textLine.data.topLeftPoint.y,\n maxY: textLine.data.topLeftPoint.y + textLine.data.height\n };\n}\n\nfunction getClefBounds(clef) {\n return {\n minX: clef.boundingBox.x,\n maxX: clef.boundingBox.x + clef.boundingBox.width,\n minY: clef.boundingBox.y,\n maxY: clef.boundingBox.y + clef.boundingBox.height\n };\n}\n\nfunction getStrokeBounds(stroke) {\n return {\n minX: Math.min(...stroke.x),\n maxX: Math.max(...stroke.x),\n minY: Math.min(...stroke.y),\n maxY: Math.max(...stroke.y)\n };\n}\n\n/**\n * Get the box enclosing the given symbols\n * @param {Array} symbols Symbols to extract bounds from\n * @param {Bounds} [bounds] Starting bounds for recursion\n * @return {Bounds} Bounding box enclosing symbols\n */\nexport function getSymbolsBounds(symbols, bounds = { minX: Number.MAX_VALUE, maxX: Number.MIN_VALUE, minY: Number.MAX_VALUE, maxY: Number.MIN_VALUE }) {\n let boundsRef = bounds;\n boundsRef = symbols\n .filter(symbol => symbol.type === 'stroke')\n .map(getStrokeBounds)\n .reduce(mergeBounds, boundsRef);\n boundsRef = symbols\n .filter(symbol => symbol.type === 'clef')\n .map(getClefBounds)\n .reduce(mergeBounds, boundsRef);\n boundsRef = symbols\n .filter(symbol => symbol.type === 'line')\n .map(getLineBounds)\n .reduce(mergeBounds, boundsRef);\n boundsRef = symbols\n .filter(symbol => symbol.type === 'ellipse')\n .map(getEllipseBounds)\n .reduce(mergeBounds, boundsRef);\n boundsRef = symbols\n .filter(symbol => symbol.type === 'textLine')\n .map(getTextLineBounds)\n .reduce(mergeBounds, boundsRef);\n return boundsRef;\n}\n\nfunction getDefaultMusicSymbols(configuration) {\n const defaultStaff = Object.assign({}, { type: 'staff' }, configuration.recognitionParams.v3.musicParameter.staff);\n const defaultClef = {\n type: 'clef',\n value: Object.assign({}, configuration.recognitionParams.v3.musicParameter.clef)\n };\n defaultClef.value.yAnchor = defaultStaff.top + (defaultStaff.gap * (defaultStaff.count - defaultClef.value.line));\n delete defaultClef.value.line;\n defaultClef.boundingBox = MusicClefs[defaultClef.value.symbol].getBoundingBox(defaultStaff.gap, 0, defaultClef.value.yAnchor);\n return [defaultStaff, defaultClef];\n}\n\n/**\n * Get the default symbols for the current recognition type\n * @param {Configuration} configuration Current recognition parameters from which extract default symbols\n * @return {Array} Symbols matching configuration\n */\nexport function getDefaultSymbols(configuration) {\n switch (configuration.recognitionParams.type) {\n case Constants.RecognitionType.MUSIC:\n return getDefaultMusicSymbols(configuration);\n default:\n return [];\n }\n}\n","import { modelLogger as logger } from '../configuration/LoggerConfig';\nimport * as StrokeComponent from './StrokeComponent';\nimport { getSymbolsBounds, getDefaultSymbols } from './Symbol';\n\n/**\n * Recognition positions\n * @typedef {Object} RecognitionPositions\n * @property {Number} [lastSentPosition=-1] Index of the last sent stroke.\n * @property {Number} [lastReceivedPosition=-1] Index of the last received stroke.\n * @property {Number} [lastRenderedPosition=-1] Last rendered recognized symbol position\n */\n\n/**\n * Raw results\n * @typedef {Object} RawResults\n * @property {Object} convert=undefined The convert result\n * @property {Object} exports=undefined The exports output as return by the recognition service.\n */\n\n/**\n * Editor model\n * @typedef {Object} Model\n * @property {Stroke} currentStroke=undefined Stroke in building process.\n * @property {Array} rawStrokes=[] List of captured strokes.\n * @property {Array} strokeGroups=[] Group of strokes with same pen style.\n * @property {RecognitionPositions} lastPositions Last recognition sent/received stroke indexes.\n * @property {Array} defaultSymbols=[] Default symbols, relative to the current recognition type.\n * @property {Array} recognizedSymbols=undefined Symbols to render (e.g. stroke, shape primitives, string, characters...).\n * @property {Object} exports=undefined Result of the export (e.g. mathml, latex, text...).\n * @property {RawResults} rawResults The recognition output as return by the recognition service.\n * @property {Number} creationTime Date of creation timestamp.\n * @property {Number} modificationTime=undefined Date of lastModification.\n */\n\n/**\n * Bounding box\n * @typedef {Object} Bounds\n * @property {Number} minX Minimal x coordinate\n * @property {Number} maxX Maximal x coordinate\n * @property {Number} minY Minimal y coordinate\n * @property {Number} maxY Maximal y coordinate\n */\n\n/**\n * Create a new model\n * @param {Configuration} [configuration] Parameters to use to populate default recognition symbols\n * @return {Model} New model\n */\nexport function createModel(configuration) {\n // see @typedef documentation on top\n return {\n currentStroke: undefined,\n rawStrokes: [],\n strokeGroups: [],\n lastPositions: {\n lastSentPosition: -1,\n lastReceivedPosition: -1,\n lastRenderedPosition: -1\n },\n defaultSymbols: configuration ? getDefaultSymbols(configuration) : [],\n recognizedSymbols: undefined,\n exports: undefined,\n rawResults: {\n convert: undefined,\n exports: undefined\n },\n creationTime: new Date().getTime(),\n modificationTime: undefined\n };\n}\n\n/**\n * Clear the model.\n * @param {Model} model Current model\n * @return {Model} Cleared model\n */\nexport function clearModel(model) {\n const modelReference = model;\n modelReference.currentStroke = undefined;\n modelReference.rawStrokes = [];\n modelReference.strokeGroups = [];\n modelReference.lastPositions.lastSentPosition = -1;\n modelReference.lastPositions.lastReceivedPosition = -1;\n modelReference.lastPositions.lastRenderedPosition = -1;\n modelReference.recognizedSymbols = undefined;\n modelReference.exports = undefined;\n modelReference.rawResults.convert = undefined;\n modelReference.rawResults.exports = undefined;\n return modelReference;\n}\n\n/**\n * Check if the model needs to be redrawn.\n * @param {Model} model Current model\n * @return {Boolean} True if the model needs to be redrawn, false otherwise\n */\nexport function needRedraw(model) {\n return model.recognizedSymbols ? (model.rawStrokes.length !== model.recognizedSymbols.filter(symbol => symbol.type === 'stroke').length) : false;\n}\n\n/**\n * Mutate the model given in parameter by adding the new strokeToAdd.\n * @param {Model} model Current model\n * @param {Stroke} stroke Stroke to be added to pending ones\n * @return {Model} Updated model\n */\nexport function addStroke(model, stroke) {\n // We use a reference to the model. The purpose here is to update the pending stroke only.\n const modelReference = model;\n logger.debug('addStroke', stroke);\n modelReference.rawStrokes.push(stroke);\n return modelReference;\n}\n\n/**\n * Mutate the model given in parameter by adding the new strokeToAdd and the penstyle. Used for iink REST.\n * @param {Model} model Current model\n * @param {Stroke} stroke Stroke to be added to pending ones\n * @param {PenStyle} strokePenStyle\n * @return {Model} Updated model\n */\nexport function addStrokeToGroup(model, stroke, strokePenStyle) {\n // We use a reference to the model. The purpose here is to update the pending stroke only.\n const modelReference = model;\n logger.debug('addStroke', stroke);\n const lastGroup = modelReference.strokeGroups.length - 1;\n if (modelReference.strokeGroups[lastGroup] && modelReference.strokeGroups[lastGroup].penStyle === strokePenStyle) {\n modelReference.strokeGroups[lastGroup].strokes.push(stroke);\n } else {\n const newStrokeGroup = {\n penStyle: strokePenStyle,\n strokes: []\n };\n const strokeCopy = {};\n Object.assign(strokeCopy, stroke);\n newStrokeGroup.strokes.push(strokeCopy);\n modelReference.strokeGroups.push(newStrokeGroup);\n }\n return modelReference;\n}\n\n/**\n * Get the strokes that needs to be recognized\n * @param {Model} model Current model\n * @param {Number} [position=lastReceived] Index from where to extract strokes\n * @return {Array} Pending strokes\n */\nexport function extractPendingStrokes(model, position = model.lastPositions.lastReceivedPosition + 1) {\n return model.rawStrokes.slice(position);\n}\n\n/**\n * Mutate the model by adding a point and close the current stroke.\n * @param {Model} model Current model\n * @param {{x: Number, y: Number, t: Number}} point Captured point to create current stroke\n * @param {Object} properties Properties to be applied to the current stroke\n * @param {Number} [dpi=96] The screen dpi resolution\n * @return {Model} Updated model\n */\nexport function initPendingStroke(model, point, properties, dpi = 96) {\n if (properties && properties['-myscript-pen-width']) {\n const pxWidth = (properties['-myscript-pen-width'] * dpi) / 25.4;\n Object.assign(properties, { width: pxWidth / 2 }); // FIXME hack to get better render\n }\n const modelReference = model;\n logger.trace('initPendingStroke', point);\n // Setting the current stroke to an empty one\n modelReference.currentStroke = StrokeComponent.createStrokeComponent(properties);\n modelReference.currentStroke = StrokeComponent.addPoint(modelReference.currentStroke, point);\n return modelReference;\n}\n\n/**\n * Mutate the model by adding a point to the current pending stroke.\n * @param {Model} model Current model\n * @param {{x: Number, y: Number, t: Number}} point Captured point to be append to the current stroke\n * @return {Model} Updated model\n */\nexport function appendToPendingStroke(model, point) {\n const modelReference = model;\n if (modelReference.currentStroke) {\n logger.trace('appendToPendingStroke', point);\n modelReference.currentStroke = StrokeComponent.addPoint(modelReference.currentStroke, point);\n }\n return modelReference;\n}\n\n/**\n * Mutate the model by adding the new point on a initPendingStroke.\n * @param {Model} model Current model\n * @param {{x: Number, y: Number, t: Number}} point Captured point to be append to the current stroke\n * @param {PenStyle} penStyle\n * @return {Model} Updated model\n */\nexport function endPendingStroke(model, point, penStyle) {\n const modelReference = model;\n if (modelReference.currentStroke) {\n logger.trace('endPendingStroke', point);\n const currentStroke = StrokeComponent.addPoint(modelReference.currentStroke, point);\n // Mutating pending strokes\n addStroke(modelReference, currentStroke);\n addStrokeToGroup(modelReference, currentStroke, penStyle);\n // Resetting the current stroke to an undefined one\n delete modelReference.currentStroke;\n }\n return modelReference;\n}\n\n/**\n * Get the bounds of the current model.\n * @param {Model} model Current model\n * @return {Bounds} Bounding box enclosing the current drawn model\n */\nexport function getBorderCoordinates(model) {\n let modelBounds = { minX: Number.MAX_VALUE, maxX: Number.MIN_VALUE, minY: Number.MAX_VALUE, maxY: Number.MIN_VALUE };\n\n // Default symbols\n if (model.defaultSymbols && model.defaultSymbols.length > 0) {\n modelBounds = getSymbolsBounds(model.defaultSymbols, modelBounds);\n }\n // Recognized symbols\n if (model.recognizedSymbols && model.recognizedSymbols.length > 0) {\n modelBounds = getSymbolsBounds(model.recognizedSymbols, modelBounds);\n // Pending strokes\n modelBounds = getSymbolsBounds(extractPendingStrokes(model), modelBounds);\n } else {\n modelBounds = getSymbolsBounds(model.rawStrokes, modelBounds);\n }\n return modelBounds;\n}\n\n/**\n * Extract strokes from an ink range\n * @param {Model} model Current model\n * @param {Number} firstStroke First stroke index to extract\n * @param {Number} lastStroke Last stroke index to extract\n * @param {Number} firstPoint First point index to extract\n * @param {Number} lastPoint Last point index to extract\n * @return {Array} The extracted strokes\n */\nexport function extractStrokesFromInkRange(model, firstStroke, lastStroke, firstPoint, lastPoint) {\n return model.rawStrokes.slice(firstStroke, lastStroke + 1).map((stroke, index, slicedStrokes) => {\n if (slicedStrokes.length < 2) {\n return StrokeComponent.slice(stroke, firstPoint, lastPoint + 1);\n }\n if (index === 0) {\n return StrokeComponent.slice(stroke, firstPoint);\n }\n if (index === (slicedStrokes.length - 1)) {\n return StrokeComponent.slice(stroke, 0, lastPoint + 1);\n }\n return stroke;\n });\n}\n\n/**\n * Update model lastSentPosition\n * @param {Model} model\n * @param {Number} [position]\n * @return {Model}\n */\nexport function updateModelSentPosition(model, position = model.rawStrokes.length - 1) {\n const modelReference = model;\n modelReference.lastPositions.lastSentPosition = position;\n return modelReference;\n}\n\n/**\n * Update model lastReceivedPosition regarding to lastSentPosition\n * @param {Model} model\n * @return {Model}\n */\nexport function updateModelReceivedPosition(model) {\n const modelReference = model;\n modelReference.lastPositions.lastReceivedPosition = modelReference.lastPositions.lastSentPosition;\n return modelReference;\n}\n\n/**\n * Reset model lastReceivedPosition and lastSentPosition\n * @param {Model} model\n * @return {Model}\n */\nexport function resetModelPositions(model) {\n const modelReference = model;\n modelReference.lastPositions.lastSentPosition = -1;\n modelReference.lastPositions.lastReceivedPosition = -1;\n return modelReference;\n}\n\n/**\n * Reset model lastRenderedPosition\n * @param {Model} model\n * @return {Model}\n */\nexport function resetModelRendererPosition(model) {\n const modelReference = model;\n modelReference.lastPositions.lastRenderedPosition = -1;\n return modelReference;\n}\n\n/**\n * Update model lastRenderedPosition\n * @param {Model} model\n * @param {Number} [position]\n * @return {Model}\n */\nexport function updateModelRenderedPosition(model, position = model.recognizedSymbols ? model.recognizedSymbols.length - 1 : -1) {\n const modelReference = model;\n modelReference.lastPositions.lastRenderedPosition = position;\n return modelReference;\n}\n\n/**\n * Get the symbols that needs to be rendered\n * @param {Model} model Current model\n * @param {Number} [position=lastRendered] Index from where to extract symbols\n * @return {Array}\n */\nexport function extractPendingRecognizedSymbols(model, position = model.lastPositions.lastRenderedPosition + 1) {\n return model.recognizedSymbols ? model.recognizedSymbols.slice(position) : [];\n}\n\n/**\n * Clone model\n * @param {Model} model Current model\n * @return {Model} Clone of the current model\n */\nexport function cloneModel(model) {\n const clonedModel = Object.assign({}, model);\n // We clone the properties that need to be. Take care of arrays.\n clonedModel.defaultSymbols = [...model.defaultSymbols];\n clonedModel.currentStroke = model.currentStroke ? Object.assign({}, model.currentStroke) : undefined;\n clonedModel.rawStrokes = [...model.rawStrokes];\n clonedModel.strokeGroups = JSON.parse(JSON.stringify(model.strokeGroups));\n clonedModel.lastPositions = Object.assign({}, model.lastPositions);\n clonedModel.exports = model.exports ? Object.assign({}, model.exports) : undefined;\n clonedModel.rawResults = Object.assign({}, model.rawResults);\n clonedModel.recognizedSymbols = model.recognizedSymbols ? [...model.recognizedSymbols] : undefined;\n return clonedModel;\n}\n\n/**\n * Merge models\n * @param {...Model} models Models to merge (ordered)\n * @return {Model} Updated model\n */\nexport function mergeModels(...models) {\n return models.reduce((a, b) => {\n const modelRef = a;\n modelRef.recognizedSymbols = b.recognizedSymbols;\n modelRef.lastPositions.lastSentPosition = b.lastPositions.lastSentPosition;\n modelRef.lastPositions.lastReceivedPosition = b.lastPositions.lastReceivedPosition;\n modelRef.lastPositions.lastRenderedPosition = b.lastPositions.lastRenderedPosition;\n modelRef.rawResults = b.rawResults;\n modelRef.exports = b.exports;\n return modelRef;\n });\n}\n","import { rendererLogger as logger } from '../../configuration/LoggerConfig';\nimport { drawStroke } from './symbols/StrokeSymbolCanvasRenderer';\nimport { drawTextSymbol, TextSymbols } from './symbols/TextSymbolCanvasRenderer';\nimport { drawShapeSymbol, ShapeSymbols } from './symbols/ShapeSymbolCanvasRenderer';\nimport {\n drawMusicSymbol,\n getMusicClefElements,\n MusicSymbols\n} from './symbols/MusicSymbolCanvasRenderer';\nimport * as InkModel from '../../model/InkModel';\n\n/**\n * Renderer info\n * @typedef {Object} RendererInfo\n * @property {String} type Renderer type.\n * @property {String} apiVersion Supported api version.\n */\n\n/**\n * Default renderer\n * @typedef {Object} Renderer\n * @property {function(): RendererInfo} getInfo Get some information about this renderer\n * @property {function(element: Element, minHeight: Number, minWidth: Number): Object} attach Populate the DOM element to create rendering area.\n * @property {function(element: Element, context: Object)} detach Remove rendering area from the DOM element.\n * @property {function(context: Object, model: Model, stroker: Stroker)} resize Explicitly resize the rendering area.\n * @property {function(context: Object, model: Model, stroker: Stroker): Model} drawCurrentStroke Draw the model currentStroke.\n * @property {function(context: Object, model: Model, stroker: Stroker): Model} drawModel Draw the model defaultSymbols and recognizedSymbols.\n */\n\n/**\n * Get info\n * @return {RendererInfo} Information about this renderer\n */\nexport function getInfo() {\n return {\n type: 'canvas',\n apiVersion: 'V3'\n };\n}\n\nfunction getPixelRatio(canvas) {\n if (canvas) {\n const context = canvas.getContext('2d');\n // we are using a browser object\n // eslint-disable-next-line no-undef\n const devicePixelRatio = window.devicePixelRatio || 1;\n const backingStoreRatio = context.webkitBackingStorePixelRatio ||\n context.mozBackingStorePixelRatio ||\n context.msBackingStorePixelRatio ||\n context.oBackingStorePixelRatio ||\n context.backingStorePixelRatio || 1;\n return devicePixelRatio / backingStoreRatio;\n }\n return 1;\n}\n\nfunction detectPixelRatio(element) {\n // we are using a browser object\n // eslint-disable-next-line no-undef\n const tempCanvas = document.createElement('canvas');\n const canvasRatio = getPixelRatio(tempCanvas);\n // document.removeChild(tempCanvas);\n return canvasRatio;\n}\n\nfunction createCanvas(element, type) {\n // eslint-disable-next-line no-undef\n const browserDocument = document;\n const canvas = browserDocument.createElement('canvas');\n canvas.classList.add(type);\n canvas.classList.add('ms-canvas');\n element.appendChild(canvas);\n logger.debug('canvas created', canvas);\n return canvas;\n}\n\nfunction resizeContent(context) {\n const elements = [context.renderingCanvas, context.capturingCanvas];\n elements.forEach((canvas) => {\n const domElement = canvas.parentNode;\n const width = domElement.clientWidth < context.minWidth ? context.minWidth : domElement.clientWidth;\n const height = domElement.clientHeight < context.minHeight ? context.minHeight : domElement.clientHeight;\n /* eslint-disable no-param-reassign */\n canvas.width = width * context.pixelRatio;\n canvas.height = height * context.pixelRatio;\n canvas.style.width = `${width}px`;\n canvas.style.height = `${height}px`;\n /* eslint-enable no-param-reassign */\n canvas.getContext('2d').scale(context.pixelRatio, context.pixelRatio);\n logger.debug('canvas size changed', canvas);\n });\n return context;\n}\n\n/**\n * Attach the renderer to the DOM element\n * @param {Element} element DOM element to attach the rendering elements\n * @param {Number} [minHeight=0] Minimal height of the editor\n * @param {Number} [minWidth=0] Minimal width of the editor\n * @return {Object} The renderer context to give as parameter when a draw model will be call\n */\nexport function attach(element, minHeight = 0, minWidth = 0) {\n logger.debug('attach renderer', element);\n const pixelRatio = detectPixelRatio(element);\n const resources = getMusicClefElements();\n resources.forEach(clef => element.appendChild(clef));\n\n const renderingCanvas = createCanvas(element, 'ms-rendering-canvas');\n const capturingCanvas = createCanvas(element, 'ms-capture-canvas');\n\n const context = {\n pixelRatio,\n minHeight,\n minWidth,\n renderingCanvas,\n renderingCanvasContext: renderingCanvas.getContext('2d'),\n capturingCanvas,\n capturingCanvasContext: capturingCanvas.getContext('2d'),\n resources\n };\n\n return resizeContent(context);\n}\n\n/**\n * Detach the renderer from the DOM element\n * @param {Element} element DOM element to attach the rendering elements\n * @param {Object} context Current rendering context\n */\nexport function detach(element, context) {\n logger.debug('detach renderer', element);\n context.resources.forEach(res => element.removeChild(res));\n element.removeChild(context.renderingCanvas);\n element.removeChild(context.capturingCanvas);\n}\n\n/**\n * Update the rendering context size\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function resize(context, model, stroker) {\n return this.drawModel(resizeContent(context), model, stroker);\n}\n\nfunction drawSymbol(context, symbol, stroker) {\n const type = symbol.elementType ? symbol.elementType : symbol.type;\n logger.trace(`attempting to draw ${type} symbol`);\n if (type === 'stroke') {\n drawStroke(context, symbol, stroker);\n } else if (TextSymbols[type]) {\n drawTextSymbol(context, symbol);\n } else if (ShapeSymbols[type]) {\n drawShapeSymbol(context, symbol);\n } else if (MusicSymbols[type]) {\n drawMusicSymbol(context, symbol);\n } else {\n logger.warn(`impossible to draw ${type} symbol`);\n }\n}\n\n/**\n * Draw the current stroke from the model\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function drawCurrentStroke(context, model, stroker) {\n // Render the current stroke\n context.capturingCanvasContext.clearRect(0, 0, context.capturingCanvas.width, context.capturingCanvas.height);\n logger.trace('drawing current stroke ', model.currentStroke);\n drawStroke(context.capturingCanvasContext, model.currentStroke, stroker);\n return model;\n}\n\n/**\n * Draw all symbols contained into the model\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function drawModel(context, model, stroker) {\n context.renderingCanvasContext.clearRect(0, 0, context.renderingCanvas.width, context.renderingCanvas.height);\n // Displaying the default symbols and pending strokes\n const symbols = [...model.defaultSymbols];\n // Displaying the recognition symbols or raw strokes\n if (model.recognizedSymbols) {\n symbols.push(...model.recognizedSymbols);\n symbols.push(...InkModel.extractPendingStrokes(model));\n } else {\n symbols.push(...model.rawStrokes);\n }\n symbols.forEach(symbol => drawSymbol(context.renderingCanvasContext, symbol, stroker));\n context.capturingCanvasContext.clearRect(0, 0, context.capturingCanvas.width, context.capturingCanvas.height);\n return model;\n}\n","/** ===============================================================================================\n * Compute quadratics control points\n * ============================================================================================= */\n\n/**\n *\n * @param {{x: Number, y: Number, p: Number}} point\n * @param angle\n * @param width\n * @return {[{x: Number, y: Number},{x: Number, y: Number}]}\n */\nexport function computeLinksPoints(point, angle, width) {\n const radius = point.p * width;\n return [{\n x: (point.x - (Math.sin(angle) * radius)),\n y: (point.y + (Math.cos(angle) * radius))\n }, {\n x: (point.x + (Math.sin(angle) * radius)),\n y: (point.y - (Math.cos(angle) * radius))\n }];\n}\n\n/**\n *\n * @param {{x: Number, y: Number, p: Number}} point1\n * @param {{x: Number, y: Number, p: Number}} point2\n * @return {{x: Number, y: Number, p: Number}}\n */\nexport function computeMiddlePoint(point1, point2) {\n return {\n x: ((point2.x + point1.x) / 2),\n y: ((point2.y + point1.y) / 2),\n p: ((point2.p + point1.p) / 2)\n };\n}\n\n/**\n *\n * @param {{x: Number, y: Number}} begin\n * @param {{x: Number, y: Number}} end\n * @return {Number}\n */\nexport function computeAxeAngle(begin, end) {\n return Math.atan2(end.y - begin.y, end.x - begin.x);\n}\n","import * as StrokeComponent from '../../../model/StrokeComponent';\nimport { computeLinksPoints, computeMiddlePoint, computeAxeAngle } from '../../QuadraticUtils';\n\n/**\n * Stroker info\n * @typedef {Object} StrokerInfo\n * @property {String} type Renderer type.\n * @property {String} name Stroker name.\n * @property {String} apiVersion Supported api version.\n */\n\n/**\n * Define how a stroke should be drawn\n * @typedef {Object} Stroker\n * @property {function(): StrokerInfo} getInfo Get some information about this stroker\n * @property {function(context: Object, stroke: Stroke)} drawStroke Render a stroke on the current context.\n */\n\n/**\n * Get info\n * @return {StrokerInfo} Information about this stroker\n */\nexport function getInfo() {\n return {\n type: 'canvas',\n name: 'quadratic',\n apiVersion: 'V3'\n };\n}\n\nfunction renderArc(context, center, radius) {\n context.arc(center.x, center.y, radius, 0, Math.PI * 2, true);\n}\n\nfunction renderLine(context, begin, end, width) {\n const linkPoints1 = computeLinksPoints(begin, computeAxeAngle(begin, end), width);\n const linkPoints2 = computeLinksPoints(end, computeAxeAngle(begin, end), width);\n\n context.moveTo(linkPoints1[0].x, linkPoints1[0].y);\n context.lineTo(linkPoints2[0].x, linkPoints2[0].y);\n context.lineTo(linkPoints2[1].x, linkPoints2[1].y);\n context.lineTo(linkPoints1[1].x, linkPoints1[1].y);\n}\n\nfunction renderFinal(context, begin, end, width) {\n const ARCSPLIT = 6;\n const angle = computeAxeAngle(begin, end);\n const linkPoints = computeLinksPoints(end, angle, width);\n context.moveTo(linkPoints[0].x, linkPoints[0].y);\n for (let i = 1; i <= ARCSPLIT; i++) {\n const newAngle = angle - ((i * Math.PI) / ARCSPLIT);\n context.lineTo(end.x - ((end.p * width) * Math.sin(newAngle)), end.y + (end.p * width * Math.cos(newAngle)));\n }\n}\n\nfunction renderQuadratic(context, begin, end, ctrl, width) {\n const linkPoints1 = computeLinksPoints(begin, computeAxeAngle(begin, ctrl), width);\n const linkPoints2 = computeLinksPoints(end, computeAxeAngle(ctrl, end), width);\n const linkPoints3 = computeLinksPoints(ctrl, computeAxeAngle(begin, end), width);\n\n context.moveTo(linkPoints1[0].x, linkPoints1[0].y);\n context.quadraticCurveTo(linkPoints3[0].x, linkPoints3[0].y, linkPoints2[0].x, linkPoints2[0].y);\n context.lineTo(linkPoints2[1].x, linkPoints2[1].y);\n context.quadraticCurveTo(linkPoints3[1].x, linkPoints3[1].y, linkPoints1[1].x, linkPoints1[1].y);\n}\n\n/**\n * Draw a stroke on a canvas, using quadratics\n * @param {Object} context Current rendering context\n * @param {Stroke} stroke Current stroke to be drawn\n */\nexport function drawStroke(context, stroke) {\n const contextReference = context;\n const length = stroke.x.length;\n const width = stroke.width > 0 ? stroke.width : contextReference.lineWidth;\n const color = stroke.color ? stroke.color : contextReference.strokeStyle;\n const firstPoint = StrokeComponent.getPointByIndex(stroke, 0);\n const nbquadratics = length - 2;\n\n contextReference.save();\n try {\n contextReference.beginPath();\n if (length < 3) {\n renderArc(contextReference, firstPoint, width * 0.6);\n } else {\n renderArc(contextReference, firstPoint, width * firstPoint.p);\n renderLine(contextReference, firstPoint, computeMiddlePoint(firstPoint, StrokeComponent.getPointByIndex(stroke, 1)), width);\n\n // Possibility to try this (the start looks better when the ink is large)\n // var first = computeMiddlePoint(stroke[0], stroke[1]);\n // contextReference.arc(first.x, first.y, width * first.p, 0, Math.PI * 2, true);\n\n for (let i = 0; i < nbquadratics; i++) {\n renderQuadratic(contextReference, computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, i), StrokeComponent.getPointByIndex(stroke, i + 1)), computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, i + 1), StrokeComponent.getPointByIndex(stroke, i + 2)), StrokeComponent.getPointByIndex(stroke, i + 1), width);\n }\n renderLine(contextReference, computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, length - 2), StrokeComponent.getPointByIndex(stroke, length - 1)), StrokeComponent.getPointByIndex(stroke, length - 1), width);\n renderFinal(contextReference, StrokeComponent.getPointByIndex(stroke, length - 2), StrokeComponent.getPointByIndex(stroke, length - 1), width);\n }\n contextReference.closePath();\n if (color !== undefined) {\n contextReference.fillStyle = color;\n contextReference.fill();\n }\n } finally {\n contextReference.restore();\n }\n}\n","export var xhtml = \"http://www.w3.org/1999/xhtml\";\n\nexport default {\n svg: \"http://www.w3.org/2000/svg\",\n xhtml: xhtml,\n xlink: \"http://www.w3.org/1999/xlink\",\n xml: \"http://www.w3.org/XML/1998/namespace\",\n xmlns: \"http://www.w3.org/2000/xmlns/\"\n};\n","import namespaces from \"./namespaces\";\n\nexport default function(name) {\n var prefix = name += \"\", i = prefix.indexOf(\":\");\n if (i >= 0 && (prefix = name.slice(0, i)) !== \"xmlns\") name = name.slice(i + 1);\n return namespaces.hasOwnProperty(prefix) ? {space: namespaces[prefix], local: name} : name;\n}\n","import namespace from \"./namespace\";\nimport {xhtml} from \"./namespaces\";\n\nfunction creatorInherit(name) {\n return function() {\n var document = this.ownerDocument,\n uri = this.namespaceURI;\n return uri === xhtml && document.documentElement.namespaceURI === xhtml\n ? document.createElement(name)\n : document.createElementNS(uri, name);\n };\n}\n\nfunction creatorFixed(fullname) {\n return function() {\n return this.ownerDocument.createElementNS(fullname.space, fullname.local);\n };\n}\n\nexport default function(name) {\n var fullname = namespace(name);\n return (fullname.local\n ? creatorFixed\n : creatorInherit)(fullname);\n}\n","function none() {}\n\nexport default function(selector) {\n return selector == null ? none : function() {\n return this.querySelector(selector);\n };\n}\n","import {Selection} from \"./index\";\nimport selector from \"../selector\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n","function empty() {\n return [];\n}\n\nexport default function(selector) {\n return selector == null ? empty : function() {\n return this.querySelectorAll(selector);\n };\n}\n","import {Selection} from \"./index\";\nimport selectorAll from \"../selectorAll\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n subgroups.push(select.call(node, node.__data__, i, group));\n parents.push(node);\n }\n }\n }\n\n return new Selection(subgroups, parents);\n}\n","var matcher = function(selector) {\n return function() {\n return this.matches(selector);\n };\n};\n\nif (typeof document !== \"undefined\") {\n var element = document.documentElement;\n if (!element.matches) {\n var vendorMatches = element.webkitMatchesSelector\n || element.msMatchesSelector\n || element.mozMatchesSelector\n || element.oMatchesSelector;\n matcher = function(selector) {\n return function() {\n return vendorMatches.call(this, selector);\n };\n };\n }\n}\n\nexport default matcher;\n","import {Selection} from \"./index\";\nimport matcher from \"../matcher\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n","export default function(update) {\n return new Array(update.length);\n}\n","import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._enter || this._groups.map(sparse), this._parents);\n}\n\nexport function EnterNode(parent, datum) {\n this.ownerDocument = parent.ownerDocument;\n this.namespaceURI = parent.namespaceURI;\n this._next = null;\n this._parent = parent;\n this.__data__ = datum;\n}\n\nEnterNode.prototype = {\n constructor: EnterNode,\n appendChild: function(child) { return this._parent.insertBefore(child, this._next); },\n insertBefore: function(child, next) { return this._parent.insertBefore(child, next); },\n querySelector: function(selector) { return this._parent.querySelector(selector); },\n querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }\n};\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import {Selection} from \"./index\";\nimport {EnterNode} from \"./enter\";\nimport constant from \"../constant\";\n\nvar keyPrefix = \"$\"; // Protect against keys like “__proto__”.\n\nfunction bindIndex(parent, group, enter, update, exit, data) {\n var i = 0,\n node,\n groupLength = group.length,\n dataLength = data.length;\n\n // Put any non-null nodes that fit into update.\n // Put any null nodes into enter.\n // Put any remaining data into enter.\n for (; i < dataLength; ++i) {\n if (node = group[i]) {\n node.__data__ = data[i];\n update[i] = node;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Put any non-null nodes that don’t fit into exit.\n for (; i < groupLength; ++i) {\n if (node = group[i]) {\n exit[i] = node;\n }\n }\n}\n\nfunction bindKey(parent, group, enter, update, exit, data, key) {\n var i,\n node,\n nodeByKeyValue = {},\n groupLength = group.length,\n dataLength = data.length,\n keyValues = new Array(groupLength),\n keyValue;\n\n // Compute the key for each node.\n // If multiple nodes have the same key, the duplicates are added to exit.\n for (i = 0; i < groupLength; ++i) {\n if (node = group[i]) {\n keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group);\n if (keyValue in nodeByKeyValue) {\n exit[i] = node;\n } else {\n nodeByKeyValue[keyValue] = node;\n }\n }\n }\n\n // Compute the key for each datum.\n // If there a node associated with this key, join and add it to update.\n // If there is not (or the key is a duplicate), add it to enter.\n for (i = 0; i < dataLength; ++i) {\n keyValue = keyPrefix + key.call(parent, data[i], i, data);\n if (node = nodeByKeyValue[keyValue]) {\n update[i] = node;\n node.__data__ = data[i];\n nodeByKeyValue[keyValue] = null;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Add any remaining nodes that were not bound to data to exit.\n for (i = 0; i < groupLength; ++i) {\n if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) {\n exit[i] = node;\n }\n }\n}\n\nexport default function(value, key) {\n if (!value) {\n data = new Array(this.size()), j = -1;\n this.each(function(d) { data[++j] = d; });\n return data;\n }\n\n var bind = key ? bindKey : bindIndex,\n parents = this._parents,\n groups = this._groups;\n\n if (typeof value !== \"function\") value = constant(value);\n\n for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {\n var parent = parents[j],\n group = groups[j],\n groupLength = group.length,\n data = value.call(parent, parent && parent.__data__, j, parents),\n dataLength = data.length,\n enterGroup = enter[j] = new Array(dataLength),\n updateGroup = update[j] = new Array(dataLength),\n exitGroup = exit[j] = new Array(groupLength);\n\n bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);\n\n // Now connect the enter nodes to their following update node, such that\n // appendChild can insert the materialized enter node before this node,\n // rather than at the end of the parent node.\n for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {\n if (previous = enterGroup[i0]) {\n if (i0 >= i1) i1 = i0 + 1;\n while (!(next = updateGroup[i1]) && ++i1 < dataLength);\n previous._next = next || null;\n }\n }\n }\n\n update = new Selection(update, parents);\n update._enter = enter;\n update._exit = exit;\n return update;\n}\n","import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._exit || this._groups.map(sparse), this._parents);\n}\n","import {Selection} from \"./index\";\n\nexport default function(selection) {\n\n for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Selection(merges, this._parents);\n}\n","export default function() {\n\n for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {\n for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {\n if (node = group[i]) {\n if (next && next !== node.nextSibling) next.parentNode.insertBefore(node, next);\n next = node;\n }\n }\n }\n\n return this;\n}\n","import {Selection} from \"./index\";\n\nexport default function(compare) {\n if (!compare) compare = ascending;\n\n function compareNode(a, b) {\n return a && b ? compare(a.__data__, b.__data__) : !a - !b;\n }\n\n for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n sortgroup[i] = node;\n }\n }\n sortgroup.sort(compareNode);\n }\n\n return new Selection(sortgroups, this._parents).order();\n}\n\nfunction ascending(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n","export default function() {\n var callback = arguments[0];\n arguments[0] = this;\n callback.apply(null, arguments);\n return this;\n}\n","export default function() {\n var nodes = new Array(this.size()), i = -1;\n this.each(function() { nodes[++i] = this; });\n return nodes;\n}\n","export default function() {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {\n var node = group[i];\n if (node) return node;\n }\n }\n\n return null;\n}\n","export default function() {\n var size = 0;\n this.each(function() { ++size; });\n return size;\n}\n","export default function() {\n return !this.node();\n}\n","export default function(callback) {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {\n if (node = group[i]) callback.call(node, node.__data__, i, group);\n }\n }\n\n return this;\n}\n","import namespace from \"../namespace\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, value) {\n return function() {\n this.setAttribute(name, value);\n };\n}\n\nfunction attrConstantNS(fullname, value) {\n return function() {\n this.setAttributeNS(fullname.space, fullname.local, value);\n };\n}\n\nfunction attrFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttribute(name);\n else this.setAttribute(name, v);\n };\n}\n\nfunction attrFunctionNS(fullname, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttributeNS(fullname.space, fullname.local);\n else this.setAttributeNS(fullname.space, fullname.local, v);\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name);\n\n if (arguments.length < 2) {\n var node = this.node();\n return fullname.local\n ? node.getAttributeNS(fullname.space, fullname.local)\n : node.getAttribute(fullname);\n }\n\n return this.each((value == null\n ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)\n : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value));\n}\n","export default function(node) {\n return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node\n || (node.document && node) // node is a Window\n || node.defaultView; // node is a Document\n}\n","import defaultView from \"../window\";\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, value, priority) {\n return function() {\n this.style.setProperty(name, value, priority);\n };\n}\n\nfunction styleFunction(name, value, priority) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.style.removeProperty(name);\n else this.style.setProperty(name, v, priority);\n };\n}\n\nexport default function(name, value, priority) {\n return arguments.length > 1\n ? this.each((value == null\n ? styleRemove : typeof value === \"function\"\n ? styleFunction\n : styleConstant)(name, value, priority == null ? \"\" : priority))\n : styleValue(this.node(), name);\n}\n\nexport function styleValue(node, name) {\n return node.style.getPropertyValue(name)\n || defaultView(node).getComputedStyle(node, null).getPropertyValue(name);\n}\n","function propertyRemove(name) {\n return function() {\n delete this[name];\n };\n}\n\nfunction propertyConstant(name, value) {\n return function() {\n this[name] = value;\n };\n}\n\nfunction propertyFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) delete this[name];\n else this[name] = v;\n };\n}\n\nexport default function(name, value) {\n return arguments.length > 1\n ? this.each((value == null\n ? propertyRemove : typeof value === \"function\"\n ? propertyFunction\n : propertyConstant)(name, value))\n : this.node()[name];\n}\n","function classArray(string) {\n return string.trim().split(/^|\\s+/);\n}\n\nfunction classList(node) {\n return node.classList || new ClassList(node);\n}\n\nfunction ClassList(node) {\n this._node = node;\n this._names = classArray(node.getAttribute(\"class\") || \"\");\n}\n\nClassList.prototype = {\n add: function(name) {\n var i = this._names.indexOf(name);\n if (i < 0) {\n this._names.push(name);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n remove: function(name) {\n var i = this._names.indexOf(name);\n if (i >= 0) {\n this._names.splice(i, 1);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n contains: function(name) {\n return this._names.indexOf(name) >= 0;\n }\n};\n\nfunction classedAdd(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.add(names[i]);\n}\n\nfunction classedRemove(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.remove(names[i]);\n}\n\nfunction classedTrue(names) {\n return function() {\n classedAdd(this, names);\n };\n}\n\nfunction classedFalse(names) {\n return function() {\n classedRemove(this, names);\n };\n}\n\nfunction classedFunction(names, value) {\n return function() {\n (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);\n };\n}\n\nexport default function(name, value) {\n var names = classArray(name + \"\");\n\n if (arguments.length < 2) {\n var list = classList(this.node()), i = -1, n = names.length;\n while (++i < n) if (!list.contains(names[i])) return false;\n return true;\n }\n\n return this.each((typeof value === \"function\"\n ? classedFunction : value\n ? classedTrue\n : classedFalse)(names, value));\n}\n","function textRemove() {\n this.textContent = \"\";\n}\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.textContent = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? textRemove : (typeof value === \"function\"\n ? textFunction\n : textConstant)(value))\n : this.node().textContent;\n}\n","function htmlRemove() {\n this.innerHTML = \"\";\n}\n\nfunction htmlConstant(value) {\n return function() {\n this.innerHTML = value;\n };\n}\n\nfunction htmlFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.innerHTML = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? htmlRemove : (typeof value === \"function\"\n ? htmlFunction\n : htmlConstant)(value))\n : this.node().innerHTML;\n}\n","function raise() {\n if (this.nextSibling) this.parentNode.appendChild(this);\n}\n\nexport default function() {\n return this.each(raise);\n}\n","function lower() {\n if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);\n}\n\nexport default function() {\n return this.each(lower);\n}\n","import creator from \"../creator\";\n\nexport default function(name) {\n var create = typeof name === \"function\" ? name : creator(name);\n return this.select(function() {\n return this.appendChild(create.apply(this, arguments));\n });\n}\n","import creator from \"../creator\";\nimport selector from \"../selector\";\n\nfunction constantNull() {\n return null;\n}\n\nexport default function(name, before) {\n var create = typeof name === \"function\" ? name : creator(name),\n select = before == null ? constantNull : typeof before === \"function\" ? before : selector(before);\n return this.select(function() {\n return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);\n });\n}\n","function remove() {\n var parent = this.parentNode;\n if (parent) parent.removeChild(this);\n}\n\nexport default function() {\n return this.each(remove);\n}\n","function selection_cloneShallow() {\n return this.parentNode.insertBefore(this.cloneNode(false), this.nextSibling);\n}\n\nfunction selection_cloneDeep() {\n return this.parentNode.insertBefore(this.cloneNode(true), this.nextSibling);\n}\n\nexport default function(deep) {\n return this.select(deep ? selection_cloneDeep : selection_cloneShallow);\n}\n","export default function(value) {\n return arguments.length\n ? this.property(\"__data__\", value)\n : this.node().__data__;\n}\n","var filterEvents = {};\n\nexport var event = null;\n\nif (typeof document !== \"undefined\") {\n var element = document.documentElement;\n if (!(\"onmouseenter\" in element)) {\n filterEvents = {mouseenter: \"mouseover\", mouseleave: \"mouseout\"};\n }\n}\n\nfunction filterContextListener(listener, index, group) {\n listener = contextListener(listener, index, group);\n return function(event) {\n var related = event.relatedTarget;\n if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) {\n listener.call(this, event);\n }\n };\n}\n\nfunction contextListener(listener, index, group) {\n return function(event1) {\n var event0 = event; // Events can be reentrant (e.g., focus).\n event = event1;\n try {\n listener.call(this, this.__data__, index, group);\n } finally {\n event = event0;\n }\n };\n}\n\nfunction parseTypenames(typenames) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n return {type: t, name: name};\n });\n}\n\nfunction onRemove(typename) {\n return function() {\n var on = this.__on;\n if (!on) return;\n for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {\n if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n } else {\n on[++i] = o;\n }\n }\n if (++i) on.length = i;\n else delete this.__on;\n };\n}\n\nfunction onAdd(typename, value, capture) {\n var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener;\n return function(d, i, group) {\n var on = this.__on, o, listener = wrap(value, i, group);\n if (on) for (var j = 0, m = on.length; j < m; ++j) {\n if ((o = on[j]).type === typename.type && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n this.addEventListener(o.type, o.listener = listener, o.capture = capture);\n o.value = value;\n return;\n }\n }\n this.addEventListener(typename.type, listener, capture);\n o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture};\n if (!on) this.__on = [o];\n else on.push(o);\n };\n}\n\nexport default function(typename, value, capture) {\n var typenames = parseTypenames(typename + \"\"), i, n = typenames.length, t;\n\n if (arguments.length < 2) {\n var on = this.node().__on;\n if (on) for (var j = 0, m = on.length, o; j < m; ++j) {\n for (i = 0, o = on[j]; i < n; ++i) {\n if ((t = typenames[i]).type === o.type && t.name === o.name) {\n return o.value;\n }\n }\n }\n return;\n }\n\n on = value ? onAdd : onRemove;\n if (capture == null) capture = false;\n for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture));\n return this;\n}\n\nexport function customEvent(event1, listener, that, args) {\n var event0 = event;\n event1.sourceEvent = event;\n event = event1;\n try {\n return listener.apply(that, args);\n } finally {\n event = event0;\n }\n}\n","import defaultView from \"../window\";\n\nfunction dispatchEvent(node, type, params) {\n var window = defaultView(node),\n event = window.CustomEvent;\n\n if (typeof event === \"function\") {\n event = new event(type, params);\n } else {\n event = window.document.createEvent(\"Event\");\n if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;\n else event.initEvent(type, false, false);\n }\n\n node.dispatchEvent(event);\n}\n\nfunction dispatchConstant(type, params) {\n return function() {\n return dispatchEvent(this, type, params);\n };\n}\n\nfunction dispatchFunction(type, params) {\n return function() {\n return dispatchEvent(this, type, params.apply(this, arguments));\n };\n}\n\nexport default function(type, params) {\n return this.each((typeof params === \"function\"\n ? dispatchFunction\n : dispatchConstant)(type, params));\n}\n","import selection_select from \"./select\";\nimport selection_selectAll from \"./selectAll\";\nimport selection_filter from \"./filter\";\nimport selection_data from \"./data\";\nimport selection_enter from \"./enter\";\nimport selection_exit from \"./exit\";\nimport selection_merge from \"./merge\";\nimport selection_order from \"./order\";\nimport selection_sort from \"./sort\";\nimport selection_call from \"./call\";\nimport selection_nodes from \"./nodes\";\nimport selection_node from \"./node\";\nimport selection_size from \"./size\";\nimport selection_empty from \"./empty\";\nimport selection_each from \"./each\";\nimport selection_attr from \"./attr\";\nimport selection_style from \"./style\";\nimport selection_property from \"./property\";\nimport selection_classed from \"./classed\";\nimport selection_text from \"./text\";\nimport selection_html from \"./html\";\nimport selection_raise from \"./raise\";\nimport selection_lower from \"./lower\";\nimport selection_append from \"./append\";\nimport selection_insert from \"./insert\";\nimport selection_remove from \"./remove\";\nimport selection_clone from \"./clone\";\nimport selection_datum from \"./datum\";\nimport selection_on from \"./on\";\nimport selection_dispatch from \"./dispatch\";\n\nexport var root = [null];\n\nexport function Selection(groups, parents) {\n this._groups = groups;\n this._parents = parents;\n}\n\nfunction selection() {\n return new Selection([[document.documentElement]], root);\n}\n\nSelection.prototype = selection.prototype = {\n constructor: Selection,\n select: selection_select,\n selectAll: selection_selectAll,\n filter: selection_filter,\n data: selection_data,\n enter: selection_enter,\n exit: selection_exit,\n merge: selection_merge,\n order: selection_order,\n sort: selection_sort,\n call: selection_call,\n nodes: selection_nodes,\n node: selection_node,\n size: selection_size,\n empty: selection_empty,\n each: selection_each,\n attr: selection_attr,\n style: selection_style,\n property: selection_property,\n classed: selection_classed,\n text: selection_text,\n html: selection_html,\n raise: selection_raise,\n lower: selection_lower,\n append: selection_append,\n insert: selection_insert,\n remove: selection_remove,\n clone: selection_clone,\n datum: selection_datum,\n on: selection_on,\n dispatch: selection_dispatch\n};\n\nexport default selection;\n","import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([[document.querySelector(selector)]], [document.documentElement])\n : new Selection([[selector]], root);\n}\n","/**\n * Draw a stroke symbol\n * @param {Object} context Current rendering context\n * @param {Stroke} stroke Stroke to be drawn\n * @param {Stroker} stroker Stroker to use to render a stroke\n */\nexport function drawStroke(context, stroke, stroker) {\n if (stroker) {\n stroker.drawStroke(context, stroke);\n }\n}\n","import * as d3 from 'd3-selection';\nimport { rendererLogger as logger } from '../../configuration/LoggerConfig';\nimport { drawStroke } from './symbols/StrokeSymbolSVGRenderer';\nimport * as InkModel from '../../model/InkModel';\n\n\n/**\n * Get info\n * @return {RendererInfo} Information about this renderer\n */\nexport function getInfo() {\n return {\n type: 'svg',\n apiVersion: 'V4'\n };\n}\n\n/**\n * Populate the dom element\n * @param {Element} element DOM element to attach the rendering elements\n * @return {Object} The renderer context to give as parameter when a draw model will be call\n */\nexport function attach(element) {\n const elementRef = element;\n logger.debug('populate root element', elementRef);\n elementRef.style.fontSize = '10px';\n return d3.select(elementRef);\n}\n\n/**\n * Detach the renderer from the DOM element\n * @param {Element} element DOM element to attach the rendering elements\n * @param {Object} context Current rendering context\n */\nexport function detach(element, context) {\n logger.debug('detach renderer', element);\n context.select('svg').remove();\n}\n\n/**\n * Update the rendering context size\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @param {Number} minHeight Minimal height for resize\n * @param {Number} minWidth Minimal Width for resize\n * @return {Model}\n */\nexport function resize(context, model, stroker, minHeight, minWidth) {\n const rect = context.node().getBoundingClientRect();\n const svg = context.selectAll('svg');\n const width = rect.width < minWidth ? minWidth : rect.width;\n const height = rect.height < minHeight ? minHeight : rect.height;\n svg.attr('viewBox', `0 0 ${width}, ${height}`);\n svg.attr('width', `${width}px`);\n svg.attr('height', `${height}px`);\n logger.debug('svg viewBox changed', svg);\n return model;\n}\n\n/**\n * Draw the current stroke from the model\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function drawCurrentStroke(context, model, stroker) {\n const modelRef = model;\n // Add a pending id for pending strokes rendering\n modelRef.currentStroke.id = `pendingStroke-${model.rawStrokes.length}`;\n // Render the current stroke\n logger.trace('drawing current stroke ', model.currentStroke);\n context.select(`#pendingStrokes #${modelRef.currentStroke.id}`).remove();\n drawStroke(context.select('#pendingStrokes').append('path').attr('id', model.currentStroke.id), model.currentStroke, stroker);\n return modelRef;\n}\n\nfunction insertAdjacentSVG(element, position, html) {\n const container = element.ownerDocument.createElementNS('http://www.w3.org/2000/svg', '_');\n container.innerHTML = html;\n\n switch (position.toLowerCase()) {\n case 'beforebegin':\n element.parentNode.insertBefore(container.firstChild, element);\n break;\n case 'afterbegin':\n element.insertBefore(container.lastChild, element.firstChild);\n break;\n case 'beforeend':\n element.appendChild(container.firstChild);\n break;\n case 'afterend':\n element.parentNode.insertBefore(container.lastChild, element.nextSibling);\n break;\n default:\n logger.warn('Invalid insertAdjacentHTML position');\n break;\n }\n}\n\n/**\n * Draw all symbols contained into the model\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function drawModel(context, model, stroker) {\n const drawSymbol = (symbol, symbolContext) => {\n logger.trace(`attempting to draw ${symbol.type} symbol`);\n if (symbol.type === 'stroke' && !symbolContext.select('id', symbol.id)) {\n drawStroke(symbolContext.append('path').attr('id', symbol.id), symbol, stroker);\n } else {\n logger.warn(`impossible to draw ${symbol.type} symbol`);\n }\n };\n\n const updateView = (patchUpdate) => {\n // We only add in the stack patch with updates\n patchUpdate.updates.forEach((update) => {\n try {\n const svgElementSelector = 'svg[data-layer=\"' + patchUpdate.layer + '\"]';\n switch (update.type) {\n case 'REPLACE_ALL': {\n context.select(svgElementSelector).remove();\n const parent = context.node();\n if (parent.insertAdjacentHTML) {\n parent.insertAdjacentHTML('beforeEnd', update.svg);\n } else {\n insertAdjacentSVG(parent, 'beforeEnd', update.svg);\n }\n if (patchUpdate.layer === 'MODEL') {\n context.select(svgElementSelector).append('g').attr('id', 'pendingStrokes');\n }\n }\n break;\n case 'REMOVE_ELEMENT': {\n if (update.id.includes('s') || update.id.includes('MODEL')) {\n context.select(`#${update.id}`).remove();\n } else {\n context.select(`#${update.id}`).attr('class', 'removed-stroke');\n setTimeout(() => {\n context.select(`#${update.id}`).remove();\n }, 100);\n }\n break;\n }\n case 'REPLACE_ELEMENT': {\n const parent = context.select(`#${update.id}`).node().parentNode;\n context.select(`#${update.id}`).remove();\n if (parent.insertAdjacentHTML) {\n parent.insertAdjacentHTML('beforeEnd', update.svg);\n } else {\n insertAdjacentSVG(parent, 'beforeEnd', update.svg);\n context.node().insertAdjacentHTML('beforeEnd', context.select(svgElementSelector).remove().node().outerHTML);\n }\n }\n break;\n case 'REMOVE_CHILD':\n context.select(`#${update.parentId} > *:nth-child(${update.index + 1})`).remove();\n break;\n case 'APPEND_CHILD': {\n const parent = context.select(update.parentId ? `#${update.parentId}` : svgElementSelector).node();\n if (parent.insertAdjacentHTML) {\n parent.insertAdjacentHTML('beforeEnd', update.svg);\n } else {\n insertAdjacentSVG(parent, 'beforeEnd', update.svg);\n context.node().insertAdjacentHTML('beforeEnd', context.select(svgElementSelector).remove().node().outerHTML);\n }\n }\n break;\n case 'INSERT_BEFORE': {\n const parent = context.select(`#${update.refId}`).node();\n if (parent.insertAdjacentHTML) {\n parent.insertAdjacentHTML('beforeBegin', update.svg);\n } else {\n insertAdjacentSVG(parent, 'beforeBegin', update.svg);\n context.node().insertAdjacentHTML('beforeEnd', context.select(svgElementSelector).remove().node().outerHTML);\n }\n }\n break;\n case 'REMOVE_ATTRIBUTE':\n context.selectAll(update.id ? `#${update.id}` : 'svg').attr(update.name, null);\n break;\n case 'SET_ATTRIBUTE': {\n // We ignore setAttributes on the svg element because we handle the resize elsewhere to prevent a blink effect\n // that occurs if we are waiting for the server to resize.\n if (update.id) {\n context.selectAll(`#${update.id}`).attr(update.name, update.value);\n }\n break;\n }\n default:\n logger.debug(`unknown update ${update.type} action`);\n break;\n }\n } catch (e) {\n logger.error(`Invalid update ${update.type}`, update);\n logger.error('Error on svg patch', e);\n }\n });\n };\n\n const pendingRecognizedSymbols = InkModel.extractPendingRecognizedSymbols(model);\n if (pendingRecognizedSymbols) {\n pendingRecognizedSymbols.forEach(patch => updateView(patch));\n InkModel.updateModelRenderedPosition(model);\n }\n\n const pendingStrokes = InkModel.extractPendingStrokes(model);\n if (pendingStrokes) {\n pendingStrokes.forEach(stroke => drawSymbol(stroke, context.select('#pendingStrokes')));\n }\n return model;\n}\n","import * as StrokeComponent from '../../../model/StrokeComponent';\nimport { computeLinksPoints, computeMiddlePoint, computeAxeAngle } from '../../QuadraticUtils';\n\n/**\n * Get info\n * @return {StrokerInfo} Information about this stroker\n */\nexport function getInfo() {\n return {\n type: 'svg',\n name: 'quadratic',\n apiVersion: 'V4'\n };\n}\n\nfunction renderArc(context, center, radius) {\n const svgPath = [\n `M ${center.x},${center.y}`,\n `m ${-radius},0`,\n `a ${radius},${radius} 0 1 0 ${radius * 2},0`,\n `a ${radius},${radius} 0 1 0 ${-(radius * 2)},0`\n ].join(' ');\n return svgPath;\n}\n\nfunction renderLine(context, begin, end, width) {\n const linkPoints1 = computeLinksPoints(begin, computeAxeAngle(begin, end), width);\n const linkPoints2 = computeLinksPoints(end, computeAxeAngle(begin, end), width);\n\n const svgPath = [\n `M ${linkPoints1[0].x},${linkPoints1[0].y}`,\n `L ${linkPoints2[0].x},${linkPoints2[0].y}`,\n `L ${linkPoints2[1].x},${linkPoints2[1].y}`,\n `L ${linkPoints1[1].x},${linkPoints1[1].y}`\n ].join(' ');\n return svgPath;\n}\n\nfunction renderFinal(context, begin, end, width) {\n const ARCSPLIT = 6;\n const angle = computeAxeAngle(begin, end);\n const linkPoints = computeLinksPoints(end, angle, width);\n\n const parts = [`M ${linkPoints[0].x},${linkPoints[0].y}`];\n for (let i = 1; i <= ARCSPLIT; i++) {\n const newAngle = angle - (i * (Math.PI / ARCSPLIT));\n parts.push(`L ${end.x - (end.p * width * Math.sin(newAngle))},${end.y + (end.p * width * Math.cos(newAngle))}`);\n }\n const svgPath = parts.join(' ');\n return svgPath;\n}\n\nfunction renderQuadratic(context, begin, end, ctrl, width) {\n const linkPoints1 = computeLinksPoints(begin, computeAxeAngle(begin, ctrl), width);\n const linkPoints2 = computeLinksPoints(end, computeAxeAngle(ctrl, end), width);\n const linkPoints3 = computeLinksPoints(ctrl, computeAxeAngle(begin, end), width);\n\n const svgPath = [\n `M ${linkPoints1[0].x},${linkPoints1[0].y}`,\n `Q ${linkPoints3[0].x},${linkPoints3[0].y} ${linkPoints2[0].x},${linkPoints2[0].y}`,\n `L ${linkPoints2[1].x},${linkPoints2[1].y}`,\n `Q ${linkPoints3[1].x},${linkPoints3[1].y} ${linkPoints1[1].x},${linkPoints1[1].y}`\n ].join(' ');\n return svgPath;\n}\n\n/**\n * Draw a stroke on a svg tag, using quadratics\n * @param {Object} context Current rendering context\n * @param {Stroke} stroke Current stroke to be drawn\n */\nexport function drawStroke(context, stroke) {\n const length = stroke.x.length;\n const width = stroke.width;\n const firstPoint = StrokeComponent.getPointByIndex(stroke, 0);\n const nbquadratics = length - 2;\n\n const parts = [];\n if (length < 3) {\n parts.push(renderArc(context, firstPoint, width * 0.6));\n } else {\n parts.push(renderArc(context, firstPoint, width * firstPoint.p));\n parts.push(renderLine(context, firstPoint, computeMiddlePoint(firstPoint, StrokeComponent.getPointByIndex(stroke, 1)), width));\n\n for (let i = 0; i < nbquadratics; i++) {\n parts.push(renderQuadratic(context, computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, i), StrokeComponent.getPointByIndex(stroke, i + 1)), computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, i + 1), StrokeComponent.getPointByIndex(stroke, i + 2)), StrokeComponent.getPointByIndex(stroke, i + 1), width));\n }\n parts.push(renderLine(context, computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, length - 2), StrokeComponent.getPointByIndex(stroke, length - 1)), StrokeComponent.getPointByIndex(stroke, length - 1), width));\n parts.push(renderFinal(context, StrokeComponent.getPointByIndex(stroke, length - 2), StrokeComponent.getPointByIndex(stroke, length - 1), width));\n }\n const svgPath = parts.join(' ');\n\n context\n .attr('color', stroke.color)\n .style('fill', stroke.color)\n .style('stroke', 'transparent')\n .classed('pending-stroke', true)\n .attr('d', `${svgPath}Z`);\n}\n",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory();\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\troot.CryptoJS = factory();\n\t}\n}(this, function () {\n\n\t/**\n\t * CryptoJS core components.\n\t */\n\tvar CryptoJS = CryptoJS || (function (Math, undefined) {\n\t /*\n\t * Local polyfil of Object.create\n\t */\n\t var create = Object.create || (function () {\n\t function F() {};\n\n\t return function (obj) {\n\t var subtype;\n\n\t F.prototype = obj;\n\n\t subtype = new F();\n\n\t F.prototype = null;\n\n\t return subtype;\n\t };\n\t }())\n\n\t /**\n\t * CryptoJS namespace.\n\t */\n\t var C = {};\n\n\t /**\n\t * Library namespace.\n\t */\n\t var C_lib = C.lib = {};\n\n\t /**\n\t * Base object for prototypal inheritance.\n\t */\n\t var Base = C_lib.Base = (function () {\n\n\n\t return {\n\t /**\n\t * Creates a new object that inherits from this object.\n\t *\n\t * @param {Object} overrides Properties to copy into the new object.\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * field: 'value',\n\t *\n\t * method: function () {\n\t * }\n\t * });\n\t */\n\t extend: function (overrides) {\n\t // Spawn\n\t var subtype = create(this);\n\n\t // Augment\n\t if (overrides) {\n\t subtype.mixIn(overrides);\n\t }\n\n\t // Create default initializer\n\t if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {\n\t subtype.init = function () {\n\t subtype.$super.init.apply(this, arguments);\n\t };\n\t }\n\n\t // Initializer's prototype is the subtype object\n\t subtype.init.prototype = subtype;\n\n\t // Reference supertype\n\t subtype.$super = this;\n\n\t return subtype;\n\t },\n\n\t /**\n\t * Extends this object and runs the init method.\n\t * Arguments to create() will be passed to init().\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var instance = MyType.create();\n\t */\n\t create: function () {\n\t var instance = this.extend();\n\t instance.init.apply(instance, arguments);\n\n\t return instance;\n\t },\n\n\t /**\n\t * Initializes a newly created object.\n\t * Override this method to add some logic when your objects are created.\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * init: function () {\n\t * // ...\n\t * }\n\t * });\n\t */\n\t init: function () {\n\t },\n\n\t /**\n\t * Copies properties into this object.\n\t *\n\t * @param {Object} properties The properties to mix in.\n\t *\n\t * @example\n\t *\n\t * MyType.mixIn({\n\t * field: 'value'\n\t * });\n\t */\n\t mixIn: function (properties) {\n\t for (var propertyName in properties) {\n\t if (properties.hasOwnProperty(propertyName)) {\n\t this[propertyName] = properties[propertyName];\n\t }\n\t }\n\n\t // IE won't copy toString using the loop above\n\t if (properties.hasOwnProperty('toString')) {\n\t this.toString = properties.toString;\n\t }\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = instance.clone();\n\t */\n\t clone: function () {\n\t return this.init.prototype.extend(this);\n\t }\n\t };\n\t }());\n\n\t /**\n\t * An array of 32-bit words.\n\t *\n\t * @property {Array} words The array of 32-bit words.\n\t * @property {number} sigBytes The number of significant bytes in this word array.\n\t */\n\t var WordArray = C_lib.WordArray = Base.extend({\n\t /**\n\t * Initializes a newly created word array.\n\t *\n\t * @param {Array} words (Optional) An array of 32-bit words.\n\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.create();\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);\n\t */\n\t init: function (words, sigBytes) {\n\t words = this.words = words || [];\n\n\t if (sigBytes != undefined) {\n\t this.sigBytes = sigBytes;\n\t } else {\n\t this.sigBytes = words.length * 4;\n\t }\n\t },\n\n\t /**\n\t * Converts this word array to a string.\n\t *\n\t * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex\n\t *\n\t * @return {string} The stringified word array.\n\t *\n\t * @example\n\t *\n\t * var string = wordArray + '';\n\t * var string = wordArray.toString();\n\t * var string = wordArray.toString(CryptoJS.enc.Utf8);\n\t */\n\t toString: function (encoder) {\n\t return (encoder || Hex).stringify(this);\n\t },\n\n\t /**\n\t * Concatenates a word array to this word array.\n\t *\n\t * @param {WordArray} wordArray The word array to append.\n\t *\n\t * @return {WordArray} This word array.\n\t *\n\t * @example\n\t *\n\t * wordArray1.concat(wordArray2);\n\t */\n\t concat: function (wordArray) {\n\t // Shortcuts\n\t var thisWords = this.words;\n\t var thatWords = wordArray.words;\n\t var thisSigBytes = this.sigBytes;\n\t var thatSigBytes = wordArray.sigBytes;\n\n\t // Clamp excess bits\n\t this.clamp();\n\n\t // Concat\n\t if (thisSigBytes % 4) {\n\t // Copy one byte at a time\n\t for (var i = 0; i < thatSigBytes; i++) {\n\t var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);\n\t }\n\t } else {\n\t // Copy one word at a time\n\t for (var i = 0; i < thatSigBytes; i += 4) {\n\t thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2];\n\t }\n\t }\n\t this.sigBytes += thatSigBytes;\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Removes insignificant bits.\n\t *\n\t * @example\n\t *\n\t * wordArray.clamp();\n\t */\n\t clamp: function () {\n\t // Shortcuts\n\t var words = this.words;\n\t var sigBytes = this.sigBytes;\n\n\t // Clamp\n\t words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);\n\t words.length = Math.ceil(sigBytes / 4);\n\t },\n\n\t /**\n\t * Creates a copy of this word array.\n\t *\n\t * @return {WordArray} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = wordArray.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone.words = this.words.slice(0);\n\n\t return clone;\n\t },\n\n\t /**\n\t * Creates a word array filled with random bytes.\n\t *\n\t * @param {number} nBytes The number of random bytes to generate.\n\t *\n\t * @return {WordArray} The random word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.random(16);\n\t */\n\t random: function (nBytes) {\n\t var words = [];\n\n\t var r = (function (m_w) {\n\t var m_w = m_w;\n\t var m_z = 0x3ade68b1;\n\t var mask = 0xffffffff;\n\n\t return function () {\n\t m_z = (0x9069 * (m_z & 0xFFFF) + (m_z >> 0x10)) & mask;\n\t m_w = (0x4650 * (m_w & 0xFFFF) + (m_w >> 0x10)) & mask;\n\t var result = ((m_z << 0x10) + m_w) & mask;\n\t result /= 0x100000000;\n\t result += 0.5;\n\t return result * (Math.random() > .5 ? 1 : -1);\n\t }\n\t });\n\n\t for (var i = 0, rcache; i < nBytes; i += 4) {\n\t var _r = r((rcache || Math.random()) * 0x100000000);\n\n\t rcache = _r() * 0x3ade67b7;\n\t words.push((_r() * 0x100000000) | 0);\n\t }\n\n\t return new WordArray.init(words, nBytes);\n\t }\n\t });\n\n\t /**\n\t * Encoder namespace.\n\t */\n\t var C_enc = C.enc = {};\n\n\t /**\n\t * Hex encoding strategy.\n\t */\n\t var Hex = C_enc.Hex = {\n\t /**\n\t * Converts a word array to a hex string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The hex string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hexString = CryptoJS.enc.Hex.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var hexChars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t hexChars.push((bite >>> 4).toString(16));\n\t hexChars.push((bite & 0x0f).toString(16));\n\t }\n\n\t return hexChars.join('');\n\t },\n\n\t /**\n\t * Converts a hex string to a word array.\n\t *\n\t * @param {string} hexStr The hex string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Hex.parse(hexString);\n\t */\n\t parse: function (hexStr) {\n\t // Shortcut\n\t var hexStrLength = hexStr.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < hexStrLength; i += 2) {\n\t words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);\n\t }\n\n\t return new WordArray.init(words, hexStrLength / 2);\n\t }\n\t };\n\n\t /**\n\t * Latin1 encoding strategy.\n\t */\n\t var Latin1 = C_enc.Latin1 = {\n\t /**\n\t * Converts a word array to a Latin1 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The Latin1 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var latin1Chars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t latin1Chars.push(String.fromCharCode(bite));\n\t }\n\n\t return latin1Chars.join('');\n\t },\n\n\t /**\n\t * Converts a Latin1 string to a word array.\n\t *\n\t * @param {string} latin1Str The Latin1 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);\n\t */\n\t parse: function (latin1Str) {\n\t // Shortcut\n\t var latin1StrLength = latin1Str.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < latin1StrLength; i++) {\n\t words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);\n\t }\n\n\t return new WordArray.init(words, latin1StrLength);\n\t }\n\t };\n\n\t /**\n\t * UTF-8 encoding strategy.\n\t */\n\t var Utf8 = C_enc.Utf8 = {\n\t /**\n\t * Converts a word array to a UTF-8 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The UTF-8 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t try {\n\t return decodeURIComponent(escape(Latin1.stringify(wordArray)));\n\t } catch (e) {\n\t throw new Error('Malformed UTF-8 data');\n\t }\n\t },\n\n\t /**\n\t * Converts a UTF-8 string to a word array.\n\t *\n\t * @param {string} utf8Str The UTF-8 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);\n\t */\n\t parse: function (utf8Str) {\n\t return Latin1.parse(unescape(encodeURIComponent(utf8Str)));\n\t }\n\t };\n\n\t /**\n\t * Abstract buffered block algorithm template.\n\t *\n\t * The property blockSize must be implemented in a concrete subtype.\n\t *\n\t * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0\n\t */\n\t var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({\n\t /**\n\t * Resets this block algorithm's data buffer to its initial state.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm.reset();\n\t */\n\t reset: function () {\n\t // Initial values\n\t this._data = new WordArray.init();\n\t this._nDataBytes = 0;\n\t },\n\n\t /**\n\t * Adds new data to this block algorithm's buffer.\n\t *\n\t * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm._append('data');\n\t * bufferedBlockAlgorithm._append(wordArray);\n\t */\n\t _append: function (data) {\n\t // Convert string to WordArray, else assume WordArray already\n\t if (typeof data == 'string') {\n\t data = Utf8.parse(data);\n\t }\n\n\t // Append\n\t this._data.concat(data);\n\t this._nDataBytes += data.sigBytes;\n\t },\n\n\t /**\n\t * Processes available data blocks.\n\t *\n\t * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.\n\t *\n\t * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.\n\t *\n\t * @return {WordArray} The processed data.\n\t *\n\t * @example\n\t *\n\t * var processedData = bufferedBlockAlgorithm._process();\n\t * var processedData = bufferedBlockAlgorithm._process(!!'flush');\n\t */\n\t _process: function (doFlush) {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\t var dataSigBytes = data.sigBytes;\n\t var blockSize = this.blockSize;\n\t var blockSizeBytes = blockSize * 4;\n\n\t // Count blocks ready\n\t var nBlocksReady = dataSigBytes / blockSizeBytes;\n\t if (doFlush) {\n\t // Round up to include partial blocks\n\t nBlocksReady = Math.ceil(nBlocksReady);\n\t } else {\n\t // Round down to include only full blocks,\n\t // less the number of blocks that must remain in the buffer\n\t nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);\n\t }\n\n\t // Count words ready\n\t var nWordsReady = nBlocksReady * blockSize;\n\n\t // Count bytes ready\n\t var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);\n\n\t // Process blocks\n\t if (nWordsReady) {\n\t for (var offset = 0; offset < nWordsReady; offset += blockSize) {\n\t // Perform concrete-algorithm logic\n\t this._doProcessBlock(dataWords, offset);\n\t }\n\n\t // Remove processed words\n\t var processedWords = dataWords.splice(0, nWordsReady);\n\t data.sigBytes -= nBytesReady;\n\t }\n\n\t // Return processed words\n\t return new WordArray.init(processedWords, nBytesReady);\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = bufferedBlockAlgorithm.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone._data = this._data.clone();\n\n\t return clone;\n\t },\n\n\t _minBufferSize: 0\n\t });\n\n\t /**\n\t * Abstract hasher template.\n\t *\n\t * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)\n\t */\n\t var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({\n\t /**\n\t * Configuration options.\n\t */\n\t cfg: Base.extend(),\n\n\t /**\n\t * Initializes a newly created hasher.\n\t *\n\t * @param {Object} cfg (Optional) The configuration options to use for this hash computation.\n\t *\n\t * @example\n\t *\n\t * var hasher = CryptoJS.algo.SHA256.create();\n\t */\n\t init: function (cfg) {\n\t // Apply config defaults\n\t this.cfg = this.cfg.extend(cfg);\n\n\t // Set initial values\n\t this.reset();\n\t },\n\n\t /**\n\t * Resets this hasher to its initial state.\n\t *\n\t * @example\n\t *\n\t * hasher.reset();\n\t */\n\t reset: function () {\n\t // Reset data buffer\n\t BufferedBlockAlgorithm.reset.call(this);\n\n\t // Perform concrete-hasher logic\n\t this._doReset();\n\t },\n\n\t /**\n\t * Updates this hasher with a message.\n\t *\n\t * @param {WordArray|string} messageUpdate The message to append.\n\t *\n\t * @return {Hasher} This hasher.\n\t *\n\t * @example\n\t *\n\t * hasher.update('message');\n\t * hasher.update(wordArray);\n\t */\n\t update: function (messageUpdate) {\n\t // Append\n\t this._append(messageUpdate);\n\n\t // Update the hash\n\t this._process();\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Finalizes the hash computation.\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t *\n\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @example\n\t *\n\t * var hash = hasher.finalize();\n\t * var hash = hasher.finalize('message');\n\t * var hash = hasher.finalize(wordArray);\n\t */\n\t finalize: function (messageUpdate) {\n\t // Final message update\n\t if (messageUpdate) {\n\t this._append(messageUpdate);\n\t }\n\n\t // Perform concrete-hasher logic\n\t var hash = this._doFinalize();\n\n\t return hash;\n\t },\n\n\t blockSize: 512/32,\n\n\t /**\n\t * Creates a shortcut function to a hasher's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to create a helper for.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHelper: function (hasher) {\n\t return function (message, cfg) {\n\t return new hasher.init(cfg).finalize(message);\n\t };\n\t },\n\n\t /**\n\t * Creates a shortcut function to the HMAC's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to use in this HMAC helper.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHmacHelper: function (hasher) {\n\t return function (message, key) {\n\t return new C_algo.HMAC.init(hasher, key).finalize(message);\n\t };\n\t }\n\t });\n\n\t /**\n\t * Algorithm namespace.\n\t */\n\t var C_algo = C.algo = {};\n\n\t return C;\n\t}(Math));\n\n\n\treturn CryptoJS;\n\n}));",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\treturn CryptoJS.enc.Hex;\n\n}));",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (undefined) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Base = C_lib.Base;\n\t var X32WordArray = C_lib.WordArray;\n\n\t /**\n\t * x64 namespace.\n\t */\n\t var C_x64 = C.x64 = {};\n\n\t /**\n\t * A 64-bit word.\n\t */\n\t var X64Word = C_x64.Word = Base.extend({\n\t /**\n\t * Initializes a newly created 64-bit word.\n\t *\n\t * @param {number} high The high 32 bits.\n\t * @param {number} low The low 32 bits.\n\t *\n\t * @example\n\t *\n\t * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);\n\t */\n\t init: function (high, low) {\n\t this.high = high;\n\t this.low = low;\n\t }\n\n\t /**\n\t * Bitwise NOTs this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after negating.\n\t *\n\t * @example\n\t *\n\t * var negated = x64Word.not();\n\t */\n\t // not: function () {\n\t // var high = ~this.high;\n\t // var low = ~this.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Bitwise ANDs this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to AND with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after ANDing.\n\t *\n\t * @example\n\t *\n\t * var anded = x64Word.and(anotherX64Word);\n\t */\n\t // and: function (word) {\n\t // var high = this.high & word.high;\n\t // var low = this.low & word.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Bitwise ORs this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to OR with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after ORing.\n\t *\n\t * @example\n\t *\n\t * var ored = x64Word.or(anotherX64Word);\n\t */\n\t // or: function (word) {\n\t // var high = this.high | word.high;\n\t // var low = this.low | word.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Bitwise XORs this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to XOR with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after XORing.\n\t *\n\t * @example\n\t *\n\t * var xored = x64Word.xor(anotherX64Word);\n\t */\n\t // xor: function (word) {\n\t // var high = this.high ^ word.high;\n\t // var low = this.low ^ word.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Shifts this word n bits to the left.\n\t *\n\t * @param {number} n The number of bits to shift.\n\t *\n\t * @return {X64Word} A new x64-Word object after shifting.\n\t *\n\t * @example\n\t *\n\t * var shifted = x64Word.shiftL(25);\n\t */\n\t // shiftL: function (n) {\n\t // if (n < 32) {\n\t // var high = (this.high << n) | (this.low >>> (32 - n));\n\t // var low = this.low << n;\n\t // } else {\n\t // var high = this.low << (n - 32);\n\t // var low = 0;\n\t // }\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Shifts this word n bits to the right.\n\t *\n\t * @param {number} n The number of bits to shift.\n\t *\n\t * @return {X64Word} A new x64-Word object after shifting.\n\t *\n\t * @example\n\t *\n\t * var shifted = x64Word.shiftR(7);\n\t */\n\t // shiftR: function (n) {\n\t // if (n < 32) {\n\t // var low = (this.low >>> n) | (this.high << (32 - n));\n\t // var high = this.high >>> n;\n\t // } else {\n\t // var low = this.high >>> (n - 32);\n\t // var high = 0;\n\t // }\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Rotates this word n bits to the left.\n\t *\n\t * @param {number} n The number of bits to rotate.\n\t *\n\t * @return {X64Word} A new x64-Word object after rotating.\n\t *\n\t * @example\n\t *\n\t * var rotated = x64Word.rotL(25);\n\t */\n\t // rotL: function (n) {\n\t // return this.shiftL(n).or(this.shiftR(64 - n));\n\t // },\n\n\t /**\n\t * Rotates this word n bits to the right.\n\t *\n\t * @param {number} n The number of bits to rotate.\n\t *\n\t * @return {X64Word} A new x64-Word object after rotating.\n\t *\n\t * @example\n\t *\n\t * var rotated = x64Word.rotR(7);\n\t */\n\t // rotR: function (n) {\n\t // return this.shiftR(n).or(this.shiftL(64 - n));\n\t // },\n\n\t /**\n\t * Adds this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to add with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after adding.\n\t *\n\t * @example\n\t *\n\t * var added = x64Word.add(anotherX64Word);\n\t */\n\t // add: function (word) {\n\t // var low = (this.low + word.low) | 0;\n\t // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;\n\t // var high = (this.high + word.high + carry) | 0;\n\n\t // return X64Word.create(high, low);\n\t // }\n\t });\n\n\t /**\n\t * An array of 64-bit words.\n\t *\n\t * @property {Array} words The array of CryptoJS.x64.Word objects.\n\t * @property {number} sigBytes The number of significant bytes in this word array.\n\t */\n\t var X64WordArray = C_x64.WordArray = Base.extend({\n\t /**\n\t * Initializes a newly created word array.\n\t *\n\t * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.\n\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.x64.WordArray.create();\n\t *\n\t * var wordArray = CryptoJS.x64.WordArray.create([\n\t * CryptoJS.x64.Word.create(0x00010203, 0x04050607),\n\t * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)\n\t * ]);\n\t *\n\t * var wordArray = CryptoJS.x64.WordArray.create([\n\t * CryptoJS.x64.Word.create(0x00010203, 0x04050607),\n\t * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)\n\t * ], 10);\n\t */\n\t init: function (words, sigBytes) {\n\t words = this.words = words || [];\n\n\t if (sigBytes != undefined) {\n\t this.sigBytes = sigBytes;\n\t } else {\n\t this.sigBytes = words.length * 8;\n\t }\n\t },\n\n\t /**\n\t * Converts this 64-bit word array to a 32-bit word array.\n\t *\n\t * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.\n\t *\n\t * @example\n\t *\n\t * var x32WordArray = x64WordArray.toX32();\n\t */\n\t toX32: function () {\n\t // Shortcuts\n\t var x64Words = this.words;\n\t var x64WordsLength = x64Words.length;\n\n\t // Convert\n\t var x32Words = [];\n\t for (var i = 0; i < x64WordsLength; i++) {\n\t var x64Word = x64Words[i];\n\t x32Words.push(x64Word.high);\n\t x32Words.push(x64Word.low);\n\t }\n\n\t return X32WordArray.create(x32Words, this.sigBytes);\n\t },\n\n\t /**\n\t * Creates a copy of this word array.\n\t *\n\t * @return {X64WordArray} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = x64WordArray.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\n\t // Clone \"words\" array\n\t var words = clone.words = this.words.slice(0);\n\n\t // Clone each X64Word object\n\t var wordsLength = words.length;\n\t for (var i = 0; i < wordsLength; i++) {\n\t words[i] = words[i].clone();\n\t }\n\n\t return clone;\n\t }\n\t });\n\t}());\n\n\n\treturn CryptoJS;\n\n}));",";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./x64-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./x64-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Hasher = C_lib.Hasher;\n\t var C_x64 = C.x64;\n\t var X64Word = C_x64.Word;\n\t var X64WordArray = C_x64.WordArray;\n\t var C_algo = C.algo;\n\n\t function X64Word_create() {\n\t return X64Word.create.apply(X64Word, arguments);\n\t }\n\n\t // Constants\n\t var K = [\n\t X64Word_create(0x428a2f98, 0xd728ae22), X64Word_create(0x71374491, 0x23ef65cd),\n\t X64Word_create(0xb5c0fbcf, 0xec4d3b2f), X64Word_create(0xe9b5dba5, 0x8189dbbc),\n\t X64Word_create(0x3956c25b, 0xf348b538), X64Word_create(0x59f111f1, 0xb605d019),\n\t X64Word_create(0x923f82a4, 0xaf194f9b), X64Word_create(0xab1c5ed5, 0xda6d8118),\n\t X64Word_create(0xd807aa98, 0xa3030242), X64Word_create(0x12835b01, 0x45706fbe),\n\t X64Word_create(0x243185be, 0x4ee4b28c), X64Word_create(0x550c7dc3, 0xd5ffb4e2),\n\t X64Word_create(0x72be5d74, 0xf27b896f), X64Word_create(0x80deb1fe, 0x3b1696b1),\n\t X64Word_create(0x9bdc06a7, 0x25c71235), X64Word_create(0xc19bf174, 0xcf692694),\n\t X64Word_create(0xe49b69c1, 0x9ef14ad2), X64Word_create(0xefbe4786, 0x384f25e3),\n\t X64Word_create(0x0fc19dc6, 0x8b8cd5b5), X64Word_create(0x240ca1cc, 0x77ac9c65),\n\t X64Word_create(0x2de92c6f, 0x592b0275), X64Word_create(0x4a7484aa, 0x6ea6e483),\n\t X64Word_create(0x5cb0a9dc, 0xbd41fbd4), X64Word_create(0x76f988da, 0x831153b5),\n\t X64Word_create(0x983e5152, 0xee66dfab), X64Word_create(0xa831c66d, 0x2db43210),\n\t X64Word_create(0xb00327c8, 0x98fb213f), X64Word_create(0xbf597fc7, 0xbeef0ee4),\n\t X64Word_create(0xc6e00bf3, 0x3da88fc2), X64Word_create(0xd5a79147, 0x930aa725),\n\t X64Word_create(0x06ca6351, 0xe003826f), X64Word_create(0x14292967, 0x0a0e6e70),\n\t X64Word_create(0x27b70a85, 0x46d22ffc), X64Word_create(0x2e1b2138, 0x5c26c926),\n\t X64Word_create(0x4d2c6dfc, 0x5ac42aed), X64Word_create(0x53380d13, 0x9d95b3df),\n\t X64Word_create(0x650a7354, 0x8baf63de), X64Word_create(0x766a0abb, 0x3c77b2a8),\n\t X64Word_create(0x81c2c92e, 0x47edaee6), X64Word_create(0x92722c85, 0x1482353b),\n\t X64Word_create(0xa2bfe8a1, 0x4cf10364), X64Word_create(0xa81a664b, 0xbc423001),\n\t X64Word_create(0xc24b8b70, 0xd0f89791), X64Word_create(0xc76c51a3, 0x0654be30),\n\t X64Word_create(0xd192e819, 0xd6ef5218), X64Word_create(0xd6990624, 0x5565a910),\n\t X64Word_create(0xf40e3585, 0x5771202a), X64Word_create(0x106aa070, 0x32bbd1b8),\n\t X64Word_create(0x19a4c116, 0xb8d2d0c8), X64Word_create(0x1e376c08, 0x5141ab53),\n\t X64Word_create(0x2748774c, 0xdf8eeb99), X64Word_create(0x34b0bcb5, 0xe19b48a8),\n\t X64Word_create(0x391c0cb3, 0xc5c95a63), X64Word_create(0x4ed8aa4a, 0xe3418acb),\n\t X64Word_create(0x5b9cca4f, 0x7763e373), X64Word_create(0x682e6ff3, 0xd6b2b8a3),\n\t X64Word_create(0x748f82ee, 0x5defb2fc), X64Word_create(0x78a5636f, 0x43172f60),\n\t X64Word_create(0x84c87814, 0xa1f0ab72), X64Word_create(0x8cc70208, 0x1a6439ec),\n\t X64Word_create(0x90befffa, 0x23631e28), X64Word_create(0xa4506ceb, 0xde82bde9),\n\t X64Word_create(0xbef9a3f7, 0xb2c67915), X64Word_create(0xc67178f2, 0xe372532b),\n\t X64Word_create(0xca273ece, 0xea26619c), X64Word_create(0xd186b8c7, 0x21c0c207),\n\t X64Word_create(0xeada7dd6, 0xcde0eb1e), X64Word_create(0xf57d4f7f, 0xee6ed178),\n\t X64Word_create(0x06f067aa, 0x72176fba), X64Word_create(0x0a637dc5, 0xa2c898a6),\n\t X64Word_create(0x113f9804, 0xbef90dae), X64Word_create(0x1b710b35, 0x131c471b),\n\t X64Word_create(0x28db77f5, 0x23047d84), X64Word_create(0x32caab7b, 0x40c72493),\n\t X64Word_create(0x3c9ebe0a, 0x15c9bebc), X64Word_create(0x431d67c4, 0x9c100d4c),\n\t X64Word_create(0x4cc5d4be, 0xcb3e42b6), X64Word_create(0x597f299c, 0xfc657e2a),\n\t X64Word_create(0x5fcb6fab, 0x3ad6faec), X64Word_create(0x6c44198c, 0x4a475817)\n\t ];\n\n\t // Reusable objects\n\t var W = [];\n\t (function () {\n\t for (var i = 0; i < 80; i++) {\n\t W[i] = X64Word_create();\n\t }\n\t }());\n\n\t /**\n\t * SHA-512 hash algorithm.\n\t */\n\t var SHA512 = C_algo.SHA512 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new X64WordArray.init([\n\t new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b),\n\t new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1),\n\t new X64Word.init(0x510e527f, 0xade682d1), new X64Word.init(0x9b05688c, 0x2b3e6c1f),\n\t new X64Word.init(0x1f83d9ab, 0xfb41bd6b), new X64Word.init(0x5be0cd19, 0x137e2179)\n\t ]);\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcuts\n\t var H = this._hash.words;\n\n\t var H0 = H[0];\n\t var H1 = H[1];\n\t var H2 = H[2];\n\t var H3 = H[3];\n\t var H4 = H[4];\n\t var H5 = H[5];\n\t var H6 = H[6];\n\t var H7 = H[7];\n\n\t var H0h = H0.high;\n\t var H0l = H0.low;\n\t var H1h = H1.high;\n\t var H1l = H1.low;\n\t var H2h = H2.high;\n\t var H2l = H2.low;\n\t var H3h = H3.high;\n\t var H3l = H3.low;\n\t var H4h = H4.high;\n\t var H4l = H4.low;\n\t var H5h = H5.high;\n\t var H5l = H5.low;\n\t var H6h = H6.high;\n\t var H6l = H6.low;\n\t var H7h = H7.high;\n\t var H7l = H7.low;\n\n\t // Working variables\n\t var ah = H0h;\n\t var al = H0l;\n\t var bh = H1h;\n\t var bl = H1l;\n\t var ch = H2h;\n\t var cl = H2l;\n\t var dh = H3h;\n\t var dl = H3l;\n\t var eh = H4h;\n\t var el = H4l;\n\t var fh = H5h;\n\t var fl = H5l;\n\t var gh = H6h;\n\t var gl = H6l;\n\t var hh = H7h;\n\t var hl = H7l;\n\n\t // Rounds\n\t for (var i = 0; i < 80; i++) {\n\t // Shortcut\n\t var Wi = W[i];\n\n\t // Extend message\n\t if (i < 16) {\n\t var Wih = Wi.high = M[offset + i * 2] | 0;\n\t var Wil = Wi.low = M[offset + i * 2 + 1] | 0;\n\t } else {\n\t // Gamma0\n\t var gamma0x = W[i - 15];\n\t var gamma0xh = gamma0x.high;\n\t var gamma0xl = gamma0x.low;\n\t var gamma0h = ((gamma0xh >>> 1) | (gamma0xl << 31)) ^ ((gamma0xh >>> 8) | (gamma0xl << 24)) ^ (gamma0xh >>> 7);\n\t var gamma0l = ((gamma0xl >>> 1) | (gamma0xh << 31)) ^ ((gamma0xl >>> 8) | (gamma0xh << 24)) ^ ((gamma0xl >>> 7) | (gamma0xh << 25));\n\n\t // Gamma1\n\t var gamma1x = W[i - 2];\n\t var gamma1xh = gamma1x.high;\n\t var gamma1xl = gamma1x.low;\n\t var gamma1h = ((gamma1xh >>> 19) | (gamma1xl << 13)) ^ ((gamma1xh << 3) | (gamma1xl >>> 29)) ^ (gamma1xh >>> 6);\n\t var gamma1l = ((gamma1xl >>> 19) | (gamma1xh << 13)) ^ ((gamma1xl << 3) | (gamma1xh >>> 29)) ^ ((gamma1xl >>> 6) | (gamma1xh << 26));\n\n\t // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]\n\t var Wi7 = W[i - 7];\n\t var Wi7h = Wi7.high;\n\t var Wi7l = Wi7.low;\n\n\t var Wi16 = W[i - 16];\n\t var Wi16h = Wi16.high;\n\t var Wi16l = Wi16.low;\n\n\t var Wil = gamma0l + Wi7l;\n\t var Wih = gamma0h + Wi7h + ((Wil >>> 0) < (gamma0l >>> 0) ? 1 : 0);\n\t var Wil = Wil + gamma1l;\n\t var Wih = Wih + gamma1h + ((Wil >>> 0) < (gamma1l >>> 0) ? 1 : 0);\n\t var Wil = Wil + Wi16l;\n\t var Wih = Wih + Wi16h + ((Wil >>> 0) < (Wi16l >>> 0) ? 1 : 0);\n\n\t Wi.high = Wih;\n\t Wi.low = Wil;\n\t }\n\n\t var chh = (eh & fh) ^ (~eh & gh);\n\t var chl = (el & fl) ^ (~el & gl);\n\t var majh = (ah & bh) ^ (ah & ch) ^ (bh & ch);\n\t var majl = (al & bl) ^ (al & cl) ^ (bl & cl);\n\n\t var sigma0h = ((ah >>> 28) | (al << 4)) ^ ((ah << 30) | (al >>> 2)) ^ ((ah << 25) | (al >>> 7));\n\t var sigma0l = ((al >>> 28) | (ah << 4)) ^ ((al << 30) | (ah >>> 2)) ^ ((al << 25) | (ah >>> 7));\n\t var sigma1h = ((eh >>> 14) | (el << 18)) ^ ((eh >>> 18) | (el << 14)) ^ ((eh << 23) | (el >>> 9));\n\t var sigma1l = ((el >>> 14) | (eh << 18)) ^ ((el >>> 18) | (eh << 14)) ^ ((el << 23) | (eh >>> 9));\n\n\t // t1 = h + sigma1 + ch + K[i] + W[i]\n\t var Ki = K[i];\n\t var Kih = Ki.high;\n\t var Kil = Ki.low;\n\n\t var t1l = hl + sigma1l;\n\t var t1h = hh + sigma1h + ((t1l >>> 0) < (hl >>> 0) ? 1 : 0);\n\t var t1l = t1l + chl;\n\t var t1h = t1h + chh + ((t1l >>> 0) < (chl >>> 0) ? 1 : 0);\n\t var t1l = t1l + Kil;\n\t var t1h = t1h + Kih + ((t1l >>> 0) < (Kil >>> 0) ? 1 : 0);\n\t var t1l = t1l + Wil;\n\t var t1h = t1h + Wih + ((t1l >>> 0) < (Wil >>> 0) ? 1 : 0);\n\n\t // t2 = sigma0 + maj\n\t var t2l = sigma0l + majl;\n\t var t2h = sigma0h + majh + ((t2l >>> 0) < (sigma0l >>> 0) ? 1 : 0);\n\n\t // Update working variables\n\t hh = gh;\n\t hl = gl;\n\t gh = fh;\n\t gl = fl;\n\t fh = eh;\n\t fl = el;\n\t el = (dl + t1l) | 0;\n\t eh = (dh + t1h + ((el >>> 0) < (dl >>> 0) ? 1 : 0)) | 0;\n\t dh = ch;\n\t dl = cl;\n\t ch = bh;\n\t cl = bl;\n\t bh = ah;\n\t bl = al;\n\t al = (t1l + t2l) | 0;\n\t ah = (t1h + t2h + ((al >>> 0) < (t1l >>> 0) ? 1 : 0)) | 0;\n\t }\n\n\t // Intermediate hash value\n\t H0l = H0.low = (H0l + al);\n\t H0.high = (H0h + ah + ((H0l >>> 0) < (al >>> 0) ? 1 : 0));\n\t H1l = H1.low = (H1l + bl);\n\t H1.high = (H1h + bh + ((H1l >>> 0) < (bl >>> 0) ? 1 : 0));\n\t H2l = H2.low = (H2l + cl);\n\t H2.high = (H2h + ch + ((H2l >>> 0) < (cl >>> 0) ? 1 : 0));\n\t H3l = H3.low = (H3l + dl);\n\t H3.high = (H3h + dh + ((H3l >>> 0) < (dl >>> 0) ? 1 : 0));\n\t H4l = H4.low = (H4l + el);\n\t H4.high = (H4h + eh + ((H4l >>> 0) < (el >>> 0) ? 1 : 0));\n\t H5l = H5.low = (H5l + fl);\n\t H5.high = (H5h + fh + ((H5l >>> 0) < (fl >>> 0) ? 1 : 0));\n\t H6l = H6.low = (H6l + gl);\n\t H6.high = (H6h + gh + ((H6l >>> 0) < (gl >>> 0) ? 1 : 0));\n\t H7l = H7.low = (H7l + hl);\n\t H7.high = (H7h + hh + ((H7l >>> 0) < (hl >>> 0) ? 1 : 0));\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 30] = Math.floor(nBitsTotal / 0x100000000);\n\t dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 31] = nBitsTotal;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Convert hash to 32-bit word array before returning\n\t var hash = this._hash.toX32();\n\n\t // Return final computed hash\n\t return hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t },\n\n\t blockSize: 1024/32\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA512('message');\n\t * var hash = CryptoJS.SHA512(wordArray);\n\t */\n\t C.SHA512 = Hasher._createHelper(SHA512);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA512(message, key);\n\t */\n\t C.HmacSHA512 = Hasher._createHmacHelper(SHA512);\n\t}());\n\n\n\treturn CryptoJS.SHA512;\n\n}));",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Base = C_lib.Base;\n\t var C_enc = C.enc;\n\t var Utf8 = C_enc.Utf8;\n\t var C_algo = C.algo;\n\n\t /**\n\t * HMAC algorithm.\n\t */\n\t var HMAC = C_algo.HMAC = Base.extend({\n\t /**\n\t * Initializes a newly created HMAC.\n\t *\n\t * @param {Hasher} hasher The hash algorithm to use.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @example\n\t *\n\t * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);\n\t */\n\t init: function (hasher, key) {\n\t // Init hasher\n\t hasher = this._hasher = new hasher.init();\n\n\t // Convert string to WordArray, else assume WordArray already\n\t if (typeof key == 'string') {\n\t key = Utf8.parse(key);\n\t }\n\n\t // Shortcuts\n\t var hasherBlockSize = hasher.blockSize;\n\t var hasherBlockSizeBytes = hasherBlockSize * 4;\n\n\t // Allow arbitrary length keys\n\t if (key.sigBytes > hasherBlockSizeBytes) {\n\t key = hasher.finalize(key);\n\t }\n\n\t // Clamp excess bits\n\t key.clamp();\n\n\t // Clone key for inner and outer pads\n\t var oKey = this._oKey = key.clone();\n\t var iKey = this._iKey = key.clone();\n\n\t // Shortcuts\n\t var oKeyWords = oKey.words;\n\t var iKeyWords = iKey.words;\n\n\t // XOR keys with pad constants\n\t for (var i = 0; i < hasherBlockSize; i++) {\n\t oKeyWords[i] ^= 0x5c5c5c5c;\n\t iKeyWords[i] ^= 0x36363636;\n\t }\n\t oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes;\n\n\t // Set initial values\n\t this.reset();\n\t },\n\n\t /**\n\t * Resets this HMAC to its initial state.\n\t *\n\t * @example\n\t *\n\t * hmacHasher.reset();\n\t */\n\t reset: function () {\n\t // Shortcut\n\t var hasher = this._hasher;\n\n\t // Reset\n\t hasher.reset();\n\t hasher.update(this._iKey);\n\t },\n\n\t /**\n\t * Updates this HMAC with a message.\n\t *\n\t * @param {WordArray|string} messageUpdate The message to append.\n\t *\n\t * @return {HMAC} This HMAC instance.\n\t *\n\t * @example\n\t *\n\t * hmacHasher.update('message');\n\t * hmacHasher.update(wordArray);\n\t */\n\t update: function (messageUpdate) {\n\t this._hasher.update(messageUpdate);\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Finalizes the HMAC computation.\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t *\n\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @example\n\t *\n\t * var hmac = hmacHasher.finalize();\n\t * var hmac = hmacHasher.finalize('message');\n\t * var hmac = hmacHasher.finalize(wordArray);\n\t */\n\t finalize: function (messageUpdate) {\n\t // Shortcut\n\t var hasher = this._hasher;\n\n\t // Compute HMAC\n\t var innerHash = hasher.finalize(messageUpdate);\n\t hasher.reset();\n\t var hmac = hasher.finalize(this._oKey.clone().concat(innerHash));\n\n\t return hmac;\n\t }\n\t });\n\t}());\n\n\n}));",";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./x64-core\"), require(\"./sha512\"), require(\"./hmac\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./x64-core\", \"./sha512\", \"./hmac\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\treturn CryptoJS.HmacSHA512;\n\n}));","import Hex from 'crypto-js/enc-hex';\nimport HmacSHA512 from 'crypto-js/hmac-sha512';\nimport { recognizerLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Compute HMAC signature for server authentication\n *\n * @param {Object} input Input data to compute HMAC\n * @param {String} applicationKey Current applicationKey\n * @param {String} hmacKey Current hmacKey\n * @return {String} Signature\n */\nexport function computeHmac(input, applicationKey, hmacKey) {\n const jsonInput = (typeof input === 'object') ? JSON.stringify(input) : input;\n logger.debug('The HmacSHA512 function is loaded', HmacSHA512);\n return new HmacSHA512(jsonInput, applicationKey + hmacKey).toString(Hex);\n}\n","/* eslint-disable no-unused-expressions */\nimport * as CryptoHelper from '../CryptoHelper';\n\n/**\n * Parse JSON String to Object\n * @param {Object} req JSON string result to be parsed\n * @return {Object} Parsed response\n */\nfunction parse(req) {\n let result;\n try {\n result = JSON.parse(req.responseText);\n } catch (e) {\n result = req.responseText;\n }\n return result;\n}\n\n/**\n * Transform object data request to a list of parameters\n * @param {Object} obj Query properties\n * @return {String} URI encoded string\n */\nfunction transformRequest(obj) {\n const str = [];\n Object.keys(obj).forEach((p) => {\n if ((typeof obj[p] !== 'undefined') &&\n (typeof obj[p] !== 'function')) {\n str.push(`${encodeURIComponent(p)}=${encodeURIComponent(obj[p])}`);\n }\n });\n return str.join('&');\n}\n\n/**\n * Send request to the network and return a promise\n * @param {String} type Request type (GET/POST)\n * @param {String} url URL\n * @param {Object} data Data to be sent\n * @param {RecognizerContext} [recognizerContext] Recognizer context\n * @param {String} apiVersion api version\n * @param {String} mimeType MimeType to be used\n * @return {Promise}\n */\nfunction xhr(type, url, data, recognizerContext = {}, apiVersion, mimeType) {\n const pptxMimeType = 'application/vnd.openxmlformats-officedocument.presentationml.presentation';\n const configuration = recognizerContext.editor.configuration;\n const recognizerContextRef = recognizerContext;\n return new Promise((resolve, reject) => {\n // We are writing some browser module here so the no import found should be ignored\n // eslint-disable-next-line no-undef\n const request = new XMLHttpRequest();\n request.open(type, url, true);\n request.withCredentials = true;\n if (apiVersion === 'V3') {\n request.setRequestHeader('Accept', 'application/json');\n request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;charset=UTF-8');\n } else if (apiVersion === 'V4') {\n switch (configuration.recognitionParams.type) {\n case 'TEXT':\n request.setRequestHeader('Accept', 'application/json,' + mimeType);\n break;\n case 'MATH':\n request.setRequestHeader('Accept', 'application/json,' + mimeType);\n break;\n case 'DIAGRAM':\n request.setRequestHeader('Accept', 'application/json,' + mimeType);\n break;\n case 'Raw Content':\n request.setRequestHeader('Accept', 'application/json,' + mimeType);\n break;\n default:\n break;\n }\n request.setRequestHeader('applicationKey', configuration.recognitionParams.server.applicationKey);\n request.setRequestHeader('hmac', CryptoHelper.computeHmac(JSON.stringify(data), configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey));\n request.setRequestHeader('Content-Type', 'application/json');\n }\n\n if (mimeType === pptxMimeType) {\n request.responseType = 'blob';\n }\n\n request.onerror = () => {\n reject({ msg: `Could not connect to ${url} connection error`, recoverable: false });\n };\n\n request.onload = () => {\n if (request.status >= 200 && request.status < 300) {\n mimeType === pptxMimeType ? resolve(request.response) : resolve(parse(request));\n } else {\n reject(new Error(request.responseText));\n }\n };\n\n request.onreadystatechange = () => {\n if (request.readyState === 4) {\n if (request.status >= 200 && request.status < 300) {\n mimeType === pptxMimeType ? resolve(request.response) : resolve(parse(request));\n }\n }\n };\n\n if (recognizerContextRef) {\n recognizerContextRef.idle = false;\n }\n if (apiVersion === 'V4') {\n request.send(JSON.stringify(data));\n } else {\n request.send(data ? transformRequest(data) : undefined);\n }\n }).then((res) => {\n if (recognizerContextRef) {\n recognizerContextRef.idle = true;\n }\n return res;\n });\n}\n\n/**\n * Get request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} params Query properties\n * @return {Promise}\n */\nexport function get(recognizerContext, url, params) {\n let queryUrl = url;\n if (params) {\n queryUrl += `?${transformRequest(params)}`;\n }\n return xhr('GET', queryUrl, undefined, recognizerContext);\n}\n\n/**\n * Post request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} data Data to be sent\n * @param {String} apiVersion api version\n * @param {String} mimeType MimeType to be used\n * @return {Promise}\n */\nexport function post(recognizerContext, url, data, apiVersion, mimeType) {\n return xhr('POST', url, data, recognizerContext, apiVersion, mimeType);\n}\n","import { recognizerLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Recognition context\n * @typedef {Object} RecognitionContext\n * @property {Model} model\n * @property {Callback} callback\n */\n\n/**\n * Recognizer context\n * @typedef {Object} RecognizerContext\n * @property {Editor} editor Get a reference to the current editor\n * @property {Array} recognitionContexts=[]\n * @property {Promise} initPromise=undefined\n * @property {RecognitionPositions} lastPositions Last recognition sent/received stroke indexes.\n * @property {String} url=undefined\n * @property {WebSocket} websocket=undefined\n * @property {function} websocketCallback=undefined\n * @property {function} reconnect=undefined\n * @property {Number} currentReconnectionCount=0\n * @property {String} sessionId=undefined\n * @property {Number} contentPartCount=0\n * @property {String} currentPartId=undefined\n * @property {String} instanceId=undefined\n * @property {Boolean} canUndo=false\n * @property {Boolean} canRedo=false\n * @property {Boolean} isEmpty=false\n * @property {Array} supportedImportMimeTypes=[]\n * @property {Number} undoStackIndex=0\n * @property {Number} possibleUndoCount=0\n * @property {Boolean} idle=true\n * @property {Boolean} initialized=false\n */\n/**\n * Create a new recognizer context\n * @param {Editor} editor\n * @return {RecognizerContext} An object that contains all recognizer context\n */\nexport function createEmptyRecognizerContext(editor) {\n const id = Date.now();\n logger.info('Create empty recognizer context with ID: ' + id);\n return {\n id,\n editor,\n // websocket\n recognitionContexts: [],\n initPromise: undefined,\n lastPositions: {\n lastSentPosition: -1,\n lastReceivedPosition: -1\n },\n url: undefined,\n websocket: undefined,\n websocketCallback: undefined,\n reconnect: undefined,\n currentReconnectionCount: 0,\n sessionId: undefined,\n contentPartCount: 0,\n currentPartId: undefined,\n instanceId: undefined,\n canUndo: false,\n canRedo: false,\n isEmpty: undefined,\n supportedImportMimeTypes: [],\n undoStackIndex: 0,\n possibleUndoCount: 0,\n idle: true,\n initialized: false\n };\n}\n\n/**\n * Return true if a reset is required, false otherwise\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Boolean}\n */\nexport function isResetRequired(recognizerContext, model) {\n if (recognizerContext.lastPositions) {\n return recognizerContext.lastPositions.lastSentPosition >= model.rawStrokes.length - 1;\n }\n return false;\n}\n\n/**\n * Update the recognition context positions\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {RecognitionPositions} positions Current recognition positions\n * @return {RecognizerContext}\n */\nexport function updateRecognitionPositions(recognizerContext, positions) {\n const recognizerContextRef = recognizerContext;\n if (positions) {\n recognizerContextRef.lastPositions.lastSentPosition = positions.lastSentPosition;\n recognizerContextRef.lastPositions.lastReceivedPosition = positions.lastReceivedPosition;\n }\n if (recognizerContextRef.lastPositions.lastSentPosition === recognizerContextRef.lastPositions.lastReceivedPosition === -1) {\n delete recognizerContextRef.instanceId;\n }\n return recognizerContextRef;\n}\n\n/**\n * Set the recognition context\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {RecognitionContext} recognitionContext\n * @return {RecognizerContext}\n */\nexport function setRecognitionContext(recognizerContext, recognitionContext) {\n const recognizerContextRef = recognizerContext;\n recognizerContextRef.recognitionContexts[0] = recognitionContext;\n return recognizerContextRef;\n}\n\n\n/**\n * Test if it is possible to reconnect\n * @param {RecognizerContext} recognizerContext\n * @return {Boolean} True if possible, false otherwise\n */\nexport function canReconnect(recognizerContext) {\n return recognizerContext.websocket.autoReconnect === true && recognizerContext.currentReconnectionCount <= recognizerContext.websocket.maxRetryCount;\n}\n\n/**\n * Test if it should attempt immediate reconnect\n * @param {RecognizerContext} recognizerContext\n * @return {Boolean} True if should attempt reconnect, false otherwise\n */\nexport function shouldAttemptImmediateReconnect(recognizerContext) {\n const recognizerContextRef = recognizerContext;\n return recognizerContextRef.websocket.autoReconnect === true && recognizerContextRef.currentReconnectionCount++ <= recognizerContextRef.websocket.maxRetryCount;\n}\n\n/**\n * Lost connection message\n * @type {{type: string}}\n */\nexport const LOST_CONNEXION_MESSAGE = { type: 'LOST_CONNECTION' };\n\n/**\n * Explicit close message\n * @type {String}\n */\nexport const CLOSE_RECOGNIZER_MESSAGE = 'CLOSE_RECOGNIZER';\n\n","import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as NetworkInterface from '../networkInterface';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\n\n/**\n * @param {String} suffixUrl\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @param {function(recognizerContext: RecognizerContext, model: Model): Object} buildMessage\n * @return {Promise.} Promise that return an updated model as a result\n */\nexport function postMessage(suffixUrl, recognizerContext, model, buildMessage) {\n const configuration = recognizerContext.editor.configuration;\n return NetworkInterface.post(recognizerContext, `${configuration.recognitionParams.server.scheme}://${configuration.recognitionParams.server.host}${suffixUrl}`, buildMessage(recognizerContext, model), 'V3')\n .then(\n (response) => {\n logger.debug('Cdkv3RestRecognizer success', response);\n const positions = recognizerContext.lastPositions;\n positions.lastReceivedPosition = positions.lastSentPosition;\n const recognizerContextReference = RecognizerContext.updateRecognitionPositions(recognizerContext, positions);\n if (response.instanceId) {\n recognizerContextReference.instanceId = response.instanceId;\n }\n return response;\n }\n );\n}\n","/**\n * Extract the exports\n * @param {Model} model Current model\n * @return {Object} exports\n */\nexport function extractExports(model) {\n // We recopy the recognized strokes to flag them as toBeRemove if they are scratched out or map with a symbol\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.textSegmentResult &&\n model.rawResults.exports.result.textSegmentResult.candidates) {\n return {\n CANDIDATES: model.rawResults.exports.result,\n TEXT: model.rawResults.exports.result.textSegmentResult.candidates[model.rawResults.exports.result.textSegmentResult.selectedCandidateIdx].label\n };\n }\n return {};\n}\n","import { recognizerLogger as logger } from '../configuration/LoggerConfig';\nimport * as InkModel from '../model/InkModel';\nimport * as RecognizerContext from '../model/RecognizerContext';\nimport Constants from '../configuration/Constants';\n\n/**\n * Triggers\n * @typedef {Object} Triggers\n * @property {Array} exportContent Supported triggers for exporting content.\n * @property {Array} [addStrokes] Supported triggers for adding strokes.\n */\n\n/**\n * Recognizer info\n * @typedef {Object} RecognizerInfo\n * @property {Array} types Supported recognition types (TEXT, MATH, SHAPE, MUSIC, ANALYZER).\n * @property {String} protocol Supported protocol (REST, WEBSOCKET).\n * @property {String} apiVersion Supported API version.\n * @property {Triggers} availableTriggers Supported triggers for this recognizer.\n */\n\n/**\n * Recognizer callback\n * @typedef {function} RecognizerCallback\n * @param {Object} [err] Error\n * @param {Model} [model] Result\n * @param {...String} [types] Result types\n */\n\n/**\n * Simple callback\n * @typedef {function} Callback\n * @param {Object} [err] Error\n * @param {Object} [res] Result\n */\n\n/**\n * Recognition service entry point\n * @typedef {Object} Recognizer\n * @property {function(): RecognizerInfo} getInfo Get information about the supported configuration (protocol, type, apiVersion, ...).\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} init Initialize recognition.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} clear Clear server context. Currently nothing to do there.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback)} [resize] Resize.\n * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)} [pointerEvents] Pointer Events.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback)} [import_] Import content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)} [convert] Convert.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [waitForIdle] Wait for idle.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback)} [setPenStyle] Set pen style.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback)} [setPenStyleClasses] Set pen style classes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback)} [setTheme] Set theme.\n */\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const modelRef = InkModel.resetModelPositions(model);\n logger.debug('Updated model', modelRef);\n const recognizerContextRef = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n recognizerContextRef.initPromise = Promise.resolve(modelRef);\n recognizerContextRef.initPromise\n .then((res) => {\n recognizerContextRef.initialized = true;\n logger.debug('Updated recognizer context', recognizerContextRef);\n callback(undefined, res, Constants.EventType.LOADED);\n });\n}\n\n/**\n * Reset server context. Currently nothing to do there.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function reset(recognizerContext, model, callback) {\n const modelRef = InkModel.resetModelPositions(model);\n logger.debug('Updated model', modelRef);\n const recognizerContextRef = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n delete recognizerContextRef.instanceId;\n logger.debug('Updated recognizer context', recognizerContextRef);\n callback(undefined, modelRef);\n}\n\n/**\n * Clear server context. Currently nothing to do there.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n const modelRef = InkModel.clearModel(model);\n logger.debug('Updated model', modelRef);\n const recognizerContextRef = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n delete recognizerContextRef.instanceId;\n logger.debug('Updated recognizer context', recognizerContextRef);\n callback(undefined, modelRef, Constants.EventType.CHANGED, Constants.EventType.EXPORTED, Constants.EventType.RENDERED);\n}\n\n/**\n * Close and free all resources that will no longer be used by the recognizer.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function close(recognizerContext, model, callback) {\n const recognizerContextRef = recognizerContext;\n recognizerContextRef.initialized = false;\n delete recognizerContextRef.instanceId;\n callback(undefined, model);\n}\n","/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\nimport * as Cdkv3CommonTextRecognizer from '../../common/v3/Cdkv3CommonTextRecognizer';\n\nexport { init, close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const textRestV3Configuration = {\n types: [Constants.RecognitionType.TEXT],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return textRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nexport function buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n inputUnits: [{\n textInputType: 'MULTI_LINE_TEXT',\n // As Rest TEXT recognition is non incremental wa add the already recognized strokes\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n }]\n };\n Object.assign(input, { textParameter: configuration.recognitionParams.v3.textParameter }); // Building the input with the suitable parameters\n\n logger.debug(`input.inputUnits[0].components size is ${input.inputUnits[0].components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n textInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.textInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestTextRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.exports = Cdkv3CommonTextRecognizer.extractExports(model);\n logger.debug('Cdkv3RestTextRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/text/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n","import { recognizerLogger as logger } from '../../configuration/LoggerConfig';\n\n/**\n * Extract the exports\n * @param {Model} model Current model\n * @return {Object} Recognition result\n */\nexport function extractExports(model) {\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.results &&\n model.rawResults.exports.result.results.length > 0) {\n return model.rawResults.exports.result.results\n .map((item) => {\n const res = {};\n if (Object.keys(item).includes('root')) {\n res[`${item.type}`] = item.root;\n } else {\n res[`${item.type}`] = item.value;\n }\n return res;\n })\n .reduce((a, b) => Object.assign(a, b), {});\n }\n return {};\n}\n","import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\n\n/**\n * Extract the recognized symbols\n * @param {Model} model Current model\n * @return {Array} Recognized symbols\n */\nexport function extractRecognizedSymbols(model) {\n // We recopy the recognized strokes to flag them as toBeRemove if they are scratched out or map with a symbol\n const strokeList = [...model.rawStrokes];\n\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.scratchOutResults &&\n (model.rawResults.exports.result.scratchOutResults.length > 0)) {\n const inkRanges = model.rawResults.exports.result.scratchOutResults\n .map(scratchOutResult => scratchOutResult.erasedInkRanges.concat(scratchOutResult.inkRanges))\n .reduce((a, b) => a.concat(b));\n return strokeList.filter((stroke, index) => !inkRanges.find(inkRange => inkRange.component === index));\n }\n return strokeList;\n}\n","/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as CdkCommonUtil from '../../common/CdkCommonUtil';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\nimport * as Cdkv3CommonMathRecognizer from '../../common/v3/Cdkv3CommonMathRecognizer';\n\nexport { init, close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const mathRestV3Configuration = {\n types: [Constants.RecognitionType.MATH],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return mathRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nfunction buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n // As Rest MATH recognition is non incremental we add the already recognized strokes\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n };\n Object.assign(input, configuration.recognitionParams.v3.mathParameter); // Building the input with the suitable parameters\n\n logger.debug(`input.components size is ${input.components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n mathInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.mathInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestMathRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.recognizedSymbols = Cdkv3CommonMathRecognizer.extractRecognizedSymbols(model);\n modelReference.exports = CdkCommonUtil.extractExports(model);\n logger.debug('Cdkv3RestMathRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n return Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/math/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n","import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as InkModel from '../../../model/InkModel';\n\n/**\n * Get style for the strokes matching the ink ranges\n * @param {Model} model\n * @param {Array} inkRanges\n * @return {{color: String, width: Number}} Style to apply\n */\nexport function getStyleFromInkRanges(model, inkRanges) {\n let strokes = model.rawStrokes;\n if (inkRanges && (inkRanges.length > 0)) {\n strokes = inkRanges\n .map(inkRange => InkModel.extractStrokesFromInkRange(model, inkRange.stroke ? inkRange.stroke : inkRange.firstStroke, inkRange.stroke ? inkRange.stroke : inkRange.lastStroke, inkRange.firstPoint, inkRange.lastPoint))\n .reduce((a, b) => a.concat(b));\n }\n // FIXME hack to apply the rendering param of the first element' stroke\n return {\n color: strokes[0].color,\n width: strokes[0].width\n };\n}\n\n/**\n * Extract recognized symbols from recognition output\n * @param {Model} model Current model\n * @param {Object} segment Shape recognition output\n * @return {Array} Recognized symbols\n */\nexport function extractShapeSymbols(model, segment) {\n if (segment.candidates && segment.candidates.length > 0) {\n const selectedCandidate = segment.candidates[segment.selectedCandidateIndex];\n switch (selectedCandidate.type) {\n case 'notRecognized':\n if (segment.inkRanges && segment.inkRanges.length > 0) {\n return segment.inkRanges\n .map(inkRange => InkModel.extractStrokesFromInkRange(model, inkRange.firstStroke, inkRange.lastStroke, inkRange.firstPoint, inkRange.lastPoint))\n .reduce((a, b) => a.concat(b));\n }\n return [];\n case 'recognizedShape':\n return selectedCandidate.primitives;\n default:\n return [];\n }\n }\n return [];\n}\n\n/**\n * Extract the recognized symbols\n * @param {Model} model Current model\n * @return {Array} Recognized symbols\n */\nexport function extractRecognizedSymbols(model) {\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.segments) {\n return model.rawResults.exports.result.segments\n .map((segment) => {\n const style = getStyleFromInkRanges(model, segment.inkRanges);\n return extractShapeSymbols(model, segment).map(primitive => Object.assign(primitive, style));\n })\n .reduce((a, b) => a.concat(b));\n }\n return [];\n}\n\n/**\n * Extract the exports\n * @param {Model} model Current model\n * @return {Object} exports\n */\nexport function extractExports(model) {\n // We recopy the recognized strokes to flag them as toBeRemove if they are scratched out or map with a symbol\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.segments) {\n return {\n SEGMENTS: model.rawResults.exports.result.segments\n };\n }\n return {};\n}\n","/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\nimport {\n extractShapeSymbols,\n getStyleFromInkRanges\n} from '../../common/v3/Cdkv3CommonShapeRecognizer';\n\nexport { init, close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const analyzerRestV3Configuration = {\n types: [Constants.RecognitionType.ANALYZER],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return analyzerRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nfunction buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n // Incremental\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n };\n Object.assign(input, { parameter: configuration.recognitionParams.v3.analyzerParameter }); // Building the input with the suitable parameters\n\n logger.debug(`input.components size is ${input.components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n analyzerInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.analyzerInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction extractSymbols(model, element) {\n const style = getStyleFromInkRanges(model, element.inkRanges);\n switch (element.elementType) {\n case 'table':\n return element.lines.map(line => Object.assign(line, style));\n case 'textLine':\n return [element].map(textLine => Object.assign(textLine, textLine.result.textSegmentResult.candidates[textLine.result.textSegmentResult.selectedCandidateIdx], style));\n case 'shape':\n return extractShapeSymbols(model, element).map(primitive => Object.assign(primitive, style));\n default:\n return [];\n }\n}\n\nfunction extractRecognizedSymbolsFromAnalyzerResult(model) {\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result) {\n return [...model.rawResults.exports.result.shapes, ...model.rawResults.exports.result.tables, ...model.rawResults.exports.result.textLines]\n .map(element => extractSymbols(model, element))\n .reduce((a, b) => a.concat(b));\n }\n return [];\n}\n\n/**\n * Extract the exports\n * @param {Model} model Current model\n * @return {Object} exports\n */\nfunction extractExports(model) {\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result) {\n return {\n ANALYSIS: model.rawResults.exports.result\n };\n }\n return {};\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestAnalyzerRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.recognizedSymbols = extractRecognizedSymbolsFromAnalyzerResult(model);\n modelReference.exports = extractExports(model);\n logger.debug('Cdkv3RestAnalyzerRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.CONVERTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n return Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/analyzer/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n","/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\nimport * as Cdkv3CommonShapeRecognizer from '../../common/v3/Cdkv3CommonShapeRecognizer';\n\nexport { init, close } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const shapeRestV3Configuration = {\n types: [Constants.RecognitionType.SHAPE],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return shapeRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nfunction buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n components: InkModel.extractPendingStrokes(model).map(stroke => StrokeComponent.toJSON(stroke))\n };\n Object.assign(input, configuration.recognitionParams.v3.shapeParameter); // Building the input with the suitable parameters\n\n logger.debug(`input.components size is ${input.components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n shapeInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.shapeInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction buildReset(recognizerContext, model) {\n return {\n instanceSessionId: recognizerContext ? recognizerContext.instanceId : undefined\n };\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestShapeRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.recognizedSymbols = Cdkv3CommonShapeRecognizer.extractRecognizedSymbols(model);\n modelReference.exports = Cdkv3CommonShapeRecognizer.extractExports(model);\n logger.debug('Cdkv3RestShapeRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.CONVERTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/shape/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n\n/**\n * Reset server context.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function reset(recognizerContext, model, callback) {\n const modelRef = InkModel.resetModelPositions(model);\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/shape/clearSessionId.json', recognizerContext, modelRef, buildReset)\n .then(res => callback(undefined, modelRef, Constants.EventType.IDLE))\n .catch(err => callback(err, modelRef));\n}\n\n/**\n * Do what is needed to clean the server context.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n const modelRef = InkModel.clearModel(InkModel.cloneModel(model));\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/shape/clearSessionId.json', recognizerContext, modelRef, buildReset)\n .then(res => callback(undefined, modelRef, Constants.EventType.CHANGED, Constants.EventType.EXPORTED, Constants.EventType.CONVERTED, Constants.EventType.IDLE))\n .catch(err => callback(err, modelRef));\n}\n","/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as CdkCommonUtil from '../../common/CdkCommonUtil';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\n\nexport { close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const musicRestV3Configuration = {\n types: [Constants.RecognitionType.MUSIC],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return musicRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nfunction buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n // As Rest MUSIC recognition is non incremental wa add the already recognized strokes\n components: []\n .concat(model.defaultSymbols, model.rawStrokes)\n .filter(symbol => symbol.type !== 'staff')\n .map((symbol) => {\n if (symbol.type === 'stroke') {\n return StrokeComponent.toJSON(symbol);\n }\n return symbol;\n })\n };\n const musicParameter = Object.assign({}, configuration.recognitionParams.v3.musicParameter);\n delete musicParameter.clef; // FIXME find a way to avoid this ugly hack\n Object.assign(input, musicParameter); // Building the input with the suitable parameters\n\n logger.debug(`input.components size is ${input.components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n musicInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.musicInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestMusicRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.exports = CdkCommonUtil.extractExports(model);\n logger.debug('Cdkv3RestMusicRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n}\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const modelRef = InkModel.resetModelPositions(model);\n logger.debug('Updated model', modelRef);\n const recognizerContextRef = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n recognizerContextRef.initPromise = Promise.resolve(modelRef);\n recognizerContextRef.initPromise\n .then((res) => {\n recognizerContextRef.initialized = true;\n logger.debug('Updated recognizer context', recognizerContextRef);\n callback(undefined, res, Constants.EventType.LOADED, Constants.EventType.RENDERED);\n });\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/music/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n","/* eslint-disable no-underscore-dangle */\nimport * as NetworkInterface from '../networkInterface';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as DefaultTheme from '../../../configuration/DefaultTheme';\nimport * as DefaultPenStyle from '../../../configuration/DefaultPenStyle';\n\nexport { init, close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const iinkRestConfiguration = {\n types: [Constants.RecognitionType.TEXT, Constants.RecognitionType.DIAGRAM, Constants.RecognitionType.MATH, Constants.RecognitionType.RAWCONTENT],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V4',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return iinkRestConfiguration;\n}\n\n\n/**\n * @param {String} suffixUrl\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @param {function(recognizerContext: RecognizerContext, model: Model, conversionState: String): Object} buildMessage\n * @param {String} conversionState\n * @param {String} mimeType\n * @return {Promise.} Promise that return an updated model as a result\n */\nexport function postMessage(suffixUrl, recognizerContext, model, buildMessage, conversionState = '', mimeType) {\n const configuration = recognizerContext.editor.configuration;\n return NetworkInterface.post(recognizerContext, `${configuration.recognitionParams.server.scheme}://${configuration.recognitionParams.server.host}${suffixUrl}`, buildMessage(recognizerContext, model, conversionState), 'V4', mimeType).then((response) => {\n logger.debug('iinkRestRecognizer success', response);\n const positions = recognizerContext.lastPositions;\n positions.lastReceivedPosition = positions.lastSentPosition;\n const recognizerContextReference = RecognizerContext.updateRecognitionPositions(recognizerContext, positions);\n if (response.instanceId) {\n recognizerContextReference.instanceId = response.instanceId;\n }\n return response;\n });\n}\n\nfunction buildTextConf(configuration) {\n return {\n text: configuration.recognitionParams.v4.text,\n lang: configuration.recognitionParams.v4.lang,\n export: configuration.recognitionParams.v4.export\n };\n}\n\nfunction buildMathConf(configuration) {\n return {\n math: configuration.recognitionParams.v4.math,\n lang: configuration.recognitionParams.v4.lang,\n export: configuration.recognitionParams.v4.export\n };\n}\n\nfunction buildDiagramConf(configuration) {\n return {\n diagram: configuration.recognitionParams.v4.diagram,\n lang: configuration.recognitionParams.v4.lang,\n export: configuration.recognitionParams.v4.export\n };\n}\n\nfunction buildRawContentConf(configuration) {\n return {\n 'raw-content': {\n recognition: configuration.recognitionParams.v4['raw-content'].recognition\n },\n lang: configuration.recognitionParams.v4.lang,\n export: configuration.recognitionParams.v4.export\n };\n}\n\nfunction buildData(recognizerContext, model, conversionState) {\n const configuration = recognizerContext.editor.configuration;\n let dataConf;\n\n if (configuration.recognitionParams.type === 'TEXT') {\n dataConf = buildTextConf(configuration);\n } else if (configuration.recognitionParams.type === 'MATH') {\n dataConf = buildMathConf(configuration);\n } else if (configuration.recognitionParams.type === 'DIAGRAM') {\n dataConf = buildDiagramConf(configuration);\n } else if (configuration.recognitionParams.type === 'Raw Content') {\n dataConf = buildRawContentConf(configuration);\n }\n\n const newStrokes = [];\n model.strokeGroups.forEach((group) => {\n const newPenStyle = JSON.stringify(group.penStyle) === '{}' ? null : DefaultPenStyle.toCSS(group.penStyle);\n const newGroup = {\n penStyle: newPenStyle,\n strokes: group.strokes.map(stroke => StrokeComponent.toJSONV4(stroke))\n };\n newStrokes.push(newGroup);\n });\n\n const contentType = configuration.recognitionParams.type === 'Raw Content' ? 'Raw Content' : configuration.recognitionParams.type.charAt(0).toUpperCase() + configuration.recognitionParams.type.slice(1).toLowerCase();\n\n const data = {\n configuration: dataConf,\n xDPI: 96,\n yDPI: 96,\n contentType,\n height: recognizerContext.editor.domElement.clientHeight,\n width: recognizerContext.editor.domElement.clientWidth,\n theme: DefaultTheme.toCSS(recognizerContext.editor.theme),\n strokeGroups: newStrokes\n };\n\n if (conversionState) {\n data.conversionState = 'DIGITAL_EDIT';\n }\n\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction extractExports(configuration, mimeType, res) {\n const exports = {};\n if (mimeType === 'application/vnd.myscript.jiix') {\n exports['application/vnd.myscript.jiix'] = res;\n }\n if (configuration.recognitionParams.type === 'TEXT' && mimeType === 'text/plain') {\n exports['text/plain'] = res;\n } else if (configuration.recognitionParams.type === 'DIAGRAM') {\n if (mimeType === 'image/svg+xml') {\n exports['image/svg+xml'] = res;\n }\n if (mimeType === 'application/vnd.openxmlformats-officedocument.presentationml.presentation') {\n exports['application/vnd.openxmlformats-officedocument.presentationml.presentation'] = res;\n }\n if (mimeType === 'application/vnd.microsoft.art-gvml-clipformat') {\n exports['application/vnd.microsoft.art-gvml-clipformat'] = res;\n }\n } else if (configuration.recognitionParams.type === 'MATH') {\n if (mimeType === 'application/x-latex') {\n exports['application/x-latex'] = res;\n }\n if (mimeType === 'application/mathml+xml') {\n exports['application/mathml+xml'] = res;\n }\n if (mimeType === 'application/mathofficeXML') {\n exports['application/mathofficeXML'] = res;\n }\n }\n return exports;\n}\n\nfunction resultCallback(model, configuration, res, mimeType, callback) {\n logger.debug('iinkRestRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n if (modelReference.exports) {\n Object.assign(modelReference.exports, extractExports(configuration, mimeType, res));\n } else {\n modelReference.exports = extractExports(configuration, mimeType, res);\n }\n logger.debug('iinkRestRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n const configuration = recognizerContext.editor.configuration;\n\n function callPostMessage(mimeType) {\n postMessage('/api/v4.0/iink/batch', recognizerContext, model, buildData, configuration.restConversionState, mimeType)\n .then(res => resultCallback(model, configuration, res, mimeType, callback))\n .catch(err => callback(err, model));\n }\n\n if (configuration.recognitionParams.type === 'TEXT') {\n configuration.recognitionParams.v4.text.mimeTypes.forEach((mimeType) => {\n callPostMessage(mimeType);\n });\n } else if (configuration.recognitionParams.type === 'DIAGRAM') {\n configuration.recognitionParams.v4.diagram.mimeTypes.forEach((mimeType) => {\n callPostMessage(mimeType);\n });\n } else if (configuration.recognitionParams.type === 'MATH') {\n configuration.recognitionParams.v4.math.mimeTypes.forEach((mimeType) => {\n callPostMessage(mimeType);\n });\n } else if (configuration.recognitionParams.type === 'Raw Content') {\n configuration.recognitionParams.v4['raw-content'].mimeTypes.forEach((mimeType) => {\n callPostMessage(mimeType);\n });\n }\n}\n\n/**\n * Ask for conversion using DIGITAL_EDIT\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function convert(recognizerContext, model, callback) {\n const configuration = recognizerContext.editor.configuration;\n postMessage('/api/v4.0/iink/batch', recognizerContext, model, buildData, 'DIGITAL_EDIT')\n .then(res => resultCallback(model, configuration, res, callback))\n .catch(err => callback(err, model));\n}\n","import { recognizerLogger as logger } from '../../configuration/LoggerConfig';\nimport * as RecognizerContext from '../../model/RecognizerContext';\n\nfunction infinitePing(websocket) {\n const websocketRef = websocket;\n websocketRef.pingLostCount++;\n if (websocketRef.pingLostCount > websocketRef.maxPingLost) {\n websocket.close(1000, 'PING_LOST');\n } else if (websocketRef.readyState <= 1) {\n setTimeout(() => {\n if (websocketRef.readyState <= 1) {\n websocketRef.send(JSON.stringify({ type: 'ping' }));\n infinitePing(websocketRef);\n }\n }, websocketRef.pingDelay);\n }\n}\n\n/**\n * Attach all socket attributes helping managing server connexion\n * @param {WebSocket} websocket Current WebSocket\n * @param {RecognizerContext} recognizerContext\n */\nfunction addWebsocketAttributes(websocket, recognizerContext) {\n const websocketConfiguration = recognizerContext.editor.configuration.recognitionParams.server.websocket;\n const socket = websocket;\n socket.start = new Date();\n socket.autoReconnect = websocketConfiguration.autoReconnect;\n socket.maxRetryCount = websocketConfiguration.maxRetryCount;\n socket.pingEnabled = websocketConfiguration.pingEnabled;\n socket.pingDelay = websocketConfiguration.pingDelay;\n socket.maxPingLost = websocketConfiguration.maxPingLostCount;\n socket.pingLostCount = 0;\n socket.recognizerContext = recognizerContext;\n}\n\n/**\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @return {WebSocket} Opened WebSocket\n */\nexport function openWebSocket(recognizerContext) {\n let socket;\n try {\n // eslint-disable-next-line no-undef\n socket = new WebSocket(recognizerContext.url);\n } catch (error) {\n logger.error('Unable to open websocket, Check the host and your connectivity');\n }\n addWebsocketAttributes(socket, recognizerContext);\n if (socket.pingEnabled) {\n infinitePing(socket);\n }\n\n socket.onopen = (e) => {\n logger.trace('onOpen');\n recognizerContext.websocketCallback(e);\n };\n\n socket.onclose = (e) => {\n logger.trace('onClose', new Date() - socket.start);\n recognizerContext.websocketCallback(e);\n };\n\n socket.onerror = (e) => {\n logger.trace('onError');\n recognizerContext.websocketCallback(e);\n };\n\n socket.onmessage = (e) => {\n logger.trace('onMessage');\n socket.pingLostCount = 0;\n const parsedMessage = JSON.parse(e.data);\n if (parsedMessage.type !== 'pong') {\n const callBackParam = {\n type: e.type,\n data: JSON.parse(e.data)\n };\n recognizerContext.websocketCallback(callBackParam);\n }\n };\n\n return socket;\n}\n\n/**\n * Send data message\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Object} message Data message\n */\nexport function send(recognizerContext, message) {\n const recognizerContextRef = recognizerContext;\n recognizerContextRef.idle = false;\n\n const websocket = recognizerContextRef.websocket;\n if (websocket.readyState <= 1) {\n websocket.send(JSON.stringify(message));\n logger.debug(`${message.type} message sent`, message);\n } else {\n throw RecognizerContext.LOST_CONNEXION_MESSAGE;\n }\n}\n\n/**\n * Close the websocket\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Number} code Exit code\n * @param {String} reason Exit reason\n */\nexport function close(recognizerContext, code, reason) {\n const websocket = recognizerContext.websocket;\n if (websocket && websocket.readyState < 2) {\n websocket.close(code, reason);\n }\n}\n","import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as NetworkWSInterface from '../networkWSInterface';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport Constants from '../../../configuration/Constants';\n\n/**\n * A CDK v3 websocket dialog have this sequence :\n * ---------- Client ------------------------------------- Server ----------------------------------\n * init (send the applicationKey) ================>\n * <=========== hmacChallenge\n * answerToHmacChallenge (send the hmac) =========>\n * <=========== init\n * start (send the parameters and first strokes ) ===============>\n * <=========== recognition with instance id\n * continue (send the other strokes ) ============>\n * <=========== recognition\n */\n\nfunction buildHmacMessage(configuration, message) {\n return {\n type: 'hmac',\n applicationKey: configuration.recognitionParams.server.applicationKey,\n challenge: message.data.challenge,\n hmac: CryptoHelper.computeHmac(message.data.challenge, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey)\n };\n}\n\nfunction buildInitMessage(configuration) {\n return {\n type: 'applicationKey',\n applicationKey: configuration.recognitionParams.server.applicationKey\n };\n}\n\n/**\n * This function bind the right behaviour when a message is receive by the websocket.\n * @param {DestructuredPromise} destructuredPromise\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @return {function} Callback to handle WebSocket results\n */\nexport function buildWebSocketCallback(destructuredPromise, recognizerContext) {\n return (message) => {\n const recognizerContextRef = recognizerContext;\n // Handle websocket messages\n logger.trace(`${message.type} websocket callback`, message);\n const recognitionContext = recognizerContext.recognitionContexts[recognizerContext.recognitionContexts.length - 1];\n logger.debug('Current recognition context', recognitionContext);\n\n switch (message.type) {\n case 'open' :\n NetworkWSInterface.send(recognizerContext, buildInitMessage(recognizerContext.editor.configuration));\n break;\n case 'message' :\n logger.trace('Receiving message', message.data.type);\n switch (message.data.type) {\n case 'hmacChallenge' :\n NetworkWSInterface.send(recognizerContext, buildHmacMessage(recognizerContext.editor.configuration, message));\n break;\n case 'init' :\n recognizerContextRef.currentReconnectionCount = 0;\n recognizerContextRef.idle = true;\n recognizerContextRef.initialized = true;\n recognitionContext.callback(undefined, message.data);\n destructuredPromise.resolve(recognitionContext);\n break;\n case 'reset' :\n recognizerContextRef.idle = true;\n recognitionContext.callback(undefined, message.data);\n break;\n case 'mathResult' :\n case 'textResult' :\n recognizerContextRef.idle = true;\n if (message.data.instanceId) {\n if (recognizerContext.instanceId && recognizerContext.instanceId !== message.data.instanceId) {\n logger.debug(`Instance id switch from ${recognizerContext.instanceId} to ${message.data.instanceId} this is suspicious`);\n }\n recognizerContextRef.instanceId = message.data.instanceId;\n logger.debug('Memorizing instance id', message.data.instanceId);\n }\n recognitionContext.callback(undefined, message.data);\n break;\n case 'error' :\n logger.debug('Error detected stopping all recognition', message);\n if (recognitionContext) {\n recognitionContext.callback(message.data);\n } else {\n destructuredPromise.reject(Object.assign({}, message.data, { recoverable: false }));\n }\n break;\n default :\n logger.warn('This is something unexpected in current recognizer. Not the type of message we should have here.', message);\n }\n break;\n case 'error' :\n logger.debug('Error detected stopping all recognition', message);\n if (recognitionContext) {\n recognitionContext.callback(Object.assign({}, message, { recoverable: false }));\n } else {\n destructuredPromise.reject(Object.assign({}, message, { recoverable: false }));\n }\n break;\n case 'close' :\n logger.debug('Close detected stopping all recognition', message);\n recognizerContextRef.initialized = false;\n if (recognitionContext) {\n recognitionContext.callback(undefined, message);\n } else {\n destructuredPromise.reject(message);\n }\n break;\n default :\n logger.warn('This is something unexpected in current recognizer. Not the type of message we should have here.', message);\n }\n };\n}\n","/**\n * @typedef {Object} DestructuredPromise\n * @property {Promise} promise\n * @property {function(value: Object)} resolve\n * @property {function(reason: Object)} reject\n */\n\n/**\n * @return {DestructuredPromise}\n */\nexport function destructurePromise() {\n let resolve;\n let reject;\n const initPromise = new Promise(\n (resolveParam, rejectParam) => {\n resolve = resolveParam;\n reject = rejectParam;\n });\n return { promise: initPromise, resolve, reject };\n}\n","import { recognizerLogger as logger } from '../../configuration/LoggerConfig';\nimport Constants from '../../configuration/Constants';\nimport * as NetworkWSInterface from './networkWSInterface';\nimport * as PromiseHelper from '../../util/PromiseHelper';\nimport * as InkModel from '../../model/InkModel';\nimport * as RecognizerContext from '../../model/RecognizerContext';\n\nfunction buildUrl(configuration, suffixUrl) {\n const scheme = (configuration.recognitionParams.server.scheme === 'https') ? 'wss' : 'ws';\n return `${scheme}://${configuration.recognitionParams.server.host}${suffixUrl}`;\n}\n\nconst commonCallback = (model, err, res, callback) => {\n if (res && res.type === 'close') {\n return callback(err, model, Constants.EventType.CHANGED);\n }\n return callback(err, model);\n};\n\n/**\n * Build websocket function\n * @typedef {function} BuildWebSocketFunction\n * @param {DestructuredPromise} destructuredPromise\n * @param {RecognizerContext} recognizerContext\n * @return {Callback}\n */\n\n/**\n * Init the websocket recognizer.\n * Open the connexion and proceed to the hmac challenge.\n * @param {String} suffixUrl\n * @param {RecognizerContext} recognizerContext\n * @param {BuildWebSocketFunction} buildWebSocketCallback\n * @param {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} reconnect\n * @return {Promise} Fulfilled when the init phase is over.\n */\nexport function init(suffixUrl, recognizerContext, buildWebSocketCallback, reconnect) {\n const recognitionContext = recognizerContext.recognitionContexts[0];\n const recognizerContextReference = RecognizerContext.updateRecognitionPositions(recognizerContext, recognitionContext.model.lastPositions);\n recognizerContextReference.url = buildUrl(recognizerContext.editor.configuration, suffixUrl);\n recognizerContextReference.reconnect = reconnect;\n\n const destructuredInitPromise = PromiseHelper.destructurePromise();\n recognizerContextReference.initPromise = destructuredInitPromise.promise;\n\n logger.debug('Opening the websocket for context ', recognizerContext);\n recognizerContextReference.websocketCallback = buildWebSocketCallback(destructuredInitPromise, recognizerContextReference);\n recognizerContextReference.websocket = NetworkWSInterface.openWebSocket(recognizerContextReference);\n return recognizerContextReference.initPromise.then((res) => {\n logger.debug('Init over', res);\n return res;\n });\n}\n\nexport function retry(func, recognizerContext, model, callback, ...params) {\n if (RecognizerContext.shouldAttemptImmediateReconnect(recognizerContext) && recognizerContext.reconnect) {\n logger.info('Attempting a retry', recognizerContext.currentReconnectionCount);\n recognizerContext.reconnect(recognizerContext, model, (err, res) => {\n if (!err) {\n func(recognizerContext, res, callback, ...params);\n } else {\n logger.error('Failed retry', err);\n retry(func, recognizerContext, model, callback, ...params);\n }\n });\n } else {\n callback('Unable to reconnect', model);\n }\n}\n\n/**\n * @param {RecognizerContext} recognizerContext\n * @param {function(params: ...Object): Object} buildMessage\n * @param {...Object} params\n * @return {Promise}\n */\nexport function sendMessage(recognizerContext, buildMessage, ...params) {\n return recognizerContext.initPromise\n .then(() => {\n logger.trace('Init was done. Sending message');\n const message = buildMessage(...params);\n if (message) {\n NetworkWSInterface.send(recognizerContext, message);\n const positions = recognizerContext.recognitionContexts[0].model.lastPositions;\n if (positions) {\n RecognizerContext.updateRecognitionPositions(recognizerContext, positions);\n }\n } else {\n logger.warn('empty message');\n }\n });\n}\n\n/**\n * Do what is needed to clean the server context.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n const modelRef = InkModel.clearModel(model);\n const recognizerContextReference = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n if (recognizerContextReference && recognizerContextReference.websocket) {\n // We have to send again all strokes after a clear.\n delete recognizerContextReference.instanceId;\n try {\n NetworkWSInterface.send(recognizerContextReference, { type: 'reset' });\n } catch (sendFailedException) {\n // To force failure without breaking the flow\n // FIXME not working at all\n recognizerContextReference.websocketCallback(PromiseHelper.destructurePromise(), recognizerContextReference, model);\n }\n }\n // We do not keep track of the success of clear.\n callback(undefined, modelRef);\n}\n\n/**\n * Close and free all resources that will no longer be used by the recognizer.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @param {RecognizerCallback} callback\n */\nexport function close(recognizerContext, model, callback) {\n const recognitionContext = {\n model,\n callback: (err, res) => commonCallback(model, err, res, callback)\n };\n const recognizerContextRef = recognizerContext;\n\n recognizerContext.initPromise\n .then(() => {\n recognizerContextRef.recognitionContexts[0] = recognitionContext;\n return recognizerContextRef;\n })\n .then(context => NetworkWSInterface.close(context, 1000, RecognizerContext.CLOSE_RECOGNIZER_MESSAGE));\n}\n","import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as Cdkv3WSWebsocketBuilder from './Cdkv3WSBuilder';\nimport * as CdkWSRecognizerUtil from '../CdkWSRecognizerUtil';\nimport * as DefaultRecognizer from '../../DefaultRecognizer';\nimport * as CdkCommonUtil from '../../common/CdkCommonUtil';\nimport * as Cdkv3CommonMathRecognizer from '../../common/v3/Cdkv3CommonMathRecognizer';\n\nexport { close } from '../CdkWSRecognizerUtil';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const mathWebSocketV3Configuration = {\n types: [Constants.RecognitionType.MATH],\n protocol: Constants.Protocol.WEBSOCKET,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [Constants.Trigger.POINTER_UP]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return mathWebSocketV3Configuration;\n}\n\nfunction buildMathInput(recognizerContext, model) {\n InkModel.updateModelSentPosition(model);\n if (recognizerContext.lastPositions.lastSentPosition < 0) {\n const configuration = recognizerContext.editor.configuration;\n return {\n type: 'start',\n parameters: configuration.recognitionParams.v3.mathParameter,\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n };\n }\n\n return {\n type: 'continue',\n components: InkModel.extractPendingStrokes(model, -1).map(stroke => StrokeComponent.toJSON(stroke))\n };\n}\n\nfunction buildResetMessage(model) {\n InkModel.resetModelPositions(model);\n return {\n type: 'reset'\n };\n}\n\nconst mathCallback = (model, err, res, callback) => {\n if (res) {\n if (res.type === 'init') {\n return callback(err, model, Constants.EventType.LOADED, Constants.EventType.IDLE);\n }\n if (res.type === 'close') {\n return callback(err, model, Constants.EventType.CHANGED);\n }\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.exports = CdkCommonUtil.extractExports(modelReference);\n modelReference.recognizedSymbols = Cdkv3CommonMathRecognizer.extractRecognizedSymbols(modelReference);\n return callback(err, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n }\n return callback(err, model);\n};\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model: InkModel.resetModelPositions(model),\n callback: (err, res) => mathCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.init('/api/v3.0/recognition/ws/math', recognizerContextRef, Cdkv3WSWebsocketBuilder.buildWebSocketCallback, init)\n .catch((err) => {\n if (RecognizerContext.shouldAttemptImmediateReconnect(recognizerContext) && recognizerContext.reconnect) {\n logger.info('Attempting a reconnect', recognizerContext.currentReconnectionCount);\n recognizerContext.reconnect(recognizerContext, model, callback);\n } else {\n logger.error('Unable to init', err);\n callback(err, model);\n }\n });\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\n// eslint-disable-next-line no-underscore-dangle\nexport function export_(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => mathCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildMathInput, recognizerContext, model)\n .catch(exception => CdkWSRecognizerUtil.retry(export_, recognizerContext, model, callback));\n}\n\n/**\n * Reset the recognition context\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function reset(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => mathCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildResetMessage, model)\n .catch(exception => CdkWSRecognizerUtil.retry(reset, recognizerContext, model, callback));\n}\n\n/**\n * Clear server context. Currently nothing to do there.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n DefaultRecognizer.clear(recognizerContext, model, (err, res, ...types) => {\n reset(recognizerContext, res, (err1, res1) => logger.trace('Session reset'));\n callback(err, res, ...types);\n });\n}\n","import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as Cdkv3WSWebsocketBuilder from './Cdkv3WSBuilder';\nimport * as CdkWSRecognizerUtil from '../CdkWSRecognizerUtil';\nimport * as DefaultRecognizer from '../../DefaultRecognizer';\nimport * as Cdkv3CommonTextRecognizer from '../../common/v3/Cdkv3CommonTextRecognizer';\n\nexport { close } from '../CdkWSRecognizerUtil';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const textWebSocketV3Configuration = {\n types: [Constants.RecognitionType.TEXT],\n protocol: Constants.Protocol.WEBSOCKET,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [Constants.Trigger.POINTER_UP]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return textWebSocketV3Configuration;\n}\n\nfunction buildTextInput(recognizerContext, model) {\n InkModel.updateModelSentPosition(model);\n if (recognizerContext.lastPositions.lastSentPosition < 0) {\n const configuration = recognizerContext.editor.configuration;\n return {\n type: 'start',\n textParameter: configuration.recognitionParams.v3.textParameter,\n inputUnits: [{\n textInputType: 'MULTI_LINE_TEXT',\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n }]\n };\n }\n\n return {\n type: 'continue',\n inputUnits: [{\n textInputType: 'MULTI_LINE_TEXT',\n components: InkModel.extractPendingStrokes(model, -1).map(stroke => StrokeComponent.toJSON(stroke))\n }]\n };\n}\n\nfunction buildResetMessage(model) {\n InkModel.resetModelPositions(model);\n return {\n type: 'reset'\n };\n}\n\nconst textCallback = (model, err, res, callback) => {\n if (res) {\n if (res.type === 'init') {\n return callback(err, model, Constants.EventType.LOADED, Constants.EventType.IDLE);\n }\n if (res.type === 'close') {\n return callback(err, model, Constants.EventType.CHANGED);\n }\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.exports = Cdkv3CommonTextRecognizer.extractExports(model);\n return callback(err, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n }\n return callback(err, model);\n};\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model: InkModel.resetModelPositions(model),\n callback: (err, res) => textCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.init('/api/v3.0/recognition/ws/text', recognizerContextRef, Cdkv3WSWebsocketBuilder.buildWebSocketCallback, init)\n .catch((err) => {\n if (RecognizerContext.shouldAttemptImmediateReconnect(recognizerContext) && recognizerContext.reconnect) {\n logger.info('Attempting a reconnect', recognizerContext.currentReconnectionCount);\n recognizerContext.reconnect(recognizerContext, model, callback);\n } else {\n logger.error('Unable to init', err);\n callback(err, model);\n }\n });\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\n// eslint-disable-next-line no-underscore-dangle\nexport function export_(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => textCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildTextInput, recognizerContext, model)\n .catch(exception => CdkWSRecognizerUtil.retry(export_, recognizerContext, model, callback));\n}\n\n/**\n * Reset the recognition context\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function reset(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => textCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildResetMessage, model)\n .catch(exception => CdkWSRecognizerUtil.retry(reset, recognizerContext, model, callback));\n}\n\n/**\n * Clear server context. Currently nothing to do there.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n DefaultRecognizer.clear(recognizerContext, model, (err, res, ...types) => {\n reset(recognizerContext, res, (err1, res1) => logger.trace('Session reset'));\n callback(err, res, ...types);\n });\n}\n","/*\n * UUID-js: A js library to generate and parse UUIDs, TimeUUIDs and generate\n * TimeUUID based on dates for range selections.\n * @see http://www.ietf.org/rfc/rfc4122.txt\n **/\n\nfunction UUIDjs() {\n};\n\nUUIDjs.maxFromBits = function(bits) {\n return Math.pow(2, bits);\n};\n\nUUIDjs.limitUI04 = UUIDjs.maxFromBits(4);\nUUIDjs.limitUI06 = UUIDjs.maxFromBits(6);\nUUIDjs.limitUI08 = UUIDjs.maxFromBits(8);\nUUIDjs.limitUI12 = UUIDjs.maxFromBits(12);\nUUIDjs.limitUI14 = UUIDjs.maxFromBits(14);\nUUIDjs.limitUI16 = UUIDjs.maxFromBits(16);\nUUIDjs.limitUI32 = UUIDjs.maxFromBits(32);\nUUIDjs.limitUI40 = UUIDjs.maxFromBits(40);\nUUIDjs.limitUI48 = UUIDjs.maxFromBits(48);\n\n// Returns a random integer between min and max\n// Using Math.round() will give you a non-uniform distribution!\n// @see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/random\nfunction getRandomInt(min, max) {\n return Math.floor(Math.random() * (max - min + 1)) + min;\n}\n\nUUIDjs.randomUI04 = function() {\n return getRandomInt(0, UUIDjs.limitUI04-1);\n};\nUUIDjs.randomUI06 = function() {\n return getRandomInt(0, UUIDjs.limitUI06-1);\n};\nUUIDjs.randomUI08 = function() {\n return getRandomInt(0, UUIDjs.limitUI08-1);\n};\nUUIDjs.randomUI12 = function() {\n return getRandomInt(0, UUIDjs.limitUI12-1);\n};\nUUIDjs.randomUI14 = function() {\n return getRandomInt(0, UUIDjs.limitUI14-1);\n};\nUUIDjs.randomUI16 = function() {\n return getRandomInt(0, UUIDjs.limitUI16-1);\n};\nUUIDjs.randomUI32 = function() {\n return getRandomInt(0, UUIDjs.limitUI32-1);\n};\nUUIDjs.randomUI40 = function() {\n return (0 | Math.random() * (1 << 30)) + (0 | Math.random() * (1 << 40 - 30)) * (1 << 30);\n};\nUUIDjs.randomUI48 = function() {\n return (0 | Math.random() * (1 << 30)) + (0 | Math.random() * (1 << 48 - 30)) * (1 << 30);\n};\n\nUUIDjs.paddedString = function(string, length, z) {\n string = String(string);\n z = (!z) ? '0' : z;\n var i = length - string.length;\n for (; i > 0; i >>>= 1, z += z) {\n if (i & 1) {\n string = z + string;\n }\n }\n return string;\n};\n\nUUIDjs.prototype.fromParts = function(timeLow, timeMid, timeHiAndVersion, clockSeqHiAndReserved, clockSeqLow, node) {\n this.version = (timeHiAndVersion >> 12) & 0xF;\n this.hex = UUIDjs.paddedString(timeLow.toString(16), 8)\n + '-'\n + UUIDjs.paddedString(timeMid.toString(16), 4)\n + '-'\n + UUIDjs.paddedString(timeHiAndVersion.toString(16), 4)\n + '-'\n + UUIDjs.paddedString(clockSeqHiAndReserved.toString(16), 2)\n + UUIDjs.paddedString(clockSeqLow.toString(16), 2)\n + '-'\n + UUIDjs.paddedString(node.toString(16), 12);\n return this;\n};\n\nUUIDjs.prototype.toString = function() {\n return this.hex;\n};\nUUIDjs.prototype.toURN = function() {\n return 'urn:uuid:' + this.hex;\n};\n\nUUIDjs.prototype.toBytes = function() {\n var parts = this.hex.split('-');\n var ints = [];\n var intPos = 0;\n for (var i = 0; i < parts.length; i++) {\n for (var j = 0; j < parts[i].length; j+=2) {\n ints[intPos++] = parseInt(parts[i].substr(j, 2), 16);\n }\n }\n return ints;\n};\n\nUUIDjs.prototype.equals = function(uuid) {\n if (!(uuid instanceof UUID)) {\n return false;\n }\n if (this.hex !== uuid.hex) {\n return false;\n }\n return true;\n};\n\nUUIDjs.getTimeFieldValues = function(time) {\n var ts = time - Date.UTC(1582, 9, 15);\n var hm = ((ts / 0x100000000) * 10000) & 0xFFFFFFF;\n return { low: ((ts & 0xFFFFFFF) * 10000) % 0x100000000,\n mid: hm & 0xFFFF, hi: hm >>> 16, timestamp: ts };\n};\n\nUUIDjs._create4 = function() {\n return new UUIDjs().fromParts(\n UUIDjs.randomUI32(),\n UUIDjs.randomUI16(),\n 0x4000 | UUIDjs.randomUI12(),\n 0x80 | UUIDjs.randomUI06(),\n UUIDjs.randomUI08(),\n UUIDjs.randomUI48()\n );\n};\n\nUUIDjs._create1 = function() {\n var now = new Date().getTime();\n var sequence = UUIDjs.randomUI14();\n var node = (UUIDjs.randomUI08() | 1) * 0x10000000000 + UUIDjs.randomUI40();\n var tick = UUIDjs.randomUI04();\n var timestamp = 0;\n var timestampRatio = 1/4;\n\n if (now != timestamp) {\n if (now < timestamp) {\n sequence++;\n }\n timestamp = now;\n tick = UUIDjs.randomUI04();\n } else if (Math.random() < timestampRatio && tick < 9984) {\n tick += 1 + UUIDjs.randomUI04();\n } else {\n sequence++;\n }\n\n var tf = UUIDjs.getTimeFieldValues(timestamp);\n var tl = tf.low + tick;\n var thav = (tf.hi & 0xFFF) | 0x1000;\n\n sequence &= 0x3FFF;\n var cshar = (sequence >>> 8) | 0x80;\n var csl = sequence & 0xFF;\n\n return new UUIDjs().fromParts(tl, tf.mid, thav, cshar, csl, node);\n};\n\nUUIDjs.create = function(version) {\n version = version || 4;\n return this['_create' + version]();\n};\n\nUUIDjs.fromTime = function(time, last) {\n last = (!last) ? false : last;\n var tf = UUIDjs.getTimeFieldValues(time);\n var tl = tf.low;\n var thav = (tf.hi & 0xFFF) | 0x1000; // set version '0001'\n if (last === false) {\n return new UUIDjs().fromParts(tl, tf.mid, thav, 0, 0, 0);\n } else {\n return new UUIDjs().fromParts(tl, tf.mid, thav, 0x80 | UUIDjs.limitUI06, UUIDjs.limitUI08 - 1, UUIDjs.limitUI48 - 1);\n }\n};\n\nUUIDjs.firstFromTime = function(time) {\n return UUIDjs.fromTime(time, false);\n};\nUUIDjs.lastFromTime = function(time) {\n return UUIDjs.fromTime(time, true);\n};\n\nUUIDjs.fromURN = function(strId) {\n var r, p = /^(?:urn:uuid:|\\{)?([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{2})([0-9a-f]{2})-([0-9a-f]{12})(?:\\})?$/i;\n if ((r = p.exec(strId))) {\n return new UUIDjs().fromParts(parseInt(r[1], 16), parseInt(r[2], 16),\n parseInt(r[3], 16), parseInt(r[4], 16),\n parseInt(r[5], 16), parseInt(r[6], 16));\n }\n return null;\n};\n\nUUIDjs.fromBytes = function(ints) {\n if (ints.length < 5) {\n return null;\n }\n var str = '';\n var pos = 0;\n var parts = [4, 2, 2, 2, 6];\n for (var i = 0; i < parts.length; i++) {\n for (var j = 0; j < parts[i]; j++) {\n var octet = ints[pos++].toString(16);\n if (octet.length == 1) {\n octet = '0' + octet;\n }\n str += octet;\n }\n if (parts[i] !== 6) {\n str += '-';\n }\n }\n return UUIDjs.fromURN(str);\n};\n\nUUIDjs.fromBinary = function(binary) {\n var ints = [];\n for (var i = 0; i < binary.length; i++) {\n ints[i] = binary.charCodeAt(i);\n if (ints[i] > 255 || ints[i] < 0) {\n throw new Error('Unexpected byte in binary data.');\n }\n }\n return UUIDjs.fromBytes(ints);\n};\n\n// Aliases to support legacy code. Do not use these when writing new code as\n// they may be removed in future versions!\nUUIDjs.new = function() {\n return this.create(4);\n};\nUUIDjs.newTS = function() {\n return this.create(1);\n};\n\nmodule.exports = UUIDjs;\n","import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as NetworkWSInterface from '../networkWSInterface';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\n\nimport {\n buildNewContentPackageInput,\n buildRestoreIInkSessionInput,\n buildNewContentPart,\n buildOpenContentPart,\n buildConfiguration,\n buildSetTheme,\n buildSetPenStyle,\n buildSetPenStyleClasses\n} from './Cdkv4WSIInkRecognizer';\n\n/**\n * A CDK v4 websocket dialog have this sequence :\n * ---------- Client ------------------------------------- Server ----------------------------------\n * init (send the new content package) ================>\n * <=========== hmacChallenge\n * answerToHmacChallenge (send the hmac) =========>\n * newPart (send the parameters ) ===============>\n * <=========== update\n * addStrokes (send the strokes ) ============>\n * <=========== update\n */\n\nfunction buildHmacMessage(configuration, message) {\n return {\n type: 'hmac',\n hmac: CryptoHelper.computeHmac(message.data.hmacChallenge, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey)\n };\n}\n\n/**\n * This function bind the right behaviour when a message is receive by the websocket.\n * @param {DestructuredPromise} destructuredPromise\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @return {function} Callback to handle WebSocket results\n */\nexport function buildWebSocketCallback(destructuredPromise, recognizerContext) {\n return (message) => {\n const recognizerContextRef = recognizerContext;\n // Handle websocket messages\n logger.trace(`${message.type} websocket callback`, message);\n const recognitionContext = recognizerContext.recognitionContexts[recognizerContext.recognitionContexts.length - 1];\n logger.debug('Current recognition context', recognitionContext);\n\n switch (message.type) {\n case 'open':\n if (recognizerContext.sessionId) {\n NetworkWSInterface.send(recognizerContext, buildRestoreIInkSessionInput(recognizerContext.editor.configuration, recognizerContext.editor.domElement, recognizerContext.sessionId));\n } else {\n NetworkWSInterface.send(recognizerContext, buildNewContentPackageInput(recognizerContext.editor.configuration, recognizerContext.editor.domElement));\n }\n break;\n case 'message':\n logger.debug(`Receiving ${message.data.type} message`, message);\n switch (message.data.type) {\n case 'ack':\n if (message.data.hmacChallenge) {\n NetworkWSInterface.send(recognizerContext, buildHmacMessage(recognizerContext.editor.configuration, message));\n }\n if (message.data.iinkSessionId) {\n recognizerContextRef.sessionId = message.data.iinkSessionId;\n }\n break;\n case 'newPart':\n break;\n case 'contentPackageDescription':\n recognizerContextRef.currentReconnectionCount = 0;\n recognizerContextRef.contentPartCount = message.data.contentPartCount;\n NetworkWSInterface.send(recognizerContext, buildConfiguration(recognizerContext.editor.configuration));\n if (recognizerContextRef.currentPartId) { // FIXME: Ugly hack to resolve init promise after opening part\n NetworkWSInterface.send(recognizerContext, buildOpenContentPart(recognizerContext.editor.configuration, recognizerContext.currentPartId));\n } else {\n NetworkWSInterface.send(recognizerContext, buildNewContentPart(recognizerContext.editor.configuration));\n }\n break;\n case 'partChanged':\n if (message.data.partId) {\n recognizerContextRef.currentPartId = message.data.partId;\n }\n recognizerContextRef.initialized = true;\n NetworkWSInterface.send(recognizerContext, buildSetTheme(recognizerContext.editor.theme));\n NetworkWSInterface.send(recognizerContext, buildSetPenStyle(recognizerContext.editor.penStyle));\n NetworkWSInterface.send(recognizerContext, buildSetPenStyleClasses(recognizerContext.editor.penStyleClasses));\n recognitionContext.callback(undefined, message.data);\n destructuredPromise.resolve(recognitionContext);\n break;\n case 'contentChanged':\n if (message.data.canUndo !== undefined) {\n recognizerContextRef.canUndo = message.data.canUndo;\n }\n if (message.data.canRedo !== undefined) {\n recognizerContextRef.canRedo = message.data.canRedo;\n }\n if (message.data.empty !== undefined) {\n recognizerContextRef.isEmpty = message.data.empty;\n }\n if (message.data.possibleUndoCount !== undefined) {\n recognizerContextRef.possibleUndoCount = message.data.possibleUndoCount;\n }\n if (message.data.undoStackIndex !== undefined) {\n recognizerContextRef.undoStackIndex = message.data.undoStackIndex;\n }\n recognitionContext.callback(undefined, message.data);\n break;\n case 'exported':\n recognitionContext.callback(undefined, message.data);\n break;\n case 'svgPatch':\n recognitionContext.callback(undefined, message.data);\n break;\n case 'supportedImportMimeTypes':\n recognizerContextRef.supportedImportMimeTypes = message.data.mimeTypes;\n recognitionContext.callback(undefined, message.data);\n break;\n case 'fileChunkAck':\n recognitionContext.callback(undefined, message.data);\n break;\n case 'idle':\n recognizerContextRef.idle = true;\n recognitionContext.callback(undefined, message.data);\n break;\n case 'error':\n logger.debug('Error detected stopping all recognition', message);\n if (recognitionContext) {\n recognitionContext.callback(message.data);\n } else {\n destructuredPromise.reject(Object.assign({}, message.data, { recoverable: false }));\n }\n break;\n default :\n logger.warn('This is something unexpected in current recognizer. Not the type of message we should have here.', message);\n }\n break;\n case 'error':\n logger.debug('Error detected stopping all recognition', message);\n if (recognitionContext) {\n recognitionContext.callback(Object.assign({}, message, { recoverable: false }));\n } else {\n destructuredPromise.reject(Object.assign({}, message, { recoverable: false }));\n }\n break;\n case 'close':\n logger.debug('Close detected stopping all recognition', message);\n recognizerContextRef.initialized = false;\n recognizerContextRef.canRedo = false;\n recognizerContextRef.canUndo = false;\n if (recognitionContext) {\n recognitionContext.callback(message);\n } else {\n destructuredPromise.reject(message);\n }\n break;\n default :\n logger.warn('This is something unexpected in current recognizer. Not the type of message we should have here.', message);\n }\n };\n}\n","import uuid from 'uuid-js';\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as DefaultTheme from '../../../configuration/DefaultTheme';\nimport * as DefaultPenStyle from '../../../configuration/DefaultPenStyle';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as DefaultRecognizer from '../../DefaultRecognizer';\nimport * as Cdkv4WSWebsocketBuilder from './Cdkv4WSBuilder';\nimport * as CdkWSRecognizerUtil from '../CdkWSRecognizerUtil';\n\nexport { close } from '../CdkWSRecognizerUtil';\n\nfunction readBlob(blob) {\n const fileReader = new FileReader();\n return new Promise((resolve, reject) => {\n fileReader.onload = event => resolve(event.target.result);\n fileReader.onerror = () => reject(this);\n fileReader.readAsText(blob);\n });\n}\n\n\nfunction getDPI(element) {\n // const startDpi = 56;\n // for (let dpi = startDpi; dpi < 2000; dpi++) {\n // if (window.matchMedia(`(max-resolution: ${dpi}dpi)`).matches === true) {\n // return dpi;\n // }\n // }\n // return startDpi;\n return 96;\n}\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const IInkWebSocketV4Configuration = {\n types: [Constants.RecognitionType.MATH, Constants.RecognitionType.TEXT, Constants.RecognitionType.DIAGRAM, Constants.RecognitionType.NEBO],\n protocol: Constants.Protocol.WEBSOCKET,\n apiVersion: 'V4',\n availableTriggers: {\n exportContent: [Constants.Trigger.POINTER_UP, Constants.Trigger.DEMAND],\n addStrokes: [Constants.Trigger.POINTER_UP]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return IInkWebSocketV4Configuration;\n}\n\nexport function buildNewContentPackageInput(configuration, element) {\n return {\n type: 'newContentPackage',\n applicationKey: configuration.recognitionParams.server.applicationKey,\n xDpi: getDPI(element),\n yDpi: getDPI(element),\n viewSizeHeight: element.clientHeight < configuration.renderingParams.minHeight ? configuration.renderingParams.minHeight : element.clientHeight,\n viewSizeWidth: element.clientWidth < configuration.renderingParams.minWidth ? configuration.renderingParams.minWidth : element.clientWidth\n };\n}\n\nexport function buildRestoreIInkSessionInput(configuration, element, sessionId) {\n return {\n type: 'restoreIInkSession',\n iinkSessionId: sessionId,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n xDpi: getDPI(element),\n yDpi: getDPI(element),\n viewSizeHeight: element.clientHeight < configuration.renderingParams.minHeight ? configuration.renderingParams.minHeight : element.clientHeight,\n viewSizeWidth: element.clientWidth < configuration.renderingParams.minWidth ? configuration.renderingParams.minWidth : element.clientWidth\n };\n}\n\nexport function buildNewContentPart(configuration) {\n return {\n type: 'newContentPart',\n contentType: configuration.recognitionParams.type,\n mimeTypes: (configuration.triggers.exportContent !== Constants.Trigger.DEMAND) ?\n configuration.recognitionParams.v4[`${configuration.recognitionParams.type.toLowerCase()}`].mimeTypes : undefined\n };\n}\n\nexport function buildOpenContentPart(configuration, partId) {\n return {\n type: 'openContentPart',\n id: partId,\n mimeTypes: (configuration.triggers.exportContent !== Constants.Trigger.DEMAND) ?\n configuration.recognitionParams.v4[`${configuration.recognitionParams.type.toLowerCase()}`].mimeTypes : undefined\n };\n}\n\nexport function buildConfiguration(configuration) {\n return Object.assign({ type: 'configuration' }, configuration.recognitionParams.v4);\n}\n\nfunction buildAddStrokes(recognizerContext, model) {\n const strokes = InkModel.extractPendingStrokes(model, recognizerContext.lastPositions.lastSentPosition + 1);\n if (strokes.length > 0) {\n InkModel.updateModelSentPosition(model);\n return {\n type: 'addStrokes',\n strokes: strokes.map(stroke => Object.assign({}, {\n id: stroke.id,\n pointerType: stroke.pointerType,\n pointerId: stroke.pointerId,\n x: stroke.x,\n y: stroke.y,\n t: stroke.t,\n p: stroke.p\n }))\n };\n }\n return undefined;\n}\n\nfunction buildUndo() {\n return {\n type: 'undo'\n };\n}\n\nfunction buildRedo() {\n return {\n type: 'redo'\n };\n}\n\nfunction buildClear() {\n return {\n type: 'clear'\n };\n}\n\nfunction buildConvert(state) {\n return {\n type: 'convert',\n conversionState: state\n };\n}\n\nfunction buildZoom(value) {\n return {\n type: 'zoom',\n zoom: value\n };\n}\n\nfunction buildResize(element, minHeight = 0, minWidth = 0) {\n return {\n type: 'changeViewSize',\n height: element.clientHeight < minHeight ? minHeight : element.clientHeight,\n width: element.clientWidth < minWidth ? minWidth : element.clientWidth\n };\n}\n\nfunction buildExport(configuration, partId, requestedMimeType) {\n let usedMimeType;\n if (requestedMimeType && Object.keys(requestedMimeType).length !== 0) {\n usedMimeType = requestedMimeType;\n } else {\n usedMimeType = configuration.recognitionParams.v4[`${configuration.recognitionParams.type.toLowerCase()}`].mimeTypes;\n }\n\n return {\n type: 'export',\n partId,\n mimeTypes: usedMimeType\n };\n}\n\nfunction buildImportFile(id, mimetype) {\n return {\n type: 'importFile',\n importFileId: id,\n mimeType: mimetype\n };\n}\n\nfunction buildImportChunk(id, data, lastChunk) {\n return {\n type: 'fileChunk',\n importFileId: id,\n data,\n lastChunk\n };\n}\n\nfunction buildPointerEvents(events) {\n return Object.assign({ type: 'pointerEvents' }, events);\n}\n\nfunction buildWaitForIdle() {\n return {\n type: 'waitForIdle'\n };\n}\n\nfunction buildGetSupportedImportMimeTypes() {\n return {\n type: 'getSupportedImportMimeTypes'\n };\n}\n\nexport function buildSetPenStyle(penStyle) {\n return {\n type: 'setPenStyle',\n style: penStyle ? DefaultPenStyle.toCSS(penStyle) : ''\n };\n}\n\nexport function buildSetPenStyleClasses(penStyleClasses) {\n return {\n type: 'setPenStyleClasses',\n styleClasses: penStyleClasses\n };\n}\n\nexport function buildSetTheme(theme) {\n return {\n type: 'setTheme',\n theme: DefaultTheme.toCSS(theme)\n };\n}\n\nconst iinkCallback = (model, err, res, callback) => {\n const modelReference = InkModel.updateModelReceivedPosition(model);\n if (res) {\n if (res.updates !== undefined) {\n if (modelReference.recognizedSymbols) {\n modelReference.recognizedSymbols.push(res);\n } else {\n modelReference.recognizedSymbols = [res];\n }\n return callback(err, modelReference, Constants.EventType.RENDERED);\n }\n if (res.exports !== undefined) {\n modelReference.rawResults.exports = res;\n modelReference.exports = res.exports;\n return callback(err, modelReference, Constants.EventType.EXPORTED);\n }\n\n if ((res.canUndo !== undefined) || (res.canRedo !== undefined)) {\n return callback(err, modelReference, Constants.EventType.CHANGED);\n }\n\n if (res.type === 'supportedImportMimeTypes') {\n return callback(err, modelReference, Constants.EventType.SUPPORTED_IMPORT_MIMETYPES);\n }\n\n if (res.type === 'partChanged') {\n return callback(err, modelReference, Constants.EventType.LOADED);\n }\n\n if (res.type === 'idle') {\n return callback(err, modelReference, Constants.EventType.IDLE);\n }\n\n if (res.type === 'close') {\n return callback(err, modelReference, Constants.EventType.CHANGED);\n }\n }\n return callback(err, modelReference);\n};\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model: InkModel.updateModelSentPosition(model, model.lastPositions.lastReceivedPosition),\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.init('/api/v4.0/iink/document', recognizerContextRef, Cdkv4WSWebsocketBuilder.buildWebSocketCallback, init)\n .catch((err) => {\n if (RecognizerContext.shouldAttemptImmediateReconnect(recognizerContext) && recognizerContext.reconnect) {\n logger.info('Attempting a reconnect', recognizerContext.currentReconnectionCount);\n recognizerContext.reconnect(recognizerContext, model, callback);\n } else {\n logger.error('Unable to reconnect', err);\n iinkCallback(model, err, undefined, callback);\n }\n });\n}\n\n/**\n * Create a new content part\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function newContentPart(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildNewContentPart, recognizerContext.editor.configuration)\n .catch(exception => CdkWSRecognizerUtil.retry(newContentPart, recognizerContext, model, callback));\n}\n\n/**\n * Open the recognizer context content part\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function openContentPart(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildOpenContentPart, recognizerContext.editor.configuration, recognizerContext.currentPartId)\n .catch(exception => CdkWSRecognizerUtil.retry(openContentPart, recognizerContext, model, callback));\n}\n\nexport function sendConfiguration(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildConfiguration, recognizerContext.editor.configuration)\n .catch(exception => CdkWSRecognizerUtil.retry(sendConfiguration, recognizerContext, model, callback));\n}\n\n/**\n * Pointer Events\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {PointerEvents} events to be imported\n * @param {RecognizerCallback} callback\n */\nexport function pointerEvents(recognizerContext, model, events, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildPointerEvents, events)\n .catch(exception => CdkWSRecognizerUtil.retry(pointerEvents, recognizerContext, model, events, callback));\n}\n\n/**\n * Add strokes to the model\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function addStrokes(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildAddStrokes, recognizerContext, model)\n .catch(exception => CdkWSRecognizerUtil.retry(addStrokes, recognizerContext, model, callback));\n}\n\n/**\n * Undo last action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function undo(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildUndo)\n .catch(exception => CdkWSRecognizerUtil.retry(undo, recognizerContext, model, callback));\n}\n\n/**\n * Redo last action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function redo(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildRedo)\n .catch(exception => CdkWSRecognizerUtil.retry(redo, recognizerContext, model, callback));\n}\n\n/**\n * Clear action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => {\n DefaultRecognizer.clear(recognizerContext, model, (noerr, newModel, ...attrs) => {\n logger.debug('The model after clear is :', newModel);\n iinkCallback(newModel, err, res, callback);\n });\n }\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildClear)\n .catch(exception => CdkWSRecognizerUtil.retry(clear, recognizerContext, model, callback));\n}\n\n/**\n * Convert action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n * @param {String} conversionState Conversion State, by default DigitalEdit\n */\nexport function convert(recognizerContext, model, callback, conversionState) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildConvert, conversionState)\n .catch(exception => CdkWSRecognizerUtil.retry(convert, recognizerContext, model, callback, conversionState));\n}\n\n/**\n * Export action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n * @param {Array[String]} requestedMimeTypes\n */\n// eslint-disable-next-line no-underscore-dangle\nexport function export_(recognizerContext, model, callback, requestedMimeTypes) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildExport, recognizerContext.editor.configuration, recognizerContext.currentPartId, requestedMimeTypes)\n .catch(exception => CdkWSRecognizerUtil.retry(export_, recognizerContext, model, callback, requestedMimeTypes));\n}\n\n/**\n * Import action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Blob} data Import data\n * @param {RecognizerCallback} callback\n */\n// eslint-disable-next-line no-underscore-dangle\nexport function import_(recognizerContext, model, data, callback) {\n const recognitionContext = {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback),\n importFileId: uuid.create(4).toString()\n };\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, recognitionContext);\n\n const chunkSize = recognizerContext.editor.configuration.recognitionParams.server.websocket.fileChunkSize;\n\n for (let i = 0; i < data.size; i += chunkSize) {\n if (i === 0) {\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildImportFile, recognitionContext.importFileId, data.type)\n .catch(exception => CdkWSRecognizerUtil.retry(import_, recognizerContext, model, data, callback));\n }\n const blobPart = data.slice(i, chunkSize, data.type);\n readBlob(blobPart).then((res) => {\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildImportChunk, recognitionContext.importFileId, res, i + chunkSize > data.size)\n .catch(exception => CdkWSRecognizerUtil.retry(import_, recognizerContext, model, data, callback));\n });\n }\n}\n\nexport function getSupportedImportMimeTypes(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildGetSupportedImportMimeTypes)\n .catch(exception => CdkWSRecognizerUtil.retry(getSupportedImportMimeTypes, recognizerContext, model, callback));\n}\n\n/**\n * WaitForIdle action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function waitForIdle(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildWaitForIdle)\n .catch(exception => CdkWSRecognizerUtil.retry(waitForIdle, recognizerContext, model, callback));\n}\n\n/**\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Element} element Current element\n * @param {RecognizerCallback} callback\n */\nexport function resize(recognizerContext, model, element, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildResize, element, recognizerContext.editor.configuration.renderingParams.minHeight, recognizerContext.editor.configuration.renderingParams.minWidth)\n .catch(exception => CdkWSRecognizerUtil.retry(resize, recognizerContext, model, callback));\n}\n\n/**\n * Zoom action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Number} value=10 Zoom value\n * @param {RecognizerCallback} callback\n */\nexport function zoom(recognizerContext, model, value = 10, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildZoom, value)\n .catch(exception => CdkWSRecognizerUtil.retry(zoom, recognizerContext, model, callback));\n}\n\n/**\n * SetPenStyle action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {PenStyle} penStyle Current penStyle\n * @param {RecognizerCallback} callback\n */\nexport function setPenStyle(recognizerContext, model, penStyle, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildSetPenStyle, penStyle)\n .catch(exception => CdkWSRecognizerUtil.retry(setPenStyle, recognizerContext, model, callback));\n}\n\n/**\n * setPenStyleClasses action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {String} penStyleClasses Current penStyleClasses\n * @param {RecognizerCallback} callback\n */\nexport function setPenStyleClasses(recognizerContext, model, penStyleClasses, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildSetPenStyleClasses, penStyleClasses)\n .catch(exception => CdkWSRecognizerUtil.retry(setPenStyleClasses, recognizerContext, model, callback));\n}\n\n/**\n * SetTheme action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Theme} theme Current theme\n * @param {RecognizerCallback} callback\n */\nexport function setTheme(recognizerContext, model, theme, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildSetTheme, theme)\n .catch(exception => CdkWSRecognizerUtil.retry(setTheme, recognizerContext, model, callback));\n}\n","import { callbackLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Emits an event when the editor state change\n * @param {String} type\n * @param {Object} data\n * @emits {Event}\n */\nexport default function eventCallback(type, data) {\n logger.info(`emitting ${type} event`, data);\n // We are making usage of a browser provided class\n // eslint-disable-next-line no-undef\n this.dispatchEvent(new CustomEvent(type, Object.assign({ bubbles: true, composed: true }, data ? { detail: data } : undefined)));\n}\n","import { editorLogger as logger } from './LoggerConfig';\nimport * as PointerEventGrabber from '../grabber/PointerEventGrabber';\nimport * as CanvasRenderer from '../renderer/canvas/CanvasRenderer';\nimport * as QuadraticCanvasStroker from '../renderer/canvas/stroker/QuadraticCanvasStroker';\nimport * as SVGRenderer from '../renderer/svg/SVGRenderer';\nimport * as QuadraticSVGStroker from '../renderer/svg/stroker/QuadraticSVGStroker';\nimport * as Cdkv3RestTextRecognizer from '../recognizer/rest/v3/Cdkv3RestTextRecognizer';\nimport * as Cdkv3RestMathRecognizer from '../recognizer/rest/v3/Cdkv3RestMathRecognizer';\nimport * as Cdkv3RestAnalyzerRecognizer from '../recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer';\nimport * as Cdkv3RestShapeRecognizer from '../recognizer/rest/v3/Cdkv3RestShapeRecognizer';\nimport * as Cdkv3RestMusicRecognizer from '../recognizer/rest/v3/Cdkv3RestMusicRecognizer';\nimport * as iinkRestRecognizer from '../recognizer/rest/v4/iinkRestRecognizer';\nimport * as Cdkv3WSMathRecognizer from '../recognizer/websocket/v3/Cdkv3WSMathRecognizer';\nimport * as Cdkv3WSTextRecognizer from '../recognizer/websocket/v3/Cdkv3WSTextRecognizer';\nimport * as Cdkv4WSInteractiveRecognizer from '../recognizer/websocket/v4/Cdkv4WSIInkRecognizer';\nimport eventCallback from '../callback/EventCallback';\n\n/**\n * Current behavior\n * @typedef {Object} Behavior\n * @property {Grabber} grabber Grabber to capture strokes\n * @property {Stroker} stroker Stroker to draw stroke\n * @property {Renderer} renderer Renderer to draw on the editor\n * @property {Recognizer} recognizer Recognizer to call the recognition service\n * @property {Array} callbacks Functions to handle model changes\n */\n\n/**\n * Set of behaviors to be used by the {@link Editor}\n * @typedef {Object} Behaviors\n * @property {Grabber} grabber Grabber to capture strokes\n * @property {Array} strokerList List of stroker to draw stroke\n * @property {Array} rendererList List of renderer to draw on the editor\n * @property {Array} recognizerList Recognizers to call the recognition service\n * @property {function(behaviors: Behaviors, configuration: Configuration): Behavior} getBehaviorFromConfiguration Get the current behavior to use regarding the current configuration\n * @property {Array} callbacks Functions to handle model changes\n */\n\n/**\n * Default behaviors\n * @type {Behaviors}\n */\nexport const defaultBehaviors = {\n grabber: PointerEventGrabber,\n strokerList: [QuadraticCanvasStroker, QuadraticSVGStroker],\n rendererList: [CanvasRenderer, SVGRenderer],\n recognizerList: [Cdkv3RestTextRecognizer, Cdkv3RestMathRecognizer, Cdkv3RestAnalyzerRecognizer, Cdkv3RestShapeRecognizer, Cdkv3RestMusicRecognizer, iinkRestRecognizer, Cdkv3WSTextRecognizer, Cdkv3WSMathRecognizer, Cdkv4WSInteractiveRecognizer],\n callbacks: [eventCallback],\n getBehaviorFromConfiguration: (behaviors, configuration) => {\n const behavior = {};\n behavior.grabber = behaviors.grabber;\n if (configuration) {\n if (configuration.recognitionParams.apiVersion === 'V4' && configuration.recognitionParams.protocol === 'REST') {\n behavior.stroker = QuadraticCanvasStroker;\n } else {\n behavior.stroker = behaviors.strokerList.find(item =>\n (item.getInfo().apiVersion === configuration.recognitionParams.apiVersion) &&\n (item.getInfo().name === configuration.renderingParams.stroker));\n }\n if (configuration.recognitionParams.apiVersion === 'V4' && configuration.recognitionParams.protocol === 'REST') {\n behavior.renderer = CanvasRenderer;\n } else {\n behavior.renderer = behaviors.rendererList.find(item => item.getInfo().apiVersion === configuration.recognitionParams.apiVersion);\n }\n behavior.recognizer = behaviors.recognizerList.find(item =>\n (item.getInfo()\n .types\n .includes(configuration.recognitionParams.type)) &&\n (item.getInfo().protocol === configuration.recognitionParams.protocol) &&\n (item.getInfo().apiVersion === configuration.recognitionParams.apiVersion));\n }\n behavior.callbacks = behaviors.callbacks;\n return behavior;\n }\n};\n\n/**\n * Generate behaviors\n * @param {Behaviors} behaviors Behaviors to be used\n * @return {Behaviors} Overridden behaviors\n */\nexport function overrideDefaultBehaviors(behaviors) {\n if (behaviors) {\n const currentBehaviors = {\n grabber: behaviors.grabber || defaultBehaviors.grabber,\n rendererList: behaviors.rendererList || defaultBehaviors.rendererList,\n strokerList: behaviors.strokerList || defaultBehaviors.strokerList,\n recognizerList: behaviors.recognizerList || defaultBehaviors.recognizerList,\n callbacks: behaviors.callbacks || defaultBehaviors.callbacks,\n getBehaviorFromConfiguration: behaviors.getBehaviorFromConfiguration || defaultBehaviors.getBehaviorFromConfiguration\n };\n logger.debug('Override default behaviors', currentBehaviors);\n return currentBehaviors;\n }\n return defaultBehaviors;\n}\n","import { modelLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Undo/redo context\n * @typedef {Object} UndoRedoContext\n * @property {Array} stack=[] List of processed models.\n * @property {Number} currentPosition=-1 Current model index into the stack.\n * @property {Number} maxSize Max size of the stack.\n * @property {Boolean} canUndo=false\n * @property {Boolean} canRedo=false\n */\n\n/**\n * Create a new undo/redo context\n * @param {Configuration} configuration Current configuration\n * @return {UndoRedoContext} New undo/redo context\n */\nexport function createUndoRedoContext(configuration) {\n return {\n stack: [],\n currentPosition: -1,\n maxSize: configuration.undoRedoMaxStackSize,\n canUndo: false,\n canRedo: false\n };\n}\n\n/**\n * Update the undo/redo state\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context\n * @return {UndoRedoContext} Updated undo/redo context\n */\nexport function updateUndoRedoState(undoRedoContext) {\n const undoRedoContextRef = undoRedoContext;\n undoRedoContextRef.canUndo = undoRedoContext.currentPosition > 0;\n undoRedoContextRef.canRedo = undoRedoContext.currentPosition < (undoRedoContext.stack.length - 1);\n return undoRedoContextRef;\n}\n","import * as InkModel from '../model/InkModel';\nimport * as UndoRedoContext from '../model/UndoRedoContext';\nimport { modelLogger as logger } from '../configuration/LoggerConfig';\nimport Constants from '../configuration/Constants';\n\n/**\n * Undo/redo manager\n * @typedef {Object} UndoRedoManager\n * @property {function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)} updateModel Push the current model into the undo/redo context.\n * @property {function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)} undo Undo.\n * @property {function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)} redo Redo.\n * @property {function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)} clear Clear.\n */\n\n/**\n * Get current model in stack\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context\n * @param {function(err: Object, res: Model, types: ...String)} callback\n * @param {Boolean} [clone=true] Whether or not to clone the model\n * @param {...String} types\n */\nexport function getModel(undoRedoContext, callback, clone = true, ...types) {\n const model = undoRedoContext.stack[undoRedoContext.currentPosition];\n callback(undefined, clone ? InkModel.cloneModel(model) : model, ...types);\n}\n\n/**\n * Mutate the undoRedo stack by adding a new model to it.\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context.\n * @param {Model} model Current model.\n * @param {function(err: Object, res: Model, types: ...String)} callback\n */\nexport function updateModel(undoRedoContext, model, callback) {\n // Used to update the model with the recognition result if relevant\n const modelIndex = undoRedoContext.stack.findIndex(item => (item.modificationTime === model.modificationTime) && (item.rawStrokes.length === model.rawStrokes.length));\n\n const modelReference = model;\n modelReference.modificationTime = new Date().getTime();\n\n const types = [];\n if (modelIndex > -1) {\n undoRedoContext.stack.splice(modelIndex, 1, InkModel.cloneModel(modelReference));\n logger.debug('model updated', modelReference);\n } else {\n const undoRedoContextReference = undoRedoContext;\n undoRedoContextReference.currentPosition += 1;\n undoRedoContextReference.stack = undoRedoContextReference.stack.slice(0, undoRedoContextReference.currentPosition);\n undoRedoContextReference.stack.push(InkModel.cloneModel(modelReference));\n if (undoRedoContextReference.stack.length > undoRedoContextReference.maxSize) {\n undoRedoContextReference.stack.shift();\n undoRedoContextReference.currentPosition--;\n }\n logger.debug('model pushed', modelReference);\n types.push(Constants.EventType.CHANGED);\n }\n UndoRedoContext.updateUndoRedoState(undoRedoContext);\n logger.debug('undo/redo stack updated', undoRedoContext);\n getModel(undoRedoContext, callback, false, ...types);\n}\n\n/**\n * Undo\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context.\n * @param {Model} model Current model.\n * @param {function(err: Object, res: Model, types: ...String)} callback\n */\nexport function undo(undoRedoContext, model, callback) {\n const undoRedoContextReference = undoRedoContext;\n if (undoRedoContextReference.currentPosition > 0) {\n undoRedoContextReference.currentPosition -= 1;\n UndoRedoContext.updateUndoRedoState(undoRedoContext);\n logger.debug('undo index', undoRedoContextReference.currentPosition);\n }\n getModel(undoRedoContext, callback, true, Constants.EventType.CHANGED, Constants.EventType.EXPORTED);\n}\n\n/**\n * Redo\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context.\n * @param {Model} model Current model.\n * @param {function(err: Object, res: Model, types: ...String)} callback\n */\nexport function redo(undoRedoContext, model, callback) {\n const undoRedoContextReference = undoRedoContext;\n if (undoRedoContextReference.currentPosition < undoRedoContextReference.stack.length - 1) {\n undoRedoContextReference.currentPosition += 1;\n UndoRedoContext.updateUndoRedoState(undoRedoContext);\n logger.debug('redo index', undoRedoContextReference.currentPosition);\n }\n getModel(undoRedoContext, callback, true, Constants.EventType.CHANGED, Constants.EventType.EXPORTED);\n}\n","import { utilLogger as logger } from '../configuration/LoggerConfig';\nimport * as Cdkv3RestTextRecognizer from '../recognizer/rest/v3/Cdkv3RestTextRecognizer';\nimport * as RecognizerContext from '../model/RecognizerContext';\nimport defaultConfiguration from '../configuration/DefaultConfiguration';\n\n/**\n * @typedef {Object} Stats\n * @property {Number} strokesCount=0\n * @property {Number} pointsCount=0\n * @property {Number} byteSize=0\n * @property {Number} humanSize=0\n * @property {String} humanUnit=BYTE\n */\n\n/**\n * @param {Model} model Current model\n * @return {Stats} Statistics about recognition\n */\nexport function computeStats(model) {\n const stats = { strokesCount: 0, pointsCount: 0, byteSize: 0, humanSize: 0, humanUnit: 'BYTE' };\n if (model.rawStrokes) {\n stats.strokesCount = model.rawStrokes.length;\n\n const restMessage = Cdkv3RestTextRecognizer.buildInput(RecognizerContext.createEmptyRecognizerContext({ configuration: defaultConfiguration }), model);\n stats.pointsCount = model.rawStrokes.map(stroke => stroke.x.length).reduce((a, b) => a + b, 0);\n // We start with 270 as it is the size in bytes. Make a real computation implies to recode a doRecognition\n const byteSize = restMessage.textInput.length;\n stats.byteSize = byteSize;\n if (byteSize < 270) {\n stats.humanUnit = 'BYTE';\n stats.byteSize = 0;\n stats.humanSize = 0;\n } else if (byteSize < 2048) {\n stats.humanUnit = 'BYTES';\n stats.humanSize = byteSize;\n } else if (byteSize < 1024 * 1024) {\n stats.humanUnit = 'KiB';\n stats.humanSize = (byteSize / 1024).toFixed(2);\n } else {\n stats.humanUnit = 'MiB';\n stats.humanSize = (byteSize / 1024 / 1024).toFixed(2);\n }\n }\n logger.info('Stats', stats);\n return stats;\n}\n","import { drawModel } from './CanvasRenderer';\nimport * as InkModel from '../../model/InkModel';\n\nfunction createCanvas(borderCoordinates, margin = 10) {\n // eslint-disable-next-line no-undef\n const browserDocument = document;\n const canvas = browserDocument.createElement('canvas');\n canvas.width = Math.abs(borderCoordinates.maxX - borderCoordinates.minX) + (2 * margin);\n canvas.style.width = `${canvas.width}px`;\n canvas.height = Math.abs(borderCoordinates.maxY - borderCoordinates.minY) + (2 * margin);\n canvas.style.height = `${canvas.height}px`;\n return canvas;\n}\n\n/**\n * Generate a PNG image data url from the model\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @param {Number} [margin=10] Margins to apply around the image\n * @return {String} Image data string result\n */\nexport function getImage(model, stroker, margin = 10) {\n if (model.rawStrokes.length > 0) {\n const borderCoordinates = InkModel.getBorderCoordinates(model);\n\n const capturingCanvas = createCanvas(borderCoordinates, margin);\n const renderingCanvas = createCanvas(borderCoordinates, margin);\n const renderStructure = {\n renderingCanvas,\n renderingCanvasContext: renderingCanvas.getContext('2d'),\n capturingCanvas,\n capturingCanvasContext: capturingCanvas.getContext('2d')\n };\n // Change canvas origin\n renderStructure.renderingCanvasContext.translate(-borderCoordinates.minX + margin, -borderCoordinates.minY + margin);\n drawModel(renderStructure, model, stroker);\n return renderStructure.renderingCanvas.toDataURL('image/png');\n }\n return null;\n}\n","/*!\n * perfect-scrollbar v1.3.0\n * (c) 2017 Hyunje Jun\n * @license MIT\n */\nfunction get(element) {\n return getComputedStyle(element);\n}\n\nfunction set(element, obj) {\n for (var key in obj) {\n var val = obj[key];\n if (typeof val === 'number') {\n val = val + \"px\";\n }\n element.style[key] = val;\n }\n return element;\n}\n\nfunction div(className) {\n var div = document.createElement('div');\n div.className = className;\n return div;\n}\n\nvar elMatches =\n typeof Element !== 'undefined' &&\n (Element.prototype.matches ||\n Element.prototype.webkitMatchesSelector ||\n Element.prototype.msMatchesSelector);\n\nfunction matches(element, query) {\n if (!elMatches) {\n throw new Error('No element matching method supported');\n }\n\n return elMatches.call(element, query);\n}\n\nfunction remove(element) {\n if (element.remove) {\n element.remove();\n } else {\n if (element.parentNode) {\n element.parentNode.removeChild(element);\n }\n }\n}\n\nfunction queryChildren(element, selector) {\n return Array.prototype.filter.call(element.children, function (child) { return matches(child, selector); }\n );\n}\n\nvar cls = {\n main: 'ps',\n element: {\n thumb: function (x) { return (\"ps__thumb-\" + x); },\n rail: function (x) { return (\"ps__rail-\" + x); },\n consuming: 'ps__child--consume',\n },\n state: {\n focus: 'ps--focus',\n active: function (x) { return (\"ps--active-\" + x); },\n scrolling: function (x) { return (\"ps--scrolling-\" + x); },\n },\n};\n\n/*\n * Helper methods\n */\nvar scrollingClassTimeout = { x: null, y: null };\n\nfunction addScrollingClass(i, x) {\n var classList = i.element.classList;\n var className = cls.state.scrolling(x);\n\n if (classList.contains(className)) {\n clearTimeout(scrollingClassTimeout[x]);\n } else {\n classList.add(className);\n }\n}\n\nfunction removeScrollingClass(i, x) {\n scrollingClassTimeout[x] = setTimeout(\n function () { return i.isAlive && i.element.classList.remove(cls.state.scrolling(x)); },\n i.settings.scrollingThreshold\n );\n}\n\nfunction setScrollingClassInstantly(i, x) {\n addScrollingClass(i, x);\n removeScrollingClass(i, x);\n}\n\nvar EventElement = function EventElement(element) {\n this.element = element;\n this.handlers = {};\n};\n\nvar prototypeAccessors = { isEmpty: { configurable: true } };\n\nEventElement.prototype.bind = function bind (eventName, handler) {\n if (typeof this.handlers[eventName] === 'undefined') {\n this.handlers[eventName] = [];\n }\n this.handlers[eventName].push(handler);\n this.element.addEventListener(eventName, handler, false);\n};\n\nEventElement.prototype.unbind = function unbind (eventName, target) {\n var this$1 = this;\n\n this.handlers[eventName] = this.handlers[eventName].filter(function (handler) {\n if (target && handler !== target) {\n return true;\n }\n this$1.element.removeEventListener(eventName, handler, false);\n return false;\n });\n};\n\nEventElement.prototype.unbindAll = function unbindAll () {\n var this$1 = this;\n\n for (var name in this$1.handlers) {\n this$1.unbind(name);\n }\n};\n\nprototypeAccessors.isEmpty.get = function () {\n var this$1 = this;\n\n return Object.keys(this.handlers).every(\n function (key) { return this$1.handlers[key].length === 0; }\n );\n};\n\nObject.defineProperties( EventElement.prototype, prototypeAccessors );\n\nvar EventManager = function EventManager() {\n this.eventElements = [];\n};\n\nEventManager.prototype.eventElement = function eventElement (element) {\n var ee = this.eventElements.filter(function (ee) { return ee.element === element; })[0];\n if (!ee) {\n ee = new EventElement(element);\n this.eventElements.push(ee);\n }\n return ee;\n};\n\nEventManager.prototype.bind = function bind (element, eventName, handler) {\n this.eventElement(element).bind(eventName, handler);\n};\n\nEventManager.prototype.unbind = function unbind (element, eventName, handler) {\n var ee = this.eventElement(element);\n ee.unbind(eventName, handler);\n\n if (ee.isEmpty) {\n // remove\n this.eventElements.splice(this.eventElements.indexOf(ee), 1);\n }\n};\n\nEventManager.prototype.unbindAll = function unbindAll () {\n this.eventElements.forEach(function (e) { return e.unbindAll(); });\n this.eventElements = [];\n};\n\nEventManager.prototype.once = function once (element, eventName, handler) {\n var ee = this.eventElement(element);\n var onceHandler = function (evt) {\n ee.unbind(eventName, onceHandler);\n handler(evt);\n };\n ee.bind(eventName, onceHandler);\n};\n\nfunction createEvent(name) {\n if (typeof window.CustomEvent === 'function') {\n return new CustomEvent(name);\n } else {\n var evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(name, false, false, undefined);\n return evt;\n }\n}\n\nvar processScrollDiff = function(\n i,\n axis,\n diff,\n useScrollingClass,\n forceFireReachEvent\n) {\n if ( useScrollingClass === void 0 ) useScrollingClass = true;\n if ( forceFireReachEvent === void 0 ) forceFireReachEvent = false;\n\n var fields;\n if (axis === 'top') {\n fields = [\n 'contentHeight',\n 'containerHeight',\n 'scrollTop',\n 'y',\n 'up',\n 'down' ];\n } else if (axis === 'left') {\n fields = [\n 'contentWidth',\n 'containerWidth',\n 'scrollLeft',\n 'x',\n 'left',\n 'right' ];\n } else {\n throw new Error('A proper axis should be provided');\n }\n\n processScrollDiff$1(i, diff, fields, useScrollingClass, forceFireReachEvent);\n};\n\nfunction processScrollDiff$1(\n i,\n diff,\n ref,\n useScrollingClass,\n forceFireReachEvent\n) {\n var contentHeight = ref[0];\n var containerHeight = ref[1];\n var scrollTop = ref[2];\n var y = ref[3];\n var up = ref[4];\n var down = ref[5];\n if ( useScrollingClass === void 0 ) useScrollingClass = true;\n if ( forceFireReachEvent === void 0 ) forceFireReachEvent = false;\n\n var element = i.element;\n\n // reset reach\n i.reach[y] = null;\n\n // 1 for subpixel rounding\n if (element[scrollTop] < 1) {\n i.reach[y] = 'start';\n }\n\n // 1 for subpixel rounding\n if (element[scrollTop] > i[contentHeight] - i[containerHeight] - 1) {\n i.reach[y] = 'end';\n }\n\n if (diff) {\n element.dispatchEvent(createEvent((\"ps-scroll-\" + y)));\n\n if (diff < 0) {\n element.dispatchEvent(createEvent((\"ps-scroll-\" + up)));\n } else if (diff > 0) {\n element.dispatchEvent(createEvent((\"ps-scroll-\" + down)));\n }\n\n if (useScrollingClass) {\n setScrollingClassInstantly(i, y);\n }\n }\n\n if (i.reach[y] && (diff || forceFireReachEvent)) {\n element.dispatchEvent(createEvent((\"ps-\" + y + \"-reach-\" + (i.reach[y]))));\n }\n}\n\nfunction toInt(x) {\n return parseInt(x, 10) || 0;\n}\n\nfunction isEditable(el) {\n return (\n matches(el, 'input,[contenteditable]') ||\n matches(el, 'select,[contenteditable]') ||\n matches(el, 'textarea,[contenteditable]') ||\n matches(el, 'button,[contenteditable]')\n );\n}\n\nfunction outerWidth(element) {\n var styles = get(element);\n return (\n toInt(styles.width) +\n toInt(styles.paddingLeft) +\n toInt(styles.paddingRight) +\n toInt(styles.borderLeftWidth) +\n toInt(styles.borderRightWidth)\n );\n}\n\nvar env = {\n isWebKit:\n typeof document !== 'undefined' &&\n 'WebkitAppearance' in document.documentElement.style,\n supportsTouch:\n typeof window !== 'undefined' &&\n ('ontouchstart' in window ||\n (window.DocumentTouch && document instanceof window.DocumentTouch)),\n supportsIePointer:\n typeof navigator !== 'undefined' && navigator.msMaxTouchPoints,\n isChrome:\n typeof navigator !== 'undefined' &&\n /Chrome/i.test(navigator && navigator.userAgent),\n};\n\nvar updateGeometry = function(i) {\n var element = i.element;\n\n i.containerWidth = element.clientWidth;\n i.containerHeight = element.clientHeight;\n i.contentWidth = element.scrollWidth;\n i.contentHeight = element.scrollHeight;\n\n if (!element.contains(i.scrollbarXRail)) {\n // clean up and append\n queryChildren(element, cls.element.rail('x')).forEach(function (el) { return remove(el); }\n );\n element.appendChild(i.scrollbarXRail);\n }\n if (!element.contains(i.scrollbarYRail)) {\n // clean up and append\n queryChildren(element, cls.element.rail('y')).forEach(function (el) { return remove(el); }\n );\n element.appendChild(i.scrollbarYRail);\n }\n\n if (\n !i.settings.suppressScrollX &&\n i.containerWidth + i.settings.scrollXMarginOffset < i.contentWidth\n ) {\n i.scrollbarXActive = true;\n i.railXWidth = i.containerWidth - i.railXMarginWidth;\n i.railXRatio = i.containerWidth / i.railXWidth;\n i.scrollbarXWidth = getThumbSize(\n i,\n toInt(i.railXWidth * i.containerWidth / i.contentWidth)\n );\n i.scrollbarXLeft = toInt(\n (i.negativeScrollAdjustment + element.scrollLeft) *\n (i.railXWidth - i.scrollbarXWidth) /\n (i.contentWidth - i.containerWidth)\n );\n } else {\n i.scrollbarXActive = false;\n }\n\n if (\n !i.settings.suppressScrollY &&\n i.containerHeight + i.settings.scrollYMarginOffset < i.contentHeight\n ) {\n i.scrollbarYActive = true;\n i.railYHeight = i.containerHeight - i.railYMarginHeight;\n i.railYRatio = i.containerHeight / i.railYHeight;\n i.scrollbarYHeight = getThumbSize(\n i,\n toInt(i.railYHeight * i.containerHeight / i.contentHeight)\n );\n i.scrollbarYTop = toInt(\n element.scrollTop *\n (i.railYHeight - i.scrollbarYHeight) /\n (i.contentHeight - i.containerHeight)\n );\n } else {\n i.scrollbarYActive = false;\n }\n\n if (i.scrollbarXLeft >= i.railXWidth - i.scrollbarXWidth) {\n i.scrollbarXLeft = i.railXWidth - i.scrollbarXWidth;\n }\n if (i.scrollbarYTop >= i.railYHeight - i.scrollbarYHeight) {\n i.scrollbarYTop = i.railYHeight - i.scrollbarYHeight;\n }\n\n updateCss(element, i);\n\n if (i.scrollbarXActive) {\n element.classList.add(cls.state.active('x'));\n } else {\n element.classList.remove(cls.state.active('x'));\n i.scrollbarXWidth = 0;\n i.scrollbarXLeft = 0;\n element.scrollLeft = 0;\n }\n if (i.scrollbarYActive) {\n element.classList.add(cls.state.active('y'));\n } else {\n element.classList.remove(cls.state.active('y'));\n i.scrollbarYHeight = 0;\n i.scrollbarYTop = 0;\n element.scrollTop = 0;\n }\n};\n\nfunction getThumbSize(i, thumbSize) {\n if (i.settings.minScrollbarLength) {\n thumbSize = Math.max(thumbSize, i.settings.minScrollbarLength);\n }\n if (i.settings.maxScrollbarLength) {\n thumbSize = Math.min(thumbSize, i.settings.maxScrollbarLength);\n }\n return thumbSize;\n}\n\nfunction updateCss(element, i) {\n var xRailOffset = { width: i.railXWidth };\n if (i.isRtl) {\n xRailOffset.left =\n i.negativeScrollAdjustment +\n element.scrollLeft +\n i.containerWidth -\n i.contentWidth;\n } else {\n xRailOffset.left = element.scrollLeft;\n }\n if (i.isScrollbarXUsingBottom) {\n xRailOffset.bottom = i.scrollbarXBottom - element.scrollTop;\n } else {\n xRailOffset.top = i.scrollbarXTop + element.scrollTop;\n }\n set(i.scrollbarXRail, xRailOffset);\n\n var yRailOffset = { top: element.scrollTop, height: i.railYHeight };\n if (i.isScrollbarYUsingRight) {\n if (i.isRtl) {\n yRailOffset.right =\n i.contentWidth -\n (i.negativeScrollAdjustment + element.scrollLeft) -\n i.scrollbarYRight -\n i.scrollbarYOuterWidth;\n } else {\n yRailOffset.right = i.scrollbarYRight - element.scrollLeft;\n }\n } else {\n if (i.isRtl) {\n yRailOffset.left =\n i.negativeScrollAdjustment +\n element.scrollLeft +\n i.containerWidth * 2 -\n i.contentWidth -\n i.scrollbarYLeft -\n i.scrollbarYOuterWidth;\n } else {\n yRailOffset.left = i.scrollbarYLeft + element.scrollLeft;\n }\n }\n set(i.scrollbarYRail, yRailOffset);\n\n set(i.scrollbarX, {\n left: i.scrollbarXLeft,\n width: i.scrollbarXWidth - i.railBorderXWidth,\n });\n set(i.scrollbarY, {\n top: i.scrollbarYTop,\n height: i.scrollbarYHeight - i.railBorderYWidth,\n });\n}\n\nvar clickRail = function(i) {\n i.event.bind(i.scrollbarY, 'mousedown', function (e) { return e.stopPropagation(); });\n i.event.bind(i.scrollbarYRail, 'mousedown', function (e) {\n var positionTop =\n e.pageY -\n window.pageYOffset -\n i.scrollbarYRail.getBoundingClientRect().top;\n var direction = positionTop > i.scrollbarYTop ? 1 : -1;\n\n i.element.scrollTop += direction * i.containerHeight;\n updateGeometry(i);\n\n e.stopPropagation();\n });\n\n i.event.bind(i.scrollbarX, 'mousedown', function (e) { return e.stopPropagation(); });\n i.event.bind(i.scrollbarXRail, 'mousedown', function (e) {\n var positionLeft =\n e.pageX -\n window.pageXOffset -\n i.scrollbarXRail.getBoundingClientRect().left;\n var direction = positionLeft > i.scrollbarXLeft ? 1 : -1;\n\n i.element.scrollLeft += direction * i.containerWidth;\n updateGeometry(i);\n\n e.stopPropagation();\n });\n};\n\nvar dragThumb = function(i) {\n bindMouseScrollHandler(i, [\n 'containerWidth',\n 'contentWidth',\n 'pageX',\n 'railXWidth',\n 'scrollbarX',\n 'scrollbarXWidth',\n 'scrollLeft',\n 'x' ]);\n bindMouseScrollHandler(i, [\n 'containerHeight',\n 'contentHeight',\n 'pageY',\n 'railYHeight',\n 'scrollbarY',\n 'scrollbarYHeight',\n 'scrollTop',\n 'y' ]);\n};\n\nfunction bindMouseScrollHandler(\n i,\n ref\n) {\n var containerHeight = ref[0];\n var contentHeight = ref[1];\n var pageY = ref[2];\n var railYHeight = ref[3];\n var scrollbarY = ref[4];\n var scrollbarYHeight = ref[5];\n var scrollTop = ref[6];\n var y = ref[7];\n\n var element = i.element;\n\n var startingScrollTop = null;\n var startingMousePageY = null;\n var scrollBy = null;\n\n function mouseMoveHandler(e) {\n element[scrollTop] =\n startingScrollTop + scrollBy * (e[pageY] - startingMousePageY);\n addScrollingClass(i, y);\n updateGeometry(i);\n\n e.stopPropagation();\n e.preventDefault();\n }\n\n function mouseUpHandler() {\n removeScrollingClass(i, y);\n i.event.unbind(i.ownerDocument, 'mousemove', mouseMoveHandler);\n }\n\n i.event.bind(i[scrollbarY], 'mousedown', function (e) {\n startingScrollTop = element[scrollTop];\n startingMousePageY = e[pageY];\n scrollBy =\n (i[contentHeight] - i[containerHeight]) /\n (i[railYHeight] - i[scrollbarYHeight]);\n\n i.event.bind(i.ownerDocument, 'mousemove', mouseMoveHandler);\n i.event.once(i.ownerDocument, 'mouseup', mouseUpHandler);\n\n e.stopPropagation();\n e.preventDefault();\n });\n}\n\nvar keyboard = function(i) {\n var element = i.element;\n\n var elementHovered = function () { return matches(element, ':hover'); };\n var scrollbarFocused = function () { return matches(i.scrollbarX, ':focus') || matches(i.scrollbarY, ':focus'); };\n\n function shouldPreventDefault(deltaX, deltaY) {\n var scrollTop = element.scrollTop;\n if (deltaX === 0) {\n if (!i.scrollbarYActive) {\n return false;\n }\n if (\n (scrollTop === 0 && deltaY > 0) ||\n (scrollTop >= i.contentHeight - i.containerHeight && deltaY < 0)\n ) {\n return !i.settings.wheelPropagation;\n }\n }\n\n var scrollLeft = element.scrollLeft;\n if (deltaY === 0) {\n if (!i.scrollbarXActive) {\n return false;\n }\n if (\n (scrollLeft === 0 && deltaX < 0) ||\n (scrollLeft >= i.contentWidth - i.containerWidth && deltaX > 0)\n ) {\n return !i.settings.wheelPropagation;\n }\n }\n return true;\n }\n\n i.event.bind(i.ownerDocument, 'keydown', function (e) {\n if (\n (e.isDefaultPrevented && e.isDefaultPrevented()) ||\n e.defaultPrevented\n ) {\n return;\n }\n\n if (!elementHovered() && !scrollbarFocused()) {\n return;\n }\n\n var activeElement = document.activeElement\n ? document.activeElement\n : i.ownerDocument.activeElement;\n if (activeElement) {\n if (activeElement.tagName === 'IFRAME') {\n activeElement = activeElement.contentDocument.activeElement;\n } else {\n // go deeper if element is a webcomponent\n while (activeElement.shadowRoot) {\n activeElement = activeElement.shadowRoot.activeElement;\n }\n }\n if (isEditable(activeElement)) {\n return;\n }\n }\n\n var deltaX = 0;\n var deltaY = 0;\n\n switch (e.which) {\n case 37: // left\n if (e.metaKey) {\n deltaX = -i.contentWidth;\n } else if (e.altKey) {\n deltaX = -i.containerWidth;\n } else {\n deltaX = -30;\n }\n break;\n case 38: // up\n if (e.metaKey) {\n deltaY = i.contentHeight;\n } else if (e.altKey) {\n deltaY = i.containerHeight;\n } else {\n deltaY = 30;\n }\n break;\n case 39: // right\n if (e.metaKey) {\n deltaX = i.contentWidth;\n } else if (e.altKey) {\n deltaX = i.containerWidth;\n } else {\n deltaX = 30;\n }\n break;\n case 40: // down\n if (e.metaKey) {\n deltaY = -i.contentHeight;\n } else if (e.altKey) {\n deltaY = -i.containerHeight;\n } else {\n deltaY = -30;\n }\n break;\n case 32: // space bar\n if (e.shiftKey) {\n deltaY = i.containerHeight;\n } else {\n deltaY = -i.containerHeight;\n }\n break;\n case 33: // page up\n deltaY = i.containerHeight;\n break;\n case 34: // page down\n deltaY = -i.containerHeight;\n break;\n case 36: // home\n deltaY = i.contentHeight;\n break;\n case 35: // end\n deltaY = -i.contentHeight;\n break;\n default:\n return;\n }\n\n if (i.settings.suppressScrollX && deltaX !== 0) {\n return;\n }\n if (i.settings.suppressScrollY && deltaY !== 0) {\n return;\n }\n\n element.scrollTop -= deltaY;\n element.scrollLeft += deltaX;\n updateGeometry(i);\n\n if (shouldPreventDefault(deltaX, deltaY)) {\n e.preventDefault();\n }\n });\n};\n\nvar wheel = function(i) {\n var element = i.element;\n\n function shouldPreventDefault(deltaX, deltaY) {\n var isTop = element.scrollTop === 0;\n var isBottom =\n element.scrollTop + element.offsetHeight === element.scrollHeight;\n var isLeft = element.scrollLeft === 0;\n var isRight =\n element.scrollLeft + element.offsetWidth === element.offsetWidth;\n\n var hitsBound;\n\n // pick axis with primary direction\n if (Math.abs(deltaY) > Math.abs(deltaX)) {\n hitsBound = isTop || isBottom;\n } else {\n hitsBound = isLeft || isRight;\n }\n\n return hitsBound ? !i.settings.wheelPropagation : true;\n }\n\n function getDeltaFromEvent(e) {\n var deltaX = e.deltaX;\n var deltaY = -1 * e.deltaY;\n\n if (typeof deltaX === 'undefined' || typeof deltaY === 'undefined') {\n // OS X Safari\n deltaX = -1 * e.wheelDeltaX / 6;\n deltaY = e.wheelDeltaY / 6;\n }\n\n if (e.deltaMode && e.deltaMode === 1) {\n // Firefox in deltaMode 1: Line scrolling\n deltaX *= 10;\n deltaY *= 10;\n }\n\n if (deltaX !== deltaX && deltaY !== deltaY /* NaN checks */) {\n // IE in some mouse drivers\n deltaX = 0;\n deltaY = e.wheelDelta;\n }\n\n if (e.shiftKey) {\n // reverse axis with shift key\n return [-deltaY, -deltaX];\n }\n return [deltaX, deltaY];\n }\n\n function shouldBeConsumedByChild(target, deltaX, deltaY) {\n // FIXME: this is a workaround for issue in FF and IE #571\n if (!env.isWebKit && element.querySelector('select:focus')) {\n return true;\n }\n\n if (!element.contains(target)) {\n return false;\n }\n\n var cursor = target;\n\n while (cursor && cursor !== element) {\n if (cursor.classList.contains(cls.element.consuming)) {\n return true;\n }\n\n var style = get(cursor);\n var overflow = [style.overflow, style.overflowX, style.overflowY].join(\n ''\n );\n\n // if scrollable\n if (overflow.match(/(scroll|auto)/)) {\n var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;\n if (maxScrollTop > 0) {\n if (\n !(cursor.scrollTop === 0 && deltaY > 0) &&\n !(cursor.scrollTop === maxScrollTop && deltaY < 0)\n ) {\n return true;\n }\n }\n var maxScrollLeft = cursor.scrollLeft - cursor.clientWidth;\n if (maxScrollLeft > 0) {\n if (\n !(cursor.scrollLeft === 0 && deltaX < 0) &&\n !(cursor.scrollLeft === maxScrollLeft && deltaX > 0)\n ) {\n return true;\n }\n }\n }\n\n cursor = cursor.parentNode;\n }\n\n return false;\n }\n\n function mousewheelHandler(e) {\n var ref = getDeltaFromEvent(e);\n var deltaX = ref[0];\n var deltaY = ref[1];\n\n if (shouldBeConsumedByChild(e.target, deltaX, deltaY)) {\n return;\n }\n\n var shouldPrevent = false;\n if (!i.settings.useBothWheelAxes) {\n // deltaX will only be used for horizontal scrolling and deltaY will\n // only be used for vertical scrolling - this is the default\n element.scrollTop -= deltaY * i.settings.wheelSpeed;\n element.scrollLeft += deltaX * i.settings.wheelSpeed;\n } else if (i.scrollbarYActive && !i.scrollbarXActive) {\n // only vertical scrollbar is active and useBothWheelAxes option is\n // active, so let's scroll vertical bar using both mouse wheel axes\n if (deltaY) {\n element.scrollTop -= deltaY * i.settings.wheelSpeed;\n } else {\n element.scrollTop += deltaX * i.settings.wheelSpeed;\n }\n shouldPrevent = true;\n } else if (i.scrollbarXActive && !i.scrollbarYActive) {\n // useBothWheelAxes and only horizontal bar is active, so use both\n // wheel axes for horizontal bar\n if (deltaX) {\n element.scrollLeft += deltaX * i.settings.wheelSpeed;\n } else {\n element.scrollLeft -= deltaY * i.settings.wheelSpeed;\n }\n shouldPrevent = true;\n }\n\n updateGeometry(i);\n\n shouldPrevent = shouldPrevent || shouldPreventDefault(deltaX, deltaY);\n if (shouldPrevent && !e.ctrlKey) {\n e.stopPropagation();\n e.preventDefault();\n }\n }\n\n if (typeof window.onwheel !== 'undefined') {\n i.event.bind(element, 'wheel', mousewheelHandler);\n } else if (typeof window.onmousewheel !== 'undefined') {\n i.event.bind(element, 'mousewheel', mousewheelHandler);\n }\n};\n\nvar touch = function(i) {\n if (!env.supportsTouch && !env.supportsIePointer) {\n return;\n }\n\n var element = i.element;\n\n function shouldPrevent(deltaX, deltaY) {\n var scrollTop = element.scrollTop;\n var scrollLeft = element.scrollLeft;\n var magnitudeX = Math.abs(deltaX);\n var magnitudeY = Math.abs(deltaY);\n\n if (magnitudeY > magnitudeX) {\n // user is perhaps trying to swipe up/down the page\n\n if (\n (deltaY < 0 && scrollTop === i.contentHeight - i.containerHeight) ||\n (deltaY > 0 && scrollTop === 0)\n ) {\n // set prevent for mobile Chrome refresh\n return window.scrollY === 0 && deltaY > 0 && env.isChrome;\n }\n } else if (magnitudeX > magnitudeY) {\n // user is perhaps trying to swipe left/right across the page\n\n if (\n (deltaX < 0 && scrollLeft === i.contentWidth - i.containerWidth) ||\n (deltaX > 0 && scrollLeft === 0)\n ) {\n return true;\n }\n }\n\n return true;\n }\n\n function applyTouchMove(differenceX, differenceY) {\n element.scrollTop -= differenceY;\n element.scrollLeft -= differenceX;\n\n updateGeometry(i);\n }\n\n var startOffset = {};\n var startTime = 0;\n var speed = {};\n var easingLoop = null;\n\n function getTouch(e) {\n if (e.targetTouches) {\n return e.targetTouches[0];\n } else {\n // Maybe IE pointer\n return e;\n }\n }\n\n function shouldHandle(e) {\n if (e.pointerType && e.pointerType === 'pen' && e.buttons === 0) {\n return false;\n }\n if (e.targetTouches && e.targetTouches.length === 1) {\n return true;\n }\n if (\n e.pointerType &&\n e.pointerType !== 'mouse' &&\n e.pointerType !== e.MSPOINTER_TYPE_MOUSE\n ) {\n return true;\n }\n return false;\n }\n\n function touchStart(e) {\n if (!shouldHandle(e)) {\n return;\n }\n\n var touch = getTouch(e);\n\n startOffset.pageX = touch.pageX;\n startOffset.pageY = touch.pageY;\n\n startTime = new Date().getTime();\n\n if (easingLoop !== null) {\n clearInterval(easingLoop);\n }\n }\n\n function shouldBeConsumedByChild(target, deltaX, deltaY) {\n if (!element.contains(target)) {\n return false;\n }\n\n var cursor = target;\n\n while (cursor && cursor !== element) {\n if (cursor.classList.contains(cls.element.consuming)) {\n return true;\n }\n\n var style = get(cursor);\n var overflow = [style.overflow, style.overflowX, style.overflowY].join(\n ''\n );\n\n // if scrollable\n if (overflow.match(/(scroll|auto)/)) {\n var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;\n if (maxScrollTop > 0) {\n if (\n !(cursor.scrollTop === 0 && deltaY > 0) &&\n !(cursor.scrollTop === maxScrollTop && deltaY < 0)\n ) {\n return true;\n }\n }\n var maxScrollLeft = cursor.scrollLeft - cursor.clientWidth;\n if (maxScrollLeft > 0) {\n if (\n !(cursor.scrollLeft === 0 && deltaX < 0) &&\n !(cursor.scrollLeft === maxScrollLeft && deltaX > 0)\n ) {\n return true;\n }\n }\n }\n\n cursor = cursor.parentNode;\n }\n\n return false;\n }\n\n function touchMove(e) {\n if (shouldHandle(e)) {\n var touch = getTouch(e);\n\n var currentOffset = { pageX: touch.pageX, pageY: touch.pageY };\n\n var differenceX = currentOffset.pageX - startOffset.pageX;\n var differenceY = currentOffset.pageY - startOffset.pageY;\n\n if (shouldBeConsumedByChild(e.target, differenceX, differenceY)) {\n return;\n }\n\n applyTouchMove(differenceX, differenceY);\n startOffset = currentOffset;\n\n var currentTime = new Date().getTime();\n\n var timeGap = currentTime - startTime;\n if (timeGap > 0) {\n speed.x = differenceX / timeGap;\n speed.y = differenceY / timeGap;\n startTime = currentTime;\n }\n\n if (shouldPrevent(differenceX, differenceY)) {\n e.preventDefault();\n }\n }\n }\n function touchEnd() {\n if (i.settings.swipeEasing) {\n clearInterval(easingLoop);\n easingLoop = setInterval(function() {\n if (i.isInitialized) {\n clearInterval(easingLoop);\n return;\n }\n\n if (!speed.x && !speed.y) {\n clearInterval(easingLoop);\n return;\n }\n\n if (Math.abs(speed.x) < 0.01 && Math.abs(speed.y) < 0.01) {\n clearInterval(easingLoop);\n return;\n }\n\n applyTouchMove(speed.x * 30, speed.y * 30);\n\n speed.x *= 0.8;\n speed.y *= 0.8;\n }, 10);\n }\n }\n\n if (env.supportsTouch) {\n i.event.bind(element, 'touchstart', touchStart);\n i.event.bind(element, 'touchmove', touchMove);\n i.event.bind(element, 'touchend', touchEnd);\n } else if (env.supportsIePointer) {\n if (window.PointerEvent) {\n i.event.bind(element, 'pointerdown', touchStart);\n i.event.bind(element, 'pointermove', touchMove);\n i.event.bind(element, 'pointerup', touchEnd);\n } else if (window.MSPointerEvent) {\n i.event.bind(element, 'MSPointerDown', touchStart);\n i.event.bind(element, 'MSPointerMove', touchMove);\n i.event.bind(element, 'MSPointerUp', touchEnd);\n }\n }\n};\n\nvar defaultSettings = function () { return ({\n handlers: ['click-rail', 'drag-thumb', 'keyboard', 'wheel', 'touch'],\n maxScrollbarLength: null,\n minScrollbarLength: null,\n scrollingThreshold: 1000,\n scrollXMarginOffset: 0,\n scrollYMarginOffset: 0,\n suppressScrollX: false,\n suppressScrollY: false,\n swipeEasing: true,\n useBothWheelAxes: false,\n wheelPropagation: false,\n wheelSpeed: 1,\n}); };\n\nvar handlers = {\n 'click-rail': clickRail,\n 'drag-thumb': dragThumb,\n keyboard: keyboard,\n wheel: wheel,\n touch: touch,\n};\n\nvar PerfectScrollbar = function PerfectScrollbar(element, userSettings) {\n var this$1 = this;\n if ( userSettings === void 0 ) userSettings = {};\n\n if (typeof element === 'string') {\n element = document.querySelector(element);\n }\n\n if (!element || !element.nodeName) {\n throw new Error('no element is specified to initialize PerfectScrollbar');\n }\n\n this.element = element;\n\n element.classList.add(cls.main);\n\n this.settings = defaultSettings();\n for (var key in userSettings) {\n this$1.settings[key] = userSettings[key];\n }\n\n this.containerWidth = null;\n this.containerHeight = null;\n this.contentWidth = null;\n this.contentHeight = null;\n\n var focus = function () { return element.classList.add(cls.state.focus); };\n var blur = function () { return element.classList.remove(cls.state.focus); };\n\n this.isRtl = get(element).direction === 'rtl';\n this.isNegativeScroll = (function () {\n var originalScrollLeft = element.scrollLeft;\n var result = null;\n element.scrollLeft = -1;\n result = element.scrollLeft < 0;\n element.scrollLeft = originalScrollLeft;\n return result;\n })();\n this.negativeScrollAdjustment = this.isNegativeScroll\n ? element.scrollWidth - element.clientWidth\n : 0;\n this.event = new EventManager();\n this.ownerDocument = element.ownerDocument || document;\n\n this.scrollbarXRail = div(cls.element.rail('x'));\n element.appendChild(this.scrollbarXRail);\n this.scrollbarX = div(cls.element.thumb('x'));\n this.scrollbarXRail.appendChild(this.scrollbarX);\n this.scrollbarX.setAttribute('tabindex', 0);\n this.event.bind(this.scrollbarX, 'focus', focus);\n this.event.bind(this.scrollbarX, 'blur', blur);\n this.scrollbarXActive = null;\n this.scrollbarXWidth = null;\n this.scrollbarXLeft = null;\n var railXStyle = get(this.scrollbarXRail);\n this.scrollbarXBottom = parseInt(railXStyle.bottom, 10);\n if (isNaN(this.scrollbarXBottom)) {\n this.isScrollbarXUsingBottom = false;\n this.scrollbarXTop = toInt(railXStyle.top);\n } else {\n this.isScrollbarXUsingBottom = true;\n }\n this.railBorderXWidth =\n toInt(railXStyle.borderLeftWidth) + toInt(railXStyle.borderRightWidth);\n // Set rail to display:block to calculate margins\n set(this.scrollbarXRail, { display: 'block' });\n this.railXMarginWidth =\n toInt(railXStyle.marginLeft) + toInt(railXStyle.marginRight);\n set(this.scrollbarXRail, { display: '' });\n this.railXWidth = null;\n this.railXRatio = null;\n\n this.scrollbarYRail = div(cls.element.rail('y'));\n element.appendChild(this.scrollbarYRail);\n this.scrollbarY = div(cls.element.thumb('y'));\n this.scrollbarYRail.appendChild(this.scrollbarY);\n this.scrollbarY.setAttribute('tabindex', 0);\n this.event.bind(this.scrollbarY, 'focus', focus);\n this.event.bind(this.scrollbarY, 'blur', blur);\n this.scrollbarYActive = null;\n this.scrollbarYHeight = null;\n this.scrollbarYTop = null;\n var railYStyle = get(this.scrollbarYRail);\n this.scrollbarYRight = parseInt(railYStyle.right, 10);\n if (isNaN(this.scrollbarYRight)) {\n this.isScrollbarYUsingRight = false;\n this.scrollbarYLeft = toInt(railYStyle.left);\n } else {\n this.isScrollbarYUsingRight = true;\n }\n this.scrollbarYOuterWidth = this.isRtl ? outerWidth(this.scrollbarY) : null;\n this.railBorderYWidth =\n toInt(railYStyle.borderTopWidth) + toInt(railYStyle.borderBottomWidth);\n set(this.scrollbarYRail, { display: 'block' });\n this.railYMarginHeight =\n toInt(railYStyle.marginTop) + toInt(railYStyle.marginBottom);\n set(this.scrollbarYRail, { display: '' });\n this.railYHeight = null;\n this.railYRatio = null;\n\n this.reach = {\n x:\n element.scrollLeft <= 0\n ? 'start'\n : element.scrollLeft >= this.contentWidth - this.containerWidth\n ? 'end'\n : null,\n y:\n element.scrollTop <= 0\n ? 'start'\n : element.scrollTop >= this.contentHeight - this.containerHeight\n ? 'end'\n : null,\n };\n\n this.isAlive = true;\n\n this.settings.handlers.forEach(function (handlerName) { return handlers[handlerName](this$1); });\n\n this.lastScrollTop = element.scrollTop; // for onScroll only\n this.lastScrollLeft = element.scrollLeft; // for onScroll only\n this.event.bind(this.element, 'scroll', function (e) { return this$1.onScroll(e); });\n updateGeometry(this);\n};\n\nPerfectScrollbar.prototype.update = function update () {\n if (!this.isAlive) {\n return;\n }\n\n // Recalcuate negative scrollLeft adjustment\n this.negativeScrollAdjustment = this.isNegativeScroll\n ? this.element.scrollWidth - this.element.clientWidth\n : 0;\n\n // Recalculate rail margins\n set(this.scrollbarXRail, { display: 'block' });\n set(this.scrollbarYRail, { display: 'block' });\n this.railXMarginWidth =\n toInt(get(this.scrollbarXRail).marginLeft) +\n toInt(get(this.scrollbarXRail).marginRight);\n this.railYMarginHeight =\n toInt(get(this.scrollbarYRail).marginTop) +\n toInt(get(this.scrollbarYRail).marginBottom);\n\n // Hide scrollbars not to affect scrollWidth and scrollHeight\n set(this.scrollbarXRail, { display: 'none' });\n set(this.scrollbarYRail, { display: 'none' });\n\n updateGeometry(this);\n\n processScrollDiff(this, 'top', 0, false, true);\n processScrollDiff(this, 'left', 0, false, true);\n\n set(this.scrollbarXRail, { display: '' });\n set(this.scrollbarYRail, { display: '' });\n};\n\nPerfectScrollbar.prototype.onScroll = function onScroll (e) {\n if (!this.isAlive) {\n return;\n }\n\n updateGeometry(this);\n processScrollDiff(this, 'top', this.element.scrollTop - this.lastScrollTop);\n processScrollDiff(\n this,\n 'left',\n this.element.scrollLeft - this.lastScrollLeft\n );\n\n this.lastScrollTop = this.element.scrollTop;\n this.lastScrollLeft = this.element.scrollLeft;\n};\n\nPerfectScrollbar.prototype.destroy = function destroy () {\n if (!this.isAlive) {\n return;\n }\n\n this.event.unbindAll();\n remove(this.scrollbarX);\n remove(this.scrollbarY);\n remove(this.scrollbarXRail);\n remove(this.scrollbarYRail);\n this.removePsClasses();\n\n // unset elements\n this.element = null;\n this.scrollbarX = null;\n this.scrollbarY = null;\n this.scrollbarXRail = null;\n this.scrollbarYRail = null;\n\n this.isAlive = false;\n};\n\nPerfectScrollbar.prototype.removePsClasses = function removePsClasses () {\n this.element.className = this.element.className\n .split(' ')\n .filter(function (name) { return !name.match(/^ps([-_].+|)$/); })\n .join(' ');\n};\n\nexport default PerfectScrollbar;\n","function select(element) {\n var selectedText;\n\n if (element.nodeName === 'SELECT') {\n element.focus();\n\n selectedText = element.value;\n }\n else if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {\n var isReadOnly = element.hasAttribute('readonly');\n\n if (!isReadOnly) {\n element.setAttribute('readonly', '');\n }\n\n element.select();\n element.setSelectionRange(0, element.value.length);\n\n if (!isReadOnly) {\n element.removeAttribute('readonly');\n }\n\n selectedText = element.value;\n }\n else {\n if (element.hasAttribute('contenteditable')) {\n element.focus();\n }\n\n var selection = window.getSelection();\n var range = document.createRange();\n\n range.selectNodeContents(element);\n selection.removeAllRanges();\n selection.addRange(range);\n\n selectedText = selection.toString();\n }\n\n return selectedText;\n}\n\nmodule.exports = select;\n","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['module', 'select'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(module, require('select'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod, global.select);\n global.clipboardAction = mod.exports;\n }\n})(this, function (module, _select) {\n 'use strict';\n\n var _select2 = _interopRequireDefault(_select);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n var ClipboardAction = function () {\n /**\n * @param {Object} options\n */\n function ClipboardAction(options) {\n _classCallCheck(this, ClipboardAction);\n\n this.resolveOptions(options);\n this.initSelection();\n }\n\n /**\n * Defines base properties passed from constructor.\n * @param {Object} options\n */\n\n\n _createClass(ClipboardAction, [{\n key: 'resolveOptions',\n value: function resolveOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n this.action = options.action;\n this.container = options.container;\n this.emitter = options.emitter;\n this.target = options.target;\n this.text = options.text;\n this.trigger = options.trigger;\n\n this.selectedText = '';\n }\n }, {\n key: 'initSelection',\n value: function initSelection() {\n if (this.text) {\n this.selectFake();\n } else if (this.target) {\n this.selectTarget();\n }\n }\n }, {\n key: 'selectFake',\n value: function selectFake() {\n var _this = this;\n\n var isRTL = document.documentElement.getAttribute('dir') == 'rtl';\n\n this.removeFake();\n\n this.fakeHandlerCallback = function () {\n return _this.removeFake();\n };\n this.fakeHandler = this.container.addEventListener('click', this.fakeHandlerCallback) || true;\n\n this.fakeElem = document.createElement('textarea');\n // Prevent zooming on iOS\n this.fakeElem.style.fontSize = '12pt';\n // Reset box model\n this.fakeElem.style.border = '0';\n this.fakeElem.style.padding = '0';\n this.fakeElem.style.margin = '0';\n // Move element out of screen horizontally\n this.fakeElem.style.position = 'absolute';\n this.fakeElem.style[isRTL ? 'right' : 'left'] = '-9999px';\n // Move element to the same position vertically\n var yPosition = window.pageYOffset || document.documentElement.scrollTop;\n this.fakeElem.style.top = yPosition + 'px';\n\n this.fakeElem.setAttribute('readonly', '');\n this.fakeElem.value = this.text;\n\n this.container.appendChild(this.fakeElem);\n\n this.selectedText = (0, _select2.default)(this.fakeElem);\n this.copyText();\n }\n }, {\n key: 'removeFake',\n value: function removeFake() {\n if (this.fakeHandler) {\n this.container.removeEventListener('click', this.fakeHandlerCallback);\n this.fakeHandler = null;\n this.fakeHandlerCallback = null;\n }\n\n if (this.fakeElem) {\n this.container.removeChild(this.fakeElem);\n this.fakeElem = null;\n }\n }\n }, {\n key: 'selectTarget',\n value: function selectTarget() {\n this.selectedText = (0, _select2.default)(this.target);\n this.copyText();\n }\n }, {\n key: 'copyText',\n value: function copyText() {\n var succeeded = void 0;\n\n try {\n succeeded = document.execCommand(this.action);\n } catch (err) {\n succeeded = false;\n }\n\n this.handleResult(succeeded);\n }\n }, {\n key: 'handleResult',\n value: function handleResult(succeeded) {\n this.emitter.emit(succeeded ? 'success' : 'error', {\n action: this.action,\n text: this.selectedText,\n trigger: this.trigger,\n clearSelection: this.clearSelection.bind(this)\n });\n }\n }, {\n key: 'clearSelection',\n value: function clearSelection() {\n if (this.trigger) {\n this.trigger.focus();\n }\n\n window.getSelection().removeAllRanges();\n }\n }, {\n key: 'destroy',\n value: function destroy() {\n this.removeFake();\n }\n }, {\n key: 'action',\n set: function set() {\n var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'copy';\n\n this._action = action;\n\n if (this._action !== 'copy' && this._action !== 'cut') {\n throw new Error('Invalid \"action\" value, use either \"copy\" or \"cut\"');\n }\n },\n get: function get() {\n return this._action;\n }\n }, {\n key: 'target',\n set: function set(target) {\n if (target !== undefined) {\n if (target && (typeof target === 'undefined' ? 'undefined' : _typeof(target)) === 'object' && target.nodeType === 1) {\n if (this.action === 'copy' && target.hasAttribute('disabled')) {\n throw new Error('Invalid \"target\" attribute. Please use \"readonly\" instead of \"disabled\" attribute');\n }\n\n if (this.action === 'cut' && (target.hasAttribute('readonly') || target.hasAttribute('disabled'))) {\n throw new Error('Invalid \"target\" attribute. You can\\'t cut text from elements with \"readonly\" or \"disabled\" attributes');\n }\n\n this._target = target;\n } else {\n throw new Error('Invalid \"target\" value, use a valid Element');\n }\n }\n },\n get: function get() {\n return this._target;\n }\n }]);\n\n return ClipboardAction;\n }();\n\n module.exports = ClipboardAction;\n});","function E () {\n // Keep this empty so it's easier to inherit from\n // (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)\n}\n\nE.prototype = {\n on: function (name, callback, ctx) {\n var e = this.e || (this.e = {});\n\n (e[name] || (e[name] = [])).push({\n fn: callback,\n ctx: ctx\n });\n\n return this;\n },\n\n once: function (name, callback, ctx) {\n var self = this;\n function listener () {\n self.off(name, listener);\n callback.apply(ctx, arguments);\n };\n\n listener._ = callback\n return this.on(name, listener, ctx);\n },\n\n emit: function (name) {\n var data = [].slice.call(arguments, 1);\n var evtArr = ((this.e || (this.e = {}))[name] || []).slice();\n var i = 0;\n var len = evtArr.length;\n\n for (i; i < len; i++) {\n evtArr[i].fn.apply(evtArr[i].ctx, data);\n }\n\n return this;\n },\n\n off: function (name, callback) {\n var e = this.e || (this.e = {});\n var evts = e[name];\n var liveEvents = [];\n\n if (evts && callback) {\n for (var i = 0, len = evts.length; i < len; i++) {\n if (evts[i].fn !== callback && evts[i].fn._ !== callback)\n liveEvents.push(evts[i]);\n }\n }\n\n // Remove event from queue to prevent memory leak\n // Suggested by https://github.com/lazd\n // Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910\n\n (liveEvents.length)\n ? e[name] = liveEvents\n : delete e[name];\n\n return this;\n }\n};\n\nmodule.exports = E;\n","/**\n * Check if argument is a HTML element.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.node = function(value) {\n return value !== undefined\n && value instanceof HTMLElement\n && value.nodeType === 1;\n};\n\n/**\n * Check if argument is a list of HTML elements.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.nodeList = function(value) {\n var type = Object.prototype.toString.call(value);\n\n return value !== undefined\n && (type === '[object NodeList]' || type === '[object HTMLCollection]')\n && ('length' in value)\n && (value.length === 0 || exports.node(value[0]));\n};\n\n/**\n * Check if argument is a string.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.string = function(value) {\n return typeof value === 'string'\n || value instanceof String;\n};\n\n/**\n * Check if argument is a function.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.fn = function(value) {\n var type = Object.prototype.toString.call(value);\n\n return type === '[object Function]';\n};\n","var DOCUMENT_NODE_TYPE = 9;\n\n/**\n * A polyfill for Element.matches()\n */\nif (typeof Element !== 'undefined' && !Element.prototype.matches) {\n var proto = Element.prototype;\n\n proto.matches = proto.matchesSelector ||\n proto.mozMatchesSelector ||\n proto.msMatchesSelector ||\n proto.oMatchesSelector ||\n proto.webkitMatchesSelector;\n}\n\n/**\n * Finds the closest parent that matches a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @return {Function}\n */\nfunction closest (element, selector) {\n while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {\n if (typeof element.matches === 'function' &&\n element.matches(selector)) {\n return element;\n }\n element = element.parentNode;\n }\n}\n\nmodule.exports = closest;\n","var closest = require('./closest');\n\n/**\n * Delegates event to a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\nfunction delegate(element, selector, type, callback, useCapture) {\n var listenerFn = listener.apply(this, arguments);\n\n element.addEventListener(type, listenerFn, useCapture);\n\n return {\n destroy: function() {\n element.removeEventListener(type, listenerFn, useCapture);\n }\n }\n}\n\n/**\n * Finds closest match and invokes callback.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Function}\n */\nfunction listener(element, selector, type, callback) {\n return function(e) {\n e.delegateTarget = closest(e.target, selector);\n\n if (e.delegateTarget) {\n callback.call(element, e);\n }\n }\n}\n\nmodule.exports = delegate;\n","var is = require('./is');\nvar delegate = require('delegate');\n\n/**\n * Validates all params and calls the right\n * listener function based on its target type.\n *\n * @param {String|HTMLElement|HTMLCollection|NodeList} target\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listen(target, type, callback) {\n if (!target && !type && !callback) {\n throw new Error('Missing required arguments');\n }\n\n if (!is.string(type)) {\n throw new TypeError('Second argument must be a String');\n }\n\n if (!is.fn(callback)) {\n throw new TypeError('Third argument must be a Function');\n }\n\n if (is.node(target)) {\n return listenNode(target, type, callback);\n }\n else if (is.nodeList(target)) {\n return listenNodeList(target, type, callback);\n }\n else if (is.string(target)) {\n return listenSelector(target, type, callback);\n }\n else {\n throw new TypeError('First argument must be a String, HTMLElement, HTMLCollection, or NodeList');\n }\n}\n\n/**\n * Adds an event listener to a HTML element\n * and returns a remove listener function.\n *\n * @param {HTMLElement} node\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNode(node, type, callback) {\n node.addEventListener(type, callback);\n\n return {\n destroy: function() {\n node.removeEventListener(type, callback);\n }\n }\n}\n\n/**\n * Add an event listener to a list of HTML elements\n * and returns a remove listener function.\n *\n * @param {NodeList|HTMLCollection} nodeList\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNodeList(nodeList, type, callback) {\n Array.prototype.forEach.call(nodeList, function(node) {\n node.addEventListener(type, callback);\n });\n\n return {\n destroy: function() {\n Array.prototype.forEach.call(nodeList, function(node) {\n node.removeEventListener(type, callback);\n });\n }\n }\n}\n\n/**\n * Add an event listener to a selector\n * and returns a remove listener function.\n *\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenSelector(selector, type, callback) {\n return delegate(document.body, selector, type, callback);\n}\n\nmodule.exports = listen;\n","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['module', './clipboard-action', 'tiny-emitter', 'good-listener'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(module, require('./clipboard-action'), require('tiny-emitter'), require('good-listener'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod, global.clipboardAction, global.tinyEmitter, global.goodListener);\n global.clipboard = mod.exports;\n }\n})(this, function (module, _clipboardAction, _tinyEmitter, _goodListener) {\n 'use strict';\n\n var _clipboardAction2 = _interopRequireDefault(_clipboardAction);\n\n var _tinyEmitter2 = _interopRequireDefault(_tinyEmitter);\n\n var _goodListener2 = _interopRequireDefault(_goodListener);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n }\n\n var Clipboard = function (_Emitter) {\n _inherits(Clipboard, _Emitter);\n\n /**\n * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n * @param {Object} options\n */\n function Clipboard(trigger, options) {\n _classCallCheck(this, Clipboard);\n\n var _this = _possibleConstructorReturn(this, (Clipboard.__proto__ || Object.getPrototypeOf(Clipboard)).call(this));\n\n _this.resolveOptions(options);\n _this.listenClick(trigger);\n return _this;\n }\n\n /**\n * Defines if attributes would be resolved using internal setter functions\n * or custom functions that were passed in the constructor.\n * @param {Object} options\n */\n\n\n _createClass(Clipboard, [{\n key: 'resolveOptions',\n value: function resolveOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n this.action = typeof options.action === 'function' ? options.action : this.defaultAction;\n this.target = typeof options.target === 'function' ? options.target : this.defaultTarget;\n this.text = typeof options.text === 'function' ? options.text : this.defaultText;\n this.container = _typeof(options.container) === 'object' ? options.container : document.body;\n }\n }, {\n key: 'listenClick',\n value: function listenClick(trigger) {\n var _this2 = this;\n\n this.listener = (0, _goodListener2.default)(trigger, 'click', function (e) {\n return _this2.onClick(e);\n });\n }\n }, {\n key: 'onClick',\n value: function onClick(e) {\n var trigger = e.delegateTarget || e.currentTarget;\n\n if (this.clipboardAction) {\n this.clipboardAction = null;\n }\n\n this.clipboardAction = new _clipboardAction2.default({\n action: this.action(trigger),\n target: this.target(trigger),\n text: this.text(trigger),\n container: this.container,\n trigger: trigger,\n emitter: this\n });\n }\n }, {\n key: 'defaultAction',\n value: function defaultAction(trigger) {\n return getAttributeValue('action', trigger);\n }\n }, {\n key: 'defaultTarget',\n value: function defaultTarget(trigger) {\n var selector = getAttributeValue('target', trigger);\n\n if (selector) {\n return document.querySelector(selector);\n }\n }\n }, {\n key: 'defaultText',\n value: function defaultText(trigger) {\n return getAttributeValue('text', trigger);\n }\n }, {\n key: 'destroy',\n value: function destroy() {\n this.listener.destroy();\n\n if (this.clipboardAction) {\n this.clipboardAction.destroy();\n this.clipboardAction = null;\n }\n }\n }], [{\n key: 'isSupported',\n value: function isSupported() {\n var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['copy', 'cut'];\n\n var actions = typeof action === 'string' ? [action] : action;\n var support = !!document.queryCommandSupported;\n\n actions.forEach(function (action) {\n support = support && !!document.queryCommandSupported(action);\n });\n\n return support;\n }\n }]);\n\n return Clipboard;\n }(_tinyEmitter2.default);\n\n /**\n * Helper function to retrieve attribute value.\n * @param {String} suffix\n * @param {Element} element\n */\n function getAttributeValue(suffix, element) {\n var attribute = 'data-clipboard-' + suffix;\n\n if (!element.hasAttribute(attribute)) {\n return;\n }\n\n return element.getAttribute(attribute);\n }\n\n module.exports = Clipboard;\n});","import PerfectScrollbar from 'perfect-scrollbar';\nimport Clipboard from 'clipboard';\nimport Constants from '../configuration/Constants';\n\n/**\n * Smart guide\n * @typedef {Object} SmartGuide\n * @property {Editor} editor - A reference to the current editor.\n * @property {String} wordToChange - Word to change following a click on a word.\n * @property {String} lastWord - Keep the last word of the previous export to compare with the new and scroll if it's different.\n * @property {String} previousLabelExport - Keep the previous label export to know if we should repopulate the prompter text.\n * @property {PerfectScrollbar} perfectScrollbar - Perfect Scrollbar used to get gestures from smart guide using touch-action none anyway and get scrolling too.\n * @property {Object} elements - All the HTML elements of the smart guide.\n * @property {Number} smartGuideTimeOutId - Id of the setTimeOut from fade out animation to clear.\n * @property {String} randomString - Random string used in case of multiple smart guide.\n */\n\n/**\n * Create all the smart guide HTML elements.\n */\nfunction createHTMLElements(randomString) {\n /**\n * The smart guide element.\n * @type {HTMLDivElement}\n */\n const smartGuideElement = document.createElement('div');\n smartGuideElement.id = 'smartguide' + randomString;\n smartGuideElement.classList.add('smartguide');\n\n /**\n * The prompter text element that contains the text to get the overflow working.\n * @type {HTMLDivElement}\n */\n const textElement = document.createElement('div');\n textElement.id = 'prompter-text' + randomString;\n textElement.classList.add('prompter-text');\n textElement.setAttribute('touch-action', 'none');\n\n /**\n * The text container element that contains the text element.\n * @type {HTMLDivElement}\n */\n const textContainer = document.createElement('div');\n textContainer.id = 'prompter-text-container' + randomString;\n textContainer.classList.add('prompter-text-container');\n textContainer.appendChild(textElement);\n\n /**\n * The actions menu represented by the ellipsis character.\n * @type {HTMLDivElement}\n */\n const ellipsisElement = document.createElement('div');\n ellipsisElement.id = 'ellipsis' + randomString;\n ellipsisElement.classList.add('ellipsis');\n ellipsisElement.innerHTML = '...';\n\n /**\n * The tag element.\n * @type {HTMLDivElement}\n */\n const tagElement = document.createElement('div');\n tagElement.id = 'tag-icon' + randomString;\n tagElement.classList.add('tag-icon');\n tagElement.innerHTML = '¶';\n\n /**\n * The candidates element that contains the candidates for a word.\n * @type {HTMLDivElement}\n */\n const candidatesElement = document.createElement('div');\n candidatesElement.id = 'candidates' + randomString;\n candidatesElement.classList.add('candidates');\n\n /**\n * The menu element that contains the actions.\n * @type {HTMLDivElement}\n */\n const menuElement = document.createElement('div');\n menuElement.id = 'more-menu' + randomString;\n menuElement.classList.add('more-menu');\n\n /**\n * The convert button from actions menu.\n * @type {HTMLButtonElement}\n */\n const convertElement = document.createElement('button');\n convertElement.classList.add('options-label-button');\n convertElement.id = 'convert' + randomString;\n convertElement.innerHTML = 'Convert';\n\n /**\n * The copy button from actions menu.\n * @type {HTMLButtonElement}\n */\n const copyElement = document.createElement('button');\n copyElement.classList.add('options-label-button');\n copyElement.id = 'copy' + randomString;\n copyElement.innerHTML = 'Copy';\n\n /**\n * The delete button from actions menu.\n * @type {HTMLButtonElement}\n */\n const deleteElement = document.createElement('button');\n deleteElement.classList.add('options-label-button');\n deleteElement.id = 'delete' + randomString;\n deleteElement.innerHTML = 'Delete';\n\n return {\n smartGuideElement,\n textElement,\n textContainer,\n candidatesElement,\n menuElement,\n tagElement,\n ellipsisElement,\n convertElement,\n copyElement,\n deleteElement,\n };\n}\n\n/**\n * Check if node is in shadow dom\n * @param {Node} node - A node element.\n * @returns {boolean} true if is in shadow dom, false otherwise.\n */\nfunction isInShadow(node) {\n let parent = (node && node.parentNode);\n while (parent) {\n if (parent.toString() === '[object ShadowRoot]') {\n return true;\n }\n parent = parent.parentNode;\n }\n return false;\n}\n\n/**\n * Show the actions of the action menu.\n * @param {Event} evt - Event used to insert the option div using the event's target.\n * @param {Object} elements - All the elements of the smart guide.\n * @param {SmartGuide} smartGuide\n */\nfunction showActions(evt, elements) {\n const elementsRef = elements;\n\n const insertActions = () => {\n elementsRef.menuElement.appendChild(elementsRef.convertElement);\n elementsRef.menuElement.appendChild(elementsRef.copyElement);\n elementsRef.menuElement.appendChild(elementsRef.deleteElement);\n\n const parent = evt.target.parentNode;\n parent.insertBefore(elementsRef.menuElement, evt.target);\n };\n\n const positionActions = () => {\n // 48 to get the boundary of smart guide element.\n const left = evt.target.offsetLeft - 68;\n elementsRef.menuElement.style.left = `${left}px`;\n };\n\n const isMenuInDocument = document.contains(elementsRef.menuElement);\n if (!isInShadow(elementsRef.menuElement) && !isMenuInDocument) {\n elementsRef.menuElement.style.display = 'flex';\n positionActions();\n insertActions();\n } else if (elementsRef.menuElement.style.display === 'none') {\n positionActions();\n elementsRef.menuElement.style.display = 'flex';\n }\n}\n\n/**\n * Show the candidates of the clicked word.\n * @param {Event} evt - Event used to determine the clicked word.\n * @param {Editor} editor - A reference to the editor.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nfunction showCandidates(evt, editor, smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n\n if (evt.target.id !== `prompter-text${smartGuide.randomString}`) {\n const id = evt.target.id.replace('word-', '').replace(smartGuide.randomString, '');\n const words = JSON.parse(editor.exports[Constants.Exports.JIIX]).words;\n smartGuideRef.wordToChange = words[id];\n smartGuideRef.wordToChange.id = id;\n elementsRef.candidatesElement.innerHTML = '';\n if (smartGuideRef.wordToChange && smartGuideRef.wordToChange.candidates) {\n elementsRef.candidatesElement.style.display = 'flex';\n smartGuideRef.wordToChange.candidates.forEach((word, index) => {\n if (smartGuideRef.wordToChange.label === word) {\n elementsRef.candidatesElement.innerHTML += `${word}`;\n } else {\n elementsRef.candidatesElement.innerHTML += `${word}`;\n }\n });\n // get the parent parent of word to insert just before smart guide, 48 to get the boundary of smart guide element.\n const top = 48;\n const left = evt.target.getBoundingClientRect().left - 60;\n elementsRef.candidatesElement.style.top = `${top}px`;\n elementsRef.candidatesElement.style.left = `${left}px`;\n\n const parent = evt.target.parentNode.parentNode.parentNode;\n parent.insertBefore(elementsRef.candidatesElement, evt.target.parentNode.parentNode);\n }\n }\n}\n\n/**\n * Call the import_ function of the editor to import the modified Jiix with the new label.\n * @param {Event} evt - Event to determine the clicked candidate.\n * @param {Editor} editor - A reference to the editor.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nfunction clickCandidate(evt, editor, smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n const candidate = evt.target.innerText;\n\n if (candidate !== smartGuideRef.wordToChange.label && smartGuideRef.wordToChange.candidates.includes(candidate)) {\n const jiixToImport = JSON.parse(editor.exports[Constants.Exports.JIIX]);\n jiixToImport.words[smartGuideRef.wordToChange.id].label = candidate;\n // eslint-disable-next-line no-underscore-dangle\n editor.import_(JSON.stringify(jiixToImport), Constants.Exports.JIIX);\n }\n elementsRef.candidatesElement.style.display = 'none';\n}\n\n/**\n * Add the listeners to the smart guide elements.\n * @param {Editor} editor - A reference to the editor.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nfunction addListeners(editor, smartGuide) {\n const elementsRef = smartGuide.elements;\n\n elementsRef.textElement.addEventListener('click', evt => showCandidates(evt, editor, smartGuide));\n elementsRef.candidatesElement.addEventListener('click', evt => clickCandidate(evt, editor, smartGuide));\n elementsRef.ellipsisElement.addEventListener('click', evt => showActions(evt, elementsRef));\n elementsRef.copyElement.addEventListener('click', () => {\n elementsRef.menuElement.style.display = 'none';\n });\n elementsRef.convertElement.addEventListener('click', () => {\n elementsRef.menuElement.style.display = 'none';\n editor.convert();\n });\n elementsRef.deleteElement.addEventListener('click', () => {\n elementsRef.menuElement.style.display = 'none';\n editor.clear();\n });\n}\n\n/**\n * Call mutation observer to trigger fade out animation.\n * @param {number} [duration=10000] - the duration in milliseconds before calling the fade out animation.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nfunction callFadeOutObserver(duration = 10000, smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n // eslint-disable-next-line no-undef\n const observer = new MutationObserver((mutations) => {\n mutations.forEach(() => {\n if (smartGuideRef.smartGuideTimeOutId) {\n clearTimeout(smartGuideRef.smartGuideTimeOutId);\n }\n if (elementsRef.candidatesElement.style.display === 'none' && elementsRef.menuElement.style.display === 'none') {\n smartGuideRef.smartGuideTimeOutId = setTimeout(() => {\n elementsRef.smartGuideElement.classList.add('smartguide-out');\n elementsRef.smartGuideElement.classList.remove('smartguide-in');\n }, duration);\n } else if (!document.contains(elementsRef.candidatesElement) && !document.contains(elementsRef.menuElement)) {\n smartGuideRef.smartGuideTimeOutId = setTimeout(() => {\n elementsRef.smartGuideElement.classList.add('smartguide-out');\n elementsRef.smartGuideElement.classList.remove('smartguide-in');\n }, duration);\n }\n });\n });\n observer.observe(elementsRef.smartGuideElement, { childList: true, subtree: true, attributes: true });\n}\n\n/**\n * Create a new smart guide\n * @param {Editor} editor - A reference to the editor.\n * @returns {SmartGuide} New smart guide\n */\nexport function createSmartGuide(editor) {\n const randomString = '-' + Math.random().toString(10).substring(2, 12);\n const elements = createHTMLElements(randomString);\n\n /**\n * Clipboard from clipboard.js used to get copy across all browsers.\n * @type {Clipboard}\n */\n const clipboard = new Clipboard(elements.copyElement);\n const perfectScrollbar = new PerfectScrollbar(elements.textContainer, { suppressScrollY: true, scrollXMarginOffset: 1 });\n\n const smartGuide = {\n editor,\n wordToChange: '',\n lastWord: '',\n previousLabelExport: ' ',\n perfectScrollbar,\n elements,\n smartGuideTimeOutId: 0,\n randomString\n };\n addListeners(editor, smartGuide);\n\n if (editor.configuration.recognitionParams.v4.text.smartGuideFadeOut.enable) {\n callFadeOutObserver(editor.configuration.recognitionParams.v4.text.smartGuideFadeOut.duration, smartGuide);\n }\n\n return smartGuide;\n}\n\nexport function resize(smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n\n const mmToPixels = 3.779527559;\n let left = smartGuideRef.editor.configuration.recognitionParams.v4.text.margin.left * mmToPixels;\n\n const maxWidthTextContainer = smartGuideRef.editor.domElement.clientWidth - left - elementsRef.tagElement.offsetWidth - 35 - left;\n\n // Assign a max width to the smartguide based on the editor width, the left position and a small margin for the ellipsis (48px)\n elementsRef.textContainer.style.width = `${maxWidthTextContainer}px`;\n elementsRef.textContainer.style.maxWidth = `${maxWidthTextContainer}px`;\n\n left = elementsRef.tagElement.offsetWidth;\n left += maxWidthTextContainer;\n elementsRef.ellipsisElement.style.left = `${left}px`;\n\n elementsRef.smartGuideElement.style.width = `${elementsRef.tagElement.offsetWidth + elementsRef.textContainer.offsetWidth + elementsRef.ellipsisElement.offsetWidth}px`;\n smartGuideRef.perfectScrollbar.update();\n}\n\n/**\n * Insert the smart guide HTML elements in the DOM.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nexport function insertSmartGuide(smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n\n const insertSmartGuideElement = (left, top) => {\n elementsRef.smartGuideElement.style.top = `${top}px`;\n elementsRef.smartGuideElement.style.left = `${left}px`;\n elementsRef.smartGuideElement.style.visibility = 'hidden';\n\n const parent = smartGuideRef.editor.domElement;\n parent.insertBefore(elementsRef.smartGuideElement, smartGuideRef.editor.loader);\n };\n const insertTag = () => {\n elementsRef.smartGuideElement.appendChild(elementsRef.tagElement);\n };\n const insertTextContainer = (left, maxWidth) => {\n elementsRef.textContainer.style.left = `${left}px`;\n\n // Assign a max width to the smartguide based on the editor width, the left position and a small margin for the ellipsis (48px)\n elementsRef.textContainer.style.width = `${maxWidth}px`;\n elementsRef.textContainer.style.maxWidth = `${maxWidth}px`;\n\n elementsRef.smartGuideElement.appendChild(elementsRef.textContainer);\n };\n const insertEllipsis = (left) => {\n elementsRef.ellipsisElement.style.left = `${left}px`;\n\n elementsRef.smartGuideElement.appendChild(elementsRef.ellipsisElement);\n };\n\n\n // FIXME Use value from contentChanged when available\n\n const mmToPixels = 3.779527559;\n\n const marginTop = smartGuideRef.editor.configuration.recognitionParams.v4.text.margin.top * mmToPixels;\n const marginLeft = smartGuideRef.editor.configuration.recognitionParams.v4.text.margin.left * mmToPixels;\n\n // 12 is the space between line in mm\n const top = marginTop - (12 * mmToPixels);\n let left = marginLeft;\n\n insertSmartGuideElement(left, top);\n insertTag();\n\n // 35 is the ellipsis element width\n const maxWidthTextContainer = smartGuideRef.editor.domElement.clientWidth - left - elementsRef.tagElement.offsetWidth - 35 - left;\n left = elementsRef.tagElement.offsetWidth;\n insertTextContainer(left, maxWidthTextContainer);\n\n left += maxWidthTextContainer;\n insertEllipsis(left);\n\n elementsRef.menuElement.style.display = 'none';\n elementsRef.menuElement.appendChild(elementsRef.convertElement);\n elementsRef.menuElement.appendChild(elementsRef.copyElement);\n elementsRef.menuElement.appendChild(elementsRef.deleteElement);\n elementsRef.smartGuideElement.appendChild(elementsRef.menuElement);\n\n elementsRef.candidatesElement.style.display = 'none';\n elementsRef.smartGuideElement.appendChild(elementsRef.candidatesElement);\n\n // 48px as set in css\n elementsRef.smartGuideElement.style.height = '48px';\n elementsRef.smartGuideElement.style.width = `${elementsRef.tagElement.offsetWidth + elementsRef.textContainer.offsetWidth + elementsRef.ellipsisElement.offsetWidth}px`;\n smartGuideRef.perfectScrollbar.update();\n}\n\n/**\n * Launch the smartguide.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n * @param {Object} exports - The export from the editor.\n */\nexport function launchSmartGuide(smartGuide, exports) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n\n const isSmartGuideInDocument = document.contains(elementsRef.smartGuideElement);\n\n if (!isInShadow(elementsRef.smartGuideElement) && !isSmartGuideInDocument) {\n insertSmartGuide(smartGuide);\n }\n\n const addAnimationToModifiedWord = (words) => {\n if (smartGuideRef.tempWords && smartGuideRef.tempWords.length === words.length) {\n const labelWordsArray = words.map(word => word.label);\n const tempLabelWordsArray = smartGuideRef.tempWords.map(word => word.label);\n const wordChangedId = labelWordsArray.indexOf(labelWordsArray.filter(a => tempLabelWordsArray.indexOf(a) === -1)[0]);\n if (document.getElementById(`word-${wordChangedId}${smartGuide.randomString}`) && wordChangedId > -1) {\n document.getElementById(`word-${wordChangedId}${smartGuide.randomString}`).classList.add('modified-word');\n elementsRef.textContainer.scrollLeft = document.getElementById(`word-${wordChangedId}${smartGuide.randomString}`).offsetLeft - 10;\n }\n }\n smartGuideRef.tempWords = JSON.parse(exports[Constants.Exports.JIIX]).words;\n };\n\n const createWordSpan = (empty, index, word) => {\n const span = document.createElement('span');\n span.id = `word-${index}${smartGuide.randomString}`;\n if (empty) {\n span.innerHTML = ' ';\n } else {\n span.textContent = word.label;\n }\n return span;\n };\n\n // Possible optimisation ? Check if we can find a way to not repopulate the smartguide every time even if we now use Document fragment\n const populatePrompter = (words) => {\n elementsRef.textElement.innerHTML = '';\n // We use a DocumentFragment to reflow the DOM only one time as it is not part of the DOM\n const myFragment = document.createDocumentFragment();\n words.forEach((word, index) => {\n if (word.label === ' ' || word.label.includes('\\n')) {\n myFragment.appendChild(createWordSpan(true, index));\n } else if (index !== words.length - 1) {\n myFragment.appendChild(createWordSpan(false, index, word));\n } else {\n elementsRef.textElement.appendChild(myFragment);\n smartGuideRef.perfectScrollbar.update();\n if (smartGuideRef.lastWord === '') {\n smartGuideRef.lastWord = word;\n }\n const span = createWordSpan(false, index, word);\n // This is used to scroll to last word if last word is modified\n if ((smartGuideRef.lastWord.candidates !== word.candidates) && (smartGuideRef.lastWord.label !== word.label)) {\n span.classList.add('added-word');\n elementsRef.textElement.appendChild(span);\n elementsRef.textContainer.scrollLeft = span.offsetLeft;\n smartGuideRef.lastWord = word;\n } else {\n elementsRef.textElement.appendChild(span);\n elementsRef.textContainer.scrollLeft = span.offsetLeft;\n }\n }\n });\n };\n\n if (exports && JSON.parse(exports[Constants.Exports.JIIX]).words.length > 0) {\n elementsRef.smartGuideElement.classList.add('smartguide-in');\n elementsRef.smartGuideElement.classList.remove('smartguide-out');\n elementsRef.candidatesElement.style.display = 'none';\n elementsRef.menuElement.style.display = 'none';\n if (smartGuideRef.previousLabelExport && smartGuideRef.previousLabelExport !== JSON.parse(exports[Constants.Exports.JIIX]).label) {\n const words = JSON.parse(exports[Constants.Exports.JIIX]).words;\n populatePrompter(words);\n addAnimationToModifiedWord(words);\n }\n smartGuideRef.previousLabelExport = JSON.parse(exports[Constants.Exports.JIIX]).label;\n // This is required by clipboard.js to get the text to be copied.\n elementsRef.copyElement.setAttribute('data-clipboard-text', JSON.parse(exports[Constants.Exports.JIIX]).label);\n } else {\n elementsRef.smartGuideElement.classList.add('smartguide-out');\n elementsRef.smartGuideElement.classList.remove('smartguide-in');\n }\n\n return smartGuideRef;\n}\n","/* eslint-disable no-undef */\nimport { editorLogger as logger } from '../configuration/LoggerConfig';\nimport * as InkModel from '../model/InkModel';\n\n/**\n * Function to copy past to inject ink during tutorial.\n * @param editorParam\n * @param strokes\n * @param delayBetweenStrokes\n * @param lastOneDelay\n */\nexport function inkImporter(editorParam, strokes, delayBetweenStrokes, lastOneDelay) {\n const editor = editorParam;\n logger.debug('inkImporter start importing =>', strokes);\n const origGrabber = Object.assign({}, editor.behavior.grabber);\n origGrabber.detach = editor.behavior.grabber.detach;\n editor.behavior.grabber = {};\n const actions = [];\n strokes.forEach((stroke) => {\n if (stroke.convert) {\n actions.push({ action: 'convert', value: true });\n } else if (stroke.setDelay) {\n actions.push({ action: 'setDelay', value: stroke.setDelay });\n } else {\n if (stroke.color) {\n actions.push({ action: 'setColor', value: stroke.color });\n }\n stroke.X.forEach((x, idx) => {\n let action = 'move';\n if (idx === 0) {\n action = 'down';\n } else if (idx === (stroke.X.length - 1)) {\n action = 'up';\n }\n actions.push({ action, point: { x: stroke.X[idx], y: stroke.Y[idx] } });\n });\n }\n });\n logger.debug('Array of actions =>', actions);\n const play = (actionsArray, position, delay) => {\n if (position < actionsArray.length) {\n const currentAction = actionsArray[position];\n let nextDelay = delay;\n if (currentAction.action === 'convert') {\n editor.convert();\n } else if (currentAction.action === 'setDelay') {\n nextDelay = currentAction.value;\n } else if (currentAction.action === 'setColor') {\n editor.penStyle = {\n color: currentAction.value,\n };\n } else {\n currentAction.point.t = new Date().getTime();\n if (currentAction.action === 'down') {\n editor.pointerDown(currentAction.point);\n } else if (currentAction.action === 'up') {\n editor.pointerUp(currentAction.point);\n } else if (currentAction.action === 'move') {\n editor.pointerMove(currentAction.point);\n }\n } if (lastOneDelay && position === actionsArray.map(x => x.action).lastIndexOf('down') - 1) {\n setTimeout(() => {\n play(actionsArray, position + 1, nextDelay);\n }, lastOneDelay);\n } else if (position === actionsArray.length - 1) {\n const event = new Event('drawEnded');\n document.dispatchEvent(event);\n editor.behavior.grabber = origGrabber;\n } else {\n setTimeout(() => {\n play(actionsArray, position + 1, nextDelay);\n }, nextDelay);\n }\n }\n };\n play(actions, 0, delayBetweenStrokes);\n}\n\n\nexport function importStrokeGroups(editorParam, strokeGroups) {\n strokeGroups.forEach((group) => {\n group.strokes.forEach((strokeFromGroup) => {\n InkModel.addStroke(editorParam.model, strokeFromGroup);\n InkModel.addStrokeToGroup(editorParam.model, strokeFromGroup, group.penStyle);\n });\n });\n editorParam.renderer.drawModel(editorParam.rendererContext, editorParam.model, editorParam.stroker);\n}\n","/* eslint-disable no-underscore-dangle */\nimport { editorLogger as logger } from './configuration/LoggerConfig';\nimport * as DefaultBehaviors from './configuration/DefaultBehaviors';\nimport * as DefaultConfiguration from './configuration/DefaultConfiguration';\nimport * as DefaultStyles from './configuration/DefaultPenStyle';\nimport * as DefaultTheme from './configuration/DefaultTheme';\nimport * as InkModel from './model/InkModel';\nimport * as UndoRedoContext from './model/UndoRedoContext';\nimport * as UndoRedoManager from './model/UndoRedoManager';\nimport * as ModelStats from './util/ModelStats';\nimport * as ImageRenderer from './renderer/canvas/ImageRenderer';\nimport * as RecognizerContext from './model/RecognizerContext';\nimport * as SmartGuide from './smartguide/SmartGuide';\nimport Constants from './configuration/Constants';\nimport * as eastereggs from './eastereggs/InkImporter';\n\n\n/**\n * Trigger callbacks\n * @param {Editor} editor\n * @param {Object} data\n * @param {...String} types\n * @return {Model}\n */\nfunction triggerCallbacks(editor, data, ...types) {\n const editorRef = editor;\n types.forEach((type) => {\n switch (type) {\n case Constants.EventType.RENDERED:\n break; // Internal use only\n case Constants.EventType.UNDO:\n case Constants.EventType.REDO:\n case Constants.EventType.CLEAR:\n case Constants.EventType.CONVERT:\n case Constants.EventType.EXPORT:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type));\n break;\n case Constants.EventType.LOADED:\n case Constants.EventType.CHANGED:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, {\n initialized: editor.initialized,\n canUndo: editor.canUndo,\n canRedo: editor.canRedo,\n canClear: editor.canClear,\n isEmpty: editor.isEmpty,\n possibleUndoCount: editor.possibleUndoCount,\n undoStackIndex: editor.undoStackIndex,\n canConvert: editor.canConvert,\n canExport: editor.canExport\n }));\n break;\n case Constants.EventType.EXPORTED:\n window.clearTimeout(editorRef.notifyTimer);\n editorRef.notifyTimer = window.setTimeout(() => {\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, {\n exports: editor.exports\n }));\n }, editorRef.configuration.processDelay);\n break;\n case Constants.EventType.SUPPORTED_IMPORT_MIMETYPES:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, {\n mimeTypes: editor.supportedImportMimeTypes\n }));\n break;\n case Constants.EventType.ERROR:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, data));\n break;\n case Constants.EventType.IDLE:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, {\n idle: editor.idle\n }));\n break;\n default:\n logger.debug(`No valid trigger configured for ${type}`);\n break;\n }\n });\n}\n\n/**\n * Check if a clear is required, and does it if it is\n * @param {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} resetFunc\n * @param {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} func\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nfunction manageResetState(resetFunc, func, recognizerContext, model, callback, ...params) {\n // If strokes moved in the undo redo stack then a clear is mandatory before sending strokes.\n if (resetFunc && RecognizerContext.isResetRequired(recognizerContext, model)) {\n logger.debug('Reset is needed');\n resetFunc(recognizerContext, model, (err, resetedModel, ...types) => {\n if (err) {\n callback(err, resetedModel, ...types);\n } else {\n func(recognizerContext, resetedModel, callback, ...params);\n }\n });\n } else {\n func(recognizerContext, model, callback, ...params);\n }\n}\n\n/**\n * Check if the trigger in parameter is valid.\n * @param {Editor} editor\n * @param {String} type\n * @param {String} [trigger]\n * @return {Boolean}\n */\nfunction isTriggerValid(editor, type, trigger = editor.configuration.triggers[type]) {\n if (editor.recognizer &&\n editor.recognizer.getInfo().availableTriggers[type].includes(trigger)) {\n return true;\n }\n logger.error(`${trigger} is not a valid trigger for ${type}`);\n return false;\n}\n\n/**\n * Manage recognized model\n * @param {Editor} editor\n * @param {Model} model\n * @param {...String} types\n */\nfunction manageRecognizedModel(editor, model, ...types) {\n const editorRef = editor;\n const modelRef = model;\n logger.debug(`model changed callback on ${types} event(s)`, model);\n if (modelRef.creationTime === editor.model.creationTime) {\n // Merge recognized model if relevant and return current editor model\n if ((modelRef.rawStrokes.length === editor.model.rawStrokes.length) &&\n (modelRef.lastPositions.lastSentPosition >= editor.model.lastPositions.lastReceivedPosition)) {\n editorRef.model = InkModel.mergeModels(editorRef.model, modelRef);\n if (InkModel.needRedraw(editorRef.model) || types.includes(Constants.EventType.RENDERED)) {\n editor.renderer.drawModel(editor.rendererContext, editorRef.model, editor.stroker);\n }\n } else {\n editorRef.model = modelRef;\n editor.renderer.drawModel(editor.rendererContext, editorRef.model, editor.stroker);\n }\n triggerCallbacks(editor, undefined, ...types);\n }\n\n if (editor.configuration.recognitionParams.type === 'TEXT'\n && editor.configuration.recognitionParams.apiVersion === 'V4'\n && editor.configuration.recognitionParams.protocol !== 'REST'\n && editor.configuration.recognitionParams.v4.text.mimeTypes.includes(Constants.Exports.JIIX)\n && editor.configuration.recognitionParams.v4.text.smartGuide) {\n // eslint-disable-next-line no-use-before-define\n launchSmartGuide(editorRef, modelRef.exports);\n }\n\n if ((InkModel.extractPendingStrokes(model).length > 0) &&\n (!editor.recognizer.addStrokes) && // FIXME: Ugly hack to avoid double export (addStrokes + export)\n (editor.configuration.triggers.exportContent !== Constants.Trigger.DEMAND)) {\n /* eslint-disable no-use-before-define */\n launchExport(editor, model);\n /* eslint-enable no-use-before-define */\n }\n}\n\n/**\n * Recognizer callback\n * @param {Editor} editor\n * @param {Object} error\n * @param {Model} model\n * @param {...String} events\n */\nfunction recognizerCallback(editor, error, model, ...events) {\n const editorRef = editor;\n\n const handleResult = (err, res, ...types) => {\n if (err) {\n if (err.type !== 'close') {\n logger.error('Error while firing the recognition', err.stack || err); // Handle any error from all above steps\n }\n if (\n // IInk error managment before refactor\n (err.message === 'Invalid application key.') || (err.message === 'Invalid HMAC') ||\n // CDK error managment\n (err.error &&\n err.error.result &&\n err.error.result.error &&\n (err.error.result.error === 'InvalidApplicationKeyException' || err.error.result.error === 'InvalidHMACSignatureException')) ||\n // IInk error managment after refactor\n (err.code && err.code === 'access.not.granted')) {\n editorRef.error.innerText = Constants.Error.WRONG_CREDENTIALS;\n } else if (err.message === 'Session is too old. Max Session Duration Reached' ||\n (err.code && err.code === 'session.too.old')) {\n editorRef.error.innerText = Constants.Error.TOO_OLD;\n } else if ((err.message || err.code === 1006) && editorRef.error.style.display === 'none') {\n editorRef.error.innerText = Constants.Error.NOT_REACHABLE;\n }\n if ((editorRef.error.innerText === Constants.Error.TOO_OLD || err.code === 1000 || err.reason === 'CLOSE_RECOGNIZER') && RecognizerContext.canReconnect(editor.recognizerContext)) {\n logger.info('Reconnection is available', err.stack || err);\n editorRef.error.style.display = 'none';\n } else {\n editorRef.error.style.display = 'initial';\n triggerCallbacks(editor, err, Constants.EventType.ERROR, ...types);\n }\n } else {\n manageRecognizedModel(editorRef, res, ...[...events, ...types].filter((el, i, a) => i === a.indexOf(el))); // Remove duplicate events\n }\n };\n\n logger.debug('recognition callback');\n if (editor.undoRedoManager.updateModel && !error) {\n editor.undoRedoManager.updateModel(editor.undoRedoContext, model, handleResult);\n } else {\n handleResult(error, model, ...events);\n }\n}\n\n/**\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [trigger]\n */\nfunction addStrokes(editor, model, trigger = editor.configuration.triggers.addStrokes) {\n if (editor.recognizer && editor.recognizer.addStrokes) {\n editor.recognizerContext.initPromise\n .then(() => {\n // Firing addStrokes only if recognizer is configure to do it\n if (isTriggerValid(editor, 'addStrokes', trigger)) {\n manageResetState(editor.recognizer.reset, editor.recognizer.addStrokes, editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n }\n });\n }\n}\n\n/**\n * Launch smartguide.\n * @param {Editor} editor\n * @param {Object} exports\n */\nfunction launchSmartGuide(editor, exports) {\n const editorRef = editor;\n editorRef.smartGuide = SmartGuide.launchSmartGuide(editor.smartGuide, exports);\n}\n\n/**\n * Launch ink import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {PointerEvents} events\n */\nfunction launchPointerEvents(editor, model, events) {\n if (editor.recognizer && editor.recognizer.pointerEvents) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.pointerEvents(editor.recognizerContext, model, events, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [requestedMimeTypes]\n * @param {String} [trigger]\n */\nfunction launchExport(editor, model, requestedMimeTypes, trigger = editor.configuration.triggers.exportContent) {\n if (editor.recognizer && editor.recognizer.export_) {\n editor.recognizerContext.initPromise\n .then(() => {\n // Firing export only if recognizer is configure to do it\n if (isTriggerValid(editor, 'exportContent', trigger)) {\n const editorRef = editor;\n window.clearTimeout(editor.exportTimer);\n editorRef.exportTimer = window.setTimeout(() => {\n manageResetState(editor.recognizer.reset, editor.recognizer.export_, editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n }, requestedMimeTypes);\n }, trigger === Constants.Trigger.QUIET_PERIOD ? editor.configuration.triggerDelay : 0);\n }\n });\n }\n}\n\n/**\n * Launch the import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {Blob} data\n */\nfunction launchImport(editor, model, data) {\n if (editor.recognizer && editor.recognizer.import_) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.import_(editor.recognizerContext, model, data, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\nfunction launchGetSupportedImportMimeTypes(editor, model) {\n if (editor.recognizer && editor.recognizer.getSupportedImportMimeTypes) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.getSupportedImportMimeTypes(editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Launch the convert with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} conversionState\n */\nfunction launchConvert(editor, model, conversionState) {\n if (editor.recognizer && editor.recognizer.convert) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.convert(editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n }, conversionState);\n });\n }\n}\n\nfunction launchConfig(editor, model) {\n if (editor.recognizer && editor.recognizer.sendConfiguration) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.sendConfiguration(editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Launch the resize.\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction launchResize(editor, model) {\n if (editor.recognizer && editor.recognizer.resize) {\n editor.recognizerContext.initPromise\n .then(() => {\n const editorRef = editor;\n window.clearTimeout(editor.resizeTimer);\n editorRef.resizeTimer = window.setTimeout(() => {\n editor.recognizer.resize(editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n }, editor.domElement);\n }, editor.configuration.resizeTriggerDelay);\n });\n SmartGuide.resize(editor.smartGuide);\n }\n}\n\n/**\n * Launch wait for idle\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction launchWaitForIdle(editor, model) {\n if (editor.recognizer && editor.recognizer.waitForIdle) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.waitForIdle(editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction setPenStyle(editor, model) {\n if (editor.recognizer && editor.recognizer.setPenStyle) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.setPenStyle(editor.recognizerContext, model, editor.penStyle, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction setPenStyleClasses(editor, model) {\n if (editor.recognizer && editor.recognizer.setPenStyleClasses) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.setPenStyleClasses(editor.recognizerContext, model, editor.penStyleClasses, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Set theme.\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction setTheme(editor, model) {\n if (editor.recognizer && editor.recognizer.setTheme) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.setTheme(editor.recognizerContext, model, editor.theme, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Editor\n */\nexport class Editor {\n /**\n * @param {Element} element DOM element to attach this editor\n * @param {Configuration} [configuration] Configuration to apply\n * @param {Theme} [theme] Custom theme to apply\n * @param {PenStyle} [penStyle] Custom style to apply\n * @param {Behaviors} [behaviors] Custom behaviors to apply\n */\n constructor(element, configuration, penStyle, theme, behaviors) {\n /**\n * Inner reference to the DOM Element\n * @type {Element}\n */\n this.domElement = element;\n this.domElement.classList.add('ms-editor');\n\n // eslint-disable-next-line no-undef\n this.loader = document.createElement('div');\n this.loader.classList.add('loader');\n this.loader = this.domElement.appendChild(this.loader);\n\n // eslint-disable-next-line no-undef\n this.error = document.createElement('div');\n this.error.classList.add('error-msg');\n this.error = this.domElement.appendChild(this.error);\n\n /**\n * Launch export timer\n * @type {Number}\n */\n this.exportTimer = undefined;\n\n /**\n * Launch resize timer\n * @type {Number}\n */\n this.resizeTimer = undefined;\n\n /**\n * Notify delay timer\n * @type {Number}\n */\n this.notifyTimer = undefined;\n\n\n /**\n * @private\n * @type {Behaviors}\n */\n this.innerBehaviors = DefaultBehaviors.overrideDefaultBehaviors(behaviors);\n this.configuration = configuration;\n this.smartGuide = SmartGuide.createSmartGuide(this);\n\n /**\n * Pen color used only for pending stroke\n * @type {string}\n */\n this.localTheme = '';\n\n this.theme = theme;\n this.penStyle = penStyle;\n this.penStyleClasses = '';\n\n this.domElement.editor = this;\n }\n\n /**\n * Set the recognition parameters\n * WARNING : Need to fire a clear if user have already input some strokes.\n * @param {Configuration} configuration\n */\n set configuration(configuration) {\n this.loader.style.display = 'initial';\n this.error.style.display = 'none';\n /**\n * @private\n * @type {Configuration}\n */\n this.innerConfiguration = DefaultConfiguration.overrideDefaultConfiguration(configuration);\n this.setThemeForFont(this.innerConfiguration.recognitionParams.v4.lang);\n this.behavior = this.behaviors.getBehaviorFromConfiguration(this.behaviors, this.innerConfiguration);\n }\n\n /**\n * Get the current recognition parameters\n * @return {Configuration}\n */\n get configuration() {\n return this.innerConfiguration;\n }\n\n /**\n * Set the pen style\n * @param {PenStyle} penStyle\n */\n set penStyle(penStyle) {\n /**\n * @private\n * @type {PenStyle}\n */\n this.innerPenStyle = DefaultStyles.overrideDefaultPenStyle(penStyle);\n this.localPenStyle = this.innerPenStyle;\n setPenStyle(this, this.model);\n }\n\n /**\n * Get the pen style\n * @return {PenStyle}\n */\n get penStyle() {\n return this.innerPenStyle;\n }\n\n /**\n * Set the pen style\n * @param {String} penStyleClasses\n */\n set penStyleClasses(penStyleClasses) {\n /**\n * @private\n * @type {String}\n */\n this.innerPenStyleClasses = penStyleClasses;\n this.localPenStyle = this.theme[`.${this.innerPenStyleClasses}`];\n setPenStyleClasses(this, this.model);\n }\n\n /**\n * Get the pen style\n * @return {String}\n */\n get penStyleClasses() {\n return this.innerPenStyleClasses;\n }\n\n /**\n * Set the theme\n * @param {Theme} theme\n */\n set theme(theme) {\n /**\n * @private\n * @type {Theme}\n */\n this.innerTheme = DefaultTheme.overrideDefaultTheme(theme);\n setTheme(this, this.model);\n }\n\n /**\n * Get the theme\n * @return {Theme}\n */\n get theme() {\n return this.innerTheme;\n }\n\n /**\n * Get behaviors\n * @return {Behaviors}\n */\n get behaviors() {\n return this.innerBehaviors;\n }\n\n /**\n * @private\n * @param {Behavior} behavior\n */\n set behavior(behavior) {\n if (behavior) {\n if (this.grabber) { // Remove event handlers to avoid multiplication (detach grabber)\n this.grabber.detach(this.domElement, this.grabberContext);\n }\n /**\n * @private\n * @type {Behavior}\n */\n this.innerBehavior = behavior;\n this.renderer = this.innerBehavior.renderer;\n this.recognizer = this.innerBehavior.recognizer;\n /**\n * Current grabber context\n * @type {GrabberContext}\n */\n this.grabberContext = this.grabber.attach(this.domElement, this);\n }\n }\n\n /**\n * Get current behavior\n * @return {Behavior}\n */\n get behavior() {\n return this.innerBehavior;\n }\n\n /**\n * Set the current recognizer\n * @private\n * @param {Recognizer} recognizer\n */\n set recognizer(recognizer) {\n this.undoRedoContext = UndoRedoContext.createUndoRedoContext(this.configuration);\n this.undoRedoManager = UndoRedoManager;\n\n const initialize = (model) => {\n /**\n * @private\n * @type {Recognizer}\n */\n this.innerRecognizer = recognizer;\n if (this.innerRecognizer) {\n /**\n * Current recognition context\n * @type {RecognizerContext}\n */\n this.recognizerContext = RecognizerContext.createEmptyRecognizerContext(this);\n // FIXME: merge undo/redo manager with default recognizer\n if (this.innerRecognizer.undo && this.innerRecognizer.redo && this.innerRecognizer.clear) {\n this.undoRedoContext = this.recognizerContext;\n this.undoRedoManager = this.innerRecognizer;\n }\n\n this.innerRecognizer.init(this.recognizerContext, model, (err, res, ...types) => {\n logger.debug('Recognizer initialized', res);\n this.loader.style.display = 'none';\n recognizerCallback(this, err, res, ...types);\n });\n }\n };\n\n if (recognizer) {\n if (this.innerRecognizer) {\n this.innerRecognizer.close(this.recognizerContext, this.model, (err, res, ...types) => {\n logger.info('Recognizer closed');\n recognizerCallback(this, err, res, ...types);\n initialize(InkModel.clearModel(res));\n });\n } else {\n /**\n * Current model\n * @type {Model}\n */\n this.model = InkModel.createModel(this.configuration);\n\n // INFO: Recognizer needs model to be initialized\n initialize(this.model);\n }\n }\n }\n\n /**\n * Get current recognizer\n * @return {Recognizer}\n */\n get recognizer() {\n return this.innerRecognizer;\n }\n\n /**\n * Set the current renderer\n * @private\n * @param {Renderer} renderer\n */\n set renderer(renderer) {\n if (renderer) {\n if (this.innerRenderer) {\n this.innerRenderer.detach(this.domElement, this.rendererContext);\n }\n\n /**\n * @private\n * @type {Renderer}\n */\n this.innerRenderer = renderer;\n if (this.innerRenderer) {\n /**\n * Current rendering context\n * @type {Object}\n */\n this.rendererContext = this.innerRenderer.attach(this.domElement, this.configuration.renderingParams.minHeight, this.configuration.renderingParams.minWidth);\n }\n }\n }\n\n /**\n * Get current renderer\n * @return {Renderer}\n */\n get renderer() {\n return this.innerRenderer;\n }\n\n /**\n * Get current grabber\n * @return {Grabber}\n */\n get grabber() {\n return this.behavior ? this.behavior.grabber : undefined;\n }\n\n /**\n * Get current stroker\n * @return {Stroker}\n */\n get stroker() {\n return this.behavior ? this.behavior.stroker : undefined;\n }\n\n /**\n * Get current callbacks\n * @return {Array}\n */\n get callbacks() {\n return this.behavior ? this.behavior.callbacks : undefined;\n }\n\n /**\n * Get a PNG image data url from the data model\n * @return {String}\n */\n get png() {\n return ImageRenderer.getImage(this.model, this.stroker);\n }\n\n /**\n * Get statistics to monitor what ink size is send to the server.\n * @return {Stats}\n */\n getStats() {\n return ModelStats.computeStats(this.model);\n }\n\n /**\n * True if initialized, false otherwise\n * @return {Boolean}\n */\n get initialized() {\n return this.recognizerContext ? this.recognizerContext.initialized : false;\n }\n\n /**\n * Handle a pointer down\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n * @param {String} [pointerType=mouse] Current pointer type\n * @param {String} [pointerId] Current pointer id\n */\n pointerDown(point, pointerType = 'pen', pointerId) {\n logger.trace('Pointer down', point);\n window.clearTimeout(this.notifyTimer);\n window.clearTimeout(this.exportTimer);\n this.model = InkModel.initPendingStroke(this.model, point, Object.assign({ pointerType, pointerId }, this.theme.ink, this.localPenStyle));\n this.renderer.drawCurrentStroke(this.rendererContext, this.model, this.stroker);\n // Currently no recognition on pointer down\n }\n\n /**\n * Handle a pointer move\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n */\n pointerMove(point) {\n logger.trace('Pointer move', point);\n this.model = InkModel.appendToPendingStroke(this.model, point);\n this.renderer.drawCurrentStroke(this.rendererContext, this.model, this.stroker);\n // Currently no recognition on pointer move\n }\n\n /**\n * Handle a pointer up\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n */\n pointerUp(point) {\n logger.trace('Pointer up', point);\n this.model = InkModel.endPendingStroke(this.model, point, this.penStyle);\n this.renderer.drawModel(this.rendererContext, this.model, this.stroker);\n\n if (this.recognizer.addStrokes) {\n addStrokes(this, this.model);\n } else {\n // Push model in undo redo manager\n recognizerCallback(this, undefined, this.model);\n }\n }\n\n removeStroke(stroke) {\n this.model.strokeGroups.forEach((group) => {\n const stringStrokes = group.strokes.map(strokeFromGroup => JSON.stringify(strokeFromGroup));\n const strokeIndex = stringStrokes.indexOf(JSON.stringify(stroke));\n if (strokeIndex !== -1) {\n group.strokes.splice(strokeIndex, 1);\n }\n });\n const stringRawStrokes = this.model.rawStrokes.map(strokes => JSON.stringify(strokes));\n const strokeIndex = stringRawStrokes.indexOf(JSON.stringify(stroke));\n if (strokeIndex !== -1) {\n this.model.rawStrokes.splice(strokeIndex, 1);\n }\n this.renderer.drawModel(this.rendererContext, this.model, this.stroker);\n recognizerCallback(this, undefined, this.model);\n if (!(this.configuration.triggers.exportContent === 'DEMAND')) {\n launchExport(this, this.model);\n }\n }\n\n /**\n * @Deprecated\n * @param rawStrokes\n * @param strokeGroups\n */\n reDraw(rawStrokes, strokeGroups) {\n rawStrokes.forEach((stroke) => {\n InkModel.addStroke(this.model, stroke);\n });\n strokeGroups.forEach((group) => {\n group.strokes.forEach((strokeFromGroup) => {\n InkModel.addStrokeToGroup(this.model, strokeFromGroup, group.penStyle);\n });\n });\n this.renderer.drawModel(this.rendererContext, this.model, this.stroker);\n recognizerCallback(this, undefined, this.model);\n }\n\n /**\n * True if idle state\n * @return {Boolean}\n */\n get idle() {\n return this.recognizerContext.idle;\n }\n\n /**\n * Wait for idle state.\n */\n waitForIdle() {\n triggerCallbacks(this, undefined, Constants.EventType.IDLE);\n launchWaitForIdle(this, this.model);\n }\n\n /**\n * True if can undo, false otherwise.\n * @return {Boolean}\n */\n get canUndo() {\n return this.undoRedoContext.canUndo;\n }\n\n /**\n * Undo the last action.\n */\n undo() {\n logger.debug('Undo current model', this.model);\n triggerCallbacks(this, undefined, Constants.EventType.UNDO);\n this.undoRedoManager.undo(this.undoRedoContext, this.model, (err, res, ...types) => {\n manageRecognizedModel(this, res, ...types);\n });\n }\n\n /**\n * True if can redo, false otherwise.\n * @return {Boolean}\n */\n get canRedo() {\n return this.undoRedoContext.canRedo;\n }\n\n /**\n * Redo the last action.\n */\n redo() {\n logger.debug('Redo current model', this.model);\n triggerCallbacks(this, undefined, Constants.EventType.REDO);\n this.undoRedoManager.redo(this.undoRedoContext, this.model, (err, res, ...types) => {\n manageRecognizedModel(this, res, ...types);\n });\n }\n\n /**\n * True if empty, false otherwise\n * @returns {boolean}\n */\n get isEmpty() {\n return this.recognizerContext.isEmpty;\n }\n\n /**\n * True if can clear, false otherwise.\n * @return {Boolean}\n */\n get canClear() {\n return this.canUndo && this.model.rawStrokes.length > 0;\n }\n\n /**\n * Clear the output and the recognition result.\n */\n clear() {\n logger.debug('Clear current model', this.model);\n triggerCallbacks(this, undefined, Constants.EventType.CLEAR);\n this.recognizer.clear(this.recognizerContext, this.model, (err, res, ...types) => {\n recognizerCallback(this, err, res, ...types);\n });\n }\n\n /**\n * True if can convert, false otherwise.\n * @return {Boolean}\n */\n get canConvert() {\n return this.canUndo && this.canClear && this.recognizer && this.recognizer.convert;\n }\n\n /**\n * Convert the current content\n */\n convert(conversionState = 'DIGITAL_EDIT') {\n if (this.canConvert) {\n triggerCallbacks(this, undefined, Constants.EventType.CONVERT);\n launchConvert(this, this.model, conversionState);\n }\n }\n\n /**\n * Set the guides for text\n * @param {Boolean} [enable]\n */\n setGuides(enable = true) {\n this.configuration.recognitionParams.v4.text.guides.enable = enable;\n launchConfig(this, this.model);\n }\n\n /**\n * Return the position of the cursor identifying the current state in the internal iink undo/redo stack.\n * @returns {Number}\n */\n get possibleUndoCount() {\n return this.recognizerContext.possibleUndoCount;\n }\n\n /**\n * The number of operations that it is currently possible to undo.\n * @returns {Number}\n */\n get undoStackIndex() {\n return this.recognizerContext.undoStackIndex;\n }\n\n /**\n * True if can export, false otherwise.\n * @return {Boolean}\n */\n get canExport() {\n return this.canUndo && this.canClear && this.recognizer && this.recognizer.getInfo().availableTriggers.exportContent.includes(Constants.Trigger.DEMAND);\n }\n\n /**\n * Explicitly ask to perform an export. You have to listen to events to get the content as this function is non blocking and does not have a return type.\n * @param {Array} requestedMimeTypes Requested mime-types. Be sure to ask all the types required by the listeners of exported event.\n */\n export_(requestedMimeTypes) {\n if (this.canExport) {\n triggerCallbacks(this, undefined, Constants.EventType.EXPORT);\n launchExport(this, this.model, requestedMimeTypes, Constants.Trigger.DEMAND);\n }\n }\n\n /**\n * Import content.\n * @param {Blob|*} data Data to import\n * @param {String} [mimetype] Mimetype of the data, needed if data is not a Blob\n */\n import_(data, mimetype) {\n triggerCallbacks(this, undefined, Constants.EventType.IMPORT);\n launchImport(this, this.model, !(data instanceof Blob) ? new Blob([data], { type: mimetype }) : data);\n }\n\n /**\n * Get supported import mime types\n */\n getSupportedImportMimeTypes() {\n launchGetSupportedImportMimeTypes(this, this.model);\n }\n\n /**\n * pointer events\n * @param {PointerEvents} events\n */\n pointerEvents(events) {\n launchPointerEvents(this, this.model, events);\n }\n\n /**\n * Get current state exports\n * @return {Object}\n */\n get exports() {\n return this.model ? this.model.exports : undefined;\n }\n\n get supportedImportMimeTypes() {\n return this.recognizerContext.supportedImportMimeTypes;\n }\n\n /**\n * Function to call when the dom element link to the current ink paper has been resize.\n */\n resize() {\n logger.debug('Resizing editor');\n this.renderer.resize(this.rendererContext, this.model, this.stroker, this.configuration.renderingParams.minHeight, this.configuration.renderingParams.minWidth);\n launchResize(this, this.model);\n }\n\n /**\n * Set the theme (font family, font size and line height) depending on the language\n * @param lang\n */\n setThemeForFont(lang) {\n const defaultLang = !Object.keys(Constants.Languages).includes(lang);\n const armenian = lang === 'hy_AM';\n const fontFamily = defaultLang || armenian ? Constants.Languages.default : Constants.Languages[lang];\n const lineHeight = defaultLang || armenian ? '1.2' : '1.8';\n this.theme = {\n '.text': {\n 'font-family': fontFamily,\n 'line-height': lineHeight\n }\n };\n }\n\n /**\n * Detach event listeners from the DOM element created at editor creation.\n */\n unload() {\n if (this.grabber) { // Remove event handlers to avoid multiplication (detach grabber)\n this.grabber.detach(this.domElement, this.grabberContext);\n }\n if (this.innerRenderer) {\n this.innerRenderer.detach(this.domElement, this.rendererContext);\n }\n }\n\n /**\n * Trigger the change callbacks (and by default send a change event).\n */\n forceChange() {\n triggerCallbacks(this, undefined, Constants.EventType.CHANGED);\n }\n\n /* eslint-disable class-methods-use-this */\n /**\n * Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice).\n */\n get eastereggs() {\n return eastereggs;\n }\n /* eslint-enable class-methods-use-this */\n}\n","import * as languagesJson from './configuration/languages.json';\nimport * as languagesJsonV3 from './configuration/languagesV3.json';\nimport { editorLogger as logger } from './configuration/LoggerConfig';\nimport { Editor } from './Editor';\nimport * as DefaultConfiguration from './configuration/DefaultConfiguration';\n\n/**\n * Attach an Editor to a DOMElement\n * @param {Element} element DOM element to attach an editor\n * @param {Configuration} [configuration] Configuration to apply\n * @param {PenStyle} [penStyle] Pen style to apply\n * @param {Theme} [theme] Theme to apply\n * @param {Behaviors} [behaviors] Custom behaviors to apply\n * @return {Editor} New editor\n */\nexport function register(element, configuration, penStyle, theme, behaviors) {\n logger.debug('Registering a new editor');\n return new Editor(element, configuration, penStyle, theme, behaviors);\n}\n\n/**\n * Return the list of available recognition languages\n * @param {Configuration} [configuration] Configuration to get the languages\n * @return {JSON} A list of available languages\n */\nexport function getAvailableLanguageList(configuration) {\n const innerConfiguration = DefaultConfiguration.overrideDefaultConfiguration(configuration);\n return innerConfiguration.recognitionParams.apiVersion === 'V4' ? languagesJson : languagesJsonV3;\n}\n","import Constants from './configuration/Constants';\nimport LoggerConfig from './configuration/LoggerConfig';\nimport DefaultConfiguration from './configuration/DefaultConfiguration';\nimport DefaultPenStyle from './configuration/DefaultPenStyle';\nimport DefaultTheme from './configuration/DefaultTheme';\nimport DefaultBehaviors from './configuration/DefaultBehaviors';\nimport * as InkModel from './model/InkModel';\nimport { Editor } from './Editor';\nimport { register, getAvailableLanguageList } from './EditorFacade';\nimport * as RecognizerContext from './model/RecognizerContext';\n\nconst MyScript = {\n Constants,\n // Default instantiations\n DefaultConfiguration,\n DefaultBehaviors,\n DefaultPenStyle,\n DefaultTheme,\n // Helper functions\n register,\n getAvailableLanguageList,\n // Internals\n LoggerConfig,\n Editor,\n InkModel,\n RecognizerContext,\n};\n\nexport {\n MyScript as default,\n Constants,\n // Default instantiations\n DefaultConfiguration,\n DefaultBehaviors,\n DefaultPenStyle,\n DefaultTheme,\n // Helper functions\n register,\n getAvailableLanguageList,\n // Internals\n LoggerConfig,\n Editor,\n InkModel,\n RecognizerContext,\n};\n\n"],"names":["Constants","this","log","loglevel","editorLogger","getLogger","Logger","EDITOR","setDefaultLevel","LogLevel","ERROR","smartGuideLogger","SMARTGUIDE","modelLogger","MODEL","grabberLogger","GRABBER","rendererLogger","RENDERER","recognizerLogger","RECOGNIZER","callbackLogger","CALLBACK","utilLogger","UTIL","testLogger","typeOf","defaultConfiguration","undefined","overrideDefaultConfiguration","configuration","confRef","currentConfiguration","recognitionParams","server","useWindowLocation","scheme","window","location","protocol","slice","host","assign","debug","defaultPenStyle","parser","JsonCSS","overrideDefaultPenStyle","style","currentStyle","toCSS","penStyle","css","substring","length","defaultTheme","overrideDefaultTheme","theme","currentTheme","floatPrecisionArray","roundFloat","oneFloat","requestedFloatPrecision","floatPrecision","Math","round","extractPoint","event","domElement","offsetTop","offsetLeft","eventRef","changedTouches","rect","getBoundingClientRect","clientX","left","clientLeft","xyFloatPrecision","clientY","top","clientTop","Date","now","timestampFloatPrecision","attach","element","editor","mMaxDiffX","unfocus","getSelection","type","removeAllRanges","hideMenu","evt","moreMenuInDocument","document","querySelector","target","classList","contains","display","hideCandidates","candidatesInDocument","tagName","pointerDownHandler","pointerDownOnEditor","id","activePointerId","pointerId","trace","button","buttons","stopPropagation","pointerDown","pointerType","smartGuidePointerDown","downSmartGuidePoint","pointerMoveHandler","pointerMove","point","diffX","abs","x","diffY","y","max","cond1","cond2","pointerUpHandler","smartGuideIds","scrollbarClasses","pointerEnteredSmartGuide","relatedTarget","includes","className","pointerExitedSmartGuide","pointerMovedWords","pointerUp","context","listenerOptions","listeners","forEach","item","types","addEventListener","listener","options","detach","removeEventListener","drawStroke","stroke","stroker","ShapeSymbols","phi","angle","returnedAngle","PI","drawEllipseArc","centerPoint","maxRadius","minRadius","orientation","startAngle","sweepAngle","angleStep","z1","cos","z3","sin","z2","z4","n","floor","boundariesPoints","save","beginPath","i","alpha","atan2","cosAlpha","sinAlpha","moveTo","lineTo","push","restore","drawArrowHead","headPoint","beta","contextReference","fillStyle","strokeStyle","fill","drawShapeEllipse","shapeEllipse","points","center","beginDecoration","beginTangentAngle","endDecoration","endTangentAngle","drawLine","p1","p2","drawShapeLine","shapeLine","firstPoint","lastPoint","drawShapeSymbol","symbol","lineWidth","width","color","elementType","shape","candidates","selectedCandidateIndex","table","lines","line","data","error","ellipse","recognizedShape","primitives","primitive","TextSymbols","drawUnderline","underline","label","delta","topLeftPoint","firstCharacter","height","lastCharacter","drawText","font","textHeight","textAlign","justificationType","textBaseline","fillText","drawTextLine","textLine","underlineList","drawTextSymbol","MusicClefs","gap","xAnchor","yAnchor","MusicSymbols","createImage","clef","src","browserDocument","img","createElement","dataset","getMusicClefElements","Object","keys","map","key","svg","drawStaff","staff","count","canvas","drawClef","drawImage","parentElement","value","boundingBox","drawMusicSymbol","computeDistance","xArray","yArray","lastIndexPoint","distance","sqrt","pow","isNaN","computeLength","lArray","computePressure","ratio","pressure","parseFloat","filterPointByAcquisitionDelta","ret","createStrokeComponent","properties","defaultStroke","toJSON","t","toJSONV4","addPoint","strokeReference","p","l","start","end","slicedStroke","getPointByIndex","index","mergeBounds","boundsA","boundsB","min","minX","maxX","minY","maxY","getLineBounds","getEllipseBounds","getTextLineBounds","getClefBounds","getStrokeBounds","getSymbolsBounds","symbols","bounds","Number","MAX_VALUE","MIN_VALUE","boundsRef","filter","reduce","getDefaultMusicSymbols","defaultStaff","v3","musicParameter","defaultClef","getBoundingBox","getDefaultSymbols","RecognitionType","MUSIC","createModel","getTime","clearModel","model","modelReference","currentStroke","rawStrokes","strokeGroups","lastPositions","lastSentPosition","lastReceivedPosition","lastRenderedPosition","recognizedSymbols","exports","rawResults","convert","needRedraw","addStroke","addStrokeToGroup","strokePenStyle","lastGroup","strokes","newStrokeGroup","strokeCopy","extractPendingStrokes","position","initPendingStroke","dpi","pxWidth","StrokeComponent","appendToPendingStroke","endPendingStroke","getBorderCoordinates","modelBounds","defaultSymbols","extractStrokesFromInkRange","firstStroke","lastStroke","slicedStrokes","updateModelSentPosition","updateModelReceivedPosition","resetModelPositions","resetModelRendererPosition","updateModelRenderedPosition","extractPendingRecognizedSymbols","cloneModel","clonedModel","JSON","parse","stringify","mergeModels","models","a","b","modelRef","getInfo","getPixelRatio","getContext","devicePixelRatio","backingStoreRatio","webkitBackingStorePixelRatio","mozBackingStorePixelRatio","msBackingStorePixelRatio","oBackingStorePixelRatio","backingStorePixelRatio","detectPixelRatio","tempCanvas","canvasRatio","createCanvas","add","appendChild","resizeContent","elements","renderingCanvas","capturingCanvas","parentNode","clientWidth","minWidth","clientHeight","minHeight","pixelRatio","scale","resources","removeChild","res","resize","drawModel","drawSymbol","warn","drawCurrentStroke","capturingCanvasContext","clearRect","renderingCanvasContext","InkModel","computeLinksPoints","radius","computeMiddlePoint","point1","point2","computeAxeAngle","begin","renderArc","arc","renderLine","linkPoints1","linkPoints2","renderFinal","ARCSPLIT","linkPoints","newAngle","renderQuadratic","ctrl","linkPoints3","quadraticCurveTo","nbquadratics","closePath","matcher","selection","elementRef","fontSize","d3","select","remove","node","selectAll","attr","append","insertAdjacentSVG","html","container","ownerDocument","createElementNS","innerHTML","toLowerCase","insertBefore","firstChild","lastChild","nextSibling","symbolContext","updateView","patchUpdate","updates","update","svgElementSelector","layer","parent","insertAdjacentHTML","outerHTML","parentId","refId","name","e","pendingRecognizedSymbols","patch","pendingStrokes","svgPath","join","parts","classed","require$$0","require$$1","require$$2","require$$3","computeHmac","input","applicationKey","hmacKey","jsonInput","HmacSHA512","toString","Hex","req","result","responseText","transformRequest","obj","str","encodeURIComponent","xhr","url","recognizerContext","apiVersion","mimeType","pptxMimeType","recognizerContextRef","Promise","resolve","reject","request","XMLHttpRequest","open","withCredentials","setRequestHeader","CryptoHelper","isBlobType","startsWith","responseType","onerror","msg","recoverable","onload","status","response","Error","onreadystatechange","readyState","idle","send","then","post","createEmptyRecognizerContext","info","isResetRequired","updateRecognitionPositions","positions","instanceId","setRecognitionContext","recognitionContext","recognitionContexts","canReconnect","websocket","autoReconnect","currentReconnectionCount","maxRetryCount","shouldAttemptImmediateReconnect","LOST_CONNEXION_MESSAGE","CLOSE_RECOGNIZER_MESSAGE","postMessage","suffixUrl","buildMessage","NetworkInterface","recognizerContextReference","RecognizerContext","extractExports","textSegmentResult","selectedCandidateIdx","init","callback","initPromise","initialized","EventType","LOADED","reset","clear","CHANGED","EXPORTED","RENDERED","close","textRestV3Configuration","TEXT","Protocol","REST","Trigger","QUIET_PERIOD","DEMAND","buildInput","textParameter","inputUnits","components","hmac","textInput","resultCallback","Cdkv3CommonTextRecognizer","IDLE","export_","catch","err","results","root","extractRecognizedSymbols","strokeList","scratchOutResults","inkRanges","scratchOutResult","erasedInkRanges","concat","find","inkRange","component","mathRestV3Configuration","MATH","mathParameter","mathInput","Cdkv3CommonMathRecognizer","CdkCommonUtil","Cdkv3RestRecognizerUtil","getStyleFromInkRanges","extractShapeSymbols","segment","selectedCandidate","segments","analyzerRestV3Configuration","ANALYZER","parameter","analyzerParameter","analyzerInput","extractSymbols","extractRecognizedSymbolsFromAnalyzerResult","shapes","tables","textLines","CONVERTED","shapeRestV3Configuration","SHAPE","shapeParameter","shapeInput","buildReset","Cdkv3CommonShapeRecognizer","musicRestV3Configuration","musicInput","iinkRestConfiguration","DIAGRAM","RAWCONTENT","conversionState","buildTextConf","v4","text","lang","export","buildMathConf","math","buildDiagramConf","diagram","buildRawContentConf","recognition","buildData","dataConf","newStrokes","group","newPenStyle","DefaultPenStyle","newGroup","contentType","charAt","toUpperCase","DefaultTheme","requestedMimeTypes","callPostMessage","restConversionState","mimeTypes","infinitePing","websocketRef","pingLostCount","maxPingLost","pingDelay","addWebsocketAttributes","websocketConfiguration","socket","pingEnabled","maxPingLostCount","openWebSocket","WebSocket","onopen","websocketCallback","onclose","onmessage","parsedMessage","callBackParam","message","code","reason","buildHmacMessage","challenge","buildInitMessage","buildWebSocketCallback","destructuredPromise","destructurePromise","resolveParam","rejectParam","promise","buildUrl","commonCallback","reconnect","destructuredInitPromise","PromiseHelper","NetworkWSInterface","retry","func","params","sendMessage","mathWebSocketV3Configuration","WEBSOCKET","POINTER_UP","buildMathInput","buildResetMessage","mathCallback","Cdkv3WSWebsocketBuilder","CdkWSRecognizerUtil","err1","res1","logger","textWebSocketV3Configuration","buildTextInput","textCallback","hmacChallenge","sessionId","buildRestoreIInkSessionInput","buildNewContentPackageInput","iinkSessionId","contentPartCount","buildConfiguration","currentPartId","buildOpenContentPart","buildNewContentPart","partId","buildSetTheme","buildSetPenStyle","buildSetPenStyleClasses","penStyleClasses","canUndo","canRedo","empty","isEmpty","possibleUndoCount","undoStackIndex","supportedImportMimeTypes","readBlob","blob","fileReader","FileReader","readAsText","getDPI","IInkWebSocketV4Configuration","NEBO","renderingParams","triggers","exportContent","buildAddStrokes","buildUndo","buildRedo","buildClear","buildConvert","state","buildZoom","buildResize","buildExport","requestedMimeType","usedMimeType","buildImportFile","mimetype","buildImportChunk","lastChunk","buildPointerEvents","events","buildWaitForIdle","buildGetSupportedImportMimeTypes","iinkCallback","SUPPORTED_IMPORT_MIMETYPES","Cdkv4WSWebsocketBuilder","newContentPart","openContentPart","sendConfiguration","pointerEvents","addStrokes","undo","redo","noerr","newModel","import_","uuid","create","chunkSize","fileChunkSize","importFileId","blobPart","size","getSupportedImportMimeTypes","waitForIdle","zoom","setPenStyle","setPenStyleClasses","setTheme","eventCallback","dispatchEvent","CustomEvent","bubbles","composed","detail","defaultBehaviors","PointerEventGrabber","QuadraticCanvasStroker","QuadraticSVGStroker","CanvasRenderer","SVGRenderer","Cdkv3RestTextRecognizer","Cdkv3RestMathRecognizer","Cdkv3RestAnalyzerRecognizer","Cdkv3RestShapeRecognizer","Cdkv3RestMusicRecognizer","iinkRestRecognizer","Cdkv3WSTextRecognizer","Cdkv3WSMathRecognizer","Cdkv4WSInteractiveRecognizer","behaviors","behavior","grabber","strokerList","renderer","rendererList","recognizer","recognizerList","callbacks","overrideDefaultBehaviors","currentBehaviors","getBehaviorFromConfiguration","createUndoRedoContext","undoRedoMaxStackSize","updateUndoRedoState","undoRedoContext","undoRedoContextRef","currentPosition","stack","getModel","clone","updateModel","modelIndex","findIndex","modificationTime","splice","undoRedoContextReference","maxSize","shift","computeStats","stats","strokesCount","pointsCount","byteSize","humanSize","humanUnit","restMessage","toFixed","borderCoordinates","margin","getImage","renderStructure","translate","toDataURL","get","set","touch","closest","delegate","createHTMLElements","randomString","smartGuideElement","textElement","setAttribute","textContainer","ellipsisElement","tagElement","candidatesElement","menuElement","convertElement","copyElement","deleteElement","isInShadow","showActions","elementsRef","insertActions","positionActions","isMenuInDocument","showCandidates","smartGuide","smartGuideRef","replace","words","Exports","JIIX","wordToChange","word","clickCandidate","candidate","innerText","jiixToImport","addListeners","callFadeOutObserver","duration","observer","MutationObserver","mutations","smartGuideTimeOutId","setTimeout","observe","childList","subtree","attributes","createSmartGuide","random","clipboard","Clipboard","perfectScrollbar","PerfectScrollbar","suppressScrollY","scrollXMarginOffset","smartGuideFadeOut","enable","mmToPixels","maxWidthTextContainer","offsetWidth","maxWidth","insertSmartGuide","insertSmartGuideElement","visibility","loader","insertTag","insertTextContainer","insertEllipsis","marginTop","marginLeft","launchSmartGuide","isSmartGuideInDocument","addAnimationToModifiedWord","tempWords","labelWordsArray","tempLabelWordsArray","wordChangedId","indexOf","getElementById","scrollLeft","createWordSpan","span","textContent","populatePrompter","myFragment","createDocumentFragment","lastWord","previousLabelExport","inkImporter","editorParam","delayBetweenStrokes","lastOneDelay","origGrabber","actions","action","setDelay","X","idx","Y","play","actionsArray","delay","currentAction","nextDelay","lastIndexOf","Event","importStrokeGroups","strokeFromGroup","rendererContext","triggerCallbacks","editorRef","UNDO","REDO","CLEAR","CONVERT","EXPORT","call","canClear","canConvert","canExport","clearTimeout","notifyTimer","processDelay","manageResetState","resetFunc","resetedModel","isTriggerValid","trigger","availableTriggers","manageRecognizedModel","creationTime","recognizerCallback","handleResult","WRONG_CREDENTIALS","TOO_OLD","NOT_REACHABLE","el","undoRedoManager","SmartGuide","launchPointerEvents","launchExport","exportTimer","triggerDelay","launchImport","launchGetSupportedImportMimeTypes","launchConvert","launchConfig","launchResize","resizeTimer","resizeTriggerDelay","launchWaitForIdle","Editor","innerBehaviors","DefaultBehaviors","localTheme","ModelStats","ink","localPenStyle","stringStrokes","strokeIndex","stringRawStrokes","guides","IMPORT","Blob","defaultLang","Languages","armenian","fontFamily","default","lineHeight","grabberContext","innerRenderer","innerConfiguration","DefaultConfiguration","setThemeForFont","innerPenStyle","DefaultStyles","innerPenStyleClasses","innerTheme","innerBehavior","UndoRedoContext","UndoRedoManager","initialize","innerRecognizer","ImageRenderer","eastereggs","register","getAvailableLanguageList","languagesJson","languagesJsonV3","MyScript"],"mappings":"AAAA;;;;AAIA,IAAMA,YAAY;aACL;UACH,MADG;aAEA,SAFA;cAGC,UAHD;cAIC,UAJD;eAKE,WALF;cAMC,UAND;YAOD,QAPC;UAQH,MARG;UASH,MATG;WAUF,OAVE;YAWD,QAXC;gC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/myscript.min.js +++ b/dist/myscript.min.js @@ -1,2 +1,2 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.MyScript={})}(this,function(e){"use strict";var t={EventType:{IDLE:"idle",CHANGED:"changed",IMPORTED:"imported",EXPORTED:"exported",CONVERTED:"converted",RENDERED:"rendered",LOADED:"loaded",UNDO:"undo",REDO:"redo",CLEAR:"clear",IMPORT:"import",SUPPORTED_IMPORT_MIMETYPES:"supportedImportMimeTypes",EXPORT:"export",CONVERT:"convert",ERROR:"error"},RecognitionType:{TEXT:"TEXT",MATH:"MATH",SHAPE:"SHAPE",MUSIC:"MUSIC",ANALYZER:"ANALYZER",DIAGRAM:"DIAGRAM",NEBO:"NEBO",RAWCONTENT:"Raw Content"},Protocol:{WEBSOCKET:"WEBSOCKET",REST:"REST"},ModelState:{INITIALIZING:"INITIALIZING",INITIALIZED:"INITIALIZED",EXPORTING:"EXPORTING",EXPORTED:"EXPORTED",PENDING:"PENDING",MODIFIED:"MODIFIED",ERROR:"ERROR"},Trigger:{QUIET_PERIOD:"QUIET_PERIOD",POINTER_UP:"POINTER_UP",DEMAND:"DEMAND"},Logger:{EDITOR:"editor",MODEL:"model",GRABBER:"grabber",RENDERER:"renderer",RECOGNIZER:"recognizer",CALLBACK:"callback",UTIL:"util",SMARTGUIDE:"smartguide"},LogLevel:{TRACE:"TRACE",DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN",ERROR:"ERROR"},Languages:{zh_CN:"Noto Sans CJK tc",zh_HK:"Noto Sans CJK tc",zh_TW:"Noto Sans CJK tc",ko_KR:"Noto Sans CJK kr",ja_JP:"Noto Sans CJK jp",hy_AM:"Noto Sans Armenian",default:"Open Sans"},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."},Exports:{JIIX:"application/vnd.myscript.jiix"}},n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e,t){return e(t={exports:{}},t.exports),t.exports}var o=(0,i(function(e){var t,r;t=n,r=function(){var e=function(){},t="undefined",n=["trace","debug","info","warn","error"];function r(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function i(t,r){for(var i=0;i=0&&r<=c.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(s=r,!1!==o&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t){try{return void(window.localStorage[l]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(l)+"="+r+";"}catch(e){}}}(r),i.call(c,r,e),typeof console===t&&r10?A[10]:A[t],Math.round(e*n)/n}return e}function O(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=e;o.changedTouches&&(o=o.changedTouches[0]);var a=t.getBoundingClientRect();return{x:M(o.clientX-a.left-t.clientLeft-i,n.xyFloatPrecision),y:M(o.clientY-a.top-t.clientTop-r,n.xyFloatPrecision),t:M(Date.now(),n.timestampFloatPrecision)}}var z=Object.freeze({attach:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=0;function o(){"None"!==window.getSelection().type&&window.getSelection().removeAllRanges()}function a(e){var t=document.querySelector(".more-menu");return!(e.target.classList.contains("ellipsis")||e.target.classList.contains("more-menu")||e.target.classList.contains("options-label-button")||!t||"none"===t.style.display||(t.style.display="none",0))}function s(e){var t=document.querySelector(".candidates");return!(e.target.classList.contains("candidates")||"SPAN"===e.target.tagName||!t||"none"===t.style.display||(t.style.display="none",0))}var l={options:t.configuration.listenerOptions,listeners:[{types:["pointerdown"],listener:function(i){var l=i.target.id===t.domElement.id||i.target.classList.contains("ms-canvas");if(void 0!==this.activePointerId)this.activePointerId===i.pointerId&&c.trace(i.type+" event with the same id without any pointer up",i.pointerId);else if(2!==i.button&&2!==i.buttons&&l){if(!a(i)&&!s(i)){this.activePointerId=i.pointerId;var u=i.pointerId>2147483647?-1:i.pointerId;o(),i.stopPropagation(),t.pointerDown(O(i,e,t.configuration,n,r),i.pointerType,u)}}else i.target.classList.contains("ellipsis")||i.target.classList.contains("tag-icon")?(a(i),s(i)):(a(i),s(i),this.smartGuidePointerDown=!0,this.downSmartGuidePoint=O(i,e,t.configuration))}},{types:["pointermove"],listener:function(a){if(void 0!==this.activePointerId&&this.activePointerId===a.pointerId)o(),t.pointerMove(O(a,e,t.configuration,n,r));else if(this.smartGuidePointerDown){var s=O(a,e,t.configuration,n,r),l=Math.abs(this.downSmartGuidePoint.x-s.x),u=Math.abs(this.downSmartGuidePoint.y-s.y);if(i=Math.max(l,i),l<5&&u>5&&i<15||l>5&&u>5&&i<15){this.activePointerId=a.pointerId;var d=a.pointerId>2147483647?-1:a.pointerId;o(),t.pointerDown(this.downSmartGuidePoint,a.pointerType,d)}}else c.trace(a.type+" event from another pointerid ("+a.pointerId+")",this.activePointerId)}},{types:["pointerup","pointerout","pointerleave","pointercancel"],listener:function(o){i=0,this.smartGuidePointerDown=!1;var a=["smartguide","prompter-text-container","prompter-text","tag-icon","ellipsis"],s=["ps__rail-x","ps__thumb-x"],l=o.relatedTarget&&(a.includes(o.relatedTarget.className)||s.includes(o.relatedTarget.className)),u=o.relatedTarget&&o.target&&(a.includes(o.target.className)||s.includes(o.target.className)),d=o.relatedTarget&&o.target&&("SPAN"===o.target.tagName||"SPAN"===o.relatedTarget.tagName);l||u||d?o.stopPropagation():void 0!==this.activePointerId&&this.activePointerId===o.pointerId?(this.activePointerId=void 0,o.stopPropagation(),t.pointerUp(O(o,e,t.configuration,n,r))):c.trace(o.type+" event from another pointerid ("+o.pointerId+")",this.activePointerId)}}]};return c.debug("attaching listeners",l),l.listeners.forEach(function(t){t.types.forEach(function(n){return e.addEventListener(n,t.listener,l.options)})}),l},detach:function(e,t){c.debug("detaching listeners",t),t.listeners.forEach(function(n){n.types.forEach(function(r){return e.removeEventListener(r,n.listener,t.options)})})}});function D(e,t,n){n&&n.drawStroke(e,t)}var N={table:"table",shape:"shape",recognizedShape:"recognizedShape",ellipse:"ellipse",line:"line"};function H(e){var t=(e+Math.PI)%(2*Math.PI)-Math.PI;return t<-Math.PI&&(t+=2*Math.PI),t}function U(e,t,n,r){var i=H(n+Math.PI*(7/8)),o=H(n-Math.PI*(7/8)),a=e;a.save();try{a.fillStyle=a.strokeStyle,a.moveTo(t.x,t.y),a.beginPath(),a.lineTo(t.x+r*Math.cos(i),t.y+r*Math.sin(i)),a.lineTo(t.x+r*Math.cos(o),t.y+r*Math.sin(o)),a.lineTo(t.x,t.y),a.fill()}finally{a.restore()}}function X(e,t){var n=function(e,t,n,r,i,o,a){var s=Math.cos(i),c=Math.sin(i),l=s,u=c;s*=n,l*=r,c*=n,u*=r;var d=Math.floor(Math.abs(a)/.02),f=[];e.save();try{e.beginPath();for(var p=0;p<=d;p++){var h=o+p/d*a,g=Math.atan2(Math.sin(h)/r,Math.cos(h)/n),m=Math.cos(g),v=Math.sin(g),y=t.x+s*m-u*v,b=t.y+l*v+c*m;0===p?e.moveTo(y,b):e.lineTo(y,b),0!==p&&p!==d||f.push({x:y,y:b})}e.stroke()}finally{e.restore()}return f}(e,t.center,t.maxRadius,t.minRadius,t.orientation,t.startAngle,t.sweepAngle);t.beginDecoration&&"ARROW_HEAD"===t.beginDecoration&&U(e,n[0],t.beginTangentAngle,12),t.endDecoration&&"ARROW_HEAD"===t.endDecoration&&U(e,n[1],t.endTangentAngle,12)}function j(e,t,n){e.save();try{e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(n.x,n.y),e.stroke()}finally{e.restore()}}function B(e,t){l.debug("draw "+t.type+" symbol");var n=e;n.save();try{if(n.lineWidth=t.width,n.strokeStyle=t.color,t.elementType)switch(t.elementType){case N.shape:B(n,t.candidates[t.selectedCandidateIndex]);break;case N.table:t.lines.forEach(function(e){return B(n,e)});break;case N.line:j(n,t.data.p1,t.data.p2);break;default:l.error(t.elementType+" not implemented")}else switch(t.type){case N.ellipse:X(n,t);break;case N.line:!function(e,t){j(e,t.firstPoint,t.lastPoint),"ARROW_HEAD"===t.beginDecoration&&U(e,t.firstPoint,t.beginTangentAngle,12),"ARROW_HEAD"===t.endDecoration&&U(e,t.lastPoint,t.endTangentAngle,12)}(n,t);break;case N.recognizedShape:t.primitives.forEach(function(e){return B(n,e)});break;default:l.error(t.type+" not implemented")}}finally{n.restore()}}var W={inputCharacter:"inputCharacter",char:"char",string:"string",textLine:"textLine"};function Y(e,t){!function(e,t,n){var r=e;r.save();try{r.font=n.textHeight+"px serif",r.textAlign="CENTER"===n.justificationType?"center":"left",r.textBaseline="bottom",r.fillStyle=r.strokeStyle,r.fillText(t,n.topLeftPoint.x,n.topLeftPoint.y+n.height)}finally{r.restore()}}(e,t.label,t.data),t.underlineList.forEach(function(n){!function(e,t,n,r){var i=r.width/n.length;j(e,{x:r.topLeftPoint.x+t.data.firstCharacter*i,y:r.topLeftPoint.y+r.height},{x:r.topLeftPoint.x+t.data.lastCharacter*i,y:r.topLeftPoint.y+r.height})}(e,n,t.label,t.data)})}var G={F:{svg:'',getBoundingBox:function(e,t,n){return{height:3*e,width:3*e*.9,x:t,y:n-e}}},C:{svg:'',getBoundingBox:function(e,t,n){return{height:3*e,width:3*e*.72,x:t,y:n-1.5*e}}},G:{svg:'',getBoundingBox:function(e,t,n){return{height:7.5*e,width:7.5*e*.375,x:t,y:n-4.5*e}}}},F={accidental:"accidental",arpeggiate:"arpeggiate",bar:"bar",beam:"beam",clef:"clef",decoration:"decoration",dots:"dots",head:"head",ledgerLine:"ledgerLine",rest:"rest",staff:"staff",stem:"stem",tieOrSlur:"tieOrSlur",timeSignature:"timeSignature"};function K(){return Object.keys(G).map(function(e){return t=e,n="data:image/svg+xml,"+G[e].svg,(r=document.createElement("img")).dataset.clef=t,r.src=n,r.style.display="none",r;var t,n,r})}function V(e,t){switch(l.debug("draw "+t.type+" symbol"),t.type){case F.clef:!function(e,t){e.drawImage(e.canvas.parentElement.querySelector("img[data-clef="+t.value.symbol+"]"),t.boundingBox.x,t.boundingBox.y,t.boundingBox.width,t.boundingBox.height)}(e,t);break;case F.staff:!function(e,t){for(var n=0;n=c||Math.abs(o[o.length-1]-r)>=c)&&(l=!0),l?(u.x.push(t.x),u.y.push(t.y),u.t.push(t.t),u.p.push(function(e,t,n,r,i,o){var a=1,s=J(e,t,n,r,o),c=q(e,t,n,r,i,o);0===c?a=.5:s===c?a=1:s<10?a=.2+Math.pow(.1*s,.4):s>c-10&&(a=.2+Math.pow(.1*(c-s),.4));var l=a*Math.max(.1,1-.1*Math.sqrt(s));return isNaN(parseFloat(l))?.5:l}(t.x,t.y,u.x,u.y,u.l,u.x.length-1)),u.l.push(q(t.x,t.y,u.x,u.y,u.l,u.x.length-1))):s.trace("ignore filtered point",t),u}function ee(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.x.length,r=Z({color:e.color,width:e.width}),i=t;i=0&&t1&&void 0!==arguments[1]?arguments[1]:{minX:Number.MAX_VALUE,maxX:Number.MIN_VALUE,minY:Number.MAX_VALUE,maxY:Number.MIN_VALUE};return t=e.filter(function(e){return"stroke"===e.type}).map(de).reduce(ae,t),t=e.filter(function(e){return"clef"===e.type}).map(ue).reduce(ae,t),t=e.filter(function(e){return"line"===e.type}).map(se).reduce(ae,t),t=e.filter(function(e){return"ellipse"===e.type}).map(ce).reduce(ae,t),t=e.filter(function(e){return"textLine"===e.type}).map(le).reduce(ae,t)}function pe(e){switch(e.recognitionParams.type){case t.RecognitionType.MUSIC:return function(e){var t=Object.assign({},{type:"staff"},e.recognitionParams.v3.musicParameter.staff),n={type:"clef",value:Object.assign({},e.recognitionParams.v3.musicParameter.clef)};return n.value.yAnchor=t.top+t.gap*(t.count-n.value.line),delete n.value.line,n.boundingBox=G[n.value.symbol].getBoundingBox(t.gap,0,n.value.yAnchor),[t,n]}(e);default:return[]}}function he(e){var t=e;return t.currentStroke=void 0,t.rawStrokes=[],t.strokeGroups=[],t.lastPositions.lastSentPosition=-1,t.lastPositions.lastReceivedPosition=-1,t.lastPositions.lastRenderedPosition=-1,t.recognizedSymbols=void 0,t.exports=void 0,t.rawResults.convert=void 0,t.rawResults.exports=void 0,t}function ge(e,t){var n=e;return s.debug("addStroke",t),n.rawStrokes.push(t),n}function me(e,t,n){var r=e;s.debug("addStroke",t);var i=r.strokeGroups.length-1;if(r.strokeGroups[i]&&r.strokeGroups[i].penStyle===n)r.strokeGroups[i].strokes.push(t);else{var o={penStyle:n,strokes:[]},a={};Object.assign(a,t),o.strokes.push(a),r.strokeGroups.push(o)}return r}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.lastPositions.lastReceivedPosition+1;return e.rawStrokes.slice(t)}function ye(e,t,n,r,i){return e.rawStrokes.slice(t,n+1).map(function(e,t,n){return n.length<2?ee(e,r,i+1):0===t?ee(e,r):t===n.length-1?ee(e,0,i+1):e})}function be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.rawStrokes.length-1,n=e;return n.lastPositions.lastSentPosition=t,n}function Ee(e){var t=e;return t.lastPositions.lastReceivedPosition=t.lastPositions.lastSentPosition,t}function xe(e){var t=e;return t.lastPositions.lastSentPosition=-1,t.lastPositions.lastReceivedPosition=-1,t}function we(e){var t=Object.assign({},e);return t.defaultSymbols=[].concat(oe(e.defaultSymbols)),t.currentStroke=e.currentStroke?Object.assign({},e.currentStroke):void 0,t.rawStrokes=[].concat(oe(e.rawStrokes)),t.strokeGroups=JSON.parse(JSON.stringify(e.strokeGroups)),t.lastPositions=Object.assign({},e.lastPositions),t.exports=e.exports?Object.assign({},e.exports):void 0,t.rawResults=Object.assign({},e.rawResults),t.recognizedSymbols=e.recognizedSymbols?[].concat(oe(e.recognizedSymbols)):void 0,t}function Se(e){return function(e){if(e){var t=e.getContext("2d");return(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}return 1}(document.createElement("canvas"))}function Te(e,t){var n=document.createElement("canvas");return n.classList.add(t),n.classList.add("ms-canvas"),e.appendChild(n),l.debug("canvas created",n),n}function Re(e){return[e.renderingCanvas,e.capturingCanvas].forEach(function(t){var n=t.parentNode,r=n.clientWidth1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;l.debug("attach renderer",e);var r=Se(),i=K();i.forEach(function(t){return e.appendChild(t)});var o=Te(e,"ms-rendering-canvas"),a=Te(e,"ms-capture-canvas");return Re({pixelRatio:r,minHeight:t,minWidth:n,renderingCanvas:o,renderingCanvasContext:o.getContext("2d"),capturingCanvas:a,capturingCanvasContext:a.getContext("2d"),resources:i})},detach:function(e,t){l.debug("detach renderer",e),t.resources.forEach(function(t){return e.removeChild(t)}),e.removeChild(t.renderingCanvas),e.removeChild(t.capturingCanvas)},resize:function(e,t,n){return this.drawModel(Re(e),t,n)},drawCurrentStroke:function(e,t,n){return e.capturingCanvasContext.clearRect(0,0,e.capturingCanvas.width,e.capturingCanvas.height),l.trace("drawing current stroke ",t.currentStroke),D(e.capturingCanvasContext,t.currentStroke,n),t},drawModel:ke});function Ie(e,t,n){var r=e.p*n;return[{x:e.x-Math.sin(t)*r,y:e.y+Math.cos(t)*r},{x:e.x+Math.sin(t)*r,y:e.y-Math.cos(t)*r}]}function _e(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2,p:(t.p+e.p)/2}}function Le(e,t){return Math.atan2(t.y-e.y,t.x-e.x)}function Ae(e,t,n){e.arc(t.x,t.y,n,0,2*Math.PI,!0)}function Me(e,t,n,r){var i=Ie(t,Le(t,n),r),o=Ie(n,Le(t,n),r);e.moveTo(i[0].x,i[0].y),e.lineTo(o[0].x,o[0].y),e.lineTo(o[1].x,o[1].y),e.lineTo(i[1].x,i[1].y)}function Oe(e,t,n,r,i){var o=Ie(t,Le(t,r),i),a=Ie(n,Le(r,n),i),s=Ie(r,Le(t,n),i);e.moveTo(o[0].x,o[0].y),e.quadraticCurveTo(s[0].x,s[0].y,a[0].x,a[0].y),e.lineTo(a[1].x,a[1].y),e.quadraticCurveTo(s[1].x,s[1].y,o[1].x,o[1].y)}var ze=Object.freeze({getInfo:function(){return{type:"canvas",name:"quadratic",apiVersion:"V3"}},drawStroke:function(e,t){var n=e,r=t.x.length,i=t.width>0?t.width:n.lineWidth,o=t.color?t.color:n.strokeStyle,a=te(t,0),s=r-2;n.save();try{if(n.beginPath(),r<3)Ae(n,a,.6*i);else{Ae(n,a,i*a.p),Me(n,a,_e(a,te(t,1)),i);for(var c=0;c=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Ne.hasOwnProperty(t)?{space:Ne[t],local:e}:e}function Ue(e){var t=He(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===De&&t.documentElement.namespaceURI===De?t.createElement(e):t.createElementNS(n,e)}})(t)}function Xe(){}function je(e){return null==e?Xe:function(){return this.querySelector(e)}}function Be(){return[]}var We=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Ye=document.documentElement;if(!Ye.matches){var Ge=Ye.webkitMatchesSelector||Ye.msMatchesSelector||Ye.mozMatchesSelector||Ye.oMatchesSelector;We=function(e){return function(){return Ge.call(this,e)}}}}var Fe=We;function Ke(e){return new Array(e.length)}function Ve(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ve.prototype={constructor:Ve,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Je="$";function qe(e,t,n,r,i,o){for(var a,s=0,c=t.length,l=o.length;st?1:e>=t?0:NaN}function $e(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function et(e){return e.trim().split(/^|\s+/)}function tt(e){return e.classList||new nt(e)}function nt(e){this._node=e,this._names=et(e.getAttribute("class")||"")}function rt(e,t){for(var n=tt(e),r=-1,i=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var pt={};"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(pt={mouseenter:"mouseover",mouseleave:"mouseout"}));function ht(e,t,n){return e=gt(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function gt(e,t,n){return function(r){try{e.call(this,this.__data__,t,n)}finally{}}}function mt(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r=x&&(x=E+1);!(b=v[x])&&++x=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Qe);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||$e(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=et(e+"");if(arguments.length<2){for(var r=tt(this.node()),i=-1,o=n.length;++i=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?vt:mt,null==n&&(n=!1),r=0;r1&&void 0!==arguments[1]?arguments[1]:e.lastPositions.lastRenderedPosition+1;return e.recognizedSymbols?e.recognizedSymbols.slice(t):[]}(t);r&&(r.forEach(function(t){var n;(n=t).updates.forEach(function(t){try{var r='svg[data-layer="'+n.layer+'"]';switch(t.type){case"REPLACE_ALL":e.select(r).remove();var i=e.node();i.insertAdjacentHTML?i.insertAdjacentHTML("beforeEnd",t.svg):wt(i,"beforeEnd",t.svg),"MODEL"===n.layer&&e.select(r).append("g").attr("id","pendingStrokes");break;case"REMOVE_ELEMENT":t.id.includes("s")||t.id.includes("MODEL")?e.select("#"+t.id).remove():(e.select("#"+t.id).attr("class","removed-stroke"),setTimeout(function(){e.select("#"+t.id).remove()},100));break;case"REPLACE_ELEMENT":var o=e.select("#"+t.id).node().parentNode;e.select("#"+t.id).remove(),o.insertAdjacentHTML?o.insertAdjacentHTML("beforeEnd",t.svg):(wt(o,"beforeEnd",t.svg),e.node().insertAdjacentHTML("beforeEnd",e.select(r).remove().node().outerHTML));break;case"REMOVE_CHILD":e.select("#"+t.parentId+" > *:nth-child("+(t.index+1)+")").remove();break;case"APPEND_CHILD":var a=e.select(t.parentId?"#"+t.parentId:r).node();a.insertAdjacentHTML?a.insertAdjacentHTML("beforeEnd",t.svg):(wt(a,"beforeEnd",t.svg),e.node().insertAdjacentHTML("beforeEnd",e.select(r).remove().node().outerHTML));break;case"INSERT_BEFORE":var s=e.select("#"+t.refId).node();s.insertAdjacentHTML?s.insertAdjacentHTML("beforeBegin",t.svg):(wt(s,"beforeBegin",t.svg),e.node().insertAdjacentHTML("beforeEnd",e.select(r).remove().node().outerHTML));break;case"REMOVE_ATTRIBUTE":e.selectAll(t.id?"#"+t.id:"svg").attr(t.name,null);break;case"SET_ATTRIBUTE":t.id&&e.selectAll("#"+t.id).attr(t.name,t.value);break;default:l.debug("unknown update "+t.type+" action")}}catch(e){l.error("Invalid update "+t.type,t),l.error("Error on svg patch",e)}})}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.recognizedSymbols?e.recognizedSymbols.length-1:-1,n=e;n.lastPositions.lastRenderedPosition=t}(t));var i=ve(t);return i&&i.forEach(function(t){return r=t,i=e.select("#pendingStrokes"),l.trace("attempting to draw "+r.type+" symbol"),void("stroke"!==r.type||i.select("id",r.id)?l.warn("impossible to draw "+r.type+" symbol"):xt(i.append("path").attr("id",r.id),r,n));var r,i}),t}});function Tt(e,t,n){return["M "+t.x+","+t.y,"m "+-n+",0","a "+n+","+n+" 0 1 0 "+2*n+",0","a "+n+","+n+" 0 1 0 "+-2*n+",0"].join(" ")}function Rt(e,t,n,r){var i=Ie(t,Le(t,n),r),o=Ie(n,Le(t,n),r);return["M "+i[0].x+","+i[0].y,"L "+o[0].x+","+o[0].y,"L "+o[1].x+","+o[1].y,"L "+i[1].x+","+i[1].y].join(" ")}function Ct(e,t,n,r,i){var o=Ie(t,Le(t,r),i),a=Ie(n,Le(r,n),i),s=Ie(r,Le(t,n),i);return["M "+o[0].x+","+o[0].y,"Q "+s[0].x+","+s[0].y+" "+a[0].x+","+a[0].y,"L "+a[1].x+","+a[1].y,"Q "+s[1].x+","+s[1].y+" "+o[1].x+","+o[1].y].join(" ")}var kt=Object.freeze({getInfo:function(){return{type:"svg",name:"quadratic",apiVersion:"V4"}},drawStroke:function(e,t){var n=t.x.length,r=t.width,i=te(t,0),o=n-2,a=[];if(n<3)a.push(Tt(0,i,.6*r));else{a.push(Tt(0,i,r*i.p)),a.push(Rt(0,i,_e(i,te(t,1)),r));for(var s=0;s>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var o=0;o>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){var t=t,n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=4*o,c=i/s,l=(c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0))*o,u=e.min(4*l,i);if(l){for(var d=0;d>>1|Z<<31)^(q>>>8|Z<<24)^q>>>7,$=(Z>>>1|q<<31)^(Z>>>8|q<<24)^(Z>>>7|q<<25),ee=l[G-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=l[G-7],ae=oe.high,se=oe.low,ce=l[G-16],le=ce.high,ue=ce.low;K=(K=(K=Q+ae+((V=$+se)>>>0<$>>>0?1:0))+re+((V+=ie)>>>0>>0?1:0))+le+((V+=ue)>>>0>>0?1:0),F.high=K,F.low=V}var de,fe=N&U^~N&j,pe=H&X^~H&B,he=I&L^I&M^L&M,ge=_&A^_&O^A&O,me=(I>>>28|_<<4)^(I<<30|_>>>2)^(I<<25|_>>>7),ve=(_>>>28|I<<4)^(_<<30|I>>>2)^(_<<25|I>>>7),ye=(N>>>14|H<<18)^(N>>>18|H<<14)^(N<<23|H>>>9),be=(H>>>14|N<<18)^(H>>>18|N<<14)^(H<<23|N>>>9),Ee=c[G],xe=Ee.high,we=Ee.low,Se=W+ye+((de=Y+be)>>>0>>0?1:0),Te=ve+ge;W=j,Y=B,j=U,B=X,U=N,X=H,N=z+(Se=(Se=(Se=Se+fe+((de+=pe)>>>0>>0?1:0))+xe+((de+=we)>>>0>>0?1:0))+K+((de+=V)>>>0>>0?1:0))+((H=D+de|0)>>>0>>0?1:0)|0,z=M,D=O,M=L,O=A,L=I,A=_,I=Se+(me+he+(Te>>>0>>0?1:0))+((_=de+Te|0)>>>0>>0?1:0)|0}h=r.low=h+_,r.high=p+I+(h>>>0<_>>>0?1:0),m=i.low=m+A,i.high=g+L+(m>>>0>>0?1:0),y=o.low=y+O,o.high=v+M+(y>>>0>>0?1:0),E=a.low=E+D,a.high=b+z+(E>>>0>>0?1:0),w=s.low=w+H,s.high=x+N+(w>>>0>>0?1:0),T=u.low=T+X,u.high=S+U+(T>>>0>>0?1:0),C=d.low=C+B,d.high=R+j+(C>>>0>>0?1:0),P=f.low=P+Y,f.high=k+W+(P>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),n.SHA512)}),i(function(e,t){var n,r,i,o,a,s;e.exports=(r=(n=Pt).lib,i=r.Base,o=n.enc,a=o.Utf8,s=n.algo,void(s.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),s=i.words,c=o.words,l=0;l3&&void 0!==arguments[3]?arguments[3]:{},i=arguments[4],o=arguments[5],a="application/vnd.openxmlformats-officedocument.presentationml.presentation",s=r.editor.configuration,c=r;return new Promise(function(r,l){var u,d,f=new XMLHttpRequest;if(f.open(e,t,!0),f.withCredentials=!0,"V3"===i)f.setRequestHeader("Accept","application/json"),f.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");else if("V4"===i){switch(s.recognitionParams.type){case"TEXT":case"MATH":case"DIAGRAM":case"Raw Content":f.setRequestHeader("Accept","application/json,"+o)}f.setRequestHeader("applicationKey",s.recognitionParams.server.applicationKey),f.setRequestHeader("hmac",Lt(JSON.stringify(n),s.recognitionParams.server.applicationKey,s.recognitionParams.server.hmacKey)),f.setRequestHeader("Content-Type","application/json")}o===a&&(f.responseType="blob"),f.onerror=function(){l({msg:"Could not connect to "+t+" connection error",recoverable:!1})},f.onload=function(){f.status>=200&&f.status<300?r(o===a?f.response:At(f)):l(new Error(f.responseText))},f.onreadystatechange=function(){4===f.readyState&&f.status>=200&&f.status<300&&r(o===a?f.response:At(f))},c&&(c.idle=!1),"V4"===i?f.send(JSON.stringify(n)):f.send(n?(u=n,d=[],Object.keys(u).forEach(function(e){void 0!==u[e]&&"function"!=typeof u[e]&&d.push(encodeURIComponent(e)+"="+encodeURIComponent(u[e]))}),d.join("&")):void 0)}).then(function(e){return c&&(c.idle=!0),e})}function Ot(e,t,n,r,i){return Mt("POST",t,n,e,r,i)}function zt(e){var t=Date.now();return u.info("Create empty recognizer context with ID: "+t),{id:t,editor:e,recognitionContexts:[],initPromise:void 0,lastPositions:{lastSentPosition:-1,lastReceivedPosition:-1},url:void 0,websocket:void 0,websocketCallback:void 0,reconnect:void 0,currentReconnectionCount:0,sessionId:void 0,contentPartCount:0,currentPartId:void 0,instanceId:void 0,canUndo:!1,canRedo:!1,isEmpty:void 0,supportedImportMimeTypes:[],undoStackIndex:0,possibleUndoCount:0,idle:!0,initialized:!1}}function Dt(e,t){var n=e;return t&&(n.lastPositions.lastSentPosition=t.lastSentPosition,n.lastPositions.lastReceivedPosition=t.lastReceivedPosition),n.lastPositions.lastSentPosition===n.lastPositions.lastReceivedPosition===-1&&delete n.instanceId,n}function Nt(e,t){var n=e;return n.recognitionContexts[0]=t,n}function Ht(e){var t=e;return!0===t.websocket.autoReconnect&&t.currentReconnectionCount++<=t.websocket.maxRetryCount}var Ut={type:"LOST_CONNECTION"},Xt="CLOSE_RECOGNIZER";function jt(e,t,n,r){var i=t.editor.configuration;return Ot(t,i.recognitionParams.server.scheme+"://"+i.recognitionParams.server.host+e,r(t,n),"V3").then(function(e){u.debug("Cdkv3RestRecognizer success",e);var n=t.lastPositions;n.lastReceivedPosition=n.lastSentPosition;var r=Dt(t,n);return e.instanceId&&(r.instanceId=e.instanceId),e})}function Bt(e){return e.rawResults&&e.rawResults.exports&&e.rawResults.exports.result&&e.rawResults.exports.result.textSegmentResult&&e.rawResults.exports.result.textSegmentResult.candidates?{CANDIDATES:e.rawResults.exports.result,TEXT:e.rawResults.exports.result.textSegmentResult.candidates[e.rawResults.exports.result.textSegmentResult.selectedCandidateIdx].label}:{}}function Wt(e,n,r){var i=xe(n);u.debug("Updated model",i);var o=Dt(e,i.lastPositions);o.initPromise=Promise.resolve(i),o.initPromise.then(function(e){o.initialized=!0,u.debug("Updated recognizer context",o),r(void 0,e,t.EventType.LOADED)})}function Yt(e,t,n){var r=xe(t);u.debug("Updated model",r);var i=Dt(e,r.lastPositions);delete i.instanceId,u.debug("Updated recognizer context",i),n(void 0,r)}function Gt(e,n,r){var i=he(n);u.debug("Updated model",i);var o=Dt(e,i.lastPositions);delete o.instanceId,u.debug("Updated recognizer context",o),r(void 0,i,t.EventType.CHANGED,t.EventType.EXPORTED,t.EventType.RENDERED)}function Ft(e,t,n){var r=e;r.initialized=!1,delete r.instanceId,n(void 0,t)}var Kt={types:[t.RecognitionType.TEXT],protocol:t.Protocol.REST,apiVersion:"V3",availableTriggers:{exportContent:[t.Trigger.QUIET_PERIOD,t.Trigger.DEMAND]}};function Vt(e,t){var n=e.editor.configuration,r={inputUnits:[{textInputType:"MULTI_LINE_TEXT",components:t.rawStrokes.map(function(e){return Q(e)})}]};Object.assign(r,{textParameter:n.recognitionParams.v3.textParameter}),u.debug("input.inputUnits[0].components size is "+r.inputUnits[0].components.length);var i={instanceId:e?e.instanceId:void 0,applicationKey:n.recognitionParams.server.applicationKey,textInput:JSON.stringify(r)};return n.recognitionParams.server.hmacKey&&(i.hmac=Lt(i.textInput,n.recognitionParams.server.applicationKey,n.recognitionParams.server.hmacKey)),be(t),i}var Jt=Object.freeze({textRestV3Configuration:Kt,getInfo:function(){return Kt},buildInput:Vt,export_:function(e,n,r){jt("/api/v3.0/recognition/rest/text/doSimpleRecognition.json",e,n,Vt).then(function(e){return function(e,n,r){u.debug("Cdkv3RestTextRecognizer result callback",e);var i=Ee(e);i.rawResults.exports=n,i.exports=Bt(e),u.debug("Cdkv3RestTextRecognizer model updated",i),r(void 0,i,t.EventType.EXPORTED,t.EventType.IDLE)}(n,e,r)}).catch(function(e){return r(e,n)})},init:Wt,close:Ft,clear:Gt,reset:Yt});function qt(e){return e.rawResults&&e.rawResults.exports&&e.rawResults.exports.result&&e.rawResults.exports.result.results&&e.rawResults.exports.result.results.length>0?e.rawResults.exports.result.results.map(function(e){var t={};return Object.keys(e).includes("root")?t[""+e.type]=e.root:t[""+e.type]=e.value,t}).reduce(function(e,t){return Object.assign(e,t)},{}):{}}function Zt(e){var t=[].concat(oe(e.rawStrokes));if(e.rawResults&&e.rawResults.exports&&e.rawResults.exports.result&&e.rawResults.exports.result.scratchOutResults&&e.rawResults.exports.result.scratchOutResults.length>0){var n=e.rawResults.exports.result.scratchOutResults.map(function(e){return e.erasedInkRanges.concat(e.inkRanges)}).reduce(function(e,t){return e.concat(t)});return t.filter(function(e,t){return!n.find(function(e){return e.component===t})})}return t}var Qt={types:[t.RecognitionType.MATH],protocol:t.Protocol.REST,apiVersion:"V3",availableTriggers:{exportContent:[t.Trigger.QUIET_PERIOD,t.Trigger.DEMAND]}};function $t(e,t){var n=e.editor.configuration,r={components:t.rawStrokes.map(function(e){return Q(e)})};Object.assign(r,n.recognitionParams.v3.mathParameter),u.debug("input.components size is "+r.components.length);var i={instanceId:e?e.instanceId:void 0,applicationKey:n.recognitionParams.server.applicationKey,mathInput:JSON.stringify(r)};return n.recognitionParams.server.hmacKey&&(i.hmac=Lt(i.mathInput,n.recognitionParams.server.applicationKey,n.recognitionParams.server.hmacKey)),be(t),i}var en=Object.freeze({mathRestV3Configuration:Qt,getInfo:function(){return Qt},export_:function(e,n,r){return jt("/api/v3.0/recognition/rest/math/doSimpleRecognition.json",e,n,$t).then(function(e){return function(e,n,r){u.debug("Cdkv3RestMathRecognizer result callback",e);var i=Ee(e);i.rawResults.exports=n,i.recognizedSymbols=Zt(e),i.exports=qt(e),u.debug("Cdkv3RestMathRecognizer model updated",i),r(void 0,i,t.EventType.EXPORTED,t.EventType.IDLE)}(n,e,r)}).catch(function(e){return r(e,n)})},init:Wt,close:Ft,clear:Gt,reset:Yt});function tn(e,t){var n=e.rawStrokes;return t&&t.length>0&&(n=t.map(function(t){return ye(e,t.stroke?t.stroke:t.firstStroke,t.stroke?t.stroke:t.lastStroke,t.firstPoint,t.lastPoint)}).reduce(function(e,t){return e.concat(t)})),{color:n[0].color,width:n[0].width}}function nn(e,t){if(t.candidates&&t.candidates.length>0){var n=t.candidates[t.selectedCandidateIndex];switch(n.type){case"notRecognized":return t.inkRanges&&t.inkRanges.length>0?t.inkRanges.map(function(t){return ye(e,t.firstStroke,t.lastStroke,t.firstPoint,t.lastPoint)}).reduce(function(e,t){return e.concat(t)}):[];case"recognizedShape":return n.primitives;default:return[]}}return[]}var rn={types:[t.RecognitionType.ANALYZER],protocol:t.Protocol.REST,apiVersion:"V3",availableTriggers:{exportContent:[t.Trigger.QUIET_PERIOD,t.Trigger.DEMAND]}};function on(e,t){var n=e.editor.configuration,r={components:t.rawStrokes.map(function(e){return Q(e)})};Object.assign(r,{parameter:n.recognitionParams.v3.analyzerParameter}),u.debug("input.components size is "+r.components.length);var i={instanceId:e?e.instanceId:void 0,applicationKey:n.recognitionParams.server.applicationKey,analyzerInput:JSON.stringify(r)};return n.recognitionParams.server.hmacKey&&(i.hmac=Lt(i.analyzerInput,n.recognitionParams.server.applicationKey,n.recognitionParams.server.hmacKey)),be(t),i}function an(e){return e.rawResults&&e.rawResults.exports&&e.rawResults.exports.result?[].concat(oe(e.rawResults.exports.result.shapes),oe(e.rawResults.exports.result.tables),oe(e.rawResults.exports.result.textLines)).map(function(t){return function(e,t){var n=tn(e,t.inkRanges);switch(t.elementType){case"table":return t.lines.map(function(e){return Object.assign(e,n)});case"textLine":return[t].map(function(e){return Object.assign(e,e.result.textSegmentResult.candidates[e.result.textSegmentResult.selectedCandidateIdx],n)});case"shape":return nn(e,t).map(function(e){return Object.assign(e,n)});default:return[]}}(e,t)}).reduce(function(e,t){return e.concat(t)}):[]}var sn=Object.freeze({analyzerRestV3Configuration:rn,getInfo:function(){return rn},export_:function(e,n,r){return jt("/api/v3.0/recognition/rest/analyzer/doSimpleRecognition.json",e,n,on).then(function(e){return function(e,n,r){u.debug("Cdkv3RestAnalyzerRecognizer result callback",e);var i=Ee(e);i.rawResults.exports=n,i.recognizedSymbols=an(e),i.exports=function(e){return e.rawResults&&e.rawResults.exports&&e.rawResults.exports.result?{ANALYSIS:e.rawResults.exports.result}:{}}(e),u.debug("Cdkv3RestAnalyzerRecognizer model updated",i),r(void 0,i,t.EventType.EXPORTED,t.EventType.CONVERTED,t.EventType.IDLE)}(n,e,r)}).catch(function(e){return r(e,n)})},init:Wt,close:Ft,clear:Gt,reset:Yt}),cn={types:[t.RecognitionType.SHAPE],protocol:t.Protocol.REST,apiVersion:"V3",availableTriggers:{exportContent:[t.Trigger.QUIET_PERIOD,t.Trigger.DEMAND]}};function ln(e,t){var n=e.editor.configuration,r={components:ve(t).map(function(e){return Q(e)})};Object.assign(r,n.recognitionParams.v3.shapeParameter),u.debug("input.components size is "+r.components.length);var i={instanceId:e?e.instanceId:void 0,applicationKey:n.recognitionParams.server.applicationKey,shapeInput:JSON.stringify(r)};return n.recognitionParams.server.hmacKey&&(i.hmac=Lt(i.shapeInput,n.recognitionParams.server.applicationKey,n.recognitionParams.server.hmacKey)),be(t),i}function un(e,t){return{instanceSessionId:e?e.instanceId:void 0}}function dn(e,n,r){u.debug("Cdkv3RestShapeRecognizer result callback",e);var i=Ee(e);i.rawResults.exports=n,i.recognizedSymbols=function(e){return e.rawResults&&e.rawResults.exports&&e.rawResults.exports.result&&e.rawResults.exports.result.segments?e.rawResults.exports.result.segments.map(function(t){var n=tn(e,t.inkRanges);return nn(e,t).map(function(e){return Object.assign(e,n)})}).reduce(function(e,t){return e.concat(t)}):[]}(e),i.exports=function(e){return e.rawResults&&e.rawResults.exports&&e.rawResults.exports.result&&e.rawResults.exports.result.segments?{SEGMENTS:e.rawResults.exports.result.segments}:{}}(e),u.debug("Cdkv3RestShapeRecognizer model updated",i),r(void 0,i,t.EventType.EXPORTED,t.EventType.CONVERTED,t.EventType.IDLE)}var fn=Object.freeze({shapeRestV3Configuration:cn,getInfo:function(){return cn},export_:function(e,t,n){jt("/api/v3.0/recognition/rest/shape/doSimpleRecognition.json",e,t,ln).then(function(e){return dn(t,e,n)}).catch(function(e){return n(e,t)})},reset:function(e,n,r){var i=xe(n);jt("/api/v3.0/recognition/rest/shape/clearSessionId.json",e,i,un).then(function(e){return r(void 0,i,t.EventType.IDLE)}).catch(function(e){return r(e,i)})},clear:function(e,n,r){var i=he(we(n));jt("/api/v3.0/recognition/rest/shape/clearSessionId.json",e,i,un).then(function(e){return r(void 0,i,t.EventType.CHANGED,t.EventType.EXPORTED,t.EventType.CONVERTED,t.EventType.IDLE)}).catch(function(e){return r(e,i)})},init:Wt,close:Ft}),pn={types:[t.RecognitionType.MUSIC],protocol:t.Protocol.REST,apiVersion:"V3",availableTriggers:{exportContent:[t.Trigger.QUIET_PERIOD,t.Trigger.DEMAND]}};function hn(e,t){var n=e.editor.configuration,r={components:[].concat(t.defaultSymbols,t.rawStrokes).filter(function(e){return"staff"!==e.type}).map(function(e){return"stroke"===e.type?Q(e):e})},i=Object.assign({},n.recognitionParams.v3.musicParameter);delete i.clef,Object.assign(r,i),u.debug("input.components size is "+r.components.length);var o={instanceId:e?e.instanceId:void 0,applicationKey:n.recognitionParams.server.applicationKey,musicInput:JSON.stringify(r)};return n.recognitionParams.server.hmacKey&&(o.hmac=Lt(o.musicInput,n.recognitionParams.server.applicationKey,n.recognitionParams.server.hmacKey)),be(t),o}var gn=Object.freeze({musicRestV3Configuration:pn,getInfo:function(){return pn},init:function(e,n,r){var i=xe(n);u.debug("Updated model",i);var o=Dt(e,i.lastPositions);o.initPromise=Promise.resolve(i),o.initPromise.then(function(e){o.initialized=!0,u.debug("Updated recognizer context",o),r(void 0,e,t.EventType.LOADED,t.EventType.RENDERED)})},export_:function(e,n,r){jt("/api/v3.0/recognition/rest/music/doSimpleRecognition.json",e,n,hn).then(function(e){return function(e,n,r){u.debug("Cdkv3RestMusicRecognizer result callback",e);var i=Ee(e);i.rawResults.exports=n,i.exports=qt(e),u.debug("Cdkv3RestMusicRecognizer model updated",i),r(void 0,i,t.EventType.EXPORTED,t.EventType.IDLE)}(n,e,r)}).catch(function(e){return r(e,n)})},close:Ft,clear:Gt,reset:Yt}),mn={types:[t.RecognitionType.TEXT,t.RecognitionType.DIAGRAM,t.RecognitionType.MATH,t.RecognitionType.RAWCONTENT],protocol:t.Protocol.REST,apiVersion:"V4",availableTriggers:{exportContent:[t.Trigger.QUIET_PERIOD,t.Trigger.DEMAND]}};function vn(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments[5],a=t.editor.configuration;return Ot(t,a.recognitionParams.server.scheme+"://"+a.recognitionParams.server.host+e,r(t,n,i),"V4",o).then(function(e){u.debug("iinkRestRecognizer success",e);var n=t.lastPositions;n.lastReceivedPosition=n.lastSentPosition;var r=Dt(t,n);return e.instanceId&&(r.instanceId=e.instanceId),e})}function yn(e,t,n){var r=e.editor.configuration,i=void 0;"TEXT"===r.recognitionParams.type?i=function(e){return{text:e.recognitionParams.v4.text,lang:e.recognitionParams.v4.lang,export:e.recognitionParams.v4.export}}(r):"MATH"===r.recognitionParams.type?i=function(e){return{math:e.recognitionParams.v4.math,lang:e.recognitionParams.v4.lang,export:e.recognitionParams.v4.export}}(r):"DIAGRAM"===r.recognitionParams.type?i=function(e){return{diagram:e.recognitionParams.v4.diagram,lang:e.recognitionParams.v4.lang,export:e.recognitionParams.v4.export}}(r):"Raw Content"===r.recognitionParams.type&&(i=function(e){return{"raw-content":{recognition:e.recognitionParams.v4["raw-content"].recognition},lang:e.recognitionParams.v4.lang,export:e.recognitionParams.v4.export}}(r));var o=[];t.strokeGroups.forEach(function(e){var t={penStyle:"{}"===JSON.stringify(e.penStyle)?null:P(e.penStyle),strokes:e.strokes.map(function(e){return function(e){return{x:e.x,y:e.y,t:e.t}}(e)})};o.push(t)});var a={configuration:i,xDPI:96,yDPI:96,contentType:"Raw Content"===r.recognitionParams.type?"Raw Content":r.recognitionParams.type.charAt(0).toUpperCase()+r.recognitionParams.type.slice(1).toLowerCase(),height:e.editor.domElement.clientHeight,width:e.editor.domElement.clientWidth,theme:L(e.editor.theme),strokeGroups:o};return n&&(a.conversionState="DIGITAL_EDIT"),be(t),a}function bn(e,t,n){var r={};return"application/vnd.myscript.jiix"===t&&(r["application/vnd.myscript.jiix"]=n),"TEXT"===e.recognitionParams.type&&"text/plain"===t?r["text/plain"]=n:"DIAGRAM"===e.recognitionParams.type?("image/svg+xml"===t&&(r["image/svg+xml"]=n),"application/vnd.openxmlformats-officedocument.presentationml.presentation"===t&&(r["application/vnd.openxmlformats-officedocument.presentationml.presentation"]=n),"application/vnd.microsoft.art-gvml-clipformat"===t&&(r["application/vnd.microsoft.art-gvml-clipformat"]=n)):"MATH"===e.recognitionParams.type&&("application/x-latex"===t&&(r["application/x-latex"]=n),"application/mathml+xml"===t&&(r["application/mathml+xml"]=n),"application/mathofficeXML"===t&&(r["application/mathofficeXML"]=n)),r}function En(e,n,r,i,o){u.debug("iinkRestRecognizer result callback",e);var a=Ee(e);a.rawResults.exports=r,a.exports?Object.assign(a.exports,bn(n,i,r)):a.exports=bn(n,i,r),u.debug("iinkRestRecognizer model updated",a),o(void 0,a,t.EventType.EXPORTED,t.EventType.IDLE)}var xn=Object.freeze({iinkRestConfiguration:mn,getInfo:function(){return mn},postMessage:vn,export_:function(e,t,n){var r=e.editor.configuration;function i(i){vn("/api/v4.0/iink/batch",e,t,yn,r.restConversionState,i).then(function(e){return En(t,r,e,i,n)}).catch(function(e){return n(e,t)})}"TEXT"===r.recognitionParams.type?r.recognitionParams.v4.text.mimeTypes.forEach(function(e){i(e)}):"DIAGRAM"===r.recognitionParams.type?r.recognitionParams.v4.diagram.mimeTypes.forEach(function(e){i(e)}):"MATH"===r.recognitionParams.type?r.recognitionParams.v4.math.mimeTypes.forEach(function(e){i(e)}):"Raw Content"===r.recognitionParams.type&&r.recognitionParams.v4["raw-content"].mimeTypes.forEach(function(e){i(e)})},convert:function(e,t,n){var r=e.editor.configuration;vn("/api/v4.0/iink/batch",e,t,yn,"DIGITAL_EDIT").then(function(e){return En(t,r,e,n)}).catch(function(e){return n(e,t)})},init:Wt,close:Ft,clear:Gt,reset:Yt});function wn(e){var t=void 0;try{t=new WebSocket(e.url)}catch(e){u.error("Unable to open websocket, Check the host and your connectivity")}return function(e,t){var n=t.editor.configuration.recognitionParams.server.websocket,r=e;r.start=new Date,r.autoReconnect=n.autoReconnect,r.maxRetryCount=n.maxRetryCount,r.pingEnabled=n.pingEnabled,r.pingDelay=n.pingDelay,r.maxPingLost=n.maxPingLostCount,r.pingLostCount=0,r.recognizerContext=t}(t,e),t.pingEnabled&&function e(t){var n=t;n.pingLostCount++,n.pingLostCount>n.maxPingLost?t.close(1e3,"PING_LOST"):n.readyState<=1&&setTimeout(function(){n.readyState<=1&&(n.send(JSON.stringify({type:"ping"})),e(n))},n.pingDelay)}(t),t.onopen=function(t){u.trace("onOpen"),e.websocketCallback(t)},t.onclose=function(n){u.trace("onClose",new Date-t.start),e.websocketCallback(n)},t.onerror=function(t){u.trace("onError"),e.websocketCallback(t)},t.onmessage=function(n){if(u.trace("onMessage"),t.pingLostCount=0,"pong"!==JSON.parse(n.data).type){var r={type:n.type,data:JSON.parse(n.data)};e.websocketCallback(r)}},t}function Sn(e,t){var n=e;n.idle=!1;var r=n.websocket;if(!(r.readyState<=1))throw Ut;r.send(JSON.stringify(t)),u.debug(t.type+" message sent",t)}function Tn(e,t){return function(n){var r=t;u.trace(n.type+" websocket callback",n);var i=t.recognitionContexts[t.recognitionContexts.length-1];switch(u.debug("Current recognition context",i),n.type){case"open":Sn(t,{type:"applicationKey",applicationKey:t.editor.configuration.recognitionParams.server.applicationKey});break;case"message":switch(u.trace("Receiving message",n.data.type),n.data.type){case"hmacChallenge":Sn(t,function(e,t){return{type:"hmac",applicationKey:e.recognitionParams.server.applicationKey,challenge:t.data.challenge,hmac:Lt(t.data.challenge,e.recognitionParams.server.applicationKey,e.recognitionParams.server.hmacKey)}}(t.editor.configuration,n));break;case"init":r.currentReconnectionCount=0,r.idle=!0,r.initialized=!0,i.callback(void 0,n.data),e.resolve(i);break;case"reset":r.idle=!0,i.callback(void 0,n.data);break;case"mathResult":case"textResult":r.idle=!0,n.data.instanceId&&(t.instanceId&&t.instanceId!==n.data.instanceId&&u.debug("Instance id switch from "+t.instanceId+" to "+n.data.instanceId+" this is suspicious"),r.instanceId=n.data.instanceId,u.debug("Memorizing instance id",n.data.instanceId)),i.callback(void 0,n.data);break;case"error":u.debug("Error detected stopping all recognition",n),i?i.callback(n.data):e.reject(Object.assign({},n.data,{recoverable:!1}));break;default:u.warn("This is something unexpected in current recognizer. Not the type of message we should have here.",n)}break;case"error":u.debug("Error detected stopping all recognition",n),i?i.callback(Object.assign({},n,{recoverable:!1})):e.reject(Object.assign({},n,{recoverable:!1}));break;case"close":u.debug("Close detected stopping all recognition",n),r.initialized=!1,i?i.callback(void 0,n):e.reject(n);break;default:u.warn("This is something unexpected in current recognizer. Not the type of message we should have here.",n)}}}var Rn=function(e,n,r,i){return r&&"close"===r.type?i(n,e,t.EventType.CHANGED):i(n,e)};function Cn(e,t,n,r){var i=Dt(t,t.recognitionContexts[0].model.lastPositions);i.url=function(e,t){return("https"===e.recognitionParams.server.scheme?"wss":"ws")+"://"+e.recognitionParams.server.host+t}(t.editor.configuration,e),i.reconnect=r;var o,a,s=(o=void 0,a=void 0,{promise:new Promise(function(e,t){o=e,a=t}),resolve:o,reject:a});return i.initPromise=s.promise,u.debug("Opening the websocket for context ",t),i.websocketCallback=n(s,i),i.websocket=wn(i),i.initPromise.then(function(e){return u.debug("Init over",e),e})}function kn(e,t,n,r){for(var i=arguments.length,o=Array(i>4?i-4:0),a=4;a2?n-2:0),i=2;i2?i-2:0),a=2;a2?i-2:0),a=2;a0;r>>>=1,n+=n)1&r&&(e=n+e);return e},Bn.prototype.fromParts=function(e,t,n,r,i,o){return this.version=n>>12&15,this.hex=Bn.paddedString(e.toString(16),8)+"-"+Bn.paddedString(t.toString(16),4)+"-"+Bn.paddedString(n.toString(16),4)+"-"+Bn.paddedString(r.toString(16),2)+Bn.paddedString(i.toString(16),2)+"-"+Bn.paddedString(o.toString(16),12),this},Bn.prototype.toString=function(){return this.hex},Bn.prototype.toURN=function(){return"urn:uuid:"+this.hex},Bn.prototype.toBytes=function(){for(var e=this.hex.split("-"),t=[],n=0,r=0;r>>16,timestamp:t}},Bn._create4=function(){return(new Bn).fromParts(Bn.randomUI32(),Bn.randomUI16(),16384|Bn.randomUI12(),128|Bn.randomUI06(),Bn.randomUI08(),Bn.randomUI48())},Bn._create1=function(){var e=(new Date).getTime(),t=Bn.randomUI14(),n=1099511627776*(1|Bn.randomUI08())+Bn.randomUI40(),r=Bn.randomUI04(),i=0;e!=i?(e>>8|128,l=255&t;return(new Bn).fromParts(a,o.mid,s,c,l,n)},Bn.create=function(e){return this["_create"+(e=e||4)]()},Bn.fromTime=function(e,t){t=t||!1;var n=Bn.getTimeFieldValues(e),r=n.low,i=4095&n.hi|4096;return!1===t?(new Bn).fromParts(r,n.mid,i,0,0,0):(new Bn).fromParts(r,n.mid,i,128|Bn.limitUI06,Bn.limitUI08-1,Bn.limitUI48-1)},Bn.firstFromTime=function(e){return Bn.fromTime(e,!1)},Bn.lastFromTime=function(e){return Bn.fromTime(e,!0)},Bn.fromURN=function(e){var t;return(t=/^(?:urn:uuid:|\{)?([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{2})([0-9a-f]{2})-([0-9a-f]{12})(?:\})?$/i.exec(e))?(new Bn).fromParts(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),parseInt(t[4],16),parseInt(t[5],16),parseInt(t[6],16)):null},Bn.fromBytes=function(e){if(e.length<5)return null;for(var t="",n=0,r=[4,2,2,2,6],i=0;i255||t[n]<0)throw new Error("Unexpected byte in binary data.");return Bn.fromBytes(t)},Bn.new=function(){return this.create(4)},Bn.newTS=function(){return this.create(1)};var Yn=Bn;function Gn(e,t){return function(n){var r=t;u.trace(n.type+" websocket callback",n);var i=t.recognitionContexts[t.recognitionContexts.length-1];switch(u.debug("Current recognition context",i),n.type){case"open":t.sessionId?Sn(t,Vn(t.editor.configuration,t.editor.domElement,t.sessionId)):Sn(t,Kn(t.editor.configuration,t.editor.domElement));break;case"message":switch(u.debug("Receiving "+n.data.type+" message",n),n.data.type){case"ack":n.data.hmacChallenge&&Sn(t,function(e,t){return{type:"hmac",hmac:Lt(t.data.hmacChallenge,e.recognitionParams.server.applicationKey,e.recognitionParams.server.hmacKey)}}(t.editor.configuration,n)),n.data.iinkSessionId&&(r.sessionId=n.data.iinkSessionId);break;case"newPart":break;case"contentPackageDescription":r.currentReconnectionCount=0,r.contentPartCount=n.data.contentPartCount,Sn(t,Zn(t.editor.configuration)),r.currentPartId?Sn(t,qn(t.editor.configuration,t.currentPartId)):Sn(t,Jn(t.editor.configuration));break;case"partChanged":n.data.partId&&(r.currentPartId=n.data.partId),r.initialized=!0,Sn(t,pr(t.editor.theme)),Sn(t,dr(t.editor.penStyle)),Sn(t,fr(t.editor.penStyleClasses)),i.callback(void 0,n.data),e.resolve(i);break;case"contentChanged":void 0!==n.data.canUndo&&(r.canUndo=n.data.canUndo),void 0!==n.data.canRedo&&(r.canRedo=n.data.canRedo),void 0!==n.data.empty&&(r.isEmpty=n.data.empty),void 0!==n.data.possibleUndoCount&&(r.possibleUndoCount=n.data.possibleUndoCount),void 0!==n.data.undoStackIndex&&(r.undoStackIndex=n.data.undoStackIndex),i.callback(void 0,n.data);break;case"exported":case"svgPatch":i.callback(void 0,n.data);break;case"supportedImportMimeTypes":r.supportedImportMimeTypes=n.data.mimeTypes,i.callback(void 0,n.data);break;case"fileChunkAck":i.callback(void 0,n.data);break;case"idle":r.idle=!0,i.callback(void 0,n.data);break;case"error":u.debug("Error detected stopping all recognition",n),i?i.callback(n.data):e.reject(Object.assign({},n.data,{recoverable:!1}));break;default:u.warn("This is something unexpected in current recognizer. Not the type of message we should have here.",n)}break;case"error":u.debug("Error detected stopping all recognition",n),i?i.callback(Object.assign({},n,{recoverable:!1})):e.reject(Object.assign({},n,{recoverable:!1}));break;case"close":u.debug("Close detected stopping all recognition",n),r.initialized=!1,r.canRedo=!1,r.canUndo=!1,i?i.callback(n):e.reject(n);break;default:u.warn("This is something unexpected in current recognizer. Not the type of message we should have here.",n)}}}var Fn={types:[t.RecognitionType.MATH,t.RecognitionType.TEXT,t.RecognitionType.DIAGRAM,t.RecognitionType.NEBO],protocol:t.Protocol.WEBSOCKET,apiVersion:"V4",availableTriggers:{exportContent:[t.Trigger.POINTER_UP,t.Trigger.DEMAND],addStrokes:[t.Trigger.POINTER_UP]}};function Kn(e,t){return{type:"newContentPackage",applicationKey:e.recognitionParams.server.applicationKey,xDpi:96,yDpi:96,viewSizeHeight:t.clientHeight0)return be(t),{type:"addStrokes",strokes:n.map(function(e){return Object.assign({},{id:e.id,pointerType:e.pointerType,pointerId:e.pointerId,x:e.x,y:e.y,t:e.t,p:e.p})})}}function $n(){return{type:"undo"}}function er(){return{type:"redo"}}function tr(){return{type:"clear"}}function nr(e){return{type:"convert",conversionState:e}}function rr(e){return{type:"zoom",zoom:e}}function ir(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{type:"changeViewSize",height:e.clientHeightr.size).catch(function(o){return kn(e,t,n,r,i)})})},l=0;l2&&void 0!==arguments[2]?arguments[2]:10,i=arguments[3];Pn(Nt(t,{model:n,callback:function(e,t){return hr(n,e,t,i)}}),rr,r).catch(function(r){return kn(e,t,n,i)})},setPenStyle:function e(t,n,r,i){Pn(Nt(t,{model:n,callback:function(e,t){return hr(n,e,t,i)}}),dr,r).catch(function(r){return kn(e,t,n,i)})},setPenStyleClasses:function e(t,n,r,i){Pn(Nt(t,{model:n,callback:function(e,t){return hr(n,e,t,i)}}),fr,r).catch(function(r){return kn(e,t,n,i)})},setTheme:function e(t,n,r,i){Pn(Nt(t,{model:n,callback:function(e,t){return hr(n,e,t,i)}}),pr,r).catch(function(r){return kn(e,t,n,i)})},IInkWebSocketV4Configuration:Fn,getInfo:function(){return Fn},buildNewContentPackageInput:Kn,buildRestoreIInkSessionInput:Vn,buildNewContentPart:Jn,buildOpenContentPart:qn,buildConfiguration:Zn,buildSetPenStyle:dr,buildSetPenStyleClasses:fr,buildSetTheme:pr,close:In})],callbacks:[function(e,t){d.info("emitting "+e+" event",t),this.dispatchEvent(new CustomEvent(e,Object.assign({bubbles:!0,composed:!0},t?{detail:t}:void 0)))}],getBehaviorFromConfiguration:function(e,t){var n={};return n.grabber=e.grabber,t&&("V4"===t.recognitionParams.apiVersion&&"REST"===t.recognitionParams.protocol?n.stroker=ze:n.stroker=e.strokerList.find(function(e){return e.getInfo().apiVersion===t.recognitionParams.apiVersion&&e.getInfo().name===t.renderingParams.stroker}),"V4"===t.recognitionParams.apiVersion&&"REST"===t.recognitionParams.protocol?n.renderer=Pe:n.renderer=e.rendererList.find(function(e){return e.getInfo().apiVersion===t.recognitionParams.apiVersion}),n.recognizer=e.recognizerList.find(function(e){return e.getInfo().types.includes(t.recognitionParams.type)&&e.getInfo().protocol===t.recognitionParams.protocol&&e.getInfo().apiVersion===t.recognitionParams.apiVersion})),n.callbacks=e.callbacks,n}};function mr(e){var t=e;return t.canUndo=e.currentPosition>0,t.canRedo=e.currentPosition2&&void 0!==arguments[2])||arguments[2],r=e.stack[e.currentPosition],i=arguments.length,o=Array(i>3?i-3:0),a=3;a-1)e.stack.splice(i,1,we(o)),s.debug("model updated",o);else{var c=e;c.currentPosition+=1,c.stack=c.stack.slice(0,c.currentPosition),c.stack.push(we(o)),c.stack.length>c.maxSize&&(c.stack.shift(),c.currentPosition--),s.debug("model pushed",o),a.push(t.EventType.CHANGED)}mr(e),s.debug("undo/redo stack updated",e),vr.apply(void 0,[e,r,!1].concat(a))},undo:function(e,n,r){var i=e;i.currentPosition>0&&(i.currentPosition-=1,mr(e),s.debug("undo index",i.currentPosition)),vr(e,r,!0,t.EventType.CHANGED,t.EventType.EXPORTED)},redo:function(e,n,r){var i=e;i.currentPosition1&&void 0!==arguments[1]?arguments[1]:10,n=document.createElement("canvas");return n.width=Math.abs(e.maxX-e.minX)+2*t,n.style.width=n.width+"px",n.height=Math.abs(e.maxY-e.minY)+2*t,n.style.height=n.height+"px",n}function Er(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;if(e.rawStrokes.length>0){var r=function(e){var t={minX:Number.MAX_VALUE,maxX:Number.MIN_VALUE,minY:Number.MAX_VALUE,maxY:Number.MIN_VALUE};return e.defaultSymbols&&e.defaultSymbols.length>0&&(t=fe(e.defaultSymbols,t)),e.recognizedSymbols&&e.recognizedSymbols.length>0?(t=fe(e.recognizedSymbols,t),t=fe(ve(e),t)):t=fe(e.rawStrokes,t),t}(e),i=br(r,n),o=br(r,n),a={renderingCanvas:o,renderingCanvasContext:o.getContext("2d"),capturingCanvas:i,capturingCanvasContext:i.getContext("2d")};return a.renderingCanvasContext.translate(-r.minX+n,-r.minY+n),ke(a,e,t),a.renderingCanvas.toDataURL("image/png")}return null}function xr(e){return getComputedStyle(e)}function wr(e,t){for(var n in t){var r=t[n];"number"==typeof r&&(r+="px"),e.style[n]=r}return e}function Sr(e){var t=document.createElement("div");return t.className=e,t}var Tr="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.msMatchesSelector);function Rr(e,t){if(!Tr)throw new Error("No element matching method supported");return Tr.call(e,t)}function Cr(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function kr(e,t){return Array.prototype.filter.call(e.children,function(e){return Rr(e,t)})}var Pr={main:"ps",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},Ir={x:null,y:null};function _r(e,t){var n=e.element.classList,r=Pr.state.scrolling(t);n.contains(r)?clearTimeout(Ir[t]):n.add(r)}function Lr(e,t){Ir[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(Pr.state.scrolling(t))},e.settings.scrollingThreshold)}var Ar=function(e){this.element=e,this.handlers={}},Mr={isEmpty:{configurable:!0}};Ar.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},Ar.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter(function(r){return!(!t||r===t)||(n.element.removeEventListener(e,r,!1),!1)})},Ar.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},Mr.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return 0===e.handlers[t].length})},Object.defineProperties(Ar.prototype,Mr);var Or=function(){this.eventElements=[]};function zr(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}Or.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return t||(t=new Ar(e),this.eventElements.push(t)),t},Or.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},Or.prototype.unbind=function(e,t,n){var r=this.eventElement(e);r.unbind(t,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},Or.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},Or.prototype.once=function(e,t,n){var r=this.eventElement(e),i=function(e){r.unbind(t,i),n(e)};r.bind(t,i)};var Dr=function(e,t,n,r,i){var o;if(void 0===r&&(r=!0),void 0===i&&(i=!1),"top"===t)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,n,r,i){var o=n[0],a=n[1],s=n[2],c=n[3],l=n[4],u=n[5];void 0===r&&(r=!0);void 0===i&&(i=!1);var d=e.element;e.reach[c]=null,d[s]<1&&(e.reach[c]="start");d[s]>e[o]-e[a]-1&&(e.reach[c]="end");t&&(d.dispatchEvent(zr("ps-scroll-"+c)),t<0?d.dispatchEvent(zr("ps-scroll-"+l)):t>0&&d.dispatchEvent(zr("ps-scroll-"+u)),r&&function(e,t){_r(e,t),Lr(e,t)}(e,c));e.reach[c]&&(t||i)&&d.dispatchEvent(zr("ps-"+c+"-reach-"+e.reach[c]))}(e,n,o,r,i)};function Nr(e){return parseInt(e,10)||0}var Hr={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},Ur=function(e){var t=e.element;e.containerWidth=t.clientWidth,e.containerHeight=t.clientHeight,e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(kr(t,Pr.element.rail("x")).forEach(function(e){return Cr(e)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(kr(t,Pr.element.rail("y")).forEach(function(e){return Cr(e)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),function(e,t){var n={width:t.railXWidth};t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft;t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-e.scrollTop:n.top=t.scrollbarXTop+e.scrollTop;wr(t.scrollbarXRail,n);var r={top:e.scrollTop,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?r.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth:r.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?r.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:r.left=t.scrollbarYLeft+e.scrollLeft;wr(t.scrollbarYRail,r),wr(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),wr(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(t,e),e.scrollbarXActive?t.classList.add(Pr.state.active("x")):(t.classList.remove(Pr.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=0),e.scrollbarYActive?t.classList.add(Pr.state.active("y")):(t.classList.remove(Pr.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)};function Xr(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function jr(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],c=t[6],l=t[7],u=e.element,d=null,f=null,p=null;function h(t){u[c]=d+p*(t[i]-f),_r(e,l),Ur(e),t.stopPropagation(),t.preventDefault()}function g(){Lr(e,l),e.event.unbind(e.ownerDocument,"mousemove",h)}e.event.bind(e[a],"mousedown",function(t){d=u[c],f=t[i],p=(e[r]-e[n])/(e[o]-e[s]),e.event.bind(e.ownerDocument,"mousemove",h),e.event.once(e.ownerDocument,"mouseup",g),t.stopPropagation(),t.preventDefault()})}var Br={"click-rail":function(e){e.event.bind(e.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,Ur(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,Ur(e),t.stopPropagation()})},"drag-thumb":function(e){jr(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x"]),jr(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y"])},keyboard:function(e){var t=e.element;e.event.bind(e.ownerDocument,"keydown",function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(Rr(t,":hover")||Rr(e.scrollbarX,":focus")||Rr(e.scrollbarY,":focus"))){var r,i=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(i){if("IFRAME"===i.tagName)i=i.contentDocument.activeElement;else for(;i.shadowRoot;)i=i.shadowRoot.activeElement;if(Rr(r=i,"input,[contenteditable]")||Rr(r,"select,[contenteditable]")||Rr(r,"textarea,[contenteditable]")||Rr(r,"button,[contenteditable]"))return}var o=0,a=0;switch(n.which){case 37:o=n.metaKey?-e.contentWidth:n.altKey?-e.containerWidth:-30;break;case 38:a=n.metaKey?e.contentHeight:n.altKey?e.containerHeight:30;break;case 39:o=n.metaKey?e.contentWidth:n.altKey?e.containerWidth:30;break;case 40:a=n.metaKey?-e.contentHeight:n.altKey?-e.containerHeight:-30;break;case 32:a=n.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:a=e.containerHeight;break;case 34:a=-e.containerHeight;break;case 36:a=e.contentHeight;break;case 35:a=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==o||e.settings.suppressScrollY&&0!==a||(t.scrollTop-=a,t.scrollLeft+=o,Ur(e),function(n,r){var i=t.scrollTop;if(0===n){if(!e.scrollbarYActive)return!1;if(0===i&&r>0||i>=e.contentHeight-e.containerHeight&&r<0)return!e.settings.wheelPropagation}var o=t.scrollLeft;if(0===r){if(!e.scrollbarXActive)return!1;if(0===o&&n<0||o>=e.contentWidth-e.containerWidth&&n>0)return!e.settings.wheelPropagation}return!0}(o,a)&&n.preventDefault())}})},wheel:function(e){var t=e.element;function n(n){var r=function(e){var t=e.deltaX,n=-1*e.deltaY;return void 0!==t&&void 0!==n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!=t&&n!=n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}(n),i=r[0],o=r[1];if(!function(e,n,r){if(!Hr.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(e))return!1;for(var i=e;i&&i!==t;){if(i.classList.contains(Pr.element.consuming))return!0;var o=xr(i);if([o.overflow,o.overflowX,o.overflowY].join("").match(/(scroll|auto)/)){var a=i.scrollHeight-i.clientHeight;if(a>0&&!(0===i.scrollTop&&r>0||i.scrollTop===a&&r<0))return!0;var s=i.scrollLeft-i.clientWidth;if(s>0&&!(0===i.scrollLeft&&n<0||i.scrollLeft===s&&n>0))return!0}i=i.parentNode}return!1}(n.target,i,o)){var a=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(o?t.scrollTop-=o*e.settings.wheelSpeed:t.scrollTop+=i*e.settings.wheelSpeed,a=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(i?t.scrollLeft+=i*e.settings.wheelSpeed:t.scrollLeft-=o*e.settings.wheelSpeed,a=!0):(t.scrollTop-=o*e.settings.wheelSpeed,t.scrollLeft+=i*e.settings.wheelSpeed),Ur(e),(a=a||function(n,r){var i=0===t.scrollTop,o=t.scrollTop+t.offsetHeight===t.scrollHeight,a=0===t.scrollLeft,s=t.scrollLeft+t.offsetWidth===t.offsetWidth;return!(Math.abs(r)>Math.abs(n)?i||o:a||s)||!e.settings.wheelPropagation}(i,o))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?e.event.bind(t,"wheel",n):void 0!==window.onmousewheel&&e.event.bind(t,"mousewheel",n)},touch:function(e){if(Hr.supportsTouch||Hr.supportsIePointer){var t=e.element,n={},r=0,i={},o=null;Hr.supportsTouch?(e.event.bind(t,"touchstart",l),e.event.bind(t,"touchmove",u),e.event.bind(t,"touchend",d)):Hr.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",l),e.event.bind(t,"pointermove",u),e.event.bind(t,"pointerup",d)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",l),e.event.bind(t,"MSPointerMove",u),e.event.bind(t,"MSPointerUp",d)))}function a(n,r){t.scrollTop-=r,t.scrollLeft-=n,Ur(e)}function s(e){return e.targetTouches?e.targetTouches[0]:e}function c(e){return!(e.pointerType&&"pen"===e.pointerType&&0===e.buttons||(!e.targetTouches||1!==e.targetTouches.length)&&(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function l(e){if(c(e)){var t=s(e);n.pageX=t.pageX,n.pageY=t.pageY,r=(new Date).getTime(),null!==o&&clearInterval(o)}}function u(o){if(c(o)){var l=s(o),u={pageX:l.pageX,pageY:l.pageY},d=u.pageX-n.pageX,f=u.pageY-n.pageY;if(function(e,n,r){if(!t.contains(e))return!1;for(var i=e;i&&i!==t;){if(i.classList.contains(Pr.element.consuming))return!0;var o=xr(i);if([o.overflow,o.overflowX,o.overflowY].join("").match(/(scroll|auto)/)){var a=i.scrollHeight-i.clientHeight;if(a>0&&!(0===i.scrollTop&&r>0||i.scrollTop===a&&r<0))return!0;var s=i.scrollLeft-i.clientWidth;if(s>0&&!(0===i.scrollLeft&&n<0||i.scrollLeft===s&&n>0))return!0}i=i.parentNode}return!1}(o.target,d,f))return;a(d,f),n=u;var p=(new Date).getTime(),h=p-r;h>0&&(i.x=d/h,i.y=f/h,r=p),function(n,r){var i=t.scrollTop,o=t.scrollLeft,a=Math.abs(n),s=Math.abs(r);if(s>a){if(r<0&&i===e.contentHeight-e.containerHeight||r>0&&0===i)return 0===window.scrollY&&r>0&&Hr.isChrome}else if(a>s&&(n<0&&o===e.contentWidth-e.containerWidth||n>0&&0===o))return!0;return!0}(d,f)&&o.preventDefault()}}function d(){e.settings.swipeEasing&&(clearInterval(o),o=setInterval(function(){e.isInitialized?clearInterval(o):i.x||i.y?Math.abs(i.x)<.01&&Math.abs(i.y)<.01?clearInterval(o):(a(30*i.x,30*i.y),i.x*=.8,i.y*=.8):clearInterval(o)},10))}}},Wr=function(e,t){var n=this;if(void 0===t&&(t={}),"string"==typeof e&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var r in this.element=e,e.classList.add(Pr.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!1,wheelSpeed:1},t)n.settings[r]=t[r];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var i,o,a=function(){return e.classList.add(Pr.state.focus)},s=function(){return e.classList.remove(Pr.state.focus)};this.isRtl="rtl"===xr(e).direction,this.isNegativeScroll=(o=e.scrollLeft,e.scrollLeft=-1,i=e.scrollLeft<0,e.scrollLeft=o,i),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new Or,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=Sr(Pr.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=Sr(Pr.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=xr(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Nr(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Nr(c.borderLeftWidth)+Nr(c.borderRightWidth),wr(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Nr(c.marginLeft)+Nr(c.marginRight),wr(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=Sr(Pr.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=Sr(Pr.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=xr(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Nr(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(e){var t=xr(e);return Nr(t.width)+Nr(t.paddingLeft)+Nr(t.paddingRight)+Nr(t.borderLeftWidth)+Nr(t.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Nr(l.borderTopWidth)+Nr(l.borderBottomWidth),wr(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Nr(l.marginTop)+Nr(l.marginBottom),wr(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(e){return Br[e](n)}),this.lastScrollTop=e.scrollTop,this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(e){return n.onScroll(e)}),Ur(this)};Wr.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,wr(this.scrollbarXRail,{display:"block"}),wr(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Nr(xr(this.scrollbarXRail).marginLeft)+Nr(xr(this.scrollbarXRail).marginRight),this.railYMarginHeight=Nr(xr(this.scrollbarYRail).marginTop)+Nr(xr(this.scrollbarYRail).marginBottom),wr(this.scrollbarXRail,{display:"none"}),wr(this.scrollbarYRail,{display:"none"}),Ur(this),Dr(this,"top",0,!1,!0),Dr(this,"left",0,!1,!0),wr(this.scrollbarXRail,{display:""}),wr(this.scrollbarYRail,{display:""}))},Wr.prototype.onScroll=function(e){this.isAlive&&(Ur(this),Dr(this,"top",this.element.scrollTop-this.lastScrollTop),Dr(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=this.element.scrollTop,this.lastScrollLeft=this.element.scrollLeft)},Wr.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Cr(this.scrollbarX),Cr(this.scrollbarY),Cr(this.scrollbarXRail),Cr(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Wr.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};var Yr=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t},Gr=i(function(e,t){(function(e,t){var n,r=(n=t)&&n.__esModule?n:{default:n};var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=a})(e,Yr)});function Fr(){}r(Gr),Fr.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===c(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,a.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new i.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return d("action",e)}},{key:"defaultTarget",value:function(e){var t=d("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return d("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}();function d(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=u})(e,Gr,Kr,$r)}));function ti(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1}function ni(e,n){var r=n.elements;r.textElement.addEventListener("click",function(r){return function(e,n,r){var i=r,o=r.elements;if(e.target.id!=="prompter-text"+r.randomString){var a=e.target.id.replace("word-","").replace(r.randomString,""),s=JSON.parse(n.exports[t.Exports.JIIX]).words;if(i.wordToChange=s[a],i.wordToChange.id=a,o.candidatesElement.innerHTML="",i.wordToChange&&i.wordToChange.candidates){o.candidatesElement.style.display="flex",i.wordToChange.candidates.forEach(function(e,t){i.wordToChange.label===e?o.candidatesElement.innerHTML+=''+e+"":o.candidatesElement.innerHTML+=''+e+""});var c=e.target.getBoundingClientRect().left-60;o.candidatesElement.style.top="48px",o.candidatesElement.style.left=c+"px",e.target.parentNode.parentNode.parentNode.insertBefore(o.candidatesElement,e.target.parentNode.parentNode)}}}(r,e,n)}),r.candidatesElement.addEventListener("click",function(r){return function(e,n,r){var i=r,o=r.elements,a=e.target.innerText;if(a!==i.wordToChange.label&&i.wordToChange.candidates.includes(a)){var s=JSON.parse(n.exports[t.Exports.JIIX]);s.words[i.wordToChange.id].label=a,n.import_(JSON.stringify(s),t.Exports.JIIX)}o.candidatesElement.style.display="none"}(r,e,n)}),r.ellipsisElement.addEventListener("click",function(e){return function(e,t){var n=t,r=function(){var t=e.target.offsetLeft-68;n.menuElement.style.left=t+"px"},i=document.contains(n.menuElement);ti(n.menuElement)||i?"none"===n.menuElement.style.display&&(r(),n.menuElement.style.display="flex"):(n.menuElement.style.display="flex",r(),n.menuElement.appendChild(n.convertElement),n.menuElement.appendChild(n.copyElement),n.menuElement.appendChild(n.deleteElement),e.target.parentNode.insertBefore(n.menuElement,e.target))}(e,r)}),r.copyElement.addEventListener("click",function(){r.menuElement.style.display="none"}),r.convertElement.addEventListener("click",function(){r.menuElement.style.display="none",e.convert()}),r.deleteElement.addEventListener("click",function(){r.menuElement.style.display="none",e.clear()})}function ri(e){var t="-"+Math.random().toString(10).substring(2,12),n=function(e){var t=document.createElement("div");t.id="smartguide"+e,t.classList.add("smartguide");var n=document.createElement("div");n.id="prompter-text"+e,n.classList.add("prompter-text"),n.setAttribute("touch-action","none");var r=document.createElement("div");r.id="prompter-text-container"+e,r.classList.add("prompter-text-container"),r.appendChild(n);var i=document.createElement("div");i.id="ellipsis"+e,i.classList.add("ellipsis"),i.innerHTML="...";var o=document.createElement("div");o.id="tag-icon"+e,o.classList.add("tag-icon"),o.innerHTML="¶";var a=document.createElement("div");a.id="candidates"+e,a.classList.add("candidates");var s=document.createElement("div");s.id="more-menu"+e,s.classList.add("more-menu");var c=document.createElement("button");c.classList.add("options-label-button"),c.id="convert"+e,c.innerHTML="Convert";var l=document.createElement("button");l.classList.add("options-label-button"),l.id="copy"+e,l.innerHTML="Copy";var u=document.createElement("button");return u.classList.add("options-label-button"),u.id="delete"+e,u.innerHTML="Delete",{smartGuideElement:t,textElement:n,textContainer:r,candidatesElement:a,menuElement:s,tagElement:o,ellipsisElement:i,convertElement:c,copyElement:l,deleteElement:u}}(t),r=(new ei(n.copyElement),{editor:e,wordToChange:"",lastWord:"",previousLabelExport:" ",perfectScrollbar:new Wr(n.textContainer,{suppressScrollY:!0}),elements:n,smartGuideTimeOutId:0,randomString:t});return ni(e,r),e.configuration.recognitionParams.v4.text.smartGuideFadeOut.enable&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4,t=arguments[1],n=t,r=t.elements;new MutationObserver(function(t){t.forEach(function(){n.smartGuideTimeOutId&&clearTimeout(n.smartGuideTimeOutId),"none"===r.candidatesElement.style.display&&"none"===r.menuElement.style.display?n.smartGuideTimeOutId=setTimeout(function(){r.smartGuideElement.classList.add("smartguide-out"),r.smartGuideElement.classList.remove("smartguide-in")},e):document.contains(r.candidatesElement)||document.contains(r.menuElement)||(n.smartGuideTimeOutId=setTimeout(function(){r.smartGuideElement.classList.add("smartguide-out"),r.smartGuideElement.classList.remove("smartguide-in")},e))})}).observe(r.smartGuideElement,{childList:!0,subtree:!0,attributes:!0})}(e.configuration.recognitionParams.v4.text.smartGuideFadeOut.duration,r),r}function ii(e,t,n,r){var i=e;a.debug("inkImporter start importing =>",t);var o=Object.assign({},i.behavior.grabber);o.detach=i.behavior.grabber.detach,i.behavior.grabber={};var s=[];t.forEach(function(e){e.convert?s.push({action:"convert",value:!0}):e.setDelay?s.push({action:"setDelay",value:e.setDelay}):(e.color&&s.push({action:"setColor",value:e.color}),e.X.forEach(function(t,n){var r="move";0===n?r="down":n===e.X.length-1&&(r="up"),s.push({action:r,point:{x:e.X[n],y:e.Y[n]}})}))}),a.debug("Array of actions =>",s);!function e(t,n,a){if(n2?i-2:0),s=2;s5?o-5:0),c=5;c=t.rawStrokes.length-1}(n,r)?(a.debug("Reset is needed"),e(n,r,function(e,r){for(var o=arguments.length,a=Array(o>2?o-2:0),c=2;c2&&void 0!==arguments[2]?arguments[2]:e.configuration.triggers[t];return!(!e.recognizer||!e.recognizer.getInfo().availableTriggers[t].includes(n))||(a.error(n+" is not a valid trigger for "+t),!1)}function ci(e,n){for(var r=e,i=n,o=arguments.length,s=Array(o>2?o-2:0),c=2;c=e.model.lastPositions.lastReceivedPosition?(r.model=function(){for(var e=arguments.length,t=Array(e),n=0;n0){if(i.smartGuideElement.classList.add("smartguide-in"),i.smartGuideElement.classList.remove("smartguide-out"),i.candidatesElement.style.display="none",i.menuElement.style.display="none",r.previousLabelExport&&r.previousLabelExport!==JSON.parse(n[t.Exports.JIIX]).label){var s=JSON.parse(n[t.Exports.JIIX]).words;!function(e){i.textElement.innerHTML="";var t=document.createDocumentFragment();e.forEach(function(n,o){if(" "===n.label||n.label.includes("\n"))t.appendChild(a(!0,o));else if(o!==e.length-1)t.appendChild(a(!1,o,n));else{i.textElement.appendChild(t),r.perfectScrollbar.update(),""===r.lastWord&&(r.lastWord=n);var s=a(!1,o,n);r.lastWord.candidates!==n.candidates&&r.lastWord.label!==n.label?(s.classList.add("added-word"),i.textElement.appendChild(s),i.textContainer.scrollLeft=s.offsetLeft,r.lastWord=n):(i.textElement.appendChild(s),i.textContainer.scrollLeft=s.offsetLeft)}})}(s),function(o){if(r.tempWords&&r.tempWords.length===o.length){var a=o.map(function(e){return e.label}),s=r.tempWords.map(function(e){return e.label}),c=a.indexOf(a.filter(function(e){return-1===s.indexOf(e)})[0]);document.getElementById("word-"+c+e.randomString)&&c>-1&&(document.getElementById("word-"+c+e.randomString).classList.add("modified-word"),i.textContainer.scrollLeft=document.getElementById("word-"+c+e.randomString).offsetLeft-10)}r.tempWords=JSON.parse(n[t.Exports.JIIX]).words}(s)}r.previousLabelExport=JSON.parse(n[t.Exports.JIIX]).label,i.copyElement.setAttribute("data-clipboard-text",JSON.parse(n[t.Exports.JIIX]).label)}else i.smartGuideElement.classList.add("smartguide-out"),i.smartGuideElement.classList.remove("smartguide-in");return r}(e.smartGuide,n)}(r,i.exports),ve(n).length>0&&!e.recognizer.addStrokes&&e.configuration.triggers.exportContent!==t.Trigger.DEMAND&&ui(e,n)}function li(e,n,r){for(var i=arguments.length,o=Array(i>3?i-3:0),s=3;s2?i-2:0),l=2;l3&&void 0!==arguments[3]?arguments[3]:e.configuration.triggers.exportContent;e.recognizer&&e.recognizer.export_&&e.recognizerContext.initPromise.then(function(){if(si(e,"exportContent",i)){var o=e;window.clearTimeout(e.exportTimer),o.exportTimer=window.setTimeout(function(){ai(e.recognizer.reset,e.recognizer.export_,e.recognizerContext,n,function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:"pen",n=arguments[2];a.trace("Pointer down",e),window.clearTimeout(this.notifyTimer),window.clearTimeout(this.exportTimer),this.model=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:96;if(n&&n["-myscript-pen-width"]){var i=n["-myscript-pen-width"]*r/25.4;Object.assign(n,{width:i/2})}var o=e;return s.trace("initPendingStroke",t),o.currentStroke=Z(n),o.currentStroke=$(o.currentStroke,t),o}(this.model,e,Object.assign({pointerType:t,pointerId:n},this.theme.ink,this.localPenStyle)),this.renderer.drawCurrentStroke(this.rendererContext,this.model,this.stroker)}},{key:"pointerMove",value:function(e){a.trace("Pointer move",e),this.model=function(e,t){var n=e;return n.currentStroke&&(s.trace("appendToPendingStroke",t),n.currentStroke=$(n.currentStroke,t)),n}(this.model,e),this.renderer.drawCurrentStroke(this.rendererContext,this.model,this.stroker)}},{key:"pointerUp",value:function(e){a.trace("Pointer up",e),this.model=function(e,t,n){var r=e;if(r.currentStroke){s.trace("endPendingStroke",t);var i=$(r.currentStroke,t);ge(r,i),me(r,i,n),delete r.currentStroke}return r}(this.model,e,this.penStyle),this.renderer.drawModel(this.rendererContext,this.model,this.stroker),this.recognizer.addStrokes?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.configuration.triggers.addStrokes;e.recognizer&&e.recognizer.addStrokes&&e.recognizerContext.initPromise.then(function(){si(e,"addStrokes",n)&&ai(e.recognizer.reset,e.recognizer.addStrokes,e.recognizerContext,t,function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:"DIGITAL_EDIT";this.canConvert&&(oi(this,void 0,t.EventType.CONVERT),function(e,t,n){e.recognizer&&e.recognizer.convert&&e.recognizerContext.initPromise.then(function(){e.recognizer.convert(e.recognizerContext,t,function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o0&&void 0!==arguments[0])||arguments[0];this.configuration.recognitionParams.v4.text.guides.enable=n,e=this,t=this.model,e.recognizer&&e.recognizer.sendConfiguration&&e.recognizerContext.initPromise.then(function(){e.recognizer.sendConfiguration(e.recognizerContext,t,function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?n-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?i-2:0),s=2;s0}},{key:"canConvert",get:function(){return this.canUndo&&this.canClear&&this.recognizer&&this.recognizer.convert}},{key:"possibleUndoCount",get:function(){return this.recognizerContext.possibleUndoCount}},{key:"undoStackIndex",get:function(){return this.recognizerContext.undoStackIndex}},{key:"canExport",get:function(){return this.canUndo&&this.canClear&&this.recognizer&&this.recognizer.getInfo().availableTriggers.exportContent.includes(t.Trigger.DEMAND)}},{key:"exports",get:function(){return this.model?this.model.exports:void 0}},{key:"supportedImportMimeTypes",get:function(){return this.recognizerContext.supportedImportMimeTypes}},{key:"eastereggs",get:function(){return{inkImporter:ii}}}]),e}(),fi={af_ZA:"Afrikaans",az_AZ:"Azərbaycanca",be_BY:"Беларуская",bg_BG:"Български",bs_BA:"Bosanski",ca_ES:"Català",ceb_PH:"Sinugboanon",cs_CZ:"Čeština",da_DK:"Dansk",de_AT:"Deutsch (Österreich)",de_DE:"Deutsch",el_GR:"Ελληνικά",en_CA:"English (Canada)",en_GB:"English (United Kingdom)",en_PH:"English (Philippines)",en_US:"English (United States)",es_CO:"Español (Colombia)",es_ES:"Español (España)",es_MX:"Español (México)",et_EE:"Eesti",eu_ES:"Euskara",fi_FI:"Suomi",fil_PH:"Filipino",fr_CA:"Français (Canada)",fr_FR:"Français (France)",ga_IE:"Gaeilge",gl_ES:"Galego",hr_HR:"Hrvatski",hu_HU:"Magyar",hy_AM:"Հայերեն",id_ID:"Bahasa Indonesia",is_IS:"Íslenska",it_IT:"Italiano",ja_JP:"日本語",ka_GE:"ქართული",kk_KZ:"Қазақша",ko_KR:"한국어",lt_LT:"Lietuvių",lv_LV:"Latviešu",mg_MG:"Malagasy",mk_MK:"Македонски",mn_MN:"Монгол",ms_MY:"Bahasa Melayu (Malaysia)",nl_BE:"Nederlands (België)",nl_NL:"Nederlands",no_NO:"Norsk (Bokmål)",pl_PL:"Polski",pt_BR:"Português (Brasil)",pt_PT:"Português (Portugal)",ro_RO:"Română",ru_RU:"Русский",sk_SK:"Slovenčina",sl_SI:"Slovenščina",sq_AL:"Shqip",sr_Cyrl_RS:"Српски",sr_Latn_RS:"Srpski",sv_SE:"Svenska",sw_TZ:"Kiswahili",tr_TR:"Türkçe",tt_RU:"Татарча",uk_UA:"Українська",vi_VN:"Tiếng Việt",zh_CN:"中文 (中国)",zh_HK:"中文 (香港)",zh_TW:"中文 (台灣)"},pi={result:fi},hi=Object.freeze({result:fi,default:pi}),gi={af_ZA:"Afrikaans",az_AZ:"Azərbaycanca",id_ID:"Bahasa Indonesia",ms_MY:"Bahasa Melayu (Malaysia)",bs_BA:"Bosanski",ca_ES:"Català",da_DK:"Dansk",de_DE:"Deutsch",de_AT:"Deutsch (Österreich)",et_EE:"Eesti",en_CA:"English (Canada)",en_GB:"English (United Kingdom)",en_US:"English (United States)",es_ES:"Español (España)",es_MX:"Español (México)",eu_ES:"Euskara",fr_CA:"Français (Canada)",fr_FR:"Français (France)",ga_IE:"Gaeilge",gl_ES:"Galego",hr_HR:"Hrvatski",it_IT:"Italiano",lv_LV:"Latviešu",lt_LT:"Lietuvių",hu_HU:"Magyar",nl_NL:"Nederlands",nl_BE:"Nederlands (België)",no_NO:"Norsk (Bokmål)",pl_PL:"Polski",pt_BR:"Português (Brasil)",pt_PT:"Português (Portugal)",ro_RO:"Română",sq_AL:"Shqip",sk_SK:"Slovenčina",sl_SI:"Slovenščina",sr_Latn_RS:"Srpski",fi_FI:"Suomi",sv_SE:"Svenska",th_TH:"Thaiไทย",vi_VN:"Tiếng Việt",tr_TR:"Türkçe",is_IS:"Íslenska",cs_CZ:"Čeština",el_GR:"Ελληνικά",be_BY:"Беларуская",bg_BG:"Български",mk_MK:"Македонски",mn_MN:"Монгол",ru_RU:"Русский",sr_Cyrl_RS:"Српски",tt_RU:"Татарча",uk_UA:"Українська",kk_KZ:"Қазақша",hy_AM:"Հայերեն",he_IL:"עברית",ur_PK:"اردو",ar:"العربية",fa_IR:"فارسی",hi_IN:"हिन्दी",ka_GE:"ქართული",zh_CN:"中文 (中国)",zh_TW:"中文 (台灣)",zh_HK:"中文 (香港)",ja_JP:"日本語",ko_KR:"한국어"},mi={result:gi},vi=Object.freeze({result:gi,default:mi});function yi(e,t,n,r,i){return a.debug("Registering a new editor"),new di(e,t,n,r,i)}function bi(e){return"V4"===S(e).recognitionParams.apiVersion?hi:vi}var Ei={Constants:t,LoggerConfig:o,Editor:di,DefaultConfiguration:w,DefaultPenStyle:C,DefaultTheme:I,register:yi,getAvailableLanguageList:bi};e.default=Ei,e.Constants=t,e.LoggerConfig=o,e.Editor=di,e.DefaultConfiguration=w,e.DefaultPenStyle=C,e.DefaultTheme=I,e.register=yi,e.getAvailableLanguageList=bi,Object.defineProperty(e,"__esModule",{value:!0})}); +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.MyScript={})}(this,function(e){"use strict";var t={EventType:{IDLE:"idle",CHANGED:"changed",IMPORTED:"imported",EXPORTED:"exported",CONVERTED:"converted",RENDERED:"rendered",LOADED:"loaded",UNDO:"undo",REDO:"redo",CLEAR:"clear",IMPORT:"import",SUPPORTED_IMPORT_MIMETYPES:"supportedImportMimeTypes",EXPORT:"export",CONVERT:"convert",ERROR:"error"},RecognitionType:{TEXT:"TEXT",MATH:"MATH",SHAPE:"SHAPE",MUSIC:"MUSIC",ANALYZER:"ANALYZER",DIAGRAM:"DIAGRAM",NEBO:"NEBO",RAWCONTENT:"Raw Content"},Protocol:{WEBSOCKET:"WEBSOCKET",REST:"REST"},ModelState:{INITIALIZING:"INITIALIZING",INITIALIZED:"INITIALIZED",EXPORTING:"EXPORTING",EXPORTED:"EXPORTED",PENDING:"PENDING",MODIFIED:"MODIFIED",ERROR:"ERROR"},Trigger:{QUIET_PERIOD:"QUIET_PERIOD",POINTER_UP:"POINTER_UP",DEMAND:"DEMAND"},Logger:{EDITOR:"editor",MODEL:"model",GRABBER:"grabber",RENDERER:"renderer",RECOGNIZER:"recognizer",CALLBACK:"callback",UTIL:"util",SMARTGUIDE:"smartguide"},LogLevel:{TRACE:"TRACE",DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN",ERROR:"ERROR"},Languages:{zh_CN:"Noto Sans CJK tc",zh_HK:"Noto Sans CJK tc",zh_TW:"Noto Sans CJK tc",ko_KR:"Noto Sans CJK kr",ja_JP:"Noto Sans CJK jp",hy_AM:"Noto Sans Armenian",default:"Open Sans"},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."},Exports:{JIIX:"application/vnd.myscript.jiix"}},n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e,t){return e(t={exports:{}},t.exports),t.exports}var o=(0,i(function(e){var t,r;t=n,r=function(){var e=function(){},t="undefined",n=["trace","debug","info","warn","error"];function r(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function i(t,r){for(var i=0;i=0&&r<=c.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(s=r,!1!==o&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t){try{return void(window.localStorage[l]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(l)+"="+r+";"}catch(e){}}}(r),i.call(c,r,e),typeof console===t&&r10?A[10]:A[t],Math.round(e*n)/n}return e}function O(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=e;o.changedTouches&&(o=o.changedTouches[0]);var a=t.getBoundingClientRect();return{x:M(o.clientX-a.left-t.clientLeft-i,n.xyFloatPrecision),y:M(o.clientY-a.top-t.clientTop-r,n.xyFloatPrecision),t:M(Date.now(),n.timestampFloatPrecision)}}var z=Object.freeze({attach:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=0;function o(){"None"!==window.getSelection().type&&window.getSelection().removeAllRanges()}function a(e){var t=document.querySelector(".more-menu");return!(e.target.classList.contains("ellipsis")||e.target.classList.contains("more-menu")||e.target.classList.contains("options-label-button")||!t||"none"===t.style.display||(t.style.display="none",0))}function s(e){var t=document.querySelector(".candidates");return!(e.target.classList.contains("candidates")||"SPAN"===e.target.tagName||!t||"none"===t.style.display||(t.style.display="none",0))}var l={options:t.configuration.listenerOptions,listeners:[{types:["pointerdown"],listener:function(i){var l=i.target.id===t.domElement.id||i.target.classList.contains("ms-canvas");if(void 0!==this.activePointerId)this.activePointerId===i.pointerId&&c.trace(i.type+" event with the same id without any pointer up",i.pointerId);else if(2!==i.button&&2!==i.buttons&&l){if(!a(i)&&!s(i)){this.activePointerId=i.pointerId;var u=i.pointerId>2147483647?-1:i.pointerId;o(),i.stopPropagation(),t.pointerDown(O(i,e,t.configuration,n,r),i.pointerType,u)}}else i.target.classList.contains("ellipsis")||i.target.classList.contains("tag-icon")?(a(i),s(i)):(a(i),s(i),this.smartGuidePointerDown=!0,this.downSmartGuidePoint=O(i,e,t.configuration))}},{types:["pointermove"],listener:function(a){if(void 0!==this.activePointerId&&this.activePointerId===a.pointerId)o(),t.pointerMove(O(a,e,t.configuration,n,r));else if(this.smartGuidePointerDown){var s=O(a,e,t.configuration,n,r),l=Math.abs(this.downSmartGuidePoint.x-s.x),u=Math.abs(this.downSmartGuidePoint.y-s.y);if(i=Math.max(l,i),l<5&&u>5&&i<15||l>5&&u>5&&i<15){this.activePointerId=a.pointerId;var d=a.pointerId>2147483647?-1:a.pointerId;o(),t.pointerDown(this.downSmartGuidePoint,a.pointerType,d)}}else c.trace(a.type+" event from another pointerid ("+a.pointerId+")",this.activePointerId)}},{types:["pointerup","pointerout","pointerleave","pointercancel"],listener:function(o){i=0,this.smartGuidePointerDown=!1;var a=["smartguide","prompter-text-container","prompter-text","tag-icon","ellipsis"],s=["ps__rail-x","ps__thumb-x"],l=o.relatedTarget&&(a.includes(o.relatedTarget.className)||s.includes(o.relatedTarget.className)),u=o.relatedTarget&&o.target&&(a.includes(o.target.className)||s.includes(o.target.className)),d=o.relatedTarget&&o.target&&("SPAN"===o.target.tagName||"SPAN"===o.relatedTarget.tagName);l||u||d?o.stopPropagation():void 0!==this.activePointerId&&this.activePointerId===o.pointerId?(this.activePointerId=void 0,o.stopPropagation(),t.pointerUp(O(o,e,t.configuration,n,r))):c.trace(o.type+" event from another pointerid ("+o.pointerId+")",this.activePointerId)}}]};return c.debug("attaching listeners",l),l.listeners.forEach(function(t){t.types.forEach(function(n){return e.addEventListener(n,t.listener,l.options)})}),l},detach:function(e,t){c.debug("detaching listeners",t),t.listeners.forEach(function(n){n.types.forEach(function(r){return e.removeEventListener(r,n.listener,t.options)})})}});function D(e,t,n){n&&n.drawStroke(e,t)}var N={table:"table",shape:"shape",recognizedShape:"recognizedShape",ellipse:"ellipse",line:"line"};function H(e){var t=(e+Math.PI)%(2*Math.PI)-Math.PI;return t<-Math.PI&&(t+=2*Math.PI),t}function U(e,t,n,r){var i=H(n+Math.PI*(7/8)),o=H(n-Math.PI*(7/8)),a=e;a.save();try{a.fillStyle=a.strokeStyle,a.moveTo(t.x,t.y),a.beginPath(),a.lineTo(t.x+r*Math.cos(i),t.y+r*Math.sin(i)),a.lineTo(t.x+r*Math.cos(o),t.y+r*Math.sin(o)),a.lineTo(t.x,t.y),a.fill()}finally{a.restore()}}function X(e,t){var n=function(e,t,n,r,i,o,a){var s=Math.cos(i),c=Math.sin(i),l=s,u=c;s*=n,l*=r,c*=n,u*=r;var d=Math.floor(Math.abs(a)/.02),f=[];e.save();try{e.beginPath();for(var h=0;h<=d;h++){var p=o+h/d*a,g=Math.atan2(Math.sin(p)/r,Math.cos(p)/n),m=Math.cos(g),v=Math.sin(g),y=t.x+s*m-u*v,b=t.y+l*v+c*m;0===h?e.moveTo(y,b):e.lineTo(y,b),0!==h&&h!==d||f.push({x:y,y:b})}e.stroke()}finally{e.restore()}return f}(e,t.center,t.maxRadius,t.minRadius,t.orientation,t.startAngle,t.sweepAngle);t.beginDecoration&&"ARROW_HEAD"===t.beginDecoration&&U(e,n[0],t.beginTangentAngle,12),t.endDecoration&&"ARROW_HEAD"===t.endDecoration&&U(e,n[1],t.endTangentAngle,12)}function j(e,t,n){e.save();try{e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(n.x,n.y),e.stroke()}finally{e.restore()}}function B(e,t){l.debug("draw "+t.type+" symbol");var n=e;n.save();try{if(n.lineWidth=t.width,n.strokeStyle=t.color,t.elementType)switch(t.elementType){case N.shape:B(n,t.candidates[t.selectedCandidateIndex]);break;case N.table:t.lines.forEach(function(e){return B(n,e)});break;case N.line:j(n,t.data.p1,t.data.p2);break;default:l.error(t.elementType+" not implemented")}else switch(t.type){case N.ellipse:X(n,t);break;case N.line:!function(e,t){j(e,t.firstPoint,t.lastPoint),"ARROW_HEAD"===t.beginDecoration&&U(e,t.firstPoint,t.beginTangentAngle,12),"ARROW_HEAD"===t.endDecoration&&U(e,t.lastPoint,t.endTangentAngle,12)}(n,t);break;case N.recognizedShape:t.primitives.forEach(function(e){return B(n,e)});break;default:l.error(t.type+" not implemented")}}finally{n.restore()}}var W={inputCharacter:"inputCharacter",char:"char",string:"string",textLine:"textLine"};function Y(e,t){!function(e,t,n){var r=e;r.save();try{r.font=n.textHeight+"px serif",r.textAlign="CENTER"===n.justificationType?"center":"left",r.textBaseline="bottom",r.fillStyle=r.strokeStyle,r.fillText(t,n.topLeftPoint.x,n.topLeftPoint.y+n.height)}finally{r.restore()}}(e,t.label,t.data),t.underlineList.forEach(function(n){!function(e,t,n,r){var i=r.width/n.length;j(e,{x:r.topLeftPoint.x+t.data.firstCharacter*i,y:r.topLeftPoint.y+r.height},{x:r.topLeftPoint.x+t.data.lastCharacter*i,y:r.topLeftPoint.y+r.height})}(e,n,t.label,t.data)})}var G={F:{svg:'',getBoundingBox:function(e,t,n){return{height:3*e,width:3*e*.9,x:t,y:n-e}}},C:{svg:'',getBoundingBox:function(e,t,n){return{height:3*e,width:3*e*.72,x:t,y:n-1.5*e}}},G:{svg:'',getBoundingBox:function(e,t,n){return{height:7.5*e,width:7.5*e*.375,x:t,y:n-4.5*e}}}},F={accidental:"accidental",arpeggiate:"arpeggiate",bar:"bar",beam:"beam",clef:"clef",decoration:"decoration",dots:"dots",head:"head",ledgerLine:"ledgerLine",rest:"rest",staff:"staff",stem:"stem",tieOrSlur:"tieOrSlur",timeSignature:"timeSignature"};function K(){return Object.keys(G).map(function(e){return t=e,n="data:image/svg+xml,"+G[e].svg,(r=document.createElement("img")).dataset.clef=t,r.src=n,r.style.display="none",r;var t,n,r})}function V(e,t){switch(l.debug("draw "+t.type+" symbol"),t.type){case F.clef:!function(e,t){e.drawImage(e.canvas.parentElement.querySelector("img[data-clef="+t.value.symbol+"]"),t.boundingBox.x,t.boundingBox.y,t.boundingBox.width,t.boundingBox.height)}(e,t);break;case F.staff:!function(e,t){for(var n=0;n=c||Math.abs(o[o.length-1]-r)>=c)&&(l=!0),l?(u.x.push(t.x),u.y.push(t.y),u.t.push(t.t),u.p.push(function(e,t,n,r,i,o){var a=1,s=J(e,t,n,r,o),c=q(e,t,n,r,i,o);0===c?a=.5:s===c?a=1:s<10?a=.2+Math.pow(.1*s,.4):s>c-10&&(a=.2+Math.pow(.1*(c-s),.4));var l=a*Math.max(.1,1-.1*Math.sqrt(s));return isNaN(parseFloat(l))?.5:l}(t.x,t.y,u.x,u.y,u.l,u.x.length-1)),u.l.push(q(t.x,t.y,u.x,u.y,u.l,u.x.length-1))):s.trace("ignore filtered point",t),u}function ee(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.x.length,r=Z({color:e.color,width:e.width}),i=t;i=0&&t1&&void 0!==arguments[1]?arguments[1]:{minX:Number.MAX_VALUE,maxX:Number.MIN_VALUE,minY:Number.MAX_VALUE,maxY:Number.MIN_VALUE};return t=e.filter(function(e){return"stroke"===e.type}).map(de).reduce(ae,t),t=e.filter(function(e){return"clef"===e.type}).map(ue).reduce(ae,t),t=e.filter(function(e){return"line"===e.type}).map(se).reduce(ae,t),t=e.filter(function(e){return"ellipse"===e.type}).map(ce).reduce(ae,t),t=e.filter(function(e){return"textLine"===e.type}).map(le).reduce(ae,t)}function he(e){switch(e.recognitionParams.type){case t.RecognitionType.MUSIC:return function(e){var t=Object.assign({},{type:"staff"},e.recognitionParams.v3.musicParameter.staff),n={type:"clef",value:Object.assign({},e.recognitionParams.v3.musicParameter.clef)};return n.value.yAnchor=t.top+t.gap*(t.count-n.value.line),delete n.value.line,n.boundingBox=G[n.value.symbol].getBoundingBox(t.gap,0,n.value.yAnchor),[t,n]}(e);default:return[]}}function pe(e){return{currentStroke:void 0,rawStrokes:[],strokeGroups:[],lastPositions:{lastSentPosition:-1,lastReceivedPosition:-1,lastRenderedPosition:-1},defaultSymbols:e?he(e):[],recognizedSymbols:void 0,exports:void 0,rawResults:{convert:void 0,exports:void 0},creationTime:(new Date).getTime(),modificationTime:void 0}}function ge(e){var t=e;return t.currentStroke=void 0,t.rawStrokes=[],t.strokeGroups=[],t.lastPositions.lastSentPosition=-1,t.lastPositions.lastReceivedPosition=-1,t.lastPositions.lastRenderedPosition=-1,t.recognizedSymbols=void 0,t.exports=void 0,t.rawResults.convert=void 0,t.rawResults.exports=void 0,t}function me(e){return!!e.recognizedSymbols&&e.rawStrokes.length!==e.recognizedSymbols.filter(function(e){return"stroke"===e.type}).length}function ve(e,t){var n=e;return s.debug("addStroke",t),n.rawStrokes.push(t),n}function ye(e,t,n){var r=e;s.debug("addStroke",t);var i=r.strokeGroups.length-1;if(r.strokeGroups[i]&&r.strokeGroups[i].penStyle===n)r.strokeGroups[i].strokes.push(t);else{var o={penStyle:n,strokes:[]},a={};Object.assign(a,t),o.strokes.push(a),r.strokeGroups.push(o)}return r}function be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.lastPositions.lastReceivedPosition+1;return e.rawStrokes.slice(t)}function Ee(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:96;if(n&&n["-myscript-pen-width"]){var i=n["-myscript-pen-width"]*r/25.4;Object.assign(n,{width:i/2})}var o=e;return s.trace("initPendingStroke",t),o.currentStroke=Z(n),o.currentStroke=$(o.currentStroke,t),o}function xe(e,t){var n=e;return n.currentStroke&&(s.trace("appendToPendingStroke",t),n.currentStroke=$(n.currentStroke,t)),n}function we(e,t,n){var r=e;if(r.currentStroke){s.trace("endPendingStroke",t);var i=$(r.currentStroke,t);ve(r,i),ye(r,i,n),delete r.currentStroke}return r}function Se(e){var t={minX:Number.MAX_VALUE,maxX:Number.MIN_VALUE,minY:Number.MAX_VALUE,maxY:Number.MIN_VALUE};return e.defaultSymbols&&e.defaultSymbols.length>0&&(t=fe(e.defaultSymbols,t)),e.recognizedSymbols&&e.recognizedSymbols.length>0?(t=fe(e.recognizedSymbols,t),t=fe(be(e),t)):t=fe(e.rawStrokes,t),t}function Te(e,t,n,r,i){return e.rawStrokes.slice(t,n+1).map(function(e,t,n){return n.length<2?ee(e,r,i+1):0===t?ee(e,r):t===n.length-1?ee(e,0,i+1):e})}function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.rawStrokes.length-1,n=e;return n.lastPositions.lastSentPosition=t,n}function Ce(e){var t=e;return t.lastPositions.lastReceivedPosition=t.lastPositions.lastSentPosition,t}function ke(e){var t=e;return t.lastPositions.lastSentPosition=-1,t.lastPositions.lastReceivedPosition=-1,t}function Pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.recognizedSymbols?e.recognizedSymbols.length-1:-1,n=e;return n.lastPositions.lastRenderedPosition=t,n}function Ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.lastPositions.lastRenderedPosition+1;return e.recognizedSymbols?e.recognizedSymbols.slice(t):[]}function _e(e){var t=Object.assign({},e);return t.defaultSymbols=[].concat(oe(e.defaultSymbols)),t.currentStroke=e.currentStroke?Object.assign({},e.currentStroke):void 0,t.rawStrokes=[].concat(oe(e.rawStrokes)),t.strokeGroups=JSON.parse(JSON.stringify(e.strokeGroups)),t.lastPositions=Object.assign({},e.lastPositions),t.exports=e.exports?Object.assign({},e.exports):void 0,t.rawResults=Object.assign({},e.rawResults),t.recognizedSymbols=e.recognizedSymbols?[].concat(oe(e.recognizedSymbols)):void 0,t}function Le(){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;l.debug("attach renderer",e);var r=Me(),i=K();i.forEach(function(t){return e.appendChild(t)});var o=Oe(e,"ms-rendering-canvas"),a=Oe(e,"ms-capture-canvas");return ze({pixelRatio:r,minHeight:t,minWidth:n,renderingCanvas:o,renderingCanvasContext:o.getContext("2d"),capturingCanvas:a,capturingCanvasContext:a.getContext("2d"),resources:i})},detach:function(e,t){l.debug("detach renderer",e),t.resources.forEach(function(t){return e.removeChild(t)}),e.removeChild(t.renderingCanvas),e.removeChild(t.capturingCanvas)},resize:function(e,t,n){return this.drawModel(ze(e),t,n)},drawCurrentStroke:function(e,t,n){return e.capturingCanvasContext.clearRect(0,0,e.capturingCanvas.width,e.capturingCanvas.height),l.trace("drawing current stroke ",t.currentStroke),D(e.capturingCanvasContext,t.currentStroke,n),t},drawModel:Ne});function Ue(e,t,n){var r=e.p*n;return[{x:e.x-Math.sin(t)*r,y:e.y+Math.cos(t)*r},{x:e.x+Math.sin(t)*r,y:e.y-Math.cos(t)*r}]}function Xe(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2,p:(t.p+e.p)/2}}function je(e,t){return Math.atan2(t.y-e.y,t.x-e.x)}function Be(e,t,n){e.arc(t.x,t.y,n,0,2*Math.PI,!0)}function We(e,t,n,r){var i=Ue(t,je(t,n),r),o=Ue(n,je(t,n),r);e.moveTo(i[0].x,i[0].y),e.lineTo(o[0].x,o[0].y),e.lineTo(o[1].x,o[1].y),e.lineTo(i[1].x,i[1].y)}function Ye(e,t,n,r,i){var o=Ue(t,je(t,r),i),a=Ue(n,je(r,n),i),s=Ue(r,je(t,n),i);e.moveTo(o[0].x,o[0].y),e.quadraticCurveTo(s[0].x,s[0].y,a[0].x,a[0].y),e.lineTo(a[1].x,a[1].y),e.quadraticCurveTo(s[1].x,s[1].y,o[1].x,o[1].y)}var Ge=Object.freeze({getInfo:function(){return{type:"canvas",name:"quadratic",apiVersion:"V3"}},drawStroke:function(e,t){var n=e,r=t.x.length,i=t.width>0?t.width:n.lineWidth,o=t.color?t.color:n.strokeStyle,a=te(t,0),s=r-2;n.save();try{if(n.beginPath(),r<3)Be(n,a,.6*i);else{Be(n,a,i*a.p),We(n,a,Xe(a,te(t,1)),i);for(var c=0;c=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Ke.hasOwnProperty(t)?{space:Ke[t],local:e}:e}function Je(e){var t=Ve(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Fe&&t.documentElement.namespaceURI===Fe?t.createElement(e):t.createElementNS(n,e)}})(t)}function qe(){}function Ze(e){return null==e?qe:function(){return this.querySelector(e)}}function Qe(){return[]}var $e=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var et=document.documentElement;if(!et.matches){var tt=et.webkitMatchesSelector||et.msMatchesSelector||et.mozMatchesSelector||et.oMatchesSelector;$e=function(e){return function(){return tt.call(this,e)}}}}var nt=$e;function rt(e){return new Array(e.length)}function it(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}it.prototype={constructor:it,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var ot="$";function at(e,t,n,r,i,o){for(var a,s=0,c=t.length,l=o.length;st?1:e>=t?0:NaN}function lt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ut(e){return e.trim().split(/^|\s+/)}function dt(e){return e.classList||new ft(e)}function ft(e){this._node=e,this._names=ut(e.getAttribute("class")||"")}function ht(e,t){for(var n=dt(e),r=-1,i=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var St={};"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(St={mouseenter:"mouseover",mouseleave:"mouseout"}));function Tt(e,t,n){return e=Rt(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Rt(e,t,n){return function(r){try{e.call(this,this.__data__,t,n)}finally{}}}function Ct(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r=x&&(x=E+1);!(b=v[x])&&++x=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=ct);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||lt(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=ut(e+"");if(arguments.length<2){for(var r=dt(this.node()),i=-1,o=n.length;++i=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?kt:Ct,null==n&&(n=!1),r=0;r *:nth-child("+(t.index+1)+")").remove();break;case"APPEND_CHILD":var a=e.select(t.parentId?"#"+t.parentId:r).node();a.insertAdjacentHTML?a.insertAdjacentHTML("beforeEnd",t.svg):(At(a,"beforeEnd",t.svg),e.node().insertAdjacentHTML("beforeEnd",e.select(r).remove().node().outerHTML));break;case"INSERT_BEFORE":var s=e.select("#"+t.refId).node();s.insertAdjacentHTML?s.insertAdjacentHTML("beforeBegin",t.svg):(At(s,"beforeBegin",t.svg),e.node().insertAdjacentHTML("beforeEnd",e.select(r).remove().node().outerHTML));break;case"REMOVE_ATTRIBUTE":e.selectAll(t.id?"#"+t.id:"svg").attr(t.name,null);break;case"SET_ATTRIBUTE":t.id&&e.selectAll("#"+t.id).attr(t.name,t.value);break;default:l.debug("unknown update "+t.type+" action")}}catch(e){l.error("Invalid update "+t.type,t),l.error("Error on svg patch",e)}})}),Pe(t));var i=be(t);return i&&i.forEach(function(t){return r=t,i=e.select("#pendingStrokes"),l.trace("attempting to draw "+r.type+" symbol"),void("stroke"!==r.type||i.select("id",r.id)?l.warn("impossible to draw "+r.type+" symbol"):Lt(i.append("path").attr("id",r.id),r,n));var r,i}),t}});function Ot(e,t,n){return["M "+t.x+","+t.y,"m "+-n+",0","a "+n+","+n+" 0 1 0 "+2*n+",0","a "+n+","+n+" 0 1 0 "+-2*n+",0"].join(" ")}function zt(e,t,n,r){var i=Ue(t,je(t,n),r),o=Ue(n,je(t,n),r);return["M "+i[0].x+","+i[0].y,"L "+o[0].x+","+o[0].y,"L "+o[1].x+","+o[1].y,"L "+i[1].x+","+i[1].y].join(" ")}function Dt(e,t,n,r,i){var o=Ue(t,je(t,r),i),a=Ue(n,je(r,n),i),s=Ue(r,je(t,n),i);return["M "+o[0].x+","+o[0].y,"Q "+s[0].x+","+s[0].y+" "+a[0].x+","+a[0].y,"L "+a[1].x+","+a[1].y,"Q "+s[1].x+","+s[1].y+" "+o[1].x+","+o[1].y].join(" ")}var Nt=Object.freeze({getInfo:function(){return{type:"svg",name:"quadratic",apiVersion:"V4"}},drawStroke:function(e,t){var n=t.x.length,r=t.width,i=te(t,0),o=n-2,a=[];if(n<3)a.push(Ot(0,i,.6*r));else{a.push(Ot(0,i,r*i.p)),a.push(zt(0,i,Xe(i,te(t,1)),r));for(var s=0;s>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var o=0;o>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){var t=t,n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=4*o,c=i/s,l=(c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0))*o,u=e.min(4*l,i);if(l){for(var d=0;d>>1|Z<<31)^(q>>>8|Z<<24)^q>>>7,$=(Z>>>1|q<<31)^(Z>>>8|q<<24)^(Z>>>7|q<<25),ee=l[G-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=l[G-7],ae=oe.high,se=oe.low,ce=l[G-16],le=ce.high,ue=ce.low;K=(K=(K=Q+ae+((V=$+se)>>>0<$>>>0?1:0))+re+((V+=ie)>>>0>>0?1:0))+le+((V+=ue)>>>0>>0?1:0),F.high=K,F.low=V}var de,fe=N&U^~N&j,he=H&X^~H&B,pe=I&L^I&M^L&M,ge=_&A^_&O^A&O,me=(I>>>28|_<<4)^(I<<30|_>>>2)^(I<<25|_>>>7),ve=(_>>>28|I<<4)^(_<<30|I>>>2)^(_<<25|I>>>7),ye=(N>>>14|H<<18)^(N>>>18|H<<14)^(N<<23|H>>>9),be=(H>>>14|N<<18)^(H>>>18|N<<14)^(H<<23|N>>>9),Ee=c[G],xe=Ee.high,we=Ee.low,Se=W+ye+((de=Y+be)>>>0>>0?1:0),Te=ve+ge;W=j,Y=B,j=U,B=X,U=N,X=H,N=z+(Se=(Se=(Se=Se+fe+((de+=he)>>>0>>0?1:0))+xe+((de+=we)>>>0>>0?1:0))+K+((de+=V)>>>0>>0?1:0))+((H=D+de|0)>>>0>>0?1:0)|0,z=M,D=O,M=L,O=A,L=I,A=_,I=Se+(me+pe+(Te>>>0>>0?1:0))+((_=de+Te|0)>>>0>>0?1:0)|0}p=r.low=p+_,r.high=h+I+(p>>>0<_>>>0?1:0),m=i.low=m+A,i.high=g+L+(m>>>0>>0?1:0),y=o.low=y+O,o.high=v+M+(y>>>0>>0?1:0),E=a.low=E+D,a.high=b+z+(E>>>0>>0?1:0),w=s.low=w+H,s.high=x+N+(w>>>0>>0?1:0),T=u.low=T+X,u.high=S+U+(T>>>0>>0?1:0),C=d.low=C+B,d.high=R+j+(C>>>0>>0?1:0),P=f.low=P+Y,f.high=k+W+(P>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),n.SHA512)}),i(function(e,t){var n,r,i,o,a,s;e.exports=(r=(n=Ht).lib,i=r.Base,o=n.enc,a=o.Utf8,s=n.algo,void(s.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),s=i.words,c=o.words,l=0;l3&&void 0!==arguments[3]?arguments[3]:{},i=arguments[4],o=arguments[5],a=r.editor.configuration,s=r;return new Promise(function(r,c){var l=new XMLHttpRequest;if(l.open(e,t,!0),l.withCredentials=!0,"V3"===i)l.setRequestHeader("Accept","application/json"),l.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");else if("V4"===i){switch(a.recognitionParams.type){case"TEXT":case"MATH":case"DIAGRAM":case"Raw Content":l.setRequestHeader("Accept","application/json,"+o)}l.setRequestHeader("applicationKey",a.recognitionParams.server.applicationKey),l.setRequestHeader("hmac",jt(JSON.stringify(n),a.recognitionParams.server.applicationKey,a.recognitionParams.server.hmacKey)),l.setRequestHeader("Content-Type","application/json")}var u,d,f=o&&("application/vnd.openxmlformats-officedocument.presentationml.presentation"===o||o.startsWith("image/png")||o.startsWith("image/jpeg"));f&&(l.responseType="blob"),l.onerror=function(){c({msg:"Could not connect to "+t+" connection error",recoverable:!1})},l.onload=function(){l.status>=200&&l.status<300?r(f?l.response:Bt(l)):c(new Error(l.responseText))},l.onreadystatechange=function(){4===l.readyState&&l.status>=200&&l.status<300&&r(f?l.response:Bt(l))},s&&(s.idle=!1),"V4"===i?l.send(JSON.stringify(n)):l.send(n?(u=n,d=[],Object.keys(u).forEach(function(e){void 0!==u[e]&&"function"!=typeof u[e]&&d.push(encodeURIComponent(e)+"="+encodeURIComponent(u[e]))}),d.join("&")):void 0)}).then(function(e){return s&&(s.idle=!0),e})}function Yt(e,t,n,r,i){return Wt("POST",t,n,e,r,i)}function Gt(e){var t=Date.now();return u.info("Create empty recognizer context with ID: "+t),{id:t,editor:e,recognitionContexts:[],initPromise:void 0,lastPositions:{lastSentPosition:-1,lastReceivedPosition:-1},url:void 0,websocket:void 0,websocketCallback:void 0,reconnect:void 0,currentReconnectionCount:0,sessionId:void 0,contentPartCount:0,currentPartId:void 0,instanceId:void 0,canUndo:!1,canRedo:!1,isEmpty:void 0,supportedImportMimeTypes:[],undoStackIndex:0,possibleUndoCount:0,idle:!0,initialized:!1}}function Ft(e,t){return!!e.lastPositions&&e.lastPositions.lastSentPosition>=t.rawStrokes.length-1}function Kt(e,t){var n=e;return t&&(n.lastPositions.lastSentPosition=t.lastSentPosition,n.lastPositions.lastReceivedPosition=t.lastReceivedPosition),n.lastPositions.lastSentPosition===n.lastPositions.lastReceivedPosition===-1&&delete n.instanceId,n}function Vt(e,t){var n=e;return n.recognitionContexts[0]=t,n}function Jt(e){return!0===e.websocket.autoReconnect&&e.currentReconnectionCount<=e.websocket.maxRetryCount}function qt(e){var t=e;return!0===t.websocket.autoReconnect&&t.currentReconnectionCount++<=t.websocket.maxRetryCount}var Zt={type:"LOST_CONNECTION"},Qt="CLOSE_RECOGNIZER",$t=Object.freeze({createEmptyRecognizerContext:Gt,isResetRequired:Ft,updateRecognitionPositions:Kt,setRecognitionContext:Vt,canReconnect:Jt,shouldAttemptImmediateReconnect:qt,LOST_CONNEXION_MESSAGE:Zt,CLOSE_RECOGNIZER_MESSAGE:Qt});function en(e,t,n,r){var i=t.editor.configuration;return Yt(t,i.recognitionParams.server.scheme+"://"+i.recognitionParams.server.host+e,r(t,n),"V3").then(function(e){u.debug("Cdkv3RestRecognizer success",e);var n=t.lastPositions;n.lastReceivedPosition=n.lastSentPosition;var r=Kt(t,n);return e.instanceId&&(r.instanceId=e.instanceId),e})}function tn(e){return e.rawResults&&e.rawResults.exports&&e.rawResults.exports.result&&e.rawResults.exports.result.textSegmentResult&&e.rawResults.exports.result.textSegmentResult.candidates?{CANDIDATES:e.rawResults.exports.result,TEXT:e.rawResults.exports.result.textSegmentResult.candidates[e.rawResults.exports.result.textSegmentResult.selectedCandidateIdx].label}:{}}function nn(e,n,r){var i=ke(n);u.debug("Updated model",i);var o=Kt(e,i.lastPositions);o.initPromise=Promise.resolve(i),o.initPromise.then(function(e){o.initialized=!0,u.debug("Updated recognizer context",o),r(void 0,e,t.EventType.LOADED)})}function rn(e,t,n){var r=ke(t);u.debug("Updated model",r);var i=Kt(e,r.lastPositions);delete i.instanceId,u.debug("Updated recognizer context",i),n(void 0,r)}function on(e,n,r){var i=ge(n);u.debug("Updated model",i);var o=Kt(e,i.lastPositions);delete o.instanceId,u.debug("Updated recognizer context",o),r(void 0,i,t.EventType.CHANGED,t.EventType.EXPORTED,t.EventType.RENDERED)}function an(e,t,n){var r=e;r.initialized=!1,delete r.instanceId,n(void 0,t)}var sn={types:[t.RecognitionType.TEXT],protocol:t.Protocol.REST,apiVersion:"V3",availableTriggers:{exportContent:[t.Trigger.QUIET_PERIOD,t.Trigger.DEMAND]}};function cn(e,t){var n=e.editor.configuration,r={inputUnits:[{textInputType:"MULTI_LINE_TEXT",components:t.rawStrokes.map(function(e){return Q(e)})}]};Object.assign(r,{textParameter:n.recognitionParams.v3.textParameter}),u.debug("input.inputUnits[0].components size is "+r.inputUnits[0].components.length);var i={instanceId:e?e.instanceId:void 0,applicationKey:n.recognitionParams.server.applicationKey,textInput:JSON.stringify(r)};return n.recognitionParams.server.hmacKey&&(i.hmac=jt(i.textInput,n.recognitionParams.server.applicationKey,n.recognitionParams.server.hmacKey)),Re(t),i}var ln=Object.freeze({textRestV3Configuration:sn,getInfo:function(){return sn},buildInput:cn,export_:function(e,n,r){en("/api/v3.0/recognition/rest/text/doSimpleRecognition.json",e,n,cn).then(function(e){return function(e,n,r){u.debug("Cdkv3RestTextRecognizer result callback",e);var i=Ce(e);i.rawResults.exports=n,i.exports=tn(e),u.debug("Cdkv3RestTextRecognizer model updated",i),r(void 0,i,t.EventType.EXPORTED,t.EventType.IDLE)}(n,e,r)}).catch(function(e){return r(e,n)})},init:nn,close:an,clear:on,reset:rn});function un(e){return e.rawResults&&e.rawResults.exports&&e.rawResults.exports.result&&e.rawResults.exports.result.results&&e.rawResults.exports.result.results.length>0?e.rawResults.exports.result.results.map(function(e){var t={};return Object.keys(e).includes("root")?t[""+e.type]=e.root:t[""+e.type]=e.value,t}).reduce(function(e,t){return Object.assign(e,t)},{}):{}}function dn(e){var t=[].concat(oe(e.rawStrokes));if(e.rawResults&&e.rawResults.exports&&e.rawResults.exports.result&&e.rawResults.exports.result.scratchOutResults&&e.rawResults.exports.result.scratchOutResults.length>0){var n=e.rawResults.exports.result.scratchOutResults.map(function(e){return e.erasedInkRanges.concat(e.inkRanges)}).reduce(function(e,t){return e.concat(t)});return t.filter(function(e,t){return!n.find(function(e){return e.component===t})})}return t}var fn={types:[t.RecognitionType.MATH],protocol:t.Protocol.REST,apiVersion:"V3",availableTriggers:{exportContent:[t.Trigger.QUIET_PERIOD,t.Trigger.DEMAND]}};function hn(e,t){var n=e.editor.configuration,r={components:t.rawStrokes.map(function(e){return Q(e)})};Object.assign(r,n.recognitionParams.v3.mathParameter),u.debug("input.components size is "+r.components.length);var i={instanceId:e?e.instanceId:void 0,applicationKey:n.recognitionParams.server.applicationKey,mathInput:JSON.stringify(r)};return n.recognitionParams.server.hmacKey&&(i.hmac=jt(i.mathInput,n.recognitionParams.server.applicationKey,n.recognitionParams.server.hmacKey)),Re(t),i}var pn=Object.freeze({mathRestV3Configuration:fn,getInfo:function(){return fn},export_:function(e,n,r){return en("/api/v3.0/recognition/rest/math/doSimpleRecognition.json",e,n,hn).then(function(e){return function(e,n,r){u.debug("Cdkv3RestMathRecognizer result callback",e);var i=Ce(e);i.rawResults.exports=n,i.recognizedSymbols=dn(e),i.exports=un(e),u.debug("Cdkv3RestMathRecognizer model updated",i),r(void 0,i,t.EventType.EXPORTED,t.EventType.IDLE)}(n,e,r)}).catch(function(e){return r(e,n)})},init:nn,close:an,clear:on,reset:rn});function gn(e,t){var n=e.rawStrokes;return t&&t.length>0&&(n=t.map(function(t){return Te(e,t.stroke?t.stroke:t.firstStroke,t.stroke?t.stroke:t.lastStroke,t.firstPoint,t.lastPoint)}).reduce(function(e,t){return e.concat(t)})),{color:n[0].color,width:n[0].width}}function mn(e,t){if(t.candidates&&t.candidates.length>0){var n=t.candidates[t.selectedCandidateIndex];switch(n.type){case"notRecognized":return t.inkRanges&&t.inkRanges.length>0?t.inkRanges.map(function(t){return Te(e,t.firstStroke,t.lastStroke,t.firstPoint,t.lastPoint)}).reduce(function(e,t){return e.concat(t)}):[];case"recognizedShape":return n.primitives;default:return[]}}return[]}var vn={types:[t.RecognitionType.ANALYZER],protocol:t.Protocol.REST,apiVersion:"V3",availableTriggers:{exportContent:[t.Trigger.QUIET_PERIOD,t.Trigger.DEMAND]}};function yn(e,t){var n=e.editor.configuration,r={components:t.rawStrokes.map(function(e){return Q(e)})};Object.assign(r,{parameter:n.recognitionParams.v3.analyzerParameter}),u.debug("input.components size is "+r.components.length);var i={instanceId:e?e.instanceId:void 0,applicationKey:n.recognitionParams.server.applicationKey,analyzerInput:JSON.stringify(r)};return n.recognitionParams.server.hmacKey&&(i.hmac=jt(i.analyzerInput,n.recognitionParams.server.applicationKey,n.recognitionParams.server.hmacKey)),Re(t),i}function bn(e){return e.rawResults&&e.rawResults.exports&&e.rawResults.exports.result?[].concat(oe(e.rawResults.exports.result.shapes),oe(e.rawResults.exports.result.tables),oe(e.rawResults.exports.result.textLines)).map(function(t){return function(e,t){var n=gn(e,t.inkRanges);switch(t.elementType){case"table":return t.lines.map(function(e){return Object.assign(e,n)});case"textLine":return[t].map(function(e){return Object.assign(e,e.result.textSegmentResult.candidates[e.result.textSegmentResult.selectedCandidateIdx],n)});case"shape":return mn(e,t).map(function(e){return Object.assign(e,n)});default:return[]}}(e,t)}).reduce(function(e,t){return e.concat(t)}):[]}var En=Object.freeze({analyzerRestV3Configuration:vn,getInfo:function(){return vn},export_:function(e,n,r){return en("/api/v3.0/recognition/rest/analyzer/doSimpleRecognition.json",e,n,yn).then(function(e){return function(e,n,r){u.debug("Cdkv3RestAnalyzerRecognizer result callback",e);var i=Ce(e);i.rawResults.exports=n,i.recognizedSymbols=bn(e),i.exports=function(e){return e.rawResults&&e.rawResults.exports&&e.rawResults.exports.result?{ANALYSIS:e.rawResults.exports.result}:{}}(e),u.debug("Cdkv3RestAnalyzerRecognizer model updated",i),r(void 0,i,t.EventType.EXPORTED,t.EventType.CONVERTED,t.EventType.IDLE)}(n,e,r)}).catch(function(e){return r(e,n)})},init:nn,close:an,clear:on,reset:rn}),xn={types:[t.RecognitionType.SHAPE],protocol:t.Protocol.REST,apiVersion:"V3",availableTriggers:{exportContent:[t.Trigger.QUIET_PERIOD,t.Trigger.DEMAND]}};function wn(e,t){var n=e.editor.configuration,r={components:be(t).map(function(e){return Q(e)})};Object.assign(r,n.recognitionParams.v3.shapeParameter),u.debug("input.components size is "+r.components.length);var i={instanceId:e?e.instanceId:void 0,applicationKey:n.recognitionParams.server.applicationKey,shapeInput:JSON.stringify(r)};return n.recognitionParams.server.hmacKey&&(i.hmac=jt(i.shapeInput,n.recognitionParams.server.applicationKey,n.recognitionParams.server.hmacKey)),Re(t),i}function Sn(e,t){return{instanceSessionId:e?e.instanceId:void 0}}function Tn(e,n,r){u.debug("Cdkv3RestShapeRecognizer result callback",e);var i=Ce(e);i.rawResults.exports=n,i.recognizedSymbols=function(e){return e.rawResults&&e.rawResults.exports&&e.rawResults.exports.result&&e.rawResults.exports.result.segments?e.rawResults.exports.result.segments.map(function(t){var n=gn(e,t.inkRanges);return mn(e,t).map(function(e){return Object.assign(e,n)})}).reduce(function(e,t){return e.concat(t)}):[]}(e),i.exports=function(e){return e.rawResults&&e.rawResults.exports&&e.rawResults.exports.result&&e.rawResults.exports.result.segments?{SEGMENTS:e.rawResults.exports.result.segments}:{}}(e),u.debug("Cdkv3RestShapeRecognizer model updated",i),r(void 0,i,t.EventType.EXPORTED,t.EventType.CONVERTED,t.EventType.IDLE)}var Rn=Object.freeze({shapeRestV3Configuration:xn,getInfo:function(){return xn},export_:function(e,t,n){en("/api/v3.0/recognition/rest/shape/doSimpleRecognition.json",e,t,wn).then(function(e){return Tn(t,e,n)}).catch(function(e){return n(e,t)})},reset:function(e,n,r){var i=ke(n);en("/api/v3.0/recognition/rest/shape/clearSessionId.json",e,i,Sn).then(function(e){return r(void 0,i,t.EventType.IDLE)}).catch(function(e){return r(e,i)})},clear:function(e,n,r){var i=ge(_e(n));en("/api/v3.0/recognition/rest/shape/clearSessionId.json",e,i,Sn).then(function(e){return r(void 0,i,t.EventType.CHANGED,t.EventType.EXPORTED,t.EventType.CONVERTED,t.EventType.IDLE)}).catch(function(e){return r(e,i)})},init:nn,close:an}),Cn={types:[t.RecognitionType.MUSIC],protocol:t.Protocol.REST,apiVersion:"V3",availableTriggers:{exportContent:[t.Trigger.QUIET_PERIOD,t.Trigger.DEMAND]}};function kn(e,t){var n=e.editor.configuration,r={components:[].concat(t.defaultSymbols,t.rawStrokes).filter(function(e){return"staff"!==e.type}).map(function(e){return"stroke"===e.type?Q(e):e})},i=Object.assign({},n.recognitionParams.v3.musicParameter);delete i.clef,Object.assign(r,i),u.debug("input.components size is "+r.components.length);var o={instanceId:e?e.instanceId:void 0,applicationKey:n.recognitionParams.server.applicationKey,musicInput:JSON.stringify(r)};return n.recognitionParams.server.hmacKey&&(o.hmac=jt(o.musicInput,n.recognitionParams.server.applicationKey,n.recognitionParams.server.hmacKey)),Re(t),o}var Pn=Object.freeze({musicRestV3Configuration:Cn,getInfo:function(){return Cn},init:function(e,n,r){var i=ke(n);u.debug("Updated model",i);var o=Kt(e,i.lastPositions);o.initPromise=Promise.resolve(i),o.initPromise.then(function(e){o.initialized=!0,u.debug("Updated recognizer context",o),r(void 0,e,t.EventType.LOADED,t.EventType.RENDERED)})},export_:function(e,n,r){en("/api/v3.0/recognition/rest/music/doSimpleRecognition.json",e,n,kn).then(function(e){return function(e,n,r){u.debug("Cdkv3RestMusicRecognizer result callback",e);var i=Ce(e);i.rawResults.exports=n,i.exports=un(e),u.debug("Cdkv3RestMusicRecognizer model updated",i),r(void 0,i,t.EventType.EXPORTED,t.EventType.IDLE)}(n,e,r)}).catch(function(e){return r(e,n)})},close:an,clear:on,reset:rn}),In={types:[t.RecognitionType.TEXT,t.RecognitionType.DIAGRAM,t.RecognitionType.MATH,t.RecognitionType.RAWCONTENT],protocol:t.Protocol.REST,apiVersion:"V4",availableTriggers:{exportContent:[t.Trigger.QUIET_PERIOD,t.Trigger.DEMAND]}};function _n(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments[5],a=t.editor.configuration;return Yt(t,a.recognitionParams.server.scheme+"://"+a.recognitionParams.server.host+e,r(t,n,i),"V4",o).then(function(e){u.debug("iinkRestRecognizer success",e);var n=t.lastPositions;n.lastReceivedPosition=n.lastSentPosition;var r=Kt(t,n);return e.instanceId&&(r.instanceId=e.instanceId),e})}function Ln(e,t,n){var r=e.editor.configuration,i=void 0;"TEXT"===r.recognitionParams.type?i=function(e){return{text:e.recognitionParams.v4.text,lang:e.recognitionParams.v4.lang,export:e.recognitionParams.v4.export}}(r):"MATH"===r.recognitionParams.type?i=function(e){return{math:e.recognitionParams.v4.math,lang:e.recognitionParams.v4.lang,export:e.recognitionParams.v4.export}}(r):"DIAGRAM"===r.recognitionParams.type?i=function(e){return{diagram:e.recognitionParams.v4.diagram,lang:e.recognitionParams.v4.lang,export:e.recognitionParams.v4.export}}(r):"Raw Content"===r.recognitionParams.type&&(i=function(e){return{"raw-content":{recognition:e.recognitionParams.v4["raw-content"].recognition},lang:e.recognitionParams.v4.lang,export:e.recognitionParams.v4.export}}(r));var o=[];t.strokeGroups.forEach(function(e){var t={penStyle:"{}"===JSON.stringify(e.penStyle)?null:P(e.penStyle),strokes:e.strokes.map(function(e){return function(e){return{x:e.x,y:e.y,t:e.t}}(e)})};o.push(t)});var a={configuration:i,xDPI:96,yDPI:96,contentType:"Raw Content"===r.recognitionParams.type?"Raw Content":r.recognitionParams.type.charAt(0).toUpperCase()+r.recognitionParams.type.slice(1).toLowerCase(),theme:L(e.editor.theme),strokeGroups:o};return e.editor.domElement&&(a.height=e.editor.domElement.clientHeight,a.width=e.editor.domElement.clientWidth),n&&(a.conversionState="DIGITAL_EDIT"),Re(t),a}function An(e,t,n){var r={};return r[t]=n,r}function Mn(e,n,r,i,o){u.debug("iinkRestRecognizer result callback",e);var a=Ce(e);a.rawResults.exports=r,a.exports?Object.assign(a.exports,An(0,i,r)):a.exports=An(0,i,r),u.debug("iinkRestRecognizer model updated",a),o(void 0,a,t.EventType.EXPORTED,t.EventType.IDLE)}var On=Object.freeze({iinkRestConfiguration:In,getInfo:function(){return In},postMessage:_n,export_:function(e,t,n,r){var i=e.editor.configuration;function o(r){_n("/api/v4.0/iink/batch",e,t,Ln,i.restConversionState,r).then(function(e){Mn(t,0,e,r,n)}).catch(function(e){n(e,t)})}r?r.forEach(function(e){o(e)}):"TEXT"===i.recognitionParams.type?i.recognitionParams.v4.text.mimeTypes.forEach(function(e){o(e)}):"DIAGRAM"===i.recognitionParams.type?i.recognitionParams.v4.diagram.mimeTypes.forEach(function(e){o(e)}):"MATH"===i.recognitionParams.type?i.recognitionParams.v4.math.mimeTypes.forEach(function(e){o(e)}):"Raw Content"===i.recognitionParams.type&&i.recognitionParams.v4["raw-content"].mimeTypes.forEach(function(e){o(e)})},convert:function(e,t,n){e.editor.configuration,_n("/api/v4.0/iink/batch",e,t,Ln,"DIGITAL_EDIT").then(function(e){return Mn(t,0,e,n)}).catch(function(e){return n(e,t)})},init:nn,close:an,clear:on,reset:rn});function zn(e){var t=void 0;try{t=new WebSocket(e.url)}catch(e){u.error("Unable to open websocket, Check the host and your connectivity")}return function(e,t){var n=t.editor.configuration.recognitionParams.server.websocket,r=e;r.start=new Date,r.autoReconnect=n.autoReconnect,r.maxRetryCount=n.maxRetryCount,r.pingEnabled=n.pingEnabled,r.pingDelay=n.pingDelay,r.maxPingLost=n.maxPingLostCount,r.pingLostCount=0,r.recognizerContext=t}(t,e),t.pingEnabled&&function e(t){var n=t;n.pingLostCount++,n.pingLostCount>n.maxPingLost?t.close(1e3,"PING_LOST"):n.readyState<=1&&setTimeout(function(){n.readyState<=1&&(n.send(JSON.stringify({type:"ping"})),e(n))},n.pingDelay)}(t),t.onopen=function(t){u.trace("onOpen"),e.websocketCallback(t)},t.onclose=function(n){u.trace("onClose",new Date-t.start),e.websocketCallback(n)},t.onerror=function(t){u.trace("onError"),e.websocketCallback(t)},t.onmessage=function(n){if(u.trace("onMessage"),t.pingLostCount=0,"pong"!==JSON.parse(n.data).type){var r={type:n.type,data:JSON.parse(n.data)};e.websocketCallback(r)}},t}function Dn(e,t){var n=e;n.idle=!1;var r=n.websocket;if(!(r.readyState<=1))throw Zt;r.send(JSON.stringify(t)),u.debug(t.type+" message sent",t)}function Nn(e,t){return function(n){var r=t;u.trace(n.type+" websocket callback",n);var i=t.recognitionContexts[t.recognitionContexts.length-1];switch(u.debug("Current recognition context",i),n.type){case"open":Dn(t,{type:"applicationKey",applicationKey:t.editor.configuration.recognitionParams.server.applicationKey});break;case"message":switch(u.trace("Receiving message",n.data.type),n.data.type){case"hmacChallenge":Dn(t,function(e,t){return{type:"hmac",applicationKey:e.recognitionParams.server.applicationKey,challenge:t.data.challenge,hmac:jt(t.data.challenge,e.recognitionParams.server.applicationKey,e.recognitionParams.server.hmacKey)}}(t.editor.configuration,n));break;case"init":r.currentReconnectionCount=0,r.idle=!0,r.initialized=!0,i.callback(void 0,n.data),e.resolve(i);break;case"reset":r.idle=!0,i.callback(void 0,n.data);break;case"mathResult":case"textResult":r.idle=!0,n.data.instanceId&&(t.instanceId&&t.instanceId!==n.data.instanceId&&u.debug("Instance id switch from "+t.instanceId+" to "+n.data.instanceId+" this is suspicious"),r.instanceId=n.data.instanceId,u.debug("Memorizing instance id",n.data.instanceId)),i.callback(void 0,n.data);break;case"error":u.debug("Error detected stopping all recognition",n),i?i.callback(n.data):e.reject(Object.assign({},n.data,{recoverable:!1}));break;default:u.warn("This is something unexpected in current recognizer. Not the type of message we should have here.",n)}break;case"error":u.debug("Error detected stopping all recognition",n),i?i.callback(Object.assign({},n,{recoverable:!1})):e.reject(Object.assign({},n,{recoverable:!1}));break;case"close":u.debug("Close detected stopping all recognition",n),r.initialized=!1,i?i.callback(void 0,n):e.reject(n);break;default:u.warn("This is something unexpected in current recognizer. Not the type of message we should have here.",n)}}}var Hn=function(e,n,r,i){return r&&"close"===r.type?i(n,e,t.EventType.CHANGED):i(n,e)};function Un(e,t,n,r){var i=Kt(t,t.recognitionContexts[0].model.lastPositions);i.url=function(e,t){return("https"===e.recognitionParams.server.scheme?"wss":"ws")+"://"+e.recognitionParams.server.host+t}(t.editor.configuration,e),i.reconnect=r;var o,a,s=(o=void 0,a=void 0,{promise:new Promise(function(e,t){o=e,a=t}),resolve:o,reject:a});return i.initPromise=s.promise,u.debug("Opening the websocket for context ",t),i.websocketCallback=n(s,i),i.websocket=zn(i),i.initPromise.then(function(e){return u.debug("Init over",e),e})}function Xn(e,t,n,r){for(var i=arguments.length,o=Array(i>4?i-4:0),a=4;a2?n-2:0),i=2;i2?i-2:0),a=2;a2?i-2:0),a=2;a0;r>>>=1,n+=n)1&r&&(e=n+e);return e},tr.prototype.fromParts=function(e,t,n,r,i,o){return this.version=n>>12&15,this.hex=tr.paddedString(e.toString(16),8)+"-"+tr.paddedString(t.toString(16),4)+"-"+tr.paddedString(n.toString(16),4)+"-"+tr.paddedString(r.toString(16),2)+tr.paddedString(i.toString(16),2)+"-"+tr.paddedString(o.toString(16),12),this},tr.prototype.toString=function(){return this.hex},tr.prototype.toURN=function(){return"urn:uuid:"+this.hex},tr.prototype.toBytes=function(){for(var e=this.hex.split("-"),t=[],n=0,r=0;r>>16,timestamp:t}},tr._create4=function(){return(new tr).fromParts(tr.randomUI32(),tr.randomUI16(),16384|tr.randomUI12(),128|tr.randomUI06(),tr.randomUI08(),tr.randomUI48())},tr._create1=function(){var e=(new Date).getTime(),t=tr.randomUI14(),n=1099511627776*(1|tr.randomUI08())+tr.randomUI40(),r=tr.randomUI04(),i=0;e!=i?(e>>8|128,l=255&t;return(new tr).fromParts(a,o.mid,s,c,l,n)},tr.create=function(e){return this["_create"+(e=e||4)]()},tr.fromTime=function(e,t){t=t||!1;var n=tr.getTimeFieldValues(e),r=n.low,i=4095&n.hi|4096;return!1===t?(new tr).fromParts(r,n.mid,i,0,0,0):(new tr).fromParts(r,n.mid,i,128|tr.limitUI06,tr.limitUI08-1,tr.limitUI48-1)},tr.firstFromTime=function(e){return tr.fromTime(e,!1)},tr.lastFromTime=function(e){return tr.fromTime(e,!0)},tr.fromURN=function(e){var t;return(t=/^(?:urn:uuid:|\{)?([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{2})([0-9a-f]{2})-([0-9a-f]{12})(?:\})?$/i.exec(e))?(new tr).fromParts(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),parseInt(t[4],16),parseInt(t[5],16),parseInt(t[6],16)):null},tr.fromBytes=function(e){if(e.length<5)return null;for(var t="",n=0,r=[4,2,2,2,6],i=0;i255||t[n]<0)throw new Error("Unexpected byte in binary data.");return tr.fromBytes(t)},tr.new=function(){return this.create(4)},tr.newTS=function(){return this.create(1)};var rr=tr;function ir(e,t){return function(n){var r=t;u.trace(n.type+" websocket callback",n);var i=t.recognitionContexts[t.recognitionContexts.length-1];switch(u.debug("Current recognition context",i),n.type){case"open":t.sessionId?Dn(t,sr(t.editor.configuration,t.editor.domElement,t.sessionId)):Dn(t,ar(t.editor.configuration,t.editor.domElement));break;case"message":switch(u.debug("Receiving "+n.data.type+" message",n),n.data.type){case"ack":n.data.hmacChallenge&&Dn(t,function(e,t){return{type:"hmac",hmac:jt(t.data.hmacChallenge,e.recognitionParams.server.applicationKey,e.recognitionParams.server.hmacKey)}}(t.editor.configuration,n)),n.data.iinkSessionId&&(r.sessionId=n.data.iinkSessionId);break;case"newPart":break;case"contentPackageDescription":r.currentReconnectionCount=0,r.contentPartCount=n.data.contentPartCount,Dn(t,ur(t.editor.configuration)),r.currentPartId?Dn(t,lr(t.editor.configuration,t.currentPartId)):Dn(t,cr(t.editor.configuration));break;case"partChanged":n.data.partId&&(r.currentPartId=n.data.partId),r.initialized=!0,Dn(t,Cr(t.editor.theme)),Dn(t,Tr(t.editor.penStyle)),Dn(t,Rr(t.editor.penStyleClasses)),i.callback(void 0,n.data),e.resolve(i);break;case"contentChanged":void 0!==n.data.canUndo&&(r.canUndo=n.data.canUndo),void 0!==n.data.canRedo&&(r.canRedo=n.data.canRedo),void 0!==n.data.empty&&(r.isEmpty=n.data.empty),void 0!==n.data.possibleUndoCount&&(r.possibleUndoCount=n.data.possibleUndoCount),void 0!==n.data.undoStackIndex&&(r.undoStackIndex=n.data.undoStackIndex),i.callback(void 0,n.data);break;case"exported":case"svgPatch":i.callback(void 0,n.data);break;case"supportedImportMimeTypes":r.supportedImportMimeTypes=n.data.mimeTypes,i.callback(void 0,n.data);break;case"fileChunkAck":i.callback(void 0,n.data);break;case"idle":r.idle=!0,i.callback(void 0,n.data);break;case"error":u.debug("Error detected stopping all recognition",n),i?i.callback(n.data):e.reject(Object.assign({},n.data,{recoverable:!1}));break;default:u.warn("This is something unexpected in current recognizer. Not the type of message we should have here.",n)}break;case"error":u.debug("Error detected stopping all recognition",n),i?i.callback(Object.assign({},n,{recoverable:!1})):e.reject(Object.assign({},n,{recoverable:!1}));break;case"close":u.debug("Close detected stopping all recognition",n),r.initialized=!1,r.canRedo=!1,r.canUndo=!1,i?i.callback(n):e.reject(n);break;default:u.warn("This is something unexpected in current recognizer. Not the type of message we should have here.",n)}}}var or={types:[t.RecognitionType.MATH,t.RecognitionType.TEXT,t.RecognitionType.DIAGRAM,t.RecognitionType.NEBO],protocol:t.Protocol.WEBSOCKET,apiVersion:"V4",availableTriggers:{exportContent:[t.Trigger.POINTER_UP,t.Trigger.DEMAND],addStrokes:[t.Trigger.POINTER_UP]}};function ar(e,t){return{type:"newContentPackage",applicationKey:e.recognitionParams.server.applicationKey,xDpi:96,yDpi:96,viewSizeHeight:t.clientHeight0)return Re(t),{type:"addStrokes",strokes:n.map(function(e){return Object.assign({},{id:e.id,pointerType:e.pointerType,pointerId:e.pointerId,x:e.x,y:e.y,t:e.t,p:e.p})})}}function fr(){return{type:"undo"}}function hr(){return{type:"redo"}}function pr(){return{type:"clear"}}function gr(e){return{type:"convert",conversionState:e}}function mr(e){return{type:"zoom",zoom:e}}function vr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return{type:"changeViewSize",height:e.clientHeightr.size).catch(function(o){return Xn(e,t,n,r,i)})})},l=0;l2&&void 0!==arguments[2]?arguments[2]:10,i=arguments[3];jn(Vt(t,{model:n,callback:function(e,t){return kr(n,e,t,i)}}),mr,r).catch(function(r){return Xn(e,t,n,i)})},setPenStyle:function e(t,n,r,i){jn(Vt(t,{model:n,callback:function(e,t){return kr(n,e,t,i)}}),Tr,r).catch(function(r){return Xn(e,t,n,i)})},setPenStyleClasses:function e(t,n,r,i){jn(Vt(t,{model:n,callback:function(e,t){return kr(n,e,t,i)}}),Rr,r).catch(function(r){return Xn(e,t,n,i)})},setTheme:function e(t,n,r,i){jn(Vt(t,{model:n,callback:function(e,t){return kr(n,e,t,i)}}),Cr,r).catch(function(r){return Xn(e,t,n,i)})},IInkWebSocketV4Configuration:or,getInfo:function(){return or},buildNewContentPackageInput:ar,buildRestoreIInkSessionInput:sr,buildNewContentPart:cr,buildOpenContentPart:lr,buildConfiguration:ur,buildSetPenStyle:Tr,buildSetPenStyleClasses:Rr,buildSetTheme:Cr,close:Bn})],callbacks:[function(e,t){d.info("emitting "+e+" event",t),this.dispatchEvent(new CustomEvent(e,Object.assign({bubbles:!0,composed:!0},t?{detail:t}:void 0)))}],getBehaviorFromConfiguration:function(e,t){var n={};return n.grabber=e.grabber,t&&("V4"===t.recognitionParams.apiVersion&&"REST"===t.recognitionParams.protocol?n.stroker=Ge:n.stroker=e.strokerList.find(function(e){return e.getInfo().apiVersion===t.recognitionParams.apiVersion&&e.getInfo().name===t.renderingParams.stroker}),"V4"===t.recognitionParams.apiVersion&&"REST"===t.recognitionParams.protocol?n.renderer=He:n.renderer=e.rendererList.find(function(e){return e.getInfo().apiVersion===t.recognitionParams.apiVersion}),n.recognizer=e.recognizerList.find(function(e){return e.getInfo().types.includes(t.recognitionParams.type)&&e.getInfo().protocol===t.recognitionParams.protocol&&e.getInfo().apiVersion===t.recognitionParams.apiVersion})),n.callbacks=e.callbacks,n}};function Ir(e){var t=e;return t.canUndo=e.currentPosition>0,t.canRedo=e.currentPosition2&&void 0!==arguments[2])||arguments[2],r=e.stack[e.currentPosition],i=arguments.length,o=Array(i>3?i-3:0),a=3;a-1)e.stack.splice(i,1,_e(o)),s.debug("model updated",o);else{var c=e;c.currentPosition+=1,c.stack=c.stack.slice(0,c.currentPosition),c.stack.push(_e(o)),c.stack.length>c.maxSize&&(c.stack.shift(),c.currentPosition--),s.debug("model pushed",o),a.push(t.EventType.CHANGED)}Ir(e),s.debug("undo/redo stack updated",e),_r.apply(void 0,[e,r,!1].concat(a))},undo:function(e,n,r){var i=e;i.currentPosition>0&&(i.currentPosition-=1,Ir(e),s.debug("undo index",i.currentPosition)),_r(e,r,!0,t.EventType.CHANGED,t.EventType.EXPORTED)},redo:function(e,n,r){var i=e;i.currentPosition1&&void 0!==arguments[1]?arguments[1]:10,n=document.createElement("canvas");return n.width=Math.abs(e.maxX-e.minX)+2*t,n.style.width=n.width+"px",n.height=Math.abs(e.maxY-e.minY)+2*t,n.style.height=n.height+"px",n}function Mr(e){return getComputedStyle(e)}function Or(e,t){for(var n in t){var r=t[n];"number"==typeof r&&(r+="px"),e.style[n]=r}return e}function zr(e){var t=document.createElement("div");return t.className=e,t}var Dr="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.msMatchesSelector);function Nr(e,t){if(!Dr)throw new Error("No element matching method supported");return Dr.call(e,t)}function Hr(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function Ur(e,t){return Array.prototype.filter.call(e.children,function(e){return Nr(e,t)})}var Xr={main:"ps",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},jr={x:null,y:null};function Br(e,t){var n=e.element.classList,r=Xr.state.scrolling(t);n.contains(r)?clearTimeout(jr[t]):n.add(r)}function Wr(e,t){jr[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(Xr.state.scrolling(t))},e.settings.scrollingThreshold)}var Yr=function(e){this.element=e,this.handlers={}},Gr={isEmpty:{configurable:!0}};Yr.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},Yr.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter(function(r){return!(!t||r===t)||(n.element.removeEventListener(e,r,!1),!1)})},Yr.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},Gr.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return 0===e.handlers[t].length})},Object.defineProperties(Yr.prototype,Gr);var Fr=function(){this.eventElements=[]};function Kr(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}Fr.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return t||(t=new Yr(e),this.eventElements.push(t)),t},Fr.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},Fr.prototype.unbind=function(e,t,n){var r=this.eventElement(e);r.unbind(t,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},Fr.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},Fr.prototype.once=function(e,t,n){var r=this.eventElement(e),i=function(e){r.unbind(t,i),n(e)};r.bind(t,i)};var Vr=function(e,t,n,r,i){var o;if(void 0===r&&(r=!0),void 0===i&&(i=!1),"top"===t)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,n,r,i){var o=n[0],a=n[1],s=n[2],c=n[3],l=n[4],u=n[5];void 0===r&&(r=!0);void 0===i&&(i=!1);var d=e.element;e.reach[c]=null,d[s]<1&&(e.reach[c]="start");d[s]>e[o]-e[a]-1&&(e.reach[c]="end");t&&(d.dispatchEvent(Kr("ps-scroll-"+c)),t<0?d.dispatchEvent(Kr("ps-scroll-"+l)):t>0&&d.dispatchEvent(Kr("ps-scroll-"+u)),r&&function(e,t){Br(e,t),Wr(e,t)}(e,c));e.reach[c]&&(t||i)&&d.dispatchEvent(Kr("ps-"+c+"-reach-"+e.reach[c]))}(e,n,o,r,i)};function Jr(e){return parseInt(e,10)||0}var qr={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},Zr=function(e){var t=e.element;e.containerWidth=t.clientWidth,e.containerHeight=t.clientHeight,e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(Ur(t,Xr.element.rail("x")).forEach(function(e){return Hr(e)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(Ur(t,Xr.element.rail("y")).forEach(function(e){return Hr(e)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),function(e,t){var n={width:t.railXWidth};t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft;t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-e.scrollTop:n.top=t.scrollbarXTop+e.scrollTop;Or(t.scrollbarXRail,n);var r={top:e.scrollTop,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?r.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth:r.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?r.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:r.left=t.scrollbarYLeft+e.scrollLeft;Or(t.scrollbarYRail,r),Or(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),Or(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(t,e),e.scrollbarXActive?t.classList.add(Xr.state.active("x")):(t.classList.remove(Xr.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=0),e.scrollbarYActive?t.classList.add(Xr.state.active("y")):(t.classList.remove(Xr.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)};function Qr(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function $r(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],c=t[6],l=t[7],u=e.element,d=null,f=null,h=null;function p(t){u[c]=d+h*(t[i]-f),Br(e,l),Zr(e),t.stopPropagation(),t.preventDefault()}function g(){Wr(e,l),e.event.unbind(e.ownerDocument,"mousemove",p)}e.event.bind(e[a],"mousedown",function(t){d=u[c],f=t[i],h=(e[r]-e[n])/(e[o]-e[s]),e.event.bind(e.ownerDocument,"mousemove",p),e.event.once(e.ownerDocument,"mouseup",g),t.stopPropagation(),t.preventDefault()})}var ei={"click-rail":function(e){e.event.bind(e.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,Zr(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,Zr(e),t.stopPropagation()})},"drag-thumb":function(e){$r(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x"]),$r(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y"])},keyboard:function(e){var t=e.element;e.event.bind(e.ownerDocument,"keydown",function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(Nr(t,":hover")||Nr(e.scrollbarX,":focus")||Nr(e.scrollbarY,":focus"))){var r,i=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(i){if("IFRAME"===i.tagName)i=i.contentDocument.activeElement;else for(;i.shadowRoot;)i=i.shadowRoot.activeElement;if(Nr(r=i,"input,[contenteditable]")||Nr(r,"select,[contenteditable]")||Nr(r,"textarea,[contenteditable]")||Nr(r,"button,[contenteditable]"))return}var o=0,a=0;switch(n.which){case 37:o=n.metaKey?-e.contentWidth:n.altKey?-e.containerWidth:-30;break;case 38:a=n.metaKey?e.contentHeight:n.altKey?e.containerHeight:30;break;case 39:o=n.metaKey?e.contentWidth:n.altKey?e.containerWidth:30;break;case 40:a=n.metaKey?-e.contentHeight:n.altKey?-e.containerHeight:-30;break;case 32:a=n.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:a=e.containerHeight;break;case 34:a=-e.containerHeight;break;case 36:a=e.contentHeight;break;case 35:a=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==o||e.settings.suppressScrollY&&0!==a||(t.scrollTop-=a,t.scrollLeft+=o,Zr(e),function(n,r){var i=t.scrollTop;if(0===n){if(!e.scrollbarYActive)return!1;if(0===i&&r>0||i>=e.contentHeight-e.containerHeight&&r<0)return!e.settings.wheelPropagation}var o=t.scrollLeft;if(0===r){if(!e.scrollbarXActive)return!1;if(0===o&&n<0||o>=e.contentWidth-e.containerWidth&&n>0)return!e.settings.wheelPropagation}return!0}(o,a)&&n.preventDefault())}})},wheel:function(e){var t=e.element;function n(n){var r=function(e){var t=e.deltaX,n=-1*e.deltaY;return void 0!==t&&void 0!==n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!=t&&n!=n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}(n),i=r[0],o=r[1];if(!function(e,n,r){if(!qr.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(e))return!1;for(var i=e;i&&i!==t;){if(i.classList.contains(Xr.element.consuming))return!0;var o=Mr(i);if([o.overflow,o.overflowX,o.overflowY].join("").match(/(scroll|auto)/)){var a=i.scrollHeight-i.clientHeight;if(a>0&&!(0===i.scrollTop&&r>0||i.scrollTop===a&&r<0))return!0;var s=i.scrollLeft-i.clientWidth;if(s>0&&!(0===i.scrollLeft&&n<0||i.scrollLeft===s&&n>0))return!0}i=i.parentNode}return!1}(n.target,i,o)){var a=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(o?t.scrollTop-=o*e.settings.wheelSpeed:t.scrollTop+=i*e.settings.wheelSpeed,a=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(i?t.scrollLeft+=i*e.settings.wheelSpeed:t.scrollLeft-=o*e.settings.wheelSpeed,a=!0):(t.scrollTop-=o*e.settings.wheelSpeed,t.scrollLeft+=i*e.settings.wheelSpeed),Zr(e),(a=a||function(n,r){var i=0===t.scrollTop,o=t.scrollTop+t.offsetHeight===t.scrollHeight,a=0===t.scrollLeft,s=t.scrollLeft+t.offsetWidth===t.offsetWidth;return!(Math.abs(r)>Math.abs(n)?i||o:a||s)||!e.settings.wheelPropagation}(i,o))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?e.event.bind(t,"wheel",n):void 0!==window.onmousewheel&&e.event.bind(t,"mousewheel",n)},touch:function(e){if(qr.supportsTouch||qr.supportsIePointer){var t=e.element,n={},r=0,i={},o=null;qr.supportsTouch?(e.event.bind(t,"touchstart",l),e.event.bind(t,"touchmove",u),e.event.bind(t,"touchend",d)):qr.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",l),e.event.bind(t,"pointermove",u),e.event.bind(t,"pointerup",d)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",l),e.event.bind(t,"MSPointerMove",u),e.event.bind(t,"MSPointerUp",d)))}function a(n,r){t.scrollTop-=r,t.scrollLeft-=n,Zr(e)}function s(e){return e.targetTouches?e.targetTouches[0]:e}function c(e){return!(e.pointerType&&"pen"===e.pointerType&&0===e.buttons||(!e.targetTouches||1!==e.targetTouches.length)&&(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function l(e){if(c(e)){var t=s(e);n.pageX=t.pageX,n.pageY=t.pageY,r=(new Date).getTime(),null!==o&&clearInterval(o)}}function u(o){if(c(o)){var l=s(o),u={pageX:l.pageX,pageY:l.pageY},d=u.pageX-n.pageX,f=u.pageY-n.pageY;if(function(e,n,r){if(!t.contains(e))return!1;for(var i=e;i&&i!==t;){if(i.classList.contains(Xr.element.consuming))return!0;var o=Mr(i);if([o.overflow,o.overflowX,o.overflowY].join("").match(/(scroll|auto)/)){var a=i.scrollHeight-i.clientHeight;if(a>0&&!(0===i.scrollTop&&r>0||i.scrollTop===a&&r<0))return!0;var s=i.scrollLeft-i.clientWidth;if(s>0&&!(0===i.scrollLeft&&n<0||i.scrollLeft===s&&n>0))return!0}i=i.parentNode}return!1}(o.target,d,f))return;a(d,f),n=u;var h=(new Date).getTime(),p=h-r;p>0&&(i.x=d/p,i.y=f/p,r=h),function(n,r){var i=t.scrollTop,o=t.scrollLeft,a=Math.abs(n),s=Math.abs(r);if(s>a){if(r<0&&i===e.contentHeight-e.containerHeight||r>0&&0===i)return 0===window.scrollY&&r>0&&qr.isChrome}else if(a>s&&(n<0&&o===e.contentWidth-e.containerWidth||n>0&&0===o))return!0;return!0}(d,f)&&o.preventDefault()}}function d(){e.settings.swipeEasing&&(clearInterval(o),o=setInterval(function(){e.isInitialized?clearInterval(o):i.x||i.y?Math.abs(i.x)<.01&&Math.abs(i.y)<.01?clearInterval(o):(a(30*i.x,30*i.y),i.x*=.8,i.y*=.8):clearInterval(o)},10))}}},ti=function(e,t){var n=this;if(void 0===t&&(t={}),"string"==typeof e&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var r in this.element=e,e.classList.add(Xr.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!1,wheelSpeed:1},t)n.settings[r]=t[r];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var i,o,a=function(){return e.classList.add(Xr.state.focus)},s=function(){return e.classList.remove(Xr.state.focus)};this.isRtl="rtl"===Mr(e).direction,this.isNegativeScroll=(o=e.scrollLeft,e.scrollLeft=-1,i=e.scrollLeft<0,e.scrollLeft=o,i),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new Fr,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=zr(Xr.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=zr(Xr.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=Mr(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Jr(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Jr(c.borderLeftWidth)+Jr(c.borderRightWidth),Or(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Jr(c.marginLeft)+Jr(c.marginRight),Or(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=zr(Xr.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=zr(Xr.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=Mr(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Jr(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(e){var t=Mr(e);return Jr(t.width)+Jr(t.paddingLeft)+Jr(t.paddingRight)+Jr(t.borderLeftWidth)+Jr(t.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Jr(l.borderTopWidth)+Jr(l.borderBottomWidth),Or(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Jr(l.marginTop)+Jr(l.marginBottom),Or(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(e){return ei[e](n)}),this.lastScrollTop=e.scrollTop,this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(e){return n.onScroll(e)}),Zr(this)};ti.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Or(this.scrollbarXRail,{display:"block"}),Or(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Jr(Mr(this.scrollbarXRail).marginLeft)+Jr(Mr(this.scrollbarXRail).marginRight),this.railYMarginHeight=Jr(Mr(this.scrollbarYRail).marginTop)+Jr(Mr(this.scrollbarYRail).marginBottom),Or(this.scrollbarXRail,{display:"none"}),Or(this.scrollbarYRail,{display:"none"}),Zr(this),Vr(this,"top",0,!1,!0),Vr(this,"left",0,!1,!0),Or(this.scrollbarXRail,{display:""}),Or(this.scrollbarYRail,{display:""}))},ti.prototype.onScroll=function(e){this.isAlive&&(Zr(this),Vr(this,"top",this.element.scrollTop-this.lastScrollTop),Vr(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=this.element.scrollTop,this.lastScrollLeft=this.element.scrollLeft)},ti.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Hr(this.scrollbarX),Hr(this.scrollbarY),Hr(this.scrollbarXRail),Hr(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},ti.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};var ni=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t},ri=i(function(e,t){!function(e,t){var n,r=(n=t)&&n.__esModule?n:{default:n},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=a}(e,ni)});function ii(){}r(ri),ii.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===c(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,a.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new i.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return d("action",e)}},{key:"defaultTarget",value:function(e){var t=d("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return d("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}(o.default);function d(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=u}(e,ri,oi,di)}));function hi(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1}function pi(e,n){var r=n.elements;r.textElement.addEventListener("click",function(r){return function(e,n,r){var i=r,o=r.elements;if(e.target.id!=="prompter-text"+r.randomString){var a=e.target.id.replace("word-","").replace(r.randomString,""),s=JSON.parse(n.exports[t.Exports.JIIX]).words;if(i.wordToChange=s[a],i.wordToChange.id=a,o.candidatesElement.innerHTML="",i.wordToChange&&i.wordToChange.candidates){o.candidatesElement.style.display="flex",i.wordToChange.candidates.forEach(function(e,t){i.wordToChange.label===e?o.candidatesElement.innerHTML+=''+e+"":o.candidatesElement.innerHTML+=''+e+""});var c=e.target.getBoundingClientRect().left-60;o.candidatesElement.style.top="48px",o.candidatesElement.style.left=c+"px",e.target.parentNode.parentNode.parentNode.insertBefore(o.candidatesElement,e.target.parentNode.parentNode)}}}(r,e,n)}),r.candidatesElement.addEventListener("click",function(r){return function(e,n,r){var i=r,o=r.elements,a=e.target.innerText;if(a!==i.wordToChange.label&&i.wordToChange.candidates.includes(a)){var s=JSON.parse(n.exports[t.Exports.JIIX]);s.words[i.wordToChange.id].label=a,n.import_(JSON.stringify(s),t.Exports.JIIX)}o.candidatesElement.style.display="none"}(r,e,n)}),r.ellipsisElement.addEventListener("click",function(e){return function(e,t){var n=t,r=function(){var t=e.target.offsetLeft-68;n.menuElement.style.left=t+"px"},i=document.contains(n.menuElement);hi(n.menuElement)||i?"none"===n.menuElement.style.display&&(r(),n.menuElement.style.display="flex"):(n.menuElement.style.display="flex",r(),n.menuElement.appendChild(n.convertElement),n.menuElement.appendChild(n.copyElement),n.menuElement.appendChild(n.deleteElement),e.target.parentNode.insertBefore(n.menuElement,e.target))}(e,r)}),r.copyElement.addEventListener("click",function(){r.menuElement.style.display="none"}),r.convertElement.addEventListener("click",function(){r.menuElement.style.display="none",e.convert()}),r.deleteElement.addEventListener("click",function(){r.menuElement.style.display="none",e.clear()})}function gi(e){var t="-"+Math.random().toString(10).substring(2,12),n=function(e){var t=document.createElement("div");t.id="smartguide"+e,t.classList.add("smartguide");var n=document.createElement("div");n.id="prompter-text"+e,n.classList.add("prompter-text"),n.setAttribute("touch-action","none");var r=document.createElement("div");r.id="prompter-text-container"+e,r.classList.add("prompter-text-container"),r.appendChild(n);var i=document.createElement("div");i.id="ellipsis"+e,i.classList.add("ellipsis"),i.innerHTML="...";var o=document.createElement("div");o.id="tag-icon"+e,o.classList.add("tag-icon"),o.innerHTML="¶";var a=document.createElement("div");a.id="candidates"+e,a.classList.add("candidates");var s=document.createElement("div");s.id="more-menu"+e,s.classList.add("more-menu");var c=document.createElement("button");c.classList.add("options-label-button"),c.id="convert"+e,c.innerHTML="Convert";var l=document.createElement("button");l.classList.add("options-label-button"),l.id="copy"+e,l.innerHTML="Copy";var u=document.createElement("button");return u.classList.add("options-label-button"),u.id="delete"+e,u.innerHTML="Delete",{smartGuideElement:t,textElement:n,textContainer:r,candidatesElement:a,menuElement:s,tagElement:o,ellipsisElement:i,convertElement:c,copyElement:l,deleteElement:u}}(t),r=(new fi(n.copyElement),{editor:e,wordToChange:"",lastWord:"",previousLabelExport:" ",perfectScrollbar:new ti(n.textContainer,{suppressScrollY:!0,scrollXMarginOffset:1}),elements:n,smartGuideTimeOutId:0,randomString:t});return pi(e,r),e.configuration.recognitionParams.v4.text.smartGuideFadeOut.enable&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4,t=arguments[1],n=t,r=t.elements;new MutationObserver(function(t){t.forEach(function(){n.smartGuideTimeOutId&&clearTimeout(n.smartGuideTimeOutId),"none"===r.candidatesElement.style.display&&"none"===r.menuElement.style.display?n.smartGuideTimeOutId=setTimeout(function(){r.smartGuideElement.classList.add("smartguide-out"),r.smartGuideElement.classList.remove("smartguide-in")},e):document.contains(r.candidatesElement)||document.contains(r.menuElement)||(n.smartGuideTimeOutId=setTimeout(function(){r.smartGuideElement.classList.add("smartguide-out"),r.smartGuideElement.classList.remove("smartguide-in")},e))})}).observe(r.smartGuideElement,{childList:!0,subtree:!0,attributes:!0})}(e.configuration.recognitionParams.v4.text.smartGuideFadeOut.duration,r),r}var mi=Object.freeze({inkImporter:function(e,t,n,r){var i=e;a.debug("inkImporter start importing =>",t);var o=Object.assign({},i.behavior.grabber);o.detach=i.behavior.grabber.detach,i.behavior.grabber={};var s=[];t.forEach(function(e){e.convert?s.push({action:"convert",value:!0}):e.setDelay?s.push({action:"setDelay",value:e.setDelay}):(e.color&&s.push({action:"setColor",value:e.color}),e.X.forEach(function(t,n){var r="move";0===n?r="down":n===e.X.length-1&&(r="up"),s.push({action:r,point:{x:e.X[n],y:e.Y[n]}})}))}),a.debug("Array of actions =>",s),function e(t,n,a){if(n2?i-2:0),s=2;s5?o-5:0),c=5;c2?o-2:0),c=2;c2&&void 0!==arguments[2]?arguments[2]:e.configuration.triggers[t];return!(!e.recognizer||!e.recognizer.getInfo().availableTriggers[t].includes(n))||(a.error(n+" is not a valid trigger for "+t),!1)}function Ei(e,n){for(var r=e,i=n,o=arguments.length,s=Array(o>2?o-2:0),c=2;c=e.model.lastPositions.lastReceivedPosition?(r.model=Le(r.model,i),(me(r.model)||s.includes(t.EventType.RENDERED))&&e.renderer.drawModel(e.rendererContext,r.model,e.stroker)):(r.model=i,e.renderer.drawModel(e.rendererContext,r.model,e.stroker)),vi.apply(void 0,[e,void 0].concat(s))),"TEXT"===e.configuration.recognitionParams.type&&"V4"===e.configuration.recognitionParams.apiVersion&&"REST"!==e.configuration.recognitionParams.protocol&&e.configuration.recognitionParams.v4.text.mimeTypes.includes(t.Exports.JIIX)&&e.configuration.recognitionParams.v4.text.smartGuide&&function(e,n){e.smartGuide=function(e,n){var r=e,i=e.elements,o=document.contains(i.smartGuideElement);hi(i.smartGuideElement)||o||function(e){var t=e,n=e.elements,r=3.779527559*t.editor.configuration.recognitionParams.v4.text.margin.top,i=3.779527559*t.editor.configuration.recognitionParams.v4.text.margin.left;!function(e,r){n.smartGuideElement.style.top=r+"px",n.smartGuideElement.style.left=e+"px",n.smartGuideElement.style.visibility="hidden",t.editor.domElement.insertBefore(n.smartGuideElement,t.editor.loader)}(i,r-45.354330708),n.smartGuideElement.appendChild(n.tagElement);var o=t.editor.domElement.clientWidth-i-n.tagElement.offsetWidth-35-i;(function(e,t){n.textContainer.style.left=e+"px",n.textContainer.style.width=t+"px",n.textContainer.style.maxWidth=t+"px",n.smartGuideElement.appendChild(n.textContainer)})(i=n.tagElement.offsetWidth,o),function(e){n.ellipsisElement.style.left=e+"px",n.smartGuideElement.appendChild(n.ellipsisElement)}(i+=o),n.menuElement.style.display="none",n.menuElement.appendChild(n.convertElement),n.menuElement.appendChild(n.copyElement),n.menuElement.appendChild(n.deleteElement),n.smartGuideElement.appendChild(n.menuElement),n.candidatesElement.style.display="none",n.smartGuideElement.appendChild(n.candidatesElement),n.smartGuideElement.style.height="48px",n.smartGuideElement.style.width=n.tagElement.offsetWidth+n.textContainer.offsetWidth+n.ellipsisElement.offsetWidth+"px",t.perfectScrollbar.update()}(e);var a=function(t,n,r){var i=document.createElement("span");return i.id="word-"+n+e.randomString,t?i.innerHTML=" ":i.textContent=r.label,i};if(n&&JSON.parse(n[t.Exports.JIIX]).words.length>0){if(i.smartGuideElement.classList.add("smartguide-in"),i.smartGuideElement.classList.remove("smartguide-out"),i.candidatesElement.style.display="none",i.menuElement.style.display="none",r.previousLabelExport&&r.previousLabelExport!==JSON.parse(n[t.Exports.JIIX]).label){var s=JSON.parse(n[t.Exports.JIIX]).words;!function(e){i.textElement.innerHTML="";var t=document.createDocumentFragment();e.forEach(function(n,o){if(" "===n.label||n.label.includes("\n"))t.appendChild(a(!0,o));else if(o!==e.length-1)t.appendChild(a(!1,o,n));else{i.textElement.appendChild(t),r.perfectScrollbar.update(),""===r.lastWord&&(r.lastWord=n);var s=a(!1,o,n);r.lastWord.candidates!==n.candidates&&r.lastWord.label!==n.label?(s.classList.add("added-word"),i.textElement.appendChild(s),i.textContainer.scrollLeft=s.offsetLeft,r.lastWord=n):(i.textElement.appendChild(s),i.textContainer.scrollLeft=s.offsetLeft)}})}(s),function(o){if(r.tempWords&&r.tempWords.length===o.length){var a=o.map(function(e){return e.label}),s=r.tempWords.map(function(e){return e.label}),c=a.indexOf(a.filter(function(e){return-1===s.indexOf(e)})[0]);document.getElementById("word-"+c+e.randomString)&&c>-1&&(document.getElementById("word-"+c+e.randomString).classList.add("modified-word"),i.textContainer.scrollLeft=document.getElementById("word-"+c+e.randomString).offsetLeft-10)}r.tempWords=JSON.parse(n[t.Exports.JIIX]).words}(s)}r.previousLabelExport=JSON.parse(n[t.Exports.JIIX]).label,i.copyElement.setAttribute("data-clipboard-text",JSON.parse(n[t.Exports.JIIX]).label)}else i.smartGuideElement.classList.add("smartguide-out"),i.smartGuideElement.classList.remove("smartguide-in");return r}(e.smartGuide,n)}(r,i.exports),be(n).length>0&&!e.recognizer.addStrokes&&e.configuration.triggers.exportContent!==t.Trigger.DEMAND&&wi(e,n)}function xi(e,n,r){for(var i=arguments.length,o=Array(i>3?i-3:0),s=3;s2?i-2:0),l=2;l3&&void 0!==arguments[3]?arguments[3]:e.configuration.triggers.exportContent;e.recognizer&&e.recognizer.export_&&e.recognizerContext.initPromise.then(function(){if(bi(e,"exportContent",i)){var o=e;window.clearTimeout(e.exportTimer),o.exportTimer=window.setTimeout(function(){yi(e.recognizer.reset,e.recognizer.export_,e.recognizerContext,n,function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:"pen",n=arguments[2];a.trace("Pointer down",e),window.clearTimeout(this.notifyTimer),window.clearTimeout(this.exportTimer),this.model=Ee(this.model,e,Object.assign({pointerType:t,pointerId:n},this.theme.ink,this.localPenStyle)),this.renderer.drawCurrentStroke(this.rendererContext,this.model,this.stroker)}},{key:"pointerMove",value:function(e){a.trace("Pointer move",e),this.model=xe(this.model,e),this.renderer.drawCurrentStroke(this.rendererContext,this.model,this.stroker)}},{key:"pointerUp",value:function(e){a.trace("Pointer up",e),this.model=we(this.model,e,this.penStyle),this.renderer.drawModel(this.rendererContext,this.model,this.stroker),this.recognizer.addStrokes?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.configuration.triggers.addStrokes;e.recognizer&&e.recognizer.addStrokes&&e.recognizerContext.initPromise.then(function(){bi(e,"addStrokes",n)&&yi(e.recognizer.reset,e.recognizer.addStrokes,e.recognizerContext,t,function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:"DIGITAL_EDIT";this.canConvert&&(vi(this,void 0,t.EventType.CONVERT),function(e,t,n){e.recognizer&&e.recognizer.convert&&e.recognizerContext.initPromise.then(function(){e.recognizer.convert(e.recognizerContext,t,function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o0&&void 0!==arguments[0])||arguments[0];this.configuration.recognitionParams.v4.text.guides.enable=n,e=this,t=this.model,e.recognizer&&e.recognizer.sendConfiguration&&e.recognizerContext.initPromise.then(function(){e.recognizer.sendConfiguration(e.recognizerContext,t,function(t,n){for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?n-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o2?i-2:0),s=2;s2&&void 0!==arguments[2]?arguments[2]:10;if(e.rawStrokes.length>0){var r=Se(e),i=Ar(r,n),o=Ar(r,n),a={renderingCanvas:o,renderingCanvasContext:o.getContext("2d"),capturingCanvas:i,capturingCanvasContext:i.getContext("2d")};return a.renderingCanvasContext.translate(-r.minX+n,-r.minY+n),Ne(a,e,t),a.renderingCanvas.toDataURL("image/png")}return null}(this.model,this.stroker)}},{key:"initialized",get:function(){return!!this.recognizerContext&&this.recognizerContext.initialized}},{key:"idle",get:function(){return this.recognizerContext.idle}},{key:"canUndo",get:function(){return this.undoRedoContext.canUndo}},{key:"canRedo",get:function(){return this.undoRedoContext.canRedo}},{key:"isEmpty",get:function(){return this.recognizerContext.isEmpty}},{key:"canClear",get:function(){return this.canUndo&&this.model.rawStrokes.length>0}},{key:"canConvert",get:function(){return this.canUndo&&this.canClear&&this.recognizer&&this.recognizer.convert}},{key:"possibleUndoCount",get:function(){return this.recognizerContext.possibleUndoCount}},{key:"undoStackIndex",get:function(){return this.recognizerContext.undoStackIndex}},{key:"canExport",get:function(){return this.canUndo&&this.canClear&&this.recognizer&&this.recognizer.getInfo().availableTriggers.exportContent.includes(t.Trigger.DEMAND)}},{key:"exports",get:function(){return this.model?this.model.exports:void 0}},{key:"supportedImportMimeTypes",get:function(){return this.recognizerContext.supportedImportMimeTypes}},{key:"eastereggs",get:function(){return mi}}]),e}(),Ti={af_ZA:"Afrikaans",az_AZ:"Azərbaycanca",be_BY:"Беларуская",bg_BG:"Български",bs_BA:"Bosanski",ca_ES:"Català",ceb_PH:"Sinugboanon",cs_CZ:"Čeština",da_DK:"Dansk",de_AT:"Deutsch (Österreich)",de_DE:"Deutsch",el_GR:"Ελληνικά",en_CA:"English (Canada)",en_GB:"English (United Kingdom)",en_PH:"English (Philippines)",en_US:"English (United States)",es_CO:"Español (Colombia)",es_ES:"Español (España)",es_MX:"Español (México)",et_EE:"Eesti",eu_ES:"Euskara",fi_FI:"Suomi",fil_PH:"Filipino",fr_CA:"Français (Canada)",fr_FR:"Français (France)",ga_IE:"Gaeilge",gl_ES:"Galego",hr_HR:"Hrvatski",hu_HU:"Magyar",hy_AM:"Հայերեն",id_ID:"Bahasa Indonesia",is_IS:"Íslenska",it_IT:"Italiano",ja_JP:"日本語",ka_GE:"ქართული",kk_KZ:"Қазақша",ko_KR:"한국어",lt_LT:"Lietuvių",lv_LV:"Latviešu",mg_MG:"Malagasy",mk_MK:"Македонски",mn_MN:"Монгол",ms_MY:"Bahasa Melayu (Malaysia)",nl_BE:"Nederlands (België)",nl_NL:"Nederlands",no_NO:"Norsk (Bokmål)",pl_PL:"Polski",pt_BR:"Português (Brasil)",pt_PT:"Português (Portugal)",ro_RO:"Română",ru_RU:"Русский",sk_SK:"Slovenčina",sl_SI:"Slovenščina",sq_AL:"Shqip",sr_Cyrl_RS:"Српски",sr_Latn_RS:"Srpski",sv_SE:"Svenska",sw_TZ:"Kiswahili",tr_TR:"Türkçe",tt_RU:"Татарча",uk_UA:"Українська",vi_VN:"Tiếng Việt",zh_CN:"中文 (中国)",zh_HK:"中文 (香港)",zh_TW:"中文 (台灣)"},Ri={result:Ti},Ci=Object.freeze({result:Ti,default:Ri}),ki={af_ZA:"Afrikaans",az_AZ:"Azərbaycanca",id_ID:"Bahasa Indonesia",ms_MY:"Bahasa Melayu (Malaysia)",bs_BA:"Bosanski",ca_ES:"Català",da_DK:"Dansk",de_DE:"Deutsch",de_AT:"Deutsch (Österreich)",et_EE:"Eesti",en_CA:"English (Canada)",en_GB:"English (United Kingdom)",en_US:"English (United States)",es_ES:"Español (España)",es_MX:"Español (México)",eu_ES:"Euskara",fr_CA:"Français (Canada)",fr_FR:"Français (France)",ga_IE:"Gaeilge",gl_ES:"Galego",hr_HR:"Hrvatski",it_IT:"Italiano",lv_LV:"Latviešu",lt_LT:"Lietuvių",hu_HU:"Magyar",nl_NL:"Nederlands",nl_BE:"Nederlands (België)",no_NO:"Norsk (Bokmål)",pl_PL:"Polski",pt_BR:"Português (Brasil)",pt_PT:"Português (Portugal)",ro_RO:"Română",sq_AL:"Shqip",sk_SK:"Slovenčina",sl_SI:"Slovenščina",sr_Latn_RS:"Srpski",fi_FI:"Suomi",sv_SE:"Svenska",th_TH:"Thaiไทย",vi_VN:"Tiếng Việt",tr_TR:"Türkçe",is_IS:"Íslenska",cs_CZ:"Čeština",el_GR:"Ελληνικά",be_BY:"Беларуская",bg_BG:"Български",mk_MK:"Македонски",mn_MN:"Монгол",ru_RU:"Русский",sr_Cyrl_RS:"Српски",tt_RU:"Татарча",uk_UA:"Українська",kk_KZ:"Қазақша",hy_AM:"Հայերեն",he_IL:"עברית",ur_PK:"اردو",ar:"العربية",fa_IR:"فارسی",hi_IN:"हिन्दी",ka_GE:"ქართული",zh_CN:"中文 (中国)",zh_TW:"中文 (台灣)",zh_HK:"中文 (香港)",ja_JP:"日本語",ko_KR:"한국어"},Pi={result:ki},Ii=Object.freeze({result:ki,default:Pi});function _i(e,t,n,r,i){return a.debug("Registering a new editor"),new Si(e,t,n,r,i)}function Li(e){return"V4"===S(e).recognitionParams.apiVersion?Ci:Ii}var Ai={Constants:t,DefaultConfiguration:w,DefaultBehaviors:Pr,DefaultPenStyle:C,DefaultTheme:I,register:_i,getAvailableLanguageList:Li,LoggerConfig:o,Editor:Si,InkModel:Ae,RecognizerContext:$t};e.default=Ai,e.Constants=t,e.DefaultConfiguration=w,e.DefaultBehaviors=Pr,e.DefaultPenStyle=C,e.DefaultTheme=I,e.register=_i,e.getAvailableLanguageList=Li,e.LoggerConfig=o,e.Editor=Si,e.InkModel=Ae,e.RecognizerContext=$t,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=myscript.min.js.map diff --git a/dist/myscript.min.js.map b/dist/myscript.min.js.map index 0fa6018f..99d5cad7 100644 --- a/dist/myscript.min.js.map +++ b/dist/myscript.min.js.map @@ -1 +1 @@ -{"version":3,"file":"myscript.min.js","sources":["../src/configuration/Constants.js","../src/configuration/LoggerConfig.js","../node_modules/loglevel/lib/loglevel.js","../node_modules/is-primitive/index.js","../node_modules/assign-symbols/index.js","../node_modules/assign-deep/node_modules/kind-of/index.js","../node_modules/assign-deep/index.js","../src/configuration/DefaultConfiguration.js","../node_modules/json-css/lib/jsoncss.min.js","../src/configuration/DefaultPenStyle.js","../src/configuration/DefaultTheme.js","../src/grabber/PointerEventGrabber.js","../src/renderer/canvas/symbols/StrokeSymbolCanvasRenderer.js","../src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js","../src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js","../src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js","../src/model/StrokeComponent.js","../src/model/Symbol.js","../src/model/InkModel.js","../src/renderer/canvas/CanvasRenderer.js","../src/renderer/QuadraticUtils.js","../src/renderer/canvas/stroker/QuadraticCanvasStroker.js","../node_modules/d3-selection/src/namespaces.js","../node_modules/d3-selection/src/namespace.js","../node_modules/d3-selection/src/creator.js","../node_modules/d3-selection/src/selector.js","../node_modules/d3-selection/src/selectorAll.js","../node_modules/d3-selection/src/matcher.js","../node_modules/d3-selection/src/selection/sparse.js","../node_modules/d3-selection/src/selection/enter.js","../node_modules/d3-selection/src/selection/data.js","../node_modules/d3-selection/src/selection/sort.js","../node_modules/d3-selection/src/window.js","../node_modules/d3-selection/src/selection/classed.js","../node_modules/d3-selection/src/selection/text.js","../node_modules/d3-selection/src/selection/html.js","../node_modules/d3-selection/src/selection/raise.js","../node_modules/d3-selection/src/selection/lower.js","../node_modules/d3-selection/src/selection/insert.js","../node_modules/d3-selection/src/selection/remove.js","../node_modules/d3-selection/src/selection/clone.js","../node_modules/d3-selection/src/selection/on.js","../node_modules/d3-selection/src/selection/dispatch.js","../node_modules/d3-selection/src/selection/index.js","../src/renderer/svg/symbols/StrokeSymbolSVGRenderer.js","../src/renderer/svg/SVGRenderer.js","../node_modules/d3-selection/src/selection/select.js","../node_modules/d3-selection/src/selection/selectAll.js","../node_modules/d3-selection/src/selection/filter.js","../node_modules/d3-selection/src/constant.js","../node_modules/d3-selection/src/selection/exit.js","../node_modules/d3-selection/src/selection/merge.js","../node_modules/d3-selection/src/selection/order.js","../node_modules/d3-selection/src/selection/call.js","../node_modules/d3-selection/src/selection/nodes.js","../node_modules/d3-selection/src/selection/node.js","../node_modules/d3-selection/src/selection/size.js","../node_modules/d3-selection/src/selection/empty.js","../node_modules/d3-selection/src/selection/each.js","../node_modules/d3-selection/src/selection/attr.js","../node_modules/d3-selection/src/selection/style.js","../node_modules/d3-selection/src/selection/property.js","../node_modules/d3-selection/src/selection/append.js","../node_modules/d3-selection/src/selection/datum.js","../node_modules/d3-selection/src/select.js","../src/renderer/svg/stroker/QuadraticSVGStroker.js","../node_modules/crypto-js/core.js","../node_modules/crypto-js/enc-hex.js","../node_modules/crypto-js/x64-core.js","../node_modules/crypto-js/sha512.js","../node_modules/crypto-js/hmac.js","../node_modules/crypto-js/hmac-sha512.js","../src/recognizer/CryptoHelper.js","../src/recognizer/rest/networkInterface.js","../src/model/RecognizerContext.js","../src/recognizer/rest/v3/Cdkv3RestRecognizerUtil.js","../src/recognizer/common/v3/Cdkv3CommonTextRecognizer.js","../src/recognizer/DefaultRecognizer.js","../src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js","../src/recognizer/common/CdkCommonUtil.js","../src/recognizer/common/v3/Cdkv3CommonMathRecognizer.js","../src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js","../src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js","../src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js","../src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js","../src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js","../src/recognizer/rest/v4/iinkRestRecognizer.js","../src/recognizer/websocket/networkWSInterface.js","../src/recognizer/websocket/v3/Cdkv3WSBuilder.js","../src/recognizer/websocket/CdkWSRecognizerUtil.js","../src/util/PromiseHelper.js","../src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js","../src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js","../node_modules/uuid-js/lib/uuid.js","../src/recognizer/websocket/v4/Cdkv4WSBuilder.js","../src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js","../src/configuration/DefaultBehaviors.js","../src/callback/EventCallback.js","../src/model/UndoRedoContext.js","../src/model/UndoRedoManager.js","../src/renderer/canvas/ImageRenderer.js","../node_modules/perfect-scrollbar/dist/perfect-scrollbar.esm.js","../node_modules/select/src/select.js","../node_modules/clipboard/lib/clipboard-action.js","../node_modules/tiny-emitter/index.js","../node_modules/good-listener/src/is.js","../node_modules/delegate/src/closest.js","../node_modules/delegate/src/delegate.js","../node_modules/good-listener/src/listen.js","../node_modules/clipboard/lib/clipboard.js","../src/smartguide/SmartGuide.js","../src/eastereggs/InkImporter.js","../src/Editor.js","../src/util/ModelStats.js","../src/EditorFacade.js","../src/myscript.js"],"sourcesContent":["/**\n * @typedef {Object} Constants\n */\n\nconst Constants = {\n EventType: {\n IDLE: 'idle',\n CHANGED: 'changed',\n IMPORTED: 'imported',\n EXPORTED: 'exported',\n CONVERTED: 'converted',\n RENDERED: 'rendered', // Internal use only\n LOADED: 'loaded',\n UNDO: 'undo',\n REDO: 'redo',\n CLEAR: 'clear',\n IMPORT: 'import',\n SUPPORTED_IMPORT_MIMETYPES: 'supportedImportMimeTypes',\n EXPORT: 'export',\n CONVERT: 'convert',\n ERROR: 'error'\n },\n RecognitionType: {\n TEXT: 'TEXT',\n MATH: 'MATH',\n SHAPE: 'SHAPE',\n MUSIC: 'MUSIC',\n ANALYZER: 'ANALYZER',\n DIAGRAM: 'DIAGRAM',\n NEBO: 'NEBO',\n RAWCONTENT: 'Raw Content'\n },\n Protocol: {\n WEBSOCKET: 'WEBSOCKET',\n REST: 'REST'\n },\n ModelState: {\n INITIALIZING: 'INITIALIZING',\n INITIALIZED: 'INITIALIZED',\n EXPORTING: 'EXPORTING',\n EXPORTED: 'EXPORTED',\n PENDING: 'PENDING',\n MODIFIED: 'MODIFIED',\n ERROR: 'ERROR'\n },\n Trigger: {\n QUIET_PERIOD: 'QUIET_PERIOD',\n POINTER_UP: 'POINTER_UP',\n DEMAND: 'DEMAND'\n },\n Logger: {\n EDITOR: 'editor',\n MODEL: 'model',\n GRABBER: 'grabber',\n RENDERER: 'renderer',\n RECOGNIZER: 'recognizer',\n CALLBACK: 'callback',\n UTIL: 'util',\n SMARTGUIDE: 'smartguide'\n },\n LogLevel: {\n TRACE: 'TRACE',\n DEBUG: 'DEBUG',\n INFO: 'INFO',\n WARN: 'WARN',\n ERROR: 'ERROR'\n },\n Languages: {\n zh_CN: 'Noto Sans CJK tc',\n zh_HK: 'Noto Sans CJK tc',\n zh_TW: 'Noto Sans CJK tc',\n ko_KR: 'Noto Sans CJK kr',\n ja_JP: 'Noto Sans CJK jp',\n hy_AM: 'Noto Sans Armenian',\n default: 'Open Sans'\n },\n Error: {\n NOT_REACHABLE: 'MyScript recognition server is not reachable. Please reload once you are connected.',\n WRONG_CREDENTIALS: 'Application credentials are invalid. Please check or regenerate your application key and hmackey.',\n TOO_OLD: 'Session is too old. Max Session Duration Reached.'\n },\n Exports: {\n JIIX: 'application/vnd.myscript.jiix'\n }\n};\nexport default Constants;\n","import * as loglevel from 'loglevel';\nimport Constants from './Constants';\n\n/**\n * Main log instance\n * @type {Object}\n */\nconst log = loglevel.noConflict();\nexport default log;\n\n/**\n * Log editor events\n * @type {Object}\n */\nexport const editorLogger = log.getLogger(Constants.Logger.EDITOR);\neditorLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log editor events\n * @type {Object}\n */\nexport const smartGuideLogger = log.getLogger(Constants.Logger.SMARTGUIDE);\neditorLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log model events\n * @type {Object}\n */\nexport const modelLogger = log.getLogger(Constants.Logger.MODEL);\nmodelLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log grabber events\n * @type {Object}\n */\nexport const grabberLogger = log.getLogger(Constants.Logger.GRABBER);\ngrabberLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log grabber events\n * @type {Object}\n */\nexport const rendererLogger = log.getLogger(Constants.Logger.RENDERER);\nrendererLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log recognizer events\n * @type {Object}\n */\nexport const recognizerLogger = log.getLogger(Constants.Logger.RECOGNIZER);\nrecognizerLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log callback events\n * @type {Object}\n */\nexport const callbackLogger = log.getLogger(Constants.Logger.CALLBACK);\ncallbackLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log util events\n * @type {Object}\n */\nexport const utilLogger = log.getLogger(Constants.Logger.UTIL);\nutilLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log tests events\n * @type {Object}\n */\nexport const testLogger = log.getLogger('test');\ntestLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n","/*\n* loglevel - https://github.com/pimterry/loglevel\n*\n* Copyright (c) 2013 Tim Perry\n* Licensed under the MIT license.\n*/\n(function (root, definition) {\n \"use strict\";\n if (typeof define === 'function' && define.amd) {\n define(definition);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = definition();\n } else {\n root.log = definition();\n }\n}(this, function () {\n \"use strict\";\n\n // Slightly dubious tricks to cut down minimized file size\n var noop = function() {};\n var undefinedType = \"undefined\";\n\n var logMethods = [\n \"trace\",\n \"debug\",\n \"info\",\n \"warn\",\n \"error\"\n ];\n\n // Cross-browser bind equivalent that works at least back to IE6\n function bindMethod(obj, methodName) {\n var method = obj[methodName];\n if (typeof method.bind === 'function') {\n return method.bind(obj);\n } else {\n try {\n return Function.prototype.bind.call(method, obj);\n } catch (e) {\n // Missing bind shim or IE8 + Modernizr, fallback to wrapping\n return function() {\n return Function.prototype.apply.apply(method, [obj, arguments]);\n };\n }\n }\n }\n\n // Build the best logging method possible for this env\n // Wherever possible we want to bind, not wrap, to preserve stack traces\n function realMethod(methodName) {\n if (methodName === 'debug') {\n methodName = 'log';\n }\n\n if (typeof console === undefinedType) {\n return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives\n } else if (console[methodName] !== undefined) {\n return bindMethod(console, methodName);\n } else if (console.log !== undefined) {\n return bindMethod(console, 'log');\n } else {\n return noop;\n }\n }\n\n // These private functions always need `this` to be set properly\n\n function replaceLoggingMethods(level, loggerName) {\n /*jshint validthis:true */\n for (var i = 0; i < logMethods.length; i++) {\n var methodName = logMethods[i];\n this[methodName] = (i < level) ?\n noop :\n this.methodFactory(methodName, level, loggerName);\n }\n\n // Define log.log as an alias for log.debug\n this.log = this.debug;\n }\n\n // In old IE versions, the console isn't present until you first open it.\n // We build realMethod() replacements here that regenerate logging methods\n function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {\n return function () {\n if (typeof console !== undefinedType) {\n replaceLoggingMethods.call(this, level, loggerName);\n this[methodName].apply(this, arguments);\n }\n };\n }\n\n // By default, we use closely bound real methods wherever possible, and\n // otherwise we wait for a console to appear, and then try again.\n function defaultMethodFactory(methodName, level, loggerName) {\n /*jshint validthis:true */\n return realMethod(methodName) ||\n enableLoggingWhenConsoleArrives.apply(this, arguments);\n }\n\n function Logger(name, defaultLevel, factory) {\n var self = this;\n var currentLevel;\n var storageKey = \"loglevel\";\n if (name) {\n storageKey += \":\" + name;\n }\n\n function persistLevelIfPossible(levelNum) {\n var levelName = (logMethods[levelNum] || 'silent').toUpperCase();\n\n if (typeof window === undefinedType) return;\n\n // Use localStorage if available\n try {\n window.localStorage[storageKey] = levelName;\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=\" + levelName + \";\";\n } catch (ignore) {}\n }\n\n function getPersistedLevel() {\n var storedLevel;\n\n if (typeof window === undefinedType) return;\n\n try {\n storedLevel = window.localStorage[storageKey];\n } catch (ignore) {}\n\n // Fallback to cookies if local storage gives us nothing\n if (typeof storedLevel === undefinedType) {\n try {\n var cookie = window.document.cookie;\n var location = cookie.indexOf(\n encodeURIComponent(storageKey) + \"=\");\n if (location !== -1) {\n storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];\n }\n } catch (ignore) {}\n }\n\n // If the stored level is not valid, treat it as if nothing was stored.\n if (self.levels[storedLevel] === undefined) {\n storedLevel = undefined;\n }\n\n return storedLevel;\n }\n\n /*\n *\n * Public logger API - see https://github.com/pimterry/loglevel for details\n *\n */\n\n self.name = name;\n\n self.levels = { \"TRACE\": 0, \"DEBUG\": 1, \"INFO\": 2, \"WARN\": 3,\n \"ERROR\": 4, \"SILENT\": 5};\n\n self.methodFactory = factory || defaultMethodFactory;\n\n self.getLevel = function () {\n return currentLevel;\n };\n\n self.setLevel = function (level, persist) {\n if (typeof level === \"string\" && self.levels[level.toUpperCase()] !== undefined) {\n level = self.levels[level.toUpperCase()];\n }\n if (typeof level === \"number\" && level >= 0 && level <= self.levels.SILENT) {\n currentLevel = level;\n if (persist !== false) { // defaults to true\n persistLevelIfPossible(level);\n }\n replaceLoggingMethods.call(self, level, name);\n if (typeof console === undefinedType && level < self.levels.SILENT) {\n return \"No console available for logging\";\n }\n } else {\n throw \"log.setLevel() called with invalid level: \" + level;\n }\n };\n\n self.setDefaultLevel = function (level) {\n if (!getPersistedLevel()) {\n self.setLevel(level, false);\n }\n };\n\n self.enableAll = function(persist) {\n self.setLevel(self.levels.TRACE, persist);\n };\n\n self.disableAll = function(persist) {\n self.setLevel(self.levels.SILENT, persist);\n };\n\n // Initialize with the right level\n var initialLevel = getPersistedLevel();\n if (initialLevel == null) {\n initialLevel = defaultLevel == null ? \"WARN\" : defaultLevel;\n }\n self.setLevel(initialLevel, false);\n }\n\n /*\n *\n * Top-level API\n *\n */\n\n var defaultLogger = new Logger();\n\n var _loggersByName = {};\n defaultLogger.getLogger = function getLogger(name) {\n if (typeof name !== \"string\" || name === \"\") {\n throw new TypeError(\"You must supply a name when creating a logger.\");\n }\n\n var logger = _loggersByName[name];\n if (!logger) {\n logger = _loggersByName[name] = new Logger(\n name, defaultLogger.getLevel(), defaultLogger.methodFactory);\n }\n return logger;\n };\n\n // Grab the current global log variable in case of overwrite\n var _log = (typeof window !== undefinedType) ? window.log : undefined;\n defaultLogger.noConflict = function() {\n if (typeof window !== undefinedType &&\n window.log === defaultLogger) {\n window.log = _log;\n }\n\n return defaultLogger;\n };\n\n defaultLogger.getLoggers = function getLoggers() {\n return _loggersByName;\n };\n\n return defaultLogger;\n}));\n","/*!\n * is-primitive \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n// see http://jsperf.com/testing-value-is-primitive/7\nmodule.exports = function isPrimitive(value) {\n return value == null || (typeof value !== 'function' && typeof value !== 'object');\n};\n","/*!\n * assign-symbols \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function(receiver, objects) {\n if (receiver === null || typeof receiver === 'undefined') {\n throw new TypeError('expected first argument to be an object.');\n }\n\n if (typeof objects === 'undefined' || typeof Symbol === 'undefined') {\n return receiver;\n }\n\n if (typeof Object.getOwnPropertySymbols !== 'function') {\n return receiver;\n }\n\n var isEnumerable = Object.prototype.propertyIsEnumerable;\n var target = Object(receiver);\n var len = arguments.length, i = 0;\n\n while (++i < len) {\n var provider = Object(arguments[i]);\n var names = Object.getOwnPropertySymbols(provider);\n\n for (var j = 0; j < names.length; j++) {\n var key = names[j];\n\n if (isEnumerable.call(provider, key)) {\n target[key] = provider[key];\n }\n }\n }\n return target;\n};\n","var toString = Object.prototype.toString;\n\n/**\n * Get the native `typeof` a value.\n *\n * @param {*} `val`\n * @return {*} Native javascript type\n */\n\nmodule.exports = function kindOf(val) {\n var type = typeof val;\n\n // primitivies\n if (type === 'undefined') {\n return 'undefined';\n }\n if (val === null) {\n return 'null';\n }\n if (val === true || val === false || val instanceof Boolean) {\n return 'boolean';\n }\n if (type === 'string' || val instanceof String) {\n return 'string';\n }\n if (type === 'number' || val instanceof Number) {\n return 'number';\n }\n\n // functions\n if (type === 'function' || val instanceof Function) {\n if (typeof val.constructor.name !== 'undefined' && val.constructor.name.slice(0, 9) === 'Generator') {\n return 'generatorfunction';\n }\n return 'function';\n }\n\n // array\n if (typeof Array.isArray !== 'undefined' && Array.isArray(val)) {\n return 'array';\n }\n\n // check for instances of RegExp and Date before calling `toString`\n if (val instanceof RegExp) {\n return 'regexp';\n }\n if (val instanceof Date) {\n return 'date';\n }\n\n // other objects\n type = toString.call(val);\n\n if (type === '[object RegExp]') {\n return 'regexp';\n }\n if (type === '[object Date]') {\n return 'date';\n }\n if (type === '[object Arguments]') {\n return 'arguments';\n }\n if (type === '[object Error]') {\n return 'error';\n }\n if (type === '[object Promise]') {\n return 'promise';\n }\n\n // buffer\n if (isBuffer(val)) {\n return 'buffer';\n }\n\n // es6: Map, WeakMap, Set, WeakSet\n if (type === '[object Set]') {\n return 'set';\n }\n if (type === '[object WeakSet]') {\n return 'weakset';\n }\n if (type === '[object Map]') {\n return 'map';\n }\n if (type === '[object WeakMap]') {\n return 'weakmap';\n }\n if (type === '[object Symbol]') {\n return 'symbol';\n }\n \n if (type === '[object Map Iterator]') {\n return 'mapiterator';\n }\n if (type === '[object Set Iterator]') {\n return 'setiterator';\n }\n if (type === '[object String Iterator]') {\n return 'stringiterator';\n }\n if (type === '[object Array Iterator]') {\n return 'arrayiterator';\n }\n \n // typed arrays\n if (type === '[object Int8Array]') {\n return 'int8array';\n }\n if (type === '[object Uint8Array]') {\n return 'uint8array';\n }\n if (type === '[object Uint8ClampedArray]') {\n return 'uint8clampedarray';\n }\n if (type === '[object Int16Array]') {\n return 'int16array';\n }\n if (type === '[object Uint16Array]') {\n return 'uint16array';\n }\n if (type === '[object Int32Array]') {\n return 'int32array';\n }\n if (type === '[object Uint32Array]') {\n return 'uint32array';\n }\n if (type === '[object Float32Array]') {\n return 'float32array';\n }\n if (type === '[object Float64Array]') {\n return 'float64array';\n }\n\n // must be a plain object\n return 'object';\n};\n\n/**\n * If you need to support Safari 5-7 (8-10 yr-old browser),\n * take a look at https://github.com/feross/is-buffer\n */\n\nfunction isBuffer(val) {\n return val.constructor\n && typeof val.constructor.isBuffer === 'function'\n && val.constructor.isBuffer(val);\n}\n","/*!\n * assign-deep \n *\n * Copyright (c) 2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nvar isPrimitive = require('is-primitive');\nvar assignSymbols = require('assign-symbols');\nvar typeOf = require('kind-of');\n\nfunction assign(target/*, objects*/) {\n target = target || {};\n var len = arguments.length, i = 0;\n if (len === 1) {\n return target;\n }\n while (++i < len) {\n var val = arguments[i];\n if (isPrimitive(target)) {\n target = val;\n }\n if (isObject(val)) {\n extend(target, val);\n }\n }\n return target;\n}\n\n/**\n * Shallow extend\n */\n\nfunction extend(target, obj) {\n assignSymbols(target, obj);\n\n for (var key in obj) {\n if (key !== '__proto__' && hasOwn(obj, key)) {\n var val = obj[key];\n if (isObject(val)) {\n if (typeOf(target[key]) === 'undefined' && typeOf(val) === 'function') {\n target[key] = val;\n }\n target[key] = assign(target[key] || {}, val);\n } else {\n target[key] = val;\n }\n }\n }\n return target;\n}\n\n/**\n * Returns true if the object is a plain object or a function.\n */\n\nfunction isObject(obj) {\n return typeOf(obj) === 'object' || typeOf(obj) === 'function';\n}\n\n/**\n * Returns true if the given `key` is an own property of `obj`.\n */\n\nfunction hasOwn(obj, key) {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\n/**\n * Expose `assign`\n */\n\nmodule.exports = assign;\n","import assign from 'assign-deep';\nimport { editorLogger as logger } from './LoggerConfig';\n\n\n/**\n * Default configuration\n * @type {Configuration}\n * See https://developer.myscript.com/docs/interactive-ink/latest/reference/web/configuration/ for a full documentation of parameters.\n */\nconst defaultConfiguration = {\n recognitionParams: {\n type: 'TEXT',\n protocol: 'WEBSOCKET',\n apiVersion: 'V4',\n server: {\n scheme: 'https',\n host: 'cloud.myscript.com',\n applicationKey: undefined,\n hmacKey: undefined,\n useWindowLocation: false,\n websocket: {\n pingEnabled: true,\n pingDelay: 30000,\n maxPingLostCount: 10,\n autoReconnect: true,\n maxRetryCount: 2,\n fileChunkSize: 300000\n }\n },\n v4: {\n alwaysConnected: false,\n lang: 'en_US',\n export: {\n 'image-resolution': 300,\n jiix: {\n 'bounding-box': false,\n strokes: false,\n text: {\n chars: false,\n words: true\n }\n }\n },\n renderer: {\n debug: {\n 'draw-text-boxes': false,\n 'draw-image-boxes': false\n }\n },\n math: {\n mimeTypes: ['application/x-latex', 'application/mathml+xml'],\n solver: {\n enable: true,\n 'fractional-part-digits': 3,\n 'decimal-separator': '.',\n 'rounding-mode': 'half up',\n 'angle-unit': 'deg'\n },\n margin: {\n bottom: 10,\n left: 15,\n right: 15,\n top: 10\n }\n },\n text: {\n guides: {\n enable: true\n },\n smartGuide: true,\n smartGuideFadeOut: {\n enable: false,\n duration: 10000\n },\n mimeTypes: ['text/plain', 'application/vnd.myscript.jiix'],\n margin: {\n top: 20,\n left: 10,\n right: 10\n }\n },\n diagram: {\n mimeTypes: ['application/vnd.myscript.jiix'],\n margin: {\n bottom: 10,\n left: 15,\n right: 15,\n top: 10\n }\n },\n 'raw-content': {\n recognition: {\n text: false,\n shape: false\n }\n }\n },\n v3: {\n mathParameter: {\n resultTypes: ['LATEX', 'MATHML'],\n columnarOperation: false,\n userResources: [],\n scratchOutDetectionSensitivity: 1,\n },\n textParameter: {\n language: 'en_US',\n textInputMode: 'CURSIVE',\n resultDetail: 'TEXT',\n contentTypes: [],\n subsetKnowledges: [],\n userLkWords: [],\n userResources: [],\n textProperties: {\n textCandidateListSize: 1,\n wordCandidateListSize: undefined,\n wordPredictionListSize: 0,\n wordCompletionListSize: 0,\n characterCandidateListSize: undefined,\n enableOutOfLexicon: false,\n discardCaseVariations: false,\n discardAccentuationVariations: false,\n glyphDistortion: undefined,\n enableTagger: false,\n spellingDistortion: undefined\n }\n },\n shapeParameter: {\n userResources: undefined,\n rejectDetectionSensitivity: 1,\n doBeautification: true\n },\n musicParameter: {\n divisions: 480,\n resultTypes: ['MUSICXML', 'SCORETREE'],\n userResources: [],\n staff: {\n top: 100,\n count: 5,\n gap: 20\n },\n clef: {\n symbol: 'G',\n octave: 0,\n line: 2\n },\n scratchOutDetectionSensitivity: 1\n },\n analyzerParameter: {\n textParameter: {\n textProperties: {},\n language: 'en_US',\n textInputMode: 'CURSIVE'\n },\n coordinateResolution: undefined\n }\n }\n },\n // @see generated documentation on top\n listenerOptions: {\n capture: false,\n passive: true\n },\n undoRedoMaxStackSize: 20,\n xyFloatPrecision: 0,\n timestampFloatPrecision: 0,\n triggerDelay: 2000,\n processDelay: 0,\n resizeTriggerDelay: 200,\n // Configure when the action is triggered.\n // POINTER_UP : Action is triggered on every PenUP. This is the recommended mode for CDK V3 WebSocket recognitions.\n // QUIET_PERIOD : Action is triggered after a quiet period in milli-seconds on every pointer up. I value is set to 2000 for example the recognition will be fired when user stop writing 2 seconds. This is the recommended mode for all REST recognitions.\n triggers: {\n exportContent: 'POINTER_UP',\n addStrokes: 'POINTER_UP'\n },\n restConversionState: '',\n renderingParams: {\n stroker: 'quadratic',\n minHeight: 100,\n minWidth: 100\n }\n};\n\n/**\n * Generate parameters\n * @param {Configuration} configuration Configuration to be used\n * @return {Configuration} Overridden configuration\n */\nexport function overrideDefaultConfiguration(configuration) {\n const confRef = configuration;\n let currentConfiguration;\n if (confRef && confRef.recognitionParams.server && confRef.recognitionParams.server.useWindowLocation) {\n confRef.recognitionParams.server.scheme = window.location.protocol.slice(0, -1);\n confRef.recognitionParams.server.host = window.location.host;\n currentConfiguration = assign({}, defaultConfiguration, confRef === undefined ? {} : confRef);\n } else {\n currentConfiguration = assign({}, defaultConfiguration, configuration === undefined ? {} : configuration);\n }\n logger.debug('Override default configuration', currentConfiguration);\n return currentConfiguration;\n}\n\nexport default defaultConfiguration;\n","!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define([],e):\"object\"==typeof exports?exports.JsonCSS=e():t.JsonCSS=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,\"a\",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"\",e(e.s=1)}([function(t,e,n){\"use strict\";function o(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}Object.defineProperty(e,\"__esModule\",{value:!0});var r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i=function t(e){var n=this;o(this,t),this.toJSON=function(t){if(\"string\"!=typeof t)return console.error(\"Need a CSS string but given \",void 0===t?\"undefined\":r(t),t),\"Not a valid CSS..!\";var e={},o=void 0,i=void 0,u=void 0;try{t.split(\"{\").forEach(function(t){if(i=t.trim())if(-1===i.indexOf(\"}\"))e[i]={},o=i;else{i.substring(0,i.indexOf(\"}\")).split(\";\").forEach(function(t){(u=t.split(\":\"))&&2===u.length&&(e[o][u[0].trim().replace(/^\\\"|\\\"$/g,\"\")]=n._trimSemiColon(u[1].trim().replace(/^\\\"|\\\"$/g,\"\")))});try{o=i.split(\"}\")[1].trim(),o&&(e[o]={})}catch(t){}}})}catch(t){return\"Not a valid CSS..!\"}return e},this.toCSS=function(t){if(\"object\"!==(void 0===t?\"undefined\":r(t)))return console.error(\"Need a JSON object but given \",void 0===t?\"undefined\":r(t),t),\"Not a valid JSON..!\";var e=\"\";try{for(var n in t)if(t.hasOwnProperty(n)){e+=n+\" {\\n\";for(var o in t[n])t[n].hasOwnProperty(o)&&(e+=o+\": \"+t[n][o]+\";\\n\");e+=\"}\\n\"}}catch(t){return\"Not a valid JSON..!\"}return e},this._trimSemiColon=function(t){return\";\"===t.slice(-1)?t.slice(0,n.length-1):t}};e.default=i},function(t,e,n){\"use strict\";t.exports=n(0).default}])});","import JsonCSS from 'json-css';\nimport assign from 'assign-deep';\nimport { editorLogger as logger } from './LoggerConfig';\n\n/**\n * @typedef {Object} PenStyle\n * @property {String} color=#000000 Color (supported formats rgb() rgba() hsl() hsla() #rgb #rgba #rrggbb #rrggbbaa)\n * @property {String} -myscript-pen-width=1 Width of strokes and primitives in mm (no other unit is supported yet)\n * @property {String} -myscript-pen-fill-style=none\n * @property {String} -myscript-pen-fill-color=#FFFFFF00 Color filled inside the area delimited by strokes and primitives\n */\n\n/**\n * Default style\n * @type {PenStyle}\n */\nconst defaultPenStyle = undefined;\nconst parser = new JsonCSS();\n\n/**\n * Generate style\n * @param {PenStyle} style Custom style to be applied\n * @return {PenStyle} Overridden style\n */\nexport function overrideDefaultPenStyle(style) {\n const currentStyle = assign({}, defaultPenStyle, style === undefined ? {} : style);\n logger.debug('Override default pen style', currentStyle);\n return currentStyle;\n}\n\nexport function toCSS(penStyle) { // FIXME Ugly hack to parse JSON to CSS inline\n const css = parser.toCSS({ css: penStyle });\n return css.substring(6, css.length - 3);\n}\n\nexport function toJSON(penStyle) { // FIXME Ugly hack to parse CSS inline to JSON\n return parser.toJSON(`css {${penStyle}}`).css;\n}\n\nexport default defaultPenStyle;\n","import JsonCSS from 'json-css';\nimport assign from 'assign-deep';\nimport { editorLogger as logger } from './LoggerConfig';\n\n/**\n * @typedef {PenStyle} InkTheme\n */\n/**\n * @typedef {Object} MathTheme\n * @property {String} font-family=STIXGeneral Font-family to be used\n */\n/**\n * @typedef {Object} GeneratedTheme\n * @property {String} font-family=STIXGeneral Font-family to be used\n * @property {String} color=#A8A8A8FF Color to be used\n */\n/**\n * @typedef {Object} TextTheme\n * @property {String} font-family=OpenSans Font-family to be used\n * @property {Number} font-size=10 Font-size to be used\n */\n/**\n * @typedef {Object} Theme\n * @property {InkTheme} ink General settings\n * @property {MathTheme} .math Math theme\n * @property {GeneratedTheme} .math-solver Theme to be used for generated items\n * @property {TextTheme} .text Text theme\n */\n\n/**\n * Default theme\n * @type {Theme}\n */\nconst defaultTheme = {\n ink: {\n color: '#000000',\n '-myscript-pen-width': 1,\n '-myscript-pen-fill-style': 'none',\n '-myscript-pen-fill-color': '#FFFFFF00'\n },\n '.math': {\n 'font-family': 'STIXGeneral'\n },\n '.math-solved': {\n 'font-family': 'STIXGeneral',\n color: '#A8A8A8FF'\n },\n '.text': {\n 'font-family': 'Open Sans',\n 'font-size': 10\n }\n};\nconst parser = new JsonCSS();\n\n/**\n * Generate theme\n * @param {Theme} theme Custom theme to be applied\n * @return {Theme} Overridden theme\n */\nexport function overrideDefaultTheme(theme) {\n const currentTheme = assign({}, defaultTheme, theme === undefined ? {} : theme);\n logger.debug('Override default theme', currentTheme);\n return currentTheme;\n}\n\nexport function toCSS(theme) {\n return parser.toCSS(theme);\n}\n\nexport function toJSON(theme) {\n return parser.toJSON(theme);\n}\n\nexport default defaultTheme;\n","import { grabberLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Grab pointerDown, pointerMove and pointerUp events\n * @typedef {Object} Grabber\n * @property {function(element: Element, editor: Editor): GrabberContext} attach Attach events and decide when to call editor pointerDown/Move/Up methods\n * @property {function(element: Element, context: GrabberContext)} detach Detach the grabber\n */\n\n/**\n * Grabber listener\n * @typedef {Object} GrabberListener\n * @property {Array} types Event types to listen\n * @property {function(event: Event)} listener Event listener for these events\n */\n\n/**\n * Grabber context\n * @typedef {Object} GrabberContext\n * @property {Boolean|Object} options Options object that specifies characteristics about the event listener. (@see addEventListener.options for detail)\n * @property {Array} listeners Registered listeners\n */\n\nconst floatPrecisionArray = [1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000];\n\nfunction roundFloat(oneFloat, requestedFloatPrecision) {\n if (requestedFloatPrecision || requestedFloatPrecision === 0) {\n let floatPrecision;\n if (requestedFloatPrecision > 10) {\n floatPrecision = floatPrecisionArray[10];\n } else {\n floatPrecision = floatPrecisionArray[requestedFloatPrecision];\n }\n return Math.round(oneFloat * floatPrecision) / floatPrecision;\n }\n return oneFloat;\n}\n\nfunction extractPoint(event, domElement, configuration, offsetTop = 0, offsetLeft = 0) {\n let eventRef = event;\n if (eventRef.changedTouches) {\n eventRef = eventRef.changedTouches[0];\n }\n const rect = domElement.getBoundingClientRect();\n return {\n x: roundFloat(eventRef.clientX - rect.left - domElement.clientLeft - offsetLeft, configuration.xyFloatPrecision),\n y: roundFloat(eventRef.clientY - rect.top - domElement.clientTop - offsetTop, configuration.xyFloatPrecision),\n t: roundFloat(Date.now(), configuration.timestampFloatPrecision)\n };\n}\n\n/**\n * Listen for the desired events\n * @param {Element} element DOM element to attach events listeners\n * @param {Editor} editor Editor to received down/move/up events\n * @param {Number} [offsetTop=0]\n * @param {Number} [offsetLeft=0]\n * @return {GrabberContext} Grabber context\n * @listens {Event} pointermove: a pointer moves, similar to touchmove or mousemove.\n * @listens {Event} pointerdown: a pointer is activated, or a device button held.\n * @listens {Event} pointerup: a pointer is deactivated, or a device button released.\n * @listens {Event} pointerover: a pointer has moved onto an element.\n * @listens {Event} pointerout: a pointer is no longer on an element it once was.\n * @listens {Event} pointerenter: a pointer enters the bounding box of an element.\n * @listens {Event} pointerleave: a pointer leaves the bounding box of an element.\n * @listens {Event} pointercancel: a pointer will no longer generate events.\n */\nexport function attach(element, editor, offsetTop = 0, offsetLeft = 0) {\n let mMaxDiffX = 0;\n\n function unfocus() {\n if (window.getSelection().type !== 'None') {\n window.getSelection().removeAllRanges();\n }\n }\n\n function hideMenu(evt) {\n const moreMenuInDocument = document.querySelector('.more-menu');\n if (!evt.target.classList.contains('ellipsis') && !evt.target.classList.contains('more-menu') && !evt.target.classList.contains('options-label-button') && moreMenuInDocument && moreMenuInDocument.style.display !== 'none') {\n moreMenuInDocument.style.display = 'none';\n return true;\n }\n return false;\n }\n\n function hideCandidates(evt) {\n const candidatesInDocument = document.querySelector('.candidates');\n if (!evt.target.classList.contains('candidates') && !(evt.target.tagName === 'SPAN') && candidatesInDocument && candidatesInDocument.style.display !== 'none') {\n candidatesInDocument.style.display = 'none';\n return true;\n }\n return false;\n }\n\n function pointerDownHandler(evt) { // Trigger a pointerDown\n const pointerDownOnEditor = evt.target.id === editor.domElement.id || evt.target.classList.contains('ms-canvas');\n if (this.activePointerId !== undefined) {\n if (this.activePointerId === evt.pointerId) {\n logger.trace(`${evt.type} event with the same id without any pointer up`, evt.pointerId);\n }\n } else if ((evt.button !== 2) && (evt.buttons !== 2) && pointerDownOnEditor) { // Ignore right click\n if (!hideMenu(evt) && !hideCandidates(evt)) {\n this.activePointerId = evt.pointerId;\n // Hack for iOS 9 Safari : pointerId has to be int so -1 if > max value\n const pointerId = evt.pointerId > 2147483647 ? -1 : evt.pointerId;\n unfocus();\n evt.stopPropagation();\n editor.pointerDown(extractPoint(evt, element, editor.configuration, offsetTop, offsetLeft), evt.pointerType, pointerId);\n }\n } else if (evt.target.classList.contains('ellipsis') || evt.target.classList.contains('tag-icon')) {\n hideMenu(evt);\n hideCandidates(evt);\n } else { // FIXME add more complete verification to pointer down on smartguide\n hideMenu(evt);\n hideCandidates(evt);\n this.smartGuidePointerDown = true;\n this.downSmartGuidePoint = extractPoint(evt, element, editor.configuration);\n }\n }\n\n function pointerMoveHandler(evt) { // Trigger a pointerMove\n // Only considering the active pointer\n if (this.activePointerId !== undefined && this.activePointerId === evt.pointerId) {\n unfocus();\n editor.pointerMove(extractPoint(evt, element, editor.configuration, offsetTop, offsetLeft));\n } else if (this.smartGuidePointerDown) {\n const point = extractPoint(evt, element, editor.configuration, offsetTop, offsetLeft);\n const diffX = Math.abs(this.downSmartGuidePoint.x - point.x);\n const diffY = Math.abs(this.downSmartGuidePoint.y - point.y);\n mMaxDiffX = Math.max(diffX, mMaxDiffX);\n const cond1 = diffX < 5 && diffY > 5 && mMaxDiffX < 15;\n const cond2 = diffX > 5 && diffY > 5 && mMaxDiffX < 15;\n if (cond1 || cond2) {\n this.activePointerId = evt.pointerId;\n // Hack for iOS 9 Safari : pointerId has to be int so -1 if > max value\n const pointerId = evt.pointerId > 2147483647 ? -1 : evt.pointerId;\n unfocus();\n editor.pointerDown(this.downSmartGuidePoint, evt.pointerType, pointerId);\n }\n } else {\n logger.trace(`${evt.type} event from another pointerid (${evt.pointerId})`, this.activePointerId);\n }\n }\n\n function pointerUpHandler(evt) { // Trigger a pointerUp\n mMaxDiffX = 0;\n this.smartGuidePointerDown = false;\n const smartGuideIds = ['smartguide', 'prompter-text-container', 'prompter-text', 'tag-icon', 'ellipsis'];\n const scrollbarClasses = ['ps__rail-x', 'ps__thumb-x'];\n // Check if pointer entered into any smartguide elements or scrollbar\n const pointerEnteredSmartGuide = evt.relatedTarget && (smartGuideIds.includes(evt.relatedTarget.className) || scrollbarClasses.includes(evt.relatedTarget.className));\n // Check if pointer didn't stay in the smartguide and pointer exited the smartguide or scrollbar\n const pointerExitedSmartGuide = evt.relatedTarget && evt.target && (smartGuideIds.includes(evt.target.className) || scrollbarClasses.includes(evt.target.className));\n // Check if pointer moved between words in smartguide\n const pointerMovedWords = evt.relatedTarget && evt.target && (evt.target.tagName === 'SPAN' || evt.relatedTarget.tagName === 'SPAN');\n if (pointerEnteredSmartGuide || pointerExitedSmartGuide || pointerMovedWords) {\n evt.stopPropagation();\n } else if (this.activePointerId !== undefined && this.activePointerId === evt.pointerId) { // Only considering the active pointer\n this.activePointerId = undefined; // Managing the active pointer\n evt.stopPropagation();\n editor.pointerUp(extractPoint(evt, element, editor.configuration, offsetTop, offsetLeft));\n } else {\n logger.trace(`${evt.type} event from another pointerid (${evt.pointerId})`, this.activePointerId);\n }\n }\n\n const context = {\n options: editor.configuration.listenerOptions,\n listeners: [{\n types: ['pointerdown'],\n listener: pointerDownHandler\n }, {\n types: ['pointermove'],\n listener: pointerMoveHandler\n }, {\n types: ['pointerup', 'pointerout', 'pointerleave', 'pointercancel'],\n listener: pointerUpHandler\n }]\n };\n\n logger.debug('attaching listeners', context);\n context.listeners.forEach((item) => {\n item.types.forEach(type => element.addEventListener(type, item.listener, context.options));\n });\n return context;\n}\n\nexport function detach(element, context) {\n logger.debug('detaching listeners', context);\n context.listeners.forEach((item) => {\n item.types.forEach(type => element.removeEventListener(type, item.listener, context.options));\n });\n}\n","/**\n * Draw a stroke symbol\n * @param {Object} context Current rendering context\n * @param {Stroke} stroke Stroke to be drawn\n * @param {Stroker} stroker Stroker to use to render a stroke\n */\nexport function drawStroke(context, stroke, stroker) {\n if (stroker) {\n stroker.drawStroke(context, stroke);\n }\n}\n","import { rendererLogger as logger } from '../../../configuration/LoggerConfig';\n\n/**\n * @type {{table: String, shape: String, recognizedShape: String, ellipse: String, line: String}}\n */\nexport const ShapeSymbols = {\n table: 'table',\n shape: 'shape',\n recognizedShape: 'recognizedShape',\n ellipse: 'ellipse',\n line: 'line'\n};\n\nfunction phi(angle) {\n let returnedAngle = ((angle + Math.PI) % (Math.PI * 2)) - Math.PI;\n if (returnedAngle < -Math.PI) {\n returnedAngle += Math.PI * 2;\n }\n return returnedAngle;\n}\n\nfunction drawEllipseArc(context, centerPoint, maxRadius, minRadius, orientation, startAngle, sweepAngle) {\n const angleStep = 0.02; // angle delta between interpolated\n\n let z1 = Math.cos(orientation);\n let z3 = Math.sin(orientation);\n let z2 = z1;\n let z4 = z3;\n z1 *= maxRadius;\n z2 *= minRadius;\n z3 *= maxRadius;\n z4 *= minRadius;\n\n const n = Math.floor(Math.abs(sweepAngle) / angleStep);\n\n const boundariesPoints = [];\n\n context.save();\n try {\n context.beginPath();\n\n for (let i = 0; i <= n; i++) {\n const angle = startAngle + ((i / n) * sweepAngle); // points on the arc, in radian\n const alpha = Math.atan2(Math.sin(angle) / minRadius, Math.cos(angle) / maxRadius);\n\n const cosAlpha = Math.cos(alpha);\n const sinAlpha = Math.sin(alpha);\n\n // current point\n const x = (centerPoint.x + (z1 * cosAlpha)) - (z4 * sinAlpha);\n const y = (centerPoint.y + (z2 * sinAlpha)) + (z3 * cosAlpha);\n if (i === 0) {\n context.moveTo(x, y);\n } else {\n context.lineTo(x, y);\n }\n\n if (i === 0 || i === n) {\n boundariesPoints.push({ x, y });\n }\n }\n\n context.stroke();\n } finally {\n context.restore();\n }\n\n return boundariesPoints;\n}\n\nfunction drawArrowHead(context, headPoint, angle, length) {\n const alpha = phi(angle + (Math.PI * (7 / 8)));\n const beta = phi(angle - (Math.PI * (7 / 8)));\n\n const contextReference = context;\n contextReference.save();\n try {\n contextReference.fillStyle = contextReference.strokeStyle;\n\n contextReference.moveTo(headPoint.x, headPoint.y);\n contextReference.beginPath();\n contextReference.lineTo(headPoint.x + (length * Math.cos(alpha)), headPoint.y + (length * Math.sin(alpha)));\n contextReference.lineTo(headPoint.x + (length * Math.cos(beta)), headPoint.y + (length * Math.sin(beta)));\n contextReference.lineTo(headPoint.x, headPoint.y);\n contextReference.fill();\n } finally {\n contextReference.restore();\n }\n}\n\nfunction drawShapeEllipse(context, shapeEllipse) {\n const points = drawEllipseArc(\n context,\n shapeEllipse.center,\n shapeEllipse.maxRadius,\n shapeEllipse.minRadius,\n shapeEllipse.orientation,\n shapeEllipse.startAngle,\n shapeEllipse.sweepAngle);\n\n if (shapeEllipse.beginDecoration && shapeEllipse.beginDecoration === 'ARROW_HEAD') {\n drawArrowHead(context, points[0], shapeEllipse.beginTangentAngle, 12.0);\n }\n if (shapeEllipse.endDecoration && shapeEllipse.endDecoration === 'ARROW_HEAD') {\n drawArrowHead(context, points[1], shapeEllipse.endTangentAngle, 12.0);\n }\n}\n\n/**\n * Draw a line\n * @param {Object} context Current rendering context\n * @param {{x: Number, y: Number}} p1 Origin point\n * @param {{x: Number, y: Number}} p2 Destination point\n */\nexport function drawLine(context, p1, p2) {\n context.save();\n try {\n context.beginPath();\n context.moveTo(p1.x, p1.y);\n context.lineTo(p2.x, p2.y);\n context.stroke();\n } finally {\n context.restore();\n }\n}\n\nfunction drawShapeLine(context, shapeLine) {\n drawLine(context, shapeLine.firstPoint, shapeLine.lastPoint);\n if (shapeLine.beginDecoration === 'ARROW_HEAD') {\n drawArrowHead(context, shapeLine.firstPoint, shapeLine.beginTangentAngle, 12.0);\n }\n if (shapeLine.endDecoration === 'ARROW_HEAD') {\n drawArrowHead(context, shapeLine.lastPoint, shapeLine.endTangentAngle, 12.0);\n }\n}\n\n/**\n * Draw a shape symbol\n * @param {Object} context Current rendering context\n * @param {Object} symbol Symbol to draw\n */\nexport function drawShapeSymbol(context, symbol) {\n logger.debug(`draw ${symbol.type} symbol`);\n const contextReference = context;\n contextReference.save();\n try {\n contextReference.lineWidth = symbol.width;\n contextReference.strokeStyle = symbol.color;\n\n if (symbol.elementType) {\n switch (symbol.elementType) {\n case ShapeSymbols.shape:\n drawShapeSymbol(contextReference, symbol.candidates[symbol.selectedCandidateIndex]);\n break;\n case ShapeSymbols.table:\n symbol.lines.forEach(line => drawShapeSymbol(contextReference, line));\n break;\n case ShapeSymbols.line:\n drawLine(contextReference, symbol.data.p1, symbol.data.p2);\n break;\n default:\n logger.error(`${symbol.elementType} not implemented`);\n break;\n }\n } else {\n switch (symbol.type) {\n case ShapeSymbols.ellipse:\n drawShapeEllipse(contextReference, symbol);\n break;\n case ShapeSymbols.line:\n drawShapeLine(contextReference, symbol);\n break;\n case ShapeSymbols.recognizedShape:\n symbol.primitives.forEach(primitive => drawShapeSymbol(contextReference, primitive));\n break;\n default:\n logger.error(`${symbol.type} not implemented`);\n break;\n }\n }\n } finally {\n contextReference.restore();\n }\n}\n","import { rendererLogger as logger } from '../../../configuration/LoggerConfig';\nimport { drawLine } from './ShapeSymbolCanvasRenderer';\n\n/**\n * @type {{inputCharacter: String, char: String, string: String, textLine: String}}\n */\nexport const TextSymbols = {\n inputCharacter: 'inputCharacter',\n char: 'char',\n string: 'string',\n textLine: 'textLine'\n};\n\nfunction drawUnderline(context, underline, label, data) {\n const delta = data.width / label.length;\n const p1 = {\n x: data.topLeftPoint.x + (underline.data.firstCharacter * delta),\n y: data.topLeftPoint.y + data.height\n };\n const p2 = {\n x: data.topLeftPoint.x + (underline.data.lastCharacter * delta),\n y: data.topLeftPoint.y + data.height\n };\n drawLine(context, p1, p2);\n}\n\nfunction drawText(context, label, data) {\n const contextReference = context;\n contextReference.save();\n try {\n contextReference.font = `${data.textHeight}px serif`;\n contextReference.textAlign = (data.justificationType === 'CENTER') ? 'center' : 'left';\n contextReference.textBaseline = 'bottom';\n contextReference.fillStyle = contextReference.strokeStyle;\n contextReference.fillText(label, data.topLeftPoint.x, (data.topLeftPoint.y + data.height));\n } finally {\n contextReference.restore();\n }\n}\n\nfunction drawTextLine(context, textLine) {\n drawText(context, textLine.label, textLine.data);\n textLine.underlineList.forEach((underline) => {\n drawUnderline(context, underline, textLine.label, textLine.data);\n });\n}\n\n/**\n * Draw a text symbol\n * @param {Object} context Current rendering context\n * @param {Object} symbol Symbol to draw\n */\nexport function drawTextSymbol(context, symbol) {\n logger.debug(`draw ${symbol.type} symbol`);\n const contextReference = context;\n contextReference.save();\n try {\n contextReference.lineWidth = symbol.width;\n contextReference.strokeStyle = symbol.color;\n\n if (symbol.elementType) {\n switch (symbol.elementType) {\n case TextSymbols.textLine:\n drawTextLine(contextReference, symbol);\n break;\n default:\n logger.error(`${symbol.elementType} not implemented`);\n break;\n }\n } else {\n switch (symbol.type) {\n case TextSymbols.textLine:\n drawTextLine(contextReference, symbol);\n break;\n default:\n logger.error(`${symbol.type} not implemented`);\n }\n }\n } finally {\n contextReference.restore();\n }\n}\n","import { rendererLogger as logger } from '../../../configuration/LoggerConfig';\nimport { drawLine } from './ShapeSymbolCanvasRenderer';\n\n/**\n * @type {{F: {svg: String, getBoundingBox: function}, C: {svg: String, getBoundingBox: function}, G: {svg: String, getBoundingBox: function}}}\n */\nexport const MusicClefs = { // constants was calculated from the svg image, so it should remains together\n F: {\n svg: '',\n getBoundingBox: (gap, xAnchor, yAnchor) => ({\n height: gap * 3,\n width: (gap * 3) * (18 / 20),\n x: xAnchor,\n y: yAnchor - gap\n })\n },\n C: {\n svg: '',\n getBoundingBox: (gap, xAnchor, yAnchor) => ({\n height: gap * 3,\n width: (gap * 3) * (18 / 25),\n x: xAnchor,\n y: yAnchor - (gap * (3 / 2))\n })\n },\n G: {\n svg: '',\n getBoundingBox: (gap, xAnchor, yAnchor) => ({\n height: gap * (15 / 2),\n width: (gap * (15 / 2)) * (15 / 40),\n x: xAnchor,\n y: yAnchor - (gap * (9 / 2))\n })\n }\n};\n\n/**\n * @type {{accidental: String, arpeggiate: String, bar: String, beam: String, clef: String, decoration: String, dots: String, head: String, ledgerLine: String, rest: String, staff: String, stem: String, tieOrSlur: String, timeSignature: String}}\n */\nexport const MusicSymbols = {\n accidental: 'accidental',\n arpeggiate: 'arpeggiate',\n bar: 'bar',\n beam: 'beam',\n clef: 'clef',\n decoration: 'decoration',\n dots: 'dots',\n head: 'head',\n ledgerLine: 'ledgerLine',\n rest: 'rest',\n staff: 'staff',\n stem: 'stem',\n tieOrSlur: 'tieOrSlur',\n timeSignature: 'timeSignature',\n};\n\nfunction createImage(clef, src) {\n // eslint-disable-next-line no-undef\n const browserDocument = document;\n const img = browserDocument.createElement('img');\n img.dataset.clef = clef;\n img.src = src;\n img.style.display = 'none';\n return img;\n}\n\n/**\n * Retrieve music symbols elements\n * @return {Array} music symbols elements to attach\n */\nexport function getMusicClefElements() {\n return Object.keys(MusicClefs)\n .map(key => createImage(key, `data:image/svg+xml,${MusicClefs[key].svg}`));\n}\n\nfunction drawStaff(context, staff) {\n for (let i = 0; i < staff.count; i++) {\n const p1 = { x: 0, y: staff.top + (i * staff.gap) };\n const p2 = { x: context.canvas.width, y: staff.top + (i * staff.gap) };\n drawLine(context, p1, p2);\n }\n}\n\nfunction drawClef(context, clef) {\n // eslint-disable-next-line no-undef\n context.drawImage(context.canvas.parentElement.querySelector(`img[data-clef=${clef.value.symbol}]`), clef.boundingBox.x, clef.boundingBox.y, clef.boundingBox.width, clef.boundingBox.height);\n}\n\n/**\n * Draw a music symbol\n * @param {Object} context Current rendering context\n * @param {Object} symbol Symbol to draw\n */\nexport function drawMusicSymbol(context, symbol) {\n logger.debug(`draw ${symbol.type} symbol`);\n switch (symbol.type) {\n case MusicSymbols.clef:\n drawClef(context, symbol);\n break;\n case MusicSymbols.staff:\n drawStaff(context, symbol);\n break;\n default:\n logger.error(`${symbol.type} not implemented`);\n }\n}\n","import { modelLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Stroke symbol\n * @typedef {Object} Stroke\n * @property {String} type=stroke Symbol type, 'stroke' for stroke\n * @property {String} pointerType=undefined Pointer type\n * @property {Number} pointerId=undefined Pointer id\n * @property {Array} x=[] X coordinates\n * @property {Array} y=[] Y coordinates\n * @property {Array} t=[] Timestamps matching x,y coordinates\n * @property {Array} p=[] Pressure\n * @property {Array} l=[] Length from origin\n * @property {Number} width=0 (for rendering) Pen/brush width\n * @property {String} color=undefined (for rendering) Pen/brush color\n */\n\n/**\n * pointerEvents symbol\n * @typedef {Object} pointerEvents\n * @property {String} type=pointerEvents Symbol type, 'pointerEvents' for pointerEvents\n * @property {Boolean} processGestures=False indicates if the gestures have to be processed\n * @property {Array} events=[] the events to process\n */\n\nfunction computeDistance(x, y, xArray, yArray, lastIndexPoint) {\n const distance = Math.sqrt(Math.pow((y - yArray[lastIndexPoint - 1]), 2) + Math.pow((x - xArray[lastIndexPoint - 1]), 2));\n return isNaN(distance) ? 0 : distance;\n}\n\nfunction computeLength(x, y, xArray, yArray, lArray, lastIndexPoint) {\n const length = lArray[lastIndexPoint - 1] + computeDistance(x, y, xArray, yArray, lastIndexPoint);\n return isNaN(length) ? 0 : length;\n}\n\nfunction computePressure(x, y, xArray, yArray, lArray, lastIndexPoint) {\n let ratio = 1.0;\n const distance = computeDistance(x, y, xArray, yArray, lastIndexPoint);\n const length = computeLength(x, y, xArray, yArray, lArray, lastIndexPoint);\n\n if (length === 0) {\n ratio = 0.5;\n } else if (distance === length) {\n ratio = 1.0;\n } else if (distance < 10) {\n ratio = 0.2 + Math.pow(0.1 * distance, 0.4);\n } else if (distance > length - 10) {\n ratio = 0.2 + Math.pow(0.1 * (length - distance), 0.4);\n }\n const pressure = ratio * Math.max(0.1, 1.0 - (0.1 * Math.sqrt(distance)));\n return isNaN(parseFloat(pressure)) ? 0.5 : pressure;\n}\n\nfunction filterPointByAcquisitionDelta(x, y, xArray, yArray, width) {\n const delta = (2 + (width / 4));\n let ret = false;\n if (xArray.length === 0 || yArray.length === 0 || Math.abs(xArray[xArray.length - 1] - x) >= delta || Math.abs(yArray[yArray.length - 1] - y) >= delta) {\n ret = true;\n }\n return ret;\n}\n\n/**\n * Create a new stroke\n * @param {Object} properties Properties to be applied to the stroke.\n * @return {Stroke} New stroke with properties for quadratics draw\n */\nexport function createStrokeComponent(properties) {\n const defaultStroke = {\n type: 'stroke',\n x: [],\n y: [],\n t: [],\n p: [],\n l: [],\n width: 0\n };\n return Object.assign({}, defaultStroke, properties);\n}\n\n/**\n * Get a JSON copy of a stroke by filtering its properties\n * @param {Stroke} stroke Current stroke\n * @return {{type: String, x: Array, y: Array, t: Array}} Simplified stroke object\n */\nexport function toJSON(stroke) {\n return { type: stroke.type, x: stroke.x, y: stroke.y, t: stroke.t };\n}\n\n/**\n * Get a JSON copy of a stroke by filtering its properties\n * @param {Stroke} stroke Current stroke\n * @return {{x: Array, y: Array, t: Array}} Simplified stroke object\n */\nexport function toJSONV4(stroke) {\n return { x: stroke.x, y: stroke.y, t: stroke.t };\n}\n\n/**\n * Mutate a stroke by adding a point to it.\n * @param {Stroke} stroke Current stroke\n * @param {{x: Number, y: Number, t: Number}} point Point to add\n * @return {Stroke} Updated stroke\n */\nexport function addPoint(stroke, point) {\n const strokeReference = stroke;\n if (filterPointByAcquisitionDelta(point.x, point.y, strokeReference.x, strokeReference.y, strokeReference.width)) {\n strokeReference.x.push(point.x);\n strokeReference.y.push(point.y);\n strokeReference.t.push(point.t);\n strokeReference.p.push(computePressure(point.x, point.y, strokeReference.x, strokeReference.y, strokeReference.l, strokeReference.x.length - 1));\n strokeReference.l.push(computeLength(point.x, point.y, strokeReference.x, strokeReference.y, strokeReference.l, strokeReference.x.length - 1));\n } else {\n logger.trace('ignore filtered point', point);\n }\n return strokeReference;\n}\n\n/**\n * Slice a stroke and return the sliced part of it\n * @param {Stroke} stroke Current stroke\n * @param {Number} [start=0] Zero-based index at which to begin extraction\n * @param {Number} [end=length] Zero-based index at which to end extraction\n * @return {Stroke} Sliced stroke\n */\nexport function slice(stroke, start = 0, end = stroke.x.length) {\n const slicedStroke = createStrokeComponent({ color: stroke.color, width: stroke.width });\n for (let i = start; i < end; i++) {\n addPoint(slicedStroke, {\n x: stroke.x[i],\n y: stroke.y[i],\n t: stroke.t[i]\n });\n }\n return slicedStroke;\n}\n\n/**\n * Extract point by index\n * @param {Stroke} stroke Current stroke\n * @param {Number} index Zero-based index\n * @return {{x: Number, y: Number, t: Number, p: Number, l: Number}} Point with properties for quadratics draw\n */\nexport function getPointByIndex(stroke, index) {\n let point;\n if (index !== undefined && index >= 0 && index < stroke.x.length) {\n point = {\n x: stroke.x[index],\n y: stroke.y[index],\n t: stroke.t[index],\n p: stroke.p[index],\n l: stroke.l[index]\n };\n }\n return point;\n}\n","import { MusicClefs } from '../renderer/canvas/symbols/MusicSymbolCanvasRenderer';\nimport Constants from '../configuration/Constants';\n\nfunction mergeBounds(boundsA, boundsB) {\n return {\n minX: Math.min(boundsA.minX, boundsB.minX),\n maxX: Math.max(boundsA.maxX, boundsB.maxX),\n minY: Math.min(boundsA.minY, boundsB.minY),\n maxY: Math.max(boundsA.maxY, boundsB.maxY)\n };\n}\n\nfunction getLineBounds(line) {\n return {\n minX: Math.min(line.firstPoint.x, line.lastPoint.x),\n maxX: Math.max(line.firstPoint.x, line.lastPoint.x),\n minY: Math.min(line.firstPoint.y, line.lastPoint.y),\n maxY: Math.max(line.firstPoint.y, line.lastPoint.y)\n };\n}\n\nfunction getEllipseBounds(ellipse) {\n const angleStep = 0.02; // angle delta between interpolated points on the arc, in radian\n\n let z1 = Math.cos(ellipse.orientation);\n let z3 = Math.sin(ellipse.orientation);\n let z2 = z1;\n let z4 = z3;\n z1 *= ellipse.maxRadius;\n z2 *= ellipse.minRadius;\n z3 *= ellipse.maxRadius;\n z4 *= ellipse.minRadius;\n\n const n = Math.abs(ellipse.sweepAngle) / angleStep;\n\n const x = [];\n const y = [];\n\n for (let i = 0; i <= n; i++) {\n const angle = ellipse.startAngle + ((i / n) * ellipse.sweepAngle);\n const alpha = Math.atan2(Math.sin(angle) / ellipse.minRadius, Math.cos(angle) / ellipse.maxRadius);\n\n const cosAlpha = Math.cos(alpha);\n const sinAlpha = Math.sin(alpha);\n\n x.push(ellipse.center.x + ((z1 * cosAlpha) - (z4 * sinAlpha)));\n y.push(ellipse.center.y + ((z2 * sinAlpha) + (z3 * cosAlpha)));\n }\n\n return {\n minX: Math.min(...x),\n maxX: Math.max(...x),\n minY: Math.min(...y),\n maxY: Math.max(...y)\n };\n}\n\nfunction getTextLineBounds(textLine) {\n return {\n minX: textLine.data.topLeftPoint.x,\n maxX: textLine.data.topLeftPoint.x + textLine.data.width,\n minY: textLine.data.topLeftPoint.y,\n maxY: textLine.data.topLeftPoint.y + textLine.data.height\n };\n}\n\nfunction getClefBounds(clef) {\n return {\n minX: clef.boundingBox.x,\n maxX: clef.boundingBox.x + clef.boundingBox.width,\n minY: clef.boundingBox.y,\n maxY: clef.boundingBox.y + clef.boundingBox.height\n };\n}\n\nfunction getStrokeBounds(stroke) {\n return {\n minX: Math.min(...stroke.x),\n maxX: Math.max(...stroke.x),\n minY: Math.min(...stroke.y),\n maxY: Math.max(...stroke.y)\n };\n}\n\n/**\n * Get the box enclosing the given symbols\n * @param {Array} symbols Symbols to extract bounds from\n * @param {Bounds} [bounds] Starting bounds for recursion\n * @return {Bounds} Bounding box enclosing symbols\n */\nexport function getSymbolsBounds(symbols, bounds = { minX: Number.MAX_VALUE, maxX: Number.MIN_VALUE, minY: Number.MAX_VALUE, maxY: Number.MIN_VALUE }) {\n let boundsRef = bounds;\n boundsRef = symbols\n .filter(symbol => symbol.type === 'stroke')\n .map(getStrokeBounds)\n .reduce(mergeBounds, boundsRef);\n boundsRef = symbols\n .filter(symbol => symbol.type === 'clef')\n .map(getClefBounds)\n .reduce(mergeBounds, boundsRef);\n boundsRef = symbols\n .filter(symbol => symbol.type === 'line')\n .map(getLineBounds)\n .reduce(mergeBounds, boundsRef);\n boundsRef = symbols\n .filter(symbol => symbol.type === 'ellipse')\n .map(getEllipseBounds)\n .reduce(mergeBounds, boundsRef);\n boundsRef = symbols\n .filter(symbol => symbol.type === 'textLine')\n .map(getTextLineBounds)\n .reduce(mergeBounds, boundsRef);\n return boundsRef;\n}\n\nfunction getDefaultMusicSymbols(configuration) {\n const defaultStaff = Object.assign({}, { type: 'staff' }, configuration.recognitionParams.v3.musicParameter.staff);\n const defaultClef = {\n type: 'clef',\n value: Object.assign({}, configuration.recognitionParams.v3.musicParameter.clef)\n };\n defaultClef.value.yAnchor = defaultStaff.top + (defaultStaff.gap * (defaultStaff.count - defaultClef.value.line));\n delete defaultClef.value.line;\n defaultClef.boundingBox = MusicClefs[defaultClef.value.symbol].getBoundingBox(defaultStaff.gap, 0, defaultClef.value.yAnchor);\n return [defaultStaff, defaultClef];\n}\n\n/**\n * Get the default symbols for the current recognition type\n * @param {Configuration} configuration Current recognition parameters from which extract default symbols\n * @return {Array} Symbols matching configuration\n */\nexport function getDefaultSymbols(configuration) {\n switch (configuration.recognitionParams.type) {\n case Constants.RecognitionType.MUSIC:\n return getDefaultMusicSymbols(configuration);\n default:\n return [];\n }\n}\n","import { modelLogger as logger } from '../configuration/LoggerConfig';\nimport * as StrokeComponent from './StrokeComponent';\nimport { getSymbolsBounds, getDefaultSymbols } from './Symbol';\n\n/**\n * Recognition positions\n * @typedef {Object} RecognitionPositions\n * @property {Number} [lastSentPosition=-1] Index of the last sent stroke.\n * @property {Number} [lastReceivedPosition=-1] Index of the last received stroke.\n * @property {Number} [lastRenderedPosition=-1] Last rendered recognized symbol position\n */\n\n/**\n * Raw results\n * @typedef {Object} RawResults\n * @property {Object} convert=undefined The convert result\n * @property {Object} exports=undefined The exports output as return by the recognition service.\n */\n\n/**\n * Editor model\n * @typedef {Object} Model\n * @property {Stroke} currentStroke=undefined Stroke in building process.\n * @property {Array} rawStrokes=[] List of captured strokes.\n * @property {Array} strokeGroups=[] Group of strokes with same pen style.\n * @property {RecognitionPositions} lastPositions Last recognition sent/received stroke indexes.\n * @property {Array} defaultSymbols=[] Default symbols, relative to the current recognition type.\n * @property {Array} recognizedSymbols=undefined Symbols to render (e.g. stroke, shape primitives, string, characters...).\n * @property {Object} exports=undefined Result of the export (e.g. mathml, latex, text...).\n * @property {RawResults} rawResults The recognition output as return by the recognition service.\n * @property {Number} creationTime Date of creation timestamp.\n * @property {Number} modificationTime=undefined Date of lastModification.\n */\n\n/**\n * Bounding box\n * @typedef {Object} Bounds\n * @property {Number} minX Minimal x coordinate\n * @property {Number} maxX Maximal x coordinate\n * @property {Number} minY Minimal y coordinate\n * @property {Number} maxY Maximal y coordinate\n */\n\n/**\n * Create a new model\n * @param {Configuration} [configuration] Parameters to use to populate default recognition symbols\n * @return {Model} New model\n */\nexport function createModel(configuration) {\n // see @typedef documentation on top\n return {\n currentStroke: undefined,\n rawStrokes: [],\n strokeGroups: [],\n lastPositions: {\n lastSentPosition: -1,\n lastReceivedPosition: -1,\n lastRenderedPosition: -1\n },\n defaultSymbols: configuration ? getDefaultSymbols(configuration) : [],\n recognizedSymbols: undefined,\n exports: undefined,\n rawResults: {\n convert: undefined,\n exports: undefined\n },\n creationTime: new Date().getTime(),\n modificationTime: undefined\n };\n}\n\n/**\n * Clear the model.\n * @param {Model} model Current model\n * @return {Model} Cleared model\n */\nexport function clearModel(model) {\n const modelReference = model;\n modelReference.currentStroke = undefined;\n modelReference.rawStrokes = [];\n modelReference.strokeGroups = [];\n modelReference.lastPositions.lastSentPosition = -1;\n modelReference.lastPositions.lastReceivedPosition = -1;\n modelReference.lastPositions.lastRenderedPosition = -1;\n modelReference.recognizedSymbols = undefined;\n modelReference.exports = undefined;\n modelReference.rawResults.convert = undefined;\n modelReference.rawResults.exports = undefined;\n return modelReference;\n}\n\n/**\n * Check if the model needs to be redrawn.\n * @param {Model} model Current model\n * @return {Boolean} True if the model needs to be redrawn, false otherwise\n */\nexport function needRedraw(model) {\n return model.recognizedSymbols ? (model.rawStrokes.length !== model.recognizedSymbols.filter(symbol => symbol.type === 'stroke').length) : false;\n}\n\n/**\n * Mutate the model given in parameter by adding the new strokeToAdd.\n * @param {Model} model Current model\n * @param {Stroke} stroke Stroke to be added to pending ones\n * @return {Model} Updated model\n */\nexport function addStroke(model, stroke) {\n // We use a reference to the model. The purpose here is to update the pending stroke only.\n const modelReference = model;\n logger.debug('addStroke', stroke);\n modelReference.rawStrokes.push(stroke);\n return modelReference;\n}\n\n/**\n * Mutate the model given in parameter by adding the new strokeToAdd and the penstyle. Used for iink REST.\n * @param {Model} model Current model\n * @param {Stroke} stroke Stroke to be added to pending ones\n * @param {PenStyle} strokePenStyle\n * @return {Model} Updated model\n */\nexport function addStrokeToGroup(model, stroke, strokePenStyle) {\n // We use a reference to the model. The purpose here is to update the pending stroke only.\n const modelReference = model;\n logger.debug('addStroke', stroke);\n const lastGroup = modelReference.strokeGroups.length - 1;\n if (modelReference.strokeGroups[lastGroup] && modelReference.strokeGroups[lastGroup].penStyle === strokePenStyle) {\n modelReference.strokeGroups[lastGroup].strokes.push(stroke);\n } else {\n const newStrokeGroup = {\n penStyle: strokePenStyle,\n strokes: []\n };\n const strokeCopy = {};\n Object.assign(strokeCopy, stroke);\n newStrokeGroup.strokes.push(strokeCopy);\n modelReference.strokeGroups.push(newStrokeGroup);\n }\n return modelReference;\n}\n\n/**\n * Get the strokes that needs to be recognized\n * @param {Model} model Current model\n * @param {Number} [position=lastReceived] Index from where to extract strokes\n * @return {Array} Pending strokes\n */\nexport function extractPendingStrokes(model, position = model.lastPositions.lastReceivedPosition + 1) {\n return model.rawStrokes.slice(position);\n}\n\n/**\n * Mutate the model by adding a point and close the current stroke.\n * @param {Model} model Current model\n * @param {{x: Number, y: Number, t: Number}} point Captured point to create current stroke\n * @param {Object} properties Properties to be applied to the current stroke\n * @param {Number} [dpi=96] The screen dpi resolution\n * @return {Model} Updated model\n */\nexport function initPendingStroke(model, point, properties, dpi = 96) {\n if (properties && properties['-myscript-pen-width']) {\n const pxWidth = (properties['-myscript-pen-width'] * dpi) / 25.4;\n Object.assign(properties, { width: pxWidth / 2 }); // FIXME hack to get better render\n }\n const modelReference = model;\n logger.trace('initPendingStroke', point);\n // Setting the current stroke to an empty one\n modelReference.currentStroke = StrokeComponent.createStrokeComponent(properties);\n modelReference.currentStroke = StrokeComponent.addPoint(modelReference.currentStroke, point);\n return modelReference;\n}\n\n/**\n * Mutate the model by adding a point to the current pending stroke.\n * @param {Model} model Current model\n * @param {{x: Number, y: Number, t: Number}} point Captured point to be append to the current stroke\n * @return {Model} Updated model\n */\nexport function appendToPendingStroke(model, point) {\n const modelReference = model;\n if (modelReference.currentStroke) {\n logger.trace('appendToPendingStroke', point);\n modelReference.currentStroke = StrokeComponent.addPoint(modelReference.currentStroke, point);\n }\n return modelReference;\n}\n\n/**\n * Mutate the model by adding the new point on a initPendingStroke.\n * @param {Model} model Current model\n * @param {{x: Number, y: Number, t: Number}} point Captured point to be append to the current stroke\n * @param {PenStyle} penStyle\n * @return {Model} Updated model\n */\nexport function endPendingStroke(model, point, penStyle) {\n const modelReference = model;\n if (modelReference.currentStroke) {\n logger.trace('endPendingStroke', point);\n const currentStroke = StrokeComponent.addPoint(modelReference.currentStroke, point);\n // Mutating pending strokes\n addStroke(modelReference, currentStroke);\n addStrokeToGroup(modelReference, currentStroke, penStyle);\n // Resetting the current stroke to an undefined one\n delete modelReference.currentStroke;\n }\n return modelReference;\n}\n\n/**\n * Get the bounds of the current model.\n * @param {Model} model Current model\n * @return {Bounds} Bounding box enclosing the current drawn model\n */\nexport function getBorderCoordinates(model) {\n let modelBounds = { minX: Number.MAX_VALUE, maxX: Number.MIN_VALUE, minY: Number.MAX_VALUE, maxY: Number.MIN_VALUE };\n\n // Default symbols\n if (model.defaultSymbols && model.defaultSymbols.length > 0) {\n modelBounds = getSymbolsBounds(model.defaultSymbols, modelBounds);\n }\n // Recognized symbols\n if (model.recognizedSymbols && model.recognizedSymbols.length > 0) {\n modelBounds = getSymbolsBounds(model.recognizedSymbols, modelBounds);\n // Pending strokes\n modelBounds = getSymbolsBounds(extractPendingStrokes(model), modelBounds);\n } else {\n modelBounds = getSymbolsBounds(model.rawStrokes, modelBounds);\n }\n return modelBounds;\n}\n\n/**\n * Extract strokes from an ink range\n * @param {Model} model Current model\n * @param {Number} firstStroke First stroke index to extract\n * @param {Number} lastStroke Last stroke index to extract\n * @param {Number} firstPoint First point index to extract\n * @param {Number} lastPoint Last point index to extract\n * @return {Array} The extracted strokes\n */\nexport function extractStrokesFromInkRange(model, firstStroke, lastStroke, firstPoint, lastPoint) {\n return model.rawStrokes.slice(firstStroke, lastStroke + 1).map((stroke, index, slicedStrokes) => {\n if (slicedStrokes.length < 2) {\n return StrokeComponent.slice(stroke, firstPoint, lastPoint + 1);\n }\n if (index === 0) {\n return StrokeComponent.slice(stroke, firstPoint);\n }\n if (index === (slicedStrokes.length - 1)) {\n return StrokeComponent.slice(stroke, 0, lastPoint + 1);\n }\n return stroke;\n });\n}\n\n/**\n * Update model lastSentPosition\n * @param {Model} model\n * @param {Number} [position]\n * @return {Model}\n */\nexport function updateModelSentPosition(model, position = model.rawStrokes.length - 1) {\n const modelReference = model;\n modelReference.lastPositions.lastSentPosition = position;\n return modelReference;\n}\n\n/**\n * Update model lastReceivedPosition regarding to lastSentPosition\n * @param {Model} model\n * @return {Model}\n */\nexport function updateModelReceivedPosition(model) {\n const modelReference = model;\n modelReference.lastPositions.lastReceivedPosition = modelReference.lastPositions.lastSentPosition;\n return modelReference;\n}\n\n/**\n * Reset model lastReceivedPosition and lastSentPosition\n * @param {Model} model\n * @return {Model}\n */\nexport function resetModelPositions(model) {\n const modelReference = model;\n modelReference.lastPositions.lastSentPosition = -1;\n modelReference.lastPositions.lastReceivedPosition = -1;\n return modelReference;\n}\n\n/**\n * Reset model lastRenderedPosition\n * @param {Model} model\n * @return {Model}\n */\nexport function resetModelRendererPosition(model) {\n const modelReference = model;\n modelReference.lastPositions.lastRenderedPosition = -1;\n return modelReference;\n}\n\n/**\n * Update model lastRenderedPosition\n * @param {Model} model\n * @param {Number} [position]\n * @return {Model}\n */\nexport function updateModelRenderedPosition(model, position = model.recognizedSymbols ? model.recognizedSymbols.length - 1 : -1) {\n const modelReference = model;\n modelReference.lastPositions.lastRenderedPosition = position;\n return modelReference;\n}\n\n/**\n * Get the symbols that needs to be rendered\n * @param {Model} model Current model\n * @param {Number} [position=lastRendered] Index from where to extract symbols\n * @return {Array}\n */\nexport function extractPendingRecognizedSymbols(model, position = model.lastPositions.lastRenderedPosition + 1) {\n return model.recognizedSymbols ? model.recognizedSymbols.slice(position) : [];\n}\n\n/**\n * Clone model\n * @param {Model} model Current model\n * @return {Model} Clone of the current model\n */\nexport function cloneModel(model) {\n const clonedModel = Object.assign({}, model);\n // We clone the properties that need to be. Take care of arrays.\n clonedModel.defaultSymbols = [...model.defaultSymbols];\n clonedModel.currentStroke = model.currentStroke ? Object.assign({}, model.currentStroke) : undefined;\n clonedModel.rawStrokes = [...model.rawStrokes];\n clonedModel.strokeGroups = JSON.parse(JSON.stringify(model.strokeGroups));\n clonedModel.lastPositions = Object.assign({}, model.lastPositions);\n clonedModel.exports = model.exports ? Object.assign({}, model.exports) : undefined;\n clonedModel.rawResults = Object.assign({}, model.rawResults);\n clonedModel.recognizedSymbols = model.recognizedSymbols ? [...model.recognizedSymbols] : undefined;\n return clonedModel;\n}\n\n/**\n * Merge models\n * @param {...Model} models Models to merge (ordered)\n * @return {Model} Updated model\n */\nexport function mergeModels(...models) {\n return models.reduce((a, b) => {\n const modelRef = a;\n modelRef.recognizedSymbols = b.recognizedSymbols;\n modelRef.lastPositions.lastSentPosition = b.lastPositions.lastSentPosition;\n modelRef.lastPositions.lastReceivedPosition = b.lastPositions.lastReceivedPosition;\n modelRef.lastPositions.lastRenderedPosition = b.lastPositions.lastRenderedPosition;\n modelRef.rawResults = b.rawResults;\n modelRef.exports = b.exports;\n return modelRef;\n });\n}\n","import { rendererLogger as logger } from '../../configuration/LoggerConfig';\nimport { drawStroke } from './symbols/StrokeSymbolCanvasRenderer';\nimport { drawTextSymbol, TextSymbols } from './symbols/TextSymbolCanvasRenderer';\nimport { drawShapeSymbol, ShapeSymbols } from './symbols/ShapeSymbolCanvasRenderer';\nimport {\n drawMusicSymbol,\n getMusicClefElements,\n MusicSymbols\n} from './symbols/MusicSymbolCanvasRenderer';\nimport * as InkModel from '../../model/InkModel';\n\n/**\n * Renderer info\n * @typedef {Object} RendererInfo\n * @property {String} type Renderer type.\n * @property {String} apiVersion Supported api version.\n */\n\n/**\n * Default renderer\n * @typedef {Object} Renderer\n * @property {function(): RendererInfo} getInfo Get some information about this renderer\n * @property {function(element: Element, minHeight: Number, minWidth: Number): Object} attach Populate the DOM element to create rendering area.\n * @property {function(element: Element, context: Object)} detach Remove rendering area from the DOM element.\n * @property {function(context: Object, model: Model, stroker: Stroker)} resize Explicitly resize the rendering area.\n * @property {function(context: Object, model: Model, stroker: Stroker): Model} drawCurrentStroke Draw the model currentStroke.\n * @property {function(context: Object, model: Model, stroker: Stroker): Model} drawModel Draw the model defaultSymbols and recognizedSymbols.\n */\n\n/**\n * Get info\n * @return {RendererInfo} Information about this renderer\n */\nexport function getInfo() {\n return {\n type: 'canvas',\n apiVersion: 'V3'\n };\n}\n\nfunction getPixelRatio(canvas) {\n if (canvas) {\n const context = canvas.getContext('2d');\n // we are using a browser object\n // eslint-disable-next-line no-undef\n const devicePixelRatio = window.devicePixelRatio || 1;\n const backingStoreRatio = context.webkitBackingStorePixelRatio ||\n context.mozBackingStorePixelRatio ||\n context.msBackingStorePixelRatio ||\n context.oBackingStorePixelRatio ||\n context.backingStorePixelRatio || 1;\n return devicePixelRatio / backingStoreRatio;\n }\n return 1;\n}\n\nfunction detectPixelRatio(element) {\n // we are using a browser object\n // eslint-disable-next-line no-undef\n const tempCanvas = document.createElement('canvas');\n const canvasRatio = getPixelRatio(tempCanvas);\n // document.removeChild(tempCanvas);\n return canvasRatio;\n}\n\nfunction createCanvas(element, type) {\n // eslint-disable-next-line no-undef\n const browserDocument = document;\n const canvas = browserDocument.createElement('canvas');\n canvas.classList.add(type);\n canvas.classList.add('ms-canvas');\n element.appendChild(canvas);\n logger.debug('canvas created', canvas);\n return canvas;\n}\n\nfunction resizeContent(context) {\n const elements = [context.renderingCanvas, context.capturingCanvas];\n elements.forEach((canvas) => {\n const domElement = canvas.parentNode;\n const width = domElement.clientWidth < context.minWidth ? context.minWidth : domElement.clientWidth;\n const height = domElement.clientHeight < context.minHeight ? context.minHeight : domElement.clientHeight;\n /* eslint-disable no-param-reassign */\n canvas.width = width * context.pixelRatio;\n canvas.height = height * context.pixelRatio;\n canvas.style.width = `${width}px`;\n canvas.style.height = `${height}px`;\n /* eslint-enable no-param-reassign */\n canvas.getContext('2d').scale(context.pixelRatio, context.pixelRatio);\n logger.debug('canvas size changed', canvas);\n });\n return context;\n}\n\n/**\n * Attach the renderer to the DOM element\n * @param {Element} element DOM element to attach the rendering elements\n * @param {Number} [minHeight=0] Minimal height of the editor\n * @param {Number} [minWidth=0] Minimal width of the editor\n * @return {Object} The renderer context to give as parameter when a draw model will be call\n */\nexport function attach(element, minHeight = 0, minWidth = 0) {\n logger.debug('attach renderer', element);\n const pixelRatio = detectPixelRatio(element);\n const resources = getMusicClefElements();\n resources.forEach(clef => element.appendChild(clef));\n\n const renderingCanvas = createCanvas(element, 'ms-rendering-canvas');\n const capturingCanvas = createCanvas(element, 'ms-capture-canvas');\n\n const context = {\n pixelRatio,\n minHeight,\n minWidth,\n renderingCanvas,\n renderingCanvasContext: renderingCanvas.getContext('2d'),\n capturingCanvas,\n capturingCanvasContext: capturingCanvas.getContext('2d'),\n resources\n };\n\n return resizeContent(context);\n}\n\n/**\n * Detach the renderer from the DOM element\n * @param {Element} element DOM element to attach the rendering elements\n * @param {Object} context Current rendering context\n */\nexport function detach(element, context) {\n logger.debug('detach renderer', element);\n context.resources.forEach(res => element.removeChild(res));\n element.removeChild(context.renderingCanvas);\n element.removeChild(context.capturingCanvas);\n}\n\n/**\n * Update the rendering context size\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function resize(context, model, stroker) {\n return this.drawModel(resizeContent(context), model, stroker);\n}\n\nfunction drawSymbol(context, symbol, stroker) {\n const type = symbol.elementType ? symbol.elementType : symbol.type;\n logger.trace(`attempting to draw ${type} symbol`);\n if (type === 'stroke') {\n drawStroke(context, symbol, stroker);\n } else if (TextSymbols[type]) {\n drawTextSymbol(context, symbol);\n } else if (ShapeSymbols[type]) {\n drawShapeSymbol(context, symbol);\n } else if (MusicSymbols[type]) {\n drawMusicSymbol(context, symbol);\n } else {\n logger.warn(`impossible to draw ${type} symbol`);\n }\n}\n\n/**\n * Draw the current stroke from the model\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function drawCurrentStroke(context, model, stroker) {\n // Render the current stroke\n context.capturingCanvasContext.clearRect(0, 0, context.capturingCanvas.width, context.capturingCanvas.height);\n logger.trace('drawing current stroke ', model.currentStroke);\n drawStroke(context.capturingCanvasContext, model.currentStroke, stroker);\n return model;\n}\n\n/**\n * Draw all symbols contained into the model\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function drawModel(context, model, stroker) {\n context.renderingCanvasContext.clearRect(0, 0, context.renderingCanvas.width, context.renderingCanvas.height);\n // Displaying the default symbols and pending strokes\n const symbols = [...model.defaultSymbols];\n // Displaying the recognition symbols or raw strokes\n if (model.recognizedSymbols) {\n symbols.push(...model.recognizedSymbols);\n symbols.push(...InkModel.extractPendingStrokes(model));\n } else {\n symbols.push(...model.rawStrokes);\n }\n symbols.forEach(symbol => drawSymbol(context.renderingCanvasContext, symbol, stroker));\n context.capturingCanvasContext.clearRect(0, 0, context.capturingCanvas.width, context.capturingCanvas.height);\n return model;\n}\n","/** ===============================================================================================\n * Compute quadratics control points\n * ============================================================================================= */\n\n/**\n *\n * @param {{x: Number, y: Number, p: Number}} point\n * @param angle\n * @param width\n * @return {[{x: Number, y: Number},{x: Number, y: Number}]}\n */\nexport function computeLinksPoints(point, angle, width) {\n const radius = point.p * width;\n return [{\n x: (point.x - (Math.sin(angle) * radius)),\n y: (point.y + (Math.cos(angle) * radius))\n }, {\n x: (point.x + (Math.sin(angle) * radius)),\n y: (point.y - (Math.cos(angle) * radius))\n }];\n}\n\n/**\n *\n * @param {{x: Number, y: Number, p: Number}} point1\n * @param {{x: Number, y: Number, p: Number}} point2\n * @return {{x: Number, y: Number, p: Number}}\n */\nexport function computeMiddlePoint(point1, point2) {\n return {\n x: ((point2.x + point1.x) / 2),\n y: ((point2.y + point1.y) / 2),\n p: ((point2.p + point1.p) / 2)\n };\n}\n\n/**\n *\n * @param {{x: Number, y: Number}} begin\n * @param {{x: Number, y: Number}} end\n * @return {Number}\n */\nexport function computeAxeAngle(begin, end) {\n return Math.atan2(end.y - begin.y, end.x - begin.x);\n}\n","import * as StrokeComponent from '../../../model/StrokeComponent';\nimport { computeLinksPoints, computeMiddlePoint, computeAxeAngle } from '../../QuadraticUtils';\n\n/**\n * Stroker info\n * @typedef {Object} StrokerInfo\n * @property {String} type Renderer type.\n * @property {String} name Stroker name.\n * @property {String} apiVersion Supported api version.\n */\n\n/**\n * Define how a stroke should be drawn\n * @typedef {Object} Stroker\n * @property {function(): StrokerInfo} getInfo Get some information about this stroker\n * @property {function(context: Object, stroke: Stroke)} drawStroke Render a stroke on the current context.\n */\n\n/**\n * Get info\n * @return {StrokerInfo} Information about this stroker\n */\nexport function getInfo() {\n return {\n type: 'canvas',\n name: 'quadratic',\n apiVersion: 'V3'\n };\n}\n\nfunction renderArc(context, center, radius) {\n context.arc(center.x, center.y, radius, 0, Math.PI * 2, true);\n}\n\nfunction renderLine(context, begin, end, width) {\n const linkPoints1 = computeLinksPoints(begin, computeAxeAngle(begin, end), width);\n const linkPoints2 = computeLinksPoints(end, computeAxeAngle(begin, end), width);\n\n context.moveTo(linkPoints1[0].x, linkPoints1[0].y);\n context.lineTo(linkPoints2[0].x, linkPoints2[0].y);\n context.lineTo(linkPoints2[1].x, linkPoints2[1].y);\n context.lineTo(linkPoints1[1].x, linkPoints1[1].y);\n}\n\nfunction renderFinal(context, begin, end, width) {\n const ARCSPLIT = 6;\n const angle = computeAxeAngle(begin, end);\n const linkPoints = computeLinksPoints(end, angle, width);\n context.moveTo(linkPoints[0].x, linkPoints[0].y);\n for (let i = 1; i <= ARCSPLIT; i++) {\n const newAngle = angle - ((i * Math.PI) / ARCSPLIT);\n context.lineTo(end.x - ((end.p * width) * Math.sin(newAngle)), end.y + (end.p * width * Math.cos(newAngle)));\n }\n}\n\nfunction renderQuadratic(context, begin, end, ctrl, width) {\n const linkPoints1 = computeLinksPoints(begin, computeAxeAngle(begin, ctrl), width);\n const linkPoints2 = computeLinksPoints(end, computeAxeAngle(ctrl, end), width);\n const linkPoints3 = computeLinksPoints(ctrl, computeAxeAngle(begin, end), width);\n\n context.moveTo(linkPoints1[0].x, linkPoints1[0].y);\n context.quadraticCurveTo(linkPoints3[0].x, linkPoints3[0].y, linkPoints2[0].x, linkPoints2[0].y);\n context.lineTo(linkPoints2[1].x, linkPoints2[1].y);\n context.quadraticCurveTo(linkPoints3[1].x, linkPoints3[1].y, linkPoints1[1].x, linkPoints1[1].y);\n}\n\n/**\n * Draw a stroke on a canvas, using quadratics\n * @param {Object} context Current rendering context\n * @param {Stroke} stroke Current stroke to be drawn\n */\nexport function drawStroke(context, stroke) {\n const contextReference = context;\n const length = stroke.x.length;\n const width = stroke.width > 0 ? stroke.width : contextReference.lineWidth;\n const color = stroke.color ? stroke.color : contextReference.strokeStyle;\n const firstPoint = StrokeComponent.getPointByIndex(stroke, 0);\n const nbquadratics = length - 2;\n\n contextReference.save();\n try {\n contextReference.beginPath();\n if (length < 3) {\n renderArc(contextReference, firstPoint, width * 0.6);\n } else {\n renderArc(contextReference, firstPoint, width * firstPoint.p);\n renderLine(contextReference, firstPoint, computeMiddlePoint(firstPoint, StrokeComponent.getPointByIndex(stroke, 1)), width);\n\n // Possibility to try this (the start looks better when the ink is large)\n // var first = computeMiddlePoint(stroke[0], stroke[1]);\n // contextReference.arc(first.x, first.y, width * first.p, 0, Math.PI * 2, true);\n\n for (let i = 0; i < nbquadratics; i++) {\n renderQuadratic(contextReference, computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, i), StrokeComponent.getPointByIndex(stroke, i + 1)), computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, i + 1), StrokeComponent.getPointByIndex(stroke, i + 2)), StrokeComponent.getPointByIndex(stroke, i + 1), width);\n }\n renderLine(contextReference, computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, length - 2), StrokeComponent.getPointByIndex(stroke, length - 1)), StrokeComponent.getPointByIndex(stroke, length - 1), width);\n renderFinal(contextReference, StrokeComponent.getPointByIndex(stroke, length - 2), StrokeComponent.getPointByIndex(stroke, length - 1), width);\n }\n contextReference.closePath();\n if (color !== undefined) {\n contextReference.fillStyle = color;\n contextReference.fill();\n }\n } finally {\n contextReference.restore();\n }\n}\n","export var xhtml = \"http://www.w3.org/1999/xhtml\";\n\nexport default {\n svg: \"http://www.w3.org/2000/svg\",\n xhtml: xhtml,\n xlink: \"http://www.w3.org/1999/xlink\",\n xml: \"http://www.w3.org/XML/1998/namespace\",\n xmlns: \"http://www.w3.org/2000/xmlns/\"\n};\n","import namespaces from \"./namespaces\";\n\nexport default function(name) {\n var prefix = name += \"\", i = prefix.indexOf(\":\");\n if (i >= 0 && (prefix = name.slice(0, i)) !== \"xmlns\") name = name.slice(i + 1);\n return namespaces.hasOwnProperty(prefix) ? {space: namespaces[prefix], local: name} : name;\n}\n","import namespace from \"./namespace\";\nimport {xhtml} from \"./namespaces\";\n\nfunction creatorInherit(name) {\n return function() {\n var document = this.ownerDocument,\n uri = this.namespaceURI;\n return uri === xhtml && document.documentElement.namespaceURI === xhtml\n ? document.createElement(name)\n : document.createElementNS(uri, name);\n };\n}\n\nfunction creatorFixed(fullname) {\n return function() {\n return this.ownerDocument.createElementNS(fullname.space, fullname.local);\n };\n}\n\nexport default function(name) {\n var fullname = namespace(name);\n return (fullname.local\n ? creatorFixed\n : creatorInherit)(fullname);\n}\n","function none() {}\n\nexport default function(selector) {\n return selector == null ? none : function() {\n return this.querySelector(selector);\n };\n}\n","function empty() {\n return [];\n}\n\nexport default function(selector) {\n return selector == null ? empty : function() {\n return this.querySelectorAll(selector);\n };\n}\n","var matcher = function(selector) {\n return function() {\n return this.matches(selector);\n };\n};\n\nif (typeof document !== \"undefined\") {\n var element = document.documentElement;\n if (!element.matches) {\n var vendorMatches = element.webkitMatchesSelector\n || element.msMatchesSelector\n || element.mozMatchesSelector\n || element.oMatchesSelector;\n matcher = function(selector) {\n return function() {\n return vendorMatches.call(this, selector);\n };\n };\n }\n}\n\nexport default matcher;\n","export default function(update) {\n return new Array(update.length);\n}\n","import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._enter || this._groups.map(sparse), this._parents);\n}\n\nexport function EnterNode(parent, datum) {\n this.ownerDocument = parent.ownerDocument;\n this.namespaceURI = parent.namespaceURI;\n this._next = null;\n this._parent = parent;\n this.__data__ = datum;\n}\n\nEnterNode.prototype = {\n constructor: EnterNode,\n appendChild: function(child) { return this._parent.insertBefore(child, this._next); },\n insertBefore: function(child, next) { return this._parent.insertBefore(child, next); },\n querySelector: function(selector) { return this._parent.querySelector(selector); },\n querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }\n};\n","import {Selection} from \"./index\";\nimport {EnterNode} from \"./enter\";\nimport constant from \"../constant\";\n\nvar keyPrefix = \"$\"; // Protect against keys like “__proto__”.\n\nfunction bindIndex(parent, group, enter, update, exit, data) {\n var i = 0,\n node,\n groupLength = group.length,\n dataLength = data.length;\n\n // Put any non-null nodes that fit into update.\n // Put any null nodes into enter.\n // Put any remaining data into enter.\n for (; i < dataLength; ++i) {\n if (node = group[i]) {\n node.__data__ = data[i];\n update[i] = node;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Put any non-null nodes that don’t fit into exit.\n for (; i < groupLength; ++i) {\n if (node = group[i]) {\n exit[i] = node;\n }\n }\n}\n\nfunction bindKey(parent, group, enter, update, exit, data, key) {\n var i,\n node,\n nodeByKeyValue = {},\n groupLength = group.length,\n dataLength = data.length,\n keyValues = new Array(groupLength),\n keyValue;\n\n // Compute the key for each node.\n // If multiple nodes have the same key, the duplicates are added to exit.\n for (i = 0; i < groupLength; ++i) {\n if (node = group[i]) {\n keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group);\n if (keyValue in nodeByKeyValue) {\n exit[i] = node;\n } else {\n nodeByKeyValue[keyValue] = node;\n }\n }\n }\n\n // Compute the key for each datum.\n // If there a node associated with this key, join and add it to update.\n // If there is not (or the key is a duplicate), add it to enter.\n for (i = 0; i < dataLength; ++i) {\n keyValue = keyPrefix + key.call(parent, data[i], i, data);\n if (node = nodeByKeyValue[keyValue]) {\n update[i] = node;\n node.__data__ = data[i];\n nodeByKeyValue[keyValue] = null;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Add any remaining nodes that were not bound to data to exit.\n for (i = 0; i < groupLength; ++i) {\n if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) {\n exit[i] = node;\n }\n }\n}\n\nexport default function(value, key) {\n if (!value) {\n data = new Array(this.size()), j = -1;\n this.each(function(d) { data[++j] = d; });\n return data;\n }\n\n var bind = key ? bindKey : bindIndex,\n parents = this._parents,\n groups = this._groups;\n\n if (typeof value !== \"function\") value = constant(value);\n\n for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {\n var parent = parents[j],\n group = groups[j],\n groupLength = group.length,\n data = value.call(parent, parent && parent.__data__, j, parents),\n dataLength = data.length,\n enterGroup = enter[j] = new Array(dataLength),\n updateGroup = update[j] = new Array(dataLength),\n exitGroup = exit[j] = new Array(groupLength);\n\n bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);\n\n // Now connect the enter nodes to their following update node, such that\n // appendChild can insert the materialized enter node before this node,\n // rather than at the end of the parent node.\n for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {\n if (previous = enterGroup[i0]) {\n if (i0 >= i1) i1 = i0 + 1;\n while (!(next = updateGroup[i1]) && ++i1 < dataLength);\n previous._next = next || null;\n }\n }\n }\n\n update = new Selection(update, parents);\n update._enter = enter;\n update._exit = exit;\n return update;\n}\n","import {Selection} from \"./index\";\n\nexport default function(compare) {\n if (!compare) compare = ascending;\n\n function compareNode(a, b) {\n return a && b ? compare(a.__data__, b.__data__) : !a - !b;\n }\n\n for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n sortgroup[i] = node;\n }\n }\n sortgroup.sort(compareNode);\n }\n\n return new Selection(sortgroups, this._parents).order();\n}\n\nfunction ascending(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n","export default function(node) {\n return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node\n || (node.document && node) // node is a Window\n || node.defaultView; // node is a Document\n}\n","function classArray(string) {\n return string.trim().split(/^|\\s+/);\n}\n\nfunction classList(node) {\n return node.classList || new ClassList(node);\n}\n\nfunction ClassList(node) {\n this._node = node;\n this._names = classArray(node.getAttribute(\"class\") || \"\");\n}\n\nClassList.prototype = {\n add: function(name) {\n var i = this._names.indexOf(name);\n if (i < 0) {\n this._names.push(name);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n remove: function(name) {\n var i = this._names.indexOf(name);\n if (i >= 0) {\n this._names.splice(i, 1);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n contains: function(name) {\n return this._names.indexOf(name) >= 0;\n }\n};\n\nfunction classedAdd(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.add(names[i]);\n}\n\nfunction classedRemove(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.remove(names[i]);\n}\n\nfunction classedTrue(names) {\n return function() {\n classedAdd(this, names);\n };\n}\n\nfunction classedFalse(names) {\n return function() {\n classedRemove(this, names);\n };\n}\n\nfunction classedFunction(names, value) {\n return function() {\n (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);\n };\n}\n\nexport default function(name, value) {\n var names = classArray(name + \"\");\n\n if (arguments.length < 2) {\n var list = classList(this.node()), i = -1, n = names.length;\n while (++i < n) if (!list.contains(names[i])) return false;\n return true;\n }\n\n return this.each((typeof value === \"function\"\n ? classedFunction : value\n ? classedTrue\n : classedFalse)(names, value));\n}\n","function textRemove() {\n this.textContent = \"\";\n}\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.textContent = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? textRemove : (typeof value === \"function\"\n ? textFunction\n : textConstant)(value))\n : this.node().textContent;\n}\n","function htmlRemove() {\n this.innerHTML = \"\";\n}\n\nfunction htmlConstant(value) {\n return function() {\n this.innerHTML = value;\n };\n}\n\nfunction htmlFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.innerHTML = v == null ? \"\" : v;\n };\n}\n\nexport default function(value) {\n return arguments.length\n ? this.each(value == null\n ? htmlRemove : (typeof value === \"function\"\n ? htmlFunction\n : htmlConstant)(value))\n : this.node().innerHTML;\n}\n","function raise() {\n if (this.nextSibling) this.parentNode.appendChild(this);\n}\n\nexport default function() {\n return this.each(raise);\n}\n","function lower() {\n if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);\n}\n\nexport default function() {\n return this.each(lower);\n}\n","import creator from \"../creator\";\nimport selector from \"../selector\";\n\nfunction constantNull() {\n return null;\n}\n\nexport default function(name, before) {\n var create = typeof name === \"function\" ? name : creator(name),\n select = before == null ? constantNull : typeof before === \"function\" ? before : selector(before);\n return this.select(function() {\n return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);\n });\n}\n","function remove() {\n var parent = this.parentNode;\n if (parent) parent.removeChild(this);\n}\n\nexport default function() {\n return this.each(remove);\n}\n","function selection_cloneShallow() {\n return this.parentNode.insertBefore(this.cloneNode(false), this.nextSibling);\n}\n\nfunction selection_cloneDeep() {\n return this.parentNode.insertBefore(this.cloneNode(true), this.nextSibling);\n}\n\nexport default function(deep) {\n return this.select(deep ? selection_cloneDeep : selection_cloneShallow);\n}\n","var filterEvents = {};\n\nexport var event = null;\n\nif (typeof document !== \"undefined\") {\n var element = document.documentElement;\n if (!(\"onmouseenter\" in element)) {\n filterEvents = {mouseenter: \"mouseover\", mouseleave: \"mouseout\"};\n }\n}\n\nfunction filterContextListener(listener, index, group) {\n listener = contextListener(listener, index, group);\n return function(event) {\n var related = event.relatedTarget;\n if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) {\n listener.call(this, event);\n }\n };\n}\n\nfunction contextListener(listener, index, group) {\n return function(event1) {\n var event0 = event; // Events can be reentrant (e.g., focus).\n event = event1;\n try {\n listener.call(this, this.__data__, index, group);\n } finally {\n event = event0;\n }\n };\n}\n\nfunction parseTypenames(typenames) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n return {type: t, name: name};\n });\n}\n\nfunction onRemove(typename) {\n return function() {\n var on = this.__on;\n if (!on) return;\n for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {\n if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n } else {\n on[++i] = o;\n }\n }\n if (++i) on.length = i;\n else delete this.__on;\n };\n}\n\nfunction onAdd(typename, value, capture) {\n var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener;\n return function(d, i, group) {\n var on = this.__on, o, listener = wrap(value, i, group);\n if (on) for (var j = 0, m = on.length; j < m; ++j) {\n if ((o = on[j]).type === typename.type && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.capture);\n this.addEventListener(o.type, o.listener = listener, o.capture = capture);\n o.value = value;\n return;\n }\n }\n this.addEventListener(typename.type, listener, capture);\n o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture};\n if (!on) this.__on = [o];\n else on.push(o);\n };\n}\n\nexport default function(typename, value, capture) {\n var typenames = parseTypenames(typename + \"\"), i, n = typenames.length, t;\n\n if (arguments.length < 2) {\n var on = this.node().__on;\n if (on) for (var j = 0, m = on.length, o; j < m; ++j) {\n for (i = 0, o = on[j]; i < n; ++i) {\n if ((t = typenames[i]).type === o.type && t.name === o.name) {\n return o.value;\n }\n }\n }\n return;\n }\n\n on = value ? onAdd : onRemove;\n if (capture == null) capture = false;\n for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture));\n return this;\n}\n\nexport function customEvent(event1, listener, that, args) {\n var event0 = event;\n event1.sourceEvent = event;\n event = event1;\n try {\n return listener.apply(that, args);\n } finally {\n event = event0;\n }\n}\n","import defaultView from \"../window\";\n\nfunction dispatchEvent(node, type, params) {\n var window = defaultView(node),\n event = window.CustomEvent;\n\n if (typeof event === \"function\") {\n event = new event(type, params);\n } else {\n event = window.document.createEvent(\"Event\");\n if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;\n else event.initEvent(type, false, false);\n }\n\n node.dispatchEvent(event);\n}\n\nfunction dispatchConstant(type, params) {\n return function() {\n return dispatchEvent(this, type, params);\n };\n}\n\nfunction dispatchFunction(type, params) {\n return function() {\n return dispatchEvent(this, type, params.apply(this, arguments));\n };\n}\n\nexport default function(type, params) {\n return this.each((typeof params === \"function\"\n ? dispatchFunction\n : dispatchConstant)(type, params));\n}\n","import selection_select from \"./select\";\nimport selection_selectAll from \"./selectAll\";\nimport selection_filter from \"./filter\";\nimport selection_data from \"./data\";\nimport selection_enter from \"./enter\";\nimport selection_exit from \"./exit\";\nimport selection_merge from \"./merge\";\nimport selection_order from \"./order\";\nimport selection_sort from \"./sort\";\nimport selection_call from \"./call\";\nimport selection_nodes from \"./nodes\";\nimport selection_node from \"./node\";\nimport selection_size from \"./size\";\nimport selection_empty from \"./empty\";\nimport selection_each from \"./each\";\nimport selection_attr from \"./attr\";\nimport selection_style from \"./style\";\nimport selection_property from \"./property\";\nimport selection_classed from \"./classed\";\nimport selection_text from \"./text\";\nimport selection_html from \"./html\";\nimport selection_raise from \"./raise\";\nimport selection_lower from \"./lower\";\nimport selection_append from \"./append\";\nimport selection_insert from \"./insert\";\nimport selection_remove from \"./remove\";\nimport selection_clone from \"./clone\";\nimport selection_datum from \"./datum\";\nimport selection_on from \"./on\";\nimport selection_dispatch from \"./dispatch\";\n\nexport var root = [null];\n\nexport function Selection(groups, parents) {\n this._groups = groups;\n this._parents = parents;\n}\n\nfunction selection() {\n return new Selection([[document.documentElement]], root);\n}\n\nSelection.prototype = selection.prototype = {\n constructor: Selection,\n select: selection_select,\n selectAll: selection_selectAll,\n filter: selection_filter,\n data: selection_data,\n enter: selection_enter,\n exit: selection_exit,\n merge: selection_merge,\n order: selection_order,\n sort: selection_sort,\n call: selection_call,\n nodes: selection_nodes,\n node: selection_node,\n size: selection_size,\n empty: selection_empty,\n each: selection_each,\n attr: selection_attr,\n style: selection_style,\n property: selection_property,\n classed: selection_classed,\n text: selection_text,\n html: selection_html,\n raise: selection_raise,\n lower: selection_lower,\n append: selection_append,\n insert: selection_insert,\n remove: selection_remove,\n clone: selection_clone,\n datum: selection_datum,\n on: selection_on,\n dispatch: selection_dispatch\n};\n\nexport default selection;\n","/**\n * Draw a stroke symbol\n * @param {Object} context Current rendering context\n * @param {Stroke} stroke Stroke to be drawn\n * @param {Stroker} stroker Stroker to use to render a stroke\n */\nexport function drawStroke(context, stroke, stroker) {\n if (stroker) {\n stroker.drawStroke(context, stroke);\n }\n}\n","import * as d3 from 'd3-selection';\nimport { rendererLogger as logger } from '../../configuration/LoggerConfig';\nimport { drawStroke } from './symbols/StrokeSymbolSVGRenderer';\nimport * as InkModel from '../../model/InkModel';\n\n\n/**\n * Get info\n * @return {RendererInfo} Information about this renderer\n */\nexport function getInfo() {\n return {\n type: 'svg',\n apiVersion: 'V4'\n };\n}\n\n/**\n * Populate the dom element\n * @param {Element} element DOM element to attach the rendering elements\n * @return {Object} The renderer context to give as parameter when a draw model will be call\n */\nexport function attach(element) {\n const elementRef = element;\n logger.debug('populate root element', elementRef);\n elementRef.style.fontSize = '10px';\n return d3.select(elementRef);\n}\n\n/**\n * Detach the renderer from the DOM element\n * @param {Element} element DOM element to attach the rendering elements\n * @param {Object} context Current rendering context\n */\nexport function detach(element, context) {\n logger.debug('detach renderer', element);\n context.select('svg').remove();\n}\n\n/**\n * Update the rendering context size\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @param {Number} minHeight Minimal height for resize\n * @param {Number} minWidth Minimal Width for resize\n * @return {Model}\n */\nexport function resize(context, model, stroker, minHeight, minWidth) {\n const rect = context.node().getBoundingClientRect();\n const svg = context.selectAll('svg');\n const width = rect.width < minWidth ? minWidth : rect.width;\n const height = rect.height < minHeight ? minHeight : rect.height;\n svg.attr('viewBox', `0 0 ${width}, ${height}`);\n svg.attr('width', `${width}px`);\n svg.attr('height', `${height}px`);\n logger.debug('svg viewBox changed', svg);\n return model;\n}\n\n/**\n * Draw the current stroke from the model\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function drawCurrentStroke(context, model, stroker) {\n const modelRef = model;\n // Add a pending id for pending strokes rendering\n modelRef.currentStroke.id = `pendingStroke-${model.rawStrokes.length}`;\n // Render the current stroke\n logger.trace('drawing current stroke ', model.currentStroke);\n context.select(`#pendingStrokes #${modelRef.currentStroke.id}`).remove();\n drawStroke(context.select('#pendingStrokes').append('path').attr('id', model.currentStroke.id), model.currentStroke, stroker);\n return modelRef;\n}\n\nfunction insertAdjacentSVG(element, position, html) {\n const container = element.ownerDocument.createElementNS('http://www.w3.org/2000/svg', '_');\n container.innerHTML = html;\n\n switch (position.toLowerCase()) {\n case 'beforebegin':\n element.parentNode.insertBefore(container.firstChild, element);\n break;\n case 'afterbegin':\n element.insertBefore(container.lastChild, element.firstChild);\n break;\n case 'beforeend':\n element.appendChild(container.firstChild);\n break;\n case 'afterend':\n element.parentNode.insertBefore(container.lastChild, element.nextSibling);\n break;\n default:\n logger.warn('Invalid insertAdjacentHTML position');\n break;\n }\n}\n\n/**\n * Draw all symbols contained into the model\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function drawModel(context, model, stroker) {\n const drawSymbol = (symbol, symbolContext) => {\n logger.trace(`attempting to draw ${symbol.type} symbol`);\n if (symbol.type === 'stroke' && !symbolContext.select('id', symbol.id)) {\n drawStroke(symbolContext.append('path').attr('id', symbol.id), symbol, stroker);\n } else {\n logger.warn(`impossible to draw ${symbol.type} symbol`);\n }\n };\n\n const updateView = (patchUpdate) => {\n // We only add in the stack patch with updates\n patchUpdate.updates.forEach((update) => {\n try {\n const svgElementSelector = 'svg[data-layer=\"' + patchUpdate.layer + '\"]';\n switch (update.type) {\n case 'REPLACE_ALL': {\n context.select(svgElementSelector).remove();\n const parent = context.node();\n if (parent.insertAdjacentHTML) {\n parent.insertAdjacentHTML('beforeEnd', update.svg);\n } else {\n insertAdjacentSVG(parent, 'beforeEnd', update.svg);\n }\n if (patchUpdate.layer === 'MODEL') {\n context.select(svgElementSelector).append('g').attr('id', 'pendingStrokes');\n }\n }\n break;\n case 'REMOVE_ELEMENT': {\n if (update.id.includes('s') || update.id.includes('MODEL')) {\n context.select(`#${update.id}`).remove();\n } else {\n context.select(`#${update.id}`).attr('class', 'removed-stroke');\n setTimeout(() => {\n context.select(`#${update.id}`).remove();\n }, 100);\n }\n break;\n }\n case 'REPLACE_ELEMENT': {\n const parent = context.select(`#${update.id}`).node().parentNode;\n context.select(`#${update.id}`).remove();\n if (parent.insertAdjacentHTML) {\n parent.insertAdjacentHTML('beforeEnd', update.svg);\n } else {\n insertAdjacentSVG(parent, 'beforeEnd', update.svg);\n context.node().insertAdjacentHTML('beforeEnd', context.select(svgElementSelector).remove().node().outerHTML);\n }\n }\n break;\n case 'REMOVE_CHILD':\n context.select(`#${update.parentId} > *:nth-child(${update.index + 1})`).remove();\n break;\n case 'APPEND_CHILD': {\n const parent = context.select(update.parentId ? `#${update.parentId}` : svgElementSelector).node();\n if (parent.insertAdjacentHTML) {\n parent.insertAdjacentHTML('beforeEnd', update.svg);\n } else {\n insertAdjacentSVG(parent, 'beforeEnd', update.svg);\n context.node().insertAdjacentHTML('beforeEnd', context.select(svgElementSelector).remove().node().outerHTML);\n }\n }\n break;\n case 'INSERT_BEFORE': {\n const parent = context.select(`#${update.refId}`).node();\n if (parent.insertAdjacentHTML) {\n parent.insertAdjacentHTML('beforeBegin', update.svg);\n } else {\n insertAdjacentSVG(parent, 'beforeBegin', update.svg);\n context.node().insertAdjacentHTML('beforeEnd', context.select(svgElementSelector).remove().node().outerHTML);\n }\n }\n break;\n case 'REMOVE_ATTRIBUTE':\n context.selectAll(update.id ? `#${update.id}` : 'svg').attr(update.name, null);\n break;\n case 'SET_ATTRIBUTE': {\n // We ignore setAttributes on the svg element because we handle the resize elsewhere to prevent a blink effect\n // that occurs if we are waiting for the server to resize.\n if (update.id) {\n context.selectAll(`#${update.id}`).attr(update.name, update.value);\n }\n break;\n }\n default:\n logger.debug(`unknown update ${update.type} action`);\n break;\n }\n } catch (e) {\n logger.error(`Invalid update ${update.type}`, update);\n logger.error('Error on svg patch', e);\n }\n });\n };\n\n const pendingRecognizedSymbols = InkModel.extractPendingRecognizedSymbols(model);\n if (pendingRecognizedSymbols) {\n pendingRecognizedSymbols.forEach(patch => updateView(patch));\n InkModel.updateModelRenderedPosition(model);\n }\n\n const pendingStrokes = InkModel.extractPendingStrokes(model);\n if (pendingStrokes) {\n pendingStrokes.forEach(stroke => drawSymbol(stroke, context.select('#pendingStrokes')));\n }\n return model;\n}\n","import {Selection} from \"./index\";\nimport selector from \"../selector\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n","import {Selection} from \"./index\";\nimport selectorAll from \"../selectorAll\";\n\nexport default function(select) {\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n subgroups.push(select.call(node, node.__data__, i, group));\n parents.push(node);\n }\n }\n }\n\n return new Selection(subgroups, parents);\n}\n","import {Selection} from \"./index\";\nimport matcher from \"../matcher\";\n\nexport default function(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n","export default function(x) {\n return function() {\n return x;\n };\n}\n","import sparse from \"./sparse\";\nimport {Selection} from \"./index\";\n\nexport default function() {\n return new Selection(this._exit || this._groups.map(sparse), this._parents);\n}\n","import {Selection} from \"./index\";\n\nexport default function(selection) {\n\n for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Selection(merges, this._parents);\n}\n","export default function() {\n\n for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {\n for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {\n if (node = group[i]) {\n if (next && next !== node.nextSibling) next.parentNode.insertBefore(node, next);\n next = node;\n }\n }\n }\n\n return this;\n}\n","export default function() {\n var callback = arguments[0];\n arguments[0] = this;\n callback.apply(null, arguments);\n return this;\n}\n","export default function() {\n var nodes = new Array(this.size()), i = -1;\n this.each(function() { nodes[++i] = this; });\n return nodes;\n}\n","export default function() {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {\n var node = group[i];\n if (node) return node;\n }\n }\n\n return null;\n}\n","export default function() {\n var size = 0;\n this.each(function() { ++size; });\n return size;\n}\n","export default function() {\n return !this.node();\n}\n","export default function(callback) {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {\n if (node = group[i]) callback.call(node, node.__data__, i, group);\n }\n }\n\n return this;\n}\n","import namespace from \"../namespace\";\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, value) {\n return function() {\n this.setAttribute(name, value);\n };\n}\n\nfunction attrConstantNS(fullname, value) {\n return function() {\n this.setAttributeNS(fullname.space, fullname.local, value);\n };\n}\n\nfunction attrFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttribute(name);\n else this.setAttribute(name, v);\n };\n}\n\nfunction attrFunctionNS(fullname, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttributeNS(fullname.space, fullname.local);\n else this.setAttributeNS(fullname.space, fullname.local, v);\n };\n}\n\nexport default function(name, value) {\n var fullname = namespace(name);\n\n if (arguments.length < 2) {\n var node = this.node();\n return fullname.local\n ? node.getAttributeNS(fullname.space, fullname.local)\n : node.getAttribute(fullname);\n }\n\n return this.each((value == null\n ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)\n : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value));\n}\n","import defaultView from \"../window\";\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, value, priority) {\n return function() {\n this.style.setProperty(name, value, priority);\n };\n}\n\nfunction styleFunction(name, value, priority) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.style.removeProperty(name);\n else this.style.setProperty(name, v, priority);\n };\n}\n\nexport default function(name, value, priority) {\n return arguments.length > 1\n ? this.each((value == null\n ? styleRemove : typeof value === \"function\"\n ? styleFunction\n : styleConstant)(name, value, priority == null ? \"\" : priority))\n : styleValue(this.node(), name);\n}\n\nexport function styleValue(node, name) {\n return node.style.getPropertyValue(name)\n || defaultView(node).getComputedStyle(node, null).getPropertyValue(name);\n}\n","function propertyRemove(name) {\n return function() {\n delete this[name];\n };\n}\n\nfunction propertyConstant(name, value) {\n return function() {\n this[name] = value;\n };\n}\n\nfunction propertyFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) delete this[name];\n else this[name] = v;\n };\n}\n\nexport default function(name, value) {\n return arguments.length > 1\n ? this.each((value == null\n ? propertyRemove : typeof value === \"function\"\n ? propertyFunction\n : propertyConstant)(name, value))\n : this.node()[name];\n}\n","import creator from \"../creator\";\n\nexport default function(name) {\n var create = typeof name === \"function\" ? name : creator(name);\n return this.select(function() {\n return this.appendChild(create.apply(this, arguments));\n });\n}\n","export default function(value) {\n return arguments.length\n ? this.property(\"__data__\", value)\n : this.node().__data__;\n}\n","import {Selection, root} from \"./selection/index\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([[document.querySelector(selector)]], [document.documentElement])\n : new Selection([[selector]], root);\n}\n","import * as StrokeComponent from '../../../model/StrokeComponent';\nimport { computeLinksPoints, computeMiddlePoint, computeAxeAngle } from '../../QuadraticUtils';\n\n/**\n * Get info\n * @return {StrokerInfo} Information about this stroker\n */\nexport function getInfo() {\n return {\n type: 'svg',\n name: 'quadratic',\n apiVersion: 'V4'\n };\n}\n\nfunction renderArc(context, center, radius) {\n const svgPath = [\n `M ${center.x},${center.y}`,\n `m ${-radius},0`,\n `a ${radius},${radius} 0 1 0 ${radius * 2},0`,\n `a ${radius},${radius} 0 1 0 ${-(radius * 2)},0`\n ].join(' ');\n return svgPath;\n}\n\nfunction renderLine(context, begin, end, width) {\n const linkPoints1 = computeLinksPoints(begin, computeAxeAngle(begin, end), width);\n const linkPoints2 = computeLinksPoints(end, computeAxeAngle(begin, end), width);\n\n const svgPath = [\n `M ${linkPoints1[0].x},${linkPoints1[0].y}`,\n `L ${linkPoints2[0].x},${linkPoints2[0].y}`,\n `L ${linkPoints2[1].x},${linkPoints2[1].y}`,\n `L ${linkPoints1[1].x},${linkPoints1[1].y}`\n ].join(' ');\n return svgPath;\n}\n\nfunction renderFinal(context, begin, end, width) {\n const ARCSPLIT = 6;\n const angle = computeAxeAngle(begin, end);\n const linkPoints = computeLinksPoints(end, angle, width);\n\n const parts = [`M ${linkPoints[0].x},${linkPoints[0].y}`];\n for (let i = 1; i <= ARCSPLIT; i++) {\n const newAngle = angle - (i * (Math.PI / ARCSPLIT));\n parts.push(`L ${end.x - (end.p * width * Math.sin(newAngle))},${end.y + (end.p * width * Math.cos(newAngle))}`);\n }\n const svgPath = parts.join(' ');\n return svgPath;\n}\n\nfunction renderQuadratic(context, begin, end, ctrl, width) {\n const linkPoints1 = computeLinksPoints(begin, computeAxeAngle(begin, ctrl), width);\n const linkPoints2 = computeLinksPoints(end, computeAxeAngle(ctrl, end), width);\n const linkPoints3 = computeLinksPoints(ctrl, computeAxeAngle(begin, end), width);\n\n const svgPath = [\n `M ${linkPoints1[0].x},${linkPoints1[0].y}`,\n `Q ${linkPoints3[0].x},${linkPoints3[0].y} ${linkPoints2[0].x},${linkPoints2[0].y}`,\n `L ${linkPoints2[1].x},${linkPoints2[1].y}`,\n `Q ${linkPoints3[1].x},${linkPoints3[1].y} ${linkPoints1[1].x},${linkPoints1[1].y}`\n ].join(' ');\n return svgPath;\n}\n\n/**\n * Draw a stroke on a svg tag, using quadratics\n * @param {Object} context Current rendering context\n * @param {Stroke} stroke Current stroke to be drawn\n */\nexport function drawStroke(context, stroke) {\n const length = stroke.x.length;\n const width = stroke.width;\n const firstPoint = StrokeComponent.getPointByIndex(stroke, 0);\n const nbquadratics = length - 2;\n\n const parts = [];\n if (length < 3) {\n parts.push(renderArc(context, firstPoint, width * 0.6));\n } else {\n parts.push(renderArc(context, firstPoint, width * firstPoint.p));\n parts.push(renderLine(context, firstPoint, computeMiddlePoint(firstPoint, StrokeComponent.getPointByIndex(stroke, 1)), width));\n\n for (let i = 0; i < nbquadratics; i++) {\n parts.push(renderQuadratic(context, computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, i), StrokeComponent.getPointByIndex(stroke, i + 1)), computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, i + 1), StrokeComponent.getPointByIndex(stroke, i + 2)), StrokeComponent.getPointByIndex(stroke, i + 1), width));\n }\n parts.push(renderLine(context, computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, length - 2), StrokeComponent.getPointByIndex(stroke, length - 1)), StrokeComponent.getPointByIndex(stroke, length - 1), width));\n parts.push(renderFinal(context, StrokeComponent.getPointByIndex(stroke, length - 2), StrokeComponent.getPointByIndex(stroke, length - 1), width));\n }\n const svgPath = parts.join(' ');\n\n context\n .attr('color', stroke.color)\n .style('fill', stroke.color)\n .style('stroke', 'transparent')\n .classed('pending-stroke', true)\n .attr('d', `${svgPath}Z`);\n}\n",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory();\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\troot.CryptoJS = factory();\n\t}\n}(this, function () {\n\n\t/**\n\t * CryptoJS core components.\n\t */\n\tvar CryptoJS = CryptoJS || (function (Math, undefined) {\n\t /*\n\t * Local polyfil of Object.create\n\t */\n\t var create = Object.create || (function () {\n\t function F() {};\n\n\t return function (obj) {\n\t var subtype;\n\n\t F.prototype = obj;\n\n\t subtype = new F();\n\n\t F.prototype = null;\n\n\t return subtype;\n\t };\n\t }())\n\n\t /**\n\t * CryptoJS namespace.\n\t */\n\t var C = {};\n\n\t /**\n\t * Library namespace.\n\t */\n\t var C_lib = C.lib = {};\n\n\t /**\n\t * Base object for prototypal inheritance.\n\t */\n\t var Base = C_lib.Base = (function () {\n\n\n\t return {\n\t /**\n\t * Creates a new object that inherits from this object.\n\t *\n\t * @param {Object} overrides Properties to copy into the new object.\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * field: 'value',\n\t *\n\t * method: function () {\n\t * }\n\t * });\n\t */\n\t extend: function (overrides) {\n\t // Spawn\n\t var subtype = create(this);\n\n\t // Augment\n\t if (overrides) {\n\t subtype.mixIn(overrides);\n\t }\n\n\t // Create default initializer\n\t if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {\n\t subtype.init = function () {\n\t subtype.$super.init.apply(this, arguments);\n\t };\n\t }\n\n\t // Initializer's prototype is the subtype object\n\t subtype.init.prototype = subtype;\n\n\t // Reference supertype\n\t subtype.$super = this;\n\n\t return subtype;\n\t },\n\n\t /**\n\t * Extends this object and runs the init method.\n\t * Arguments to create() will be passed to init().\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var instance = MyType.create();\n\t */\n\t create: function () {\n\t var instance = this.extend();\n\t instance.init.apply(instance, arguments);\n\n\t return instance;\n\t },\n\n\t /**\n\t * Initializes a newly created object.\n\t * Override this method to add some logic when your objects are created.\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * init: function () {\n\t * // ...\n\t * }\n\t * });\n\t */\n\t init: function () {\n\t },\n\n\t /**\n\t * Copies properties into this object.\n\t *\n\t * @param {Object} properties The properties to mix in.\n\t *\n\t * @example\n\t *\n\t * MyType.mixIn({\n\t * field: 'value'\n\t * });\n\t */\n\t mixIn: function (properties) {\n\t for (var propertyName in properties) {\n\t if (properties.hasOwnProperty(propertyName)) {\n\t this[propertyName] = properties[propertyName];\n\t }\n\t }\n\n\t // IE won't copy toString using the loop above\n\t if (properties.hasOwnProperty('toString')) {\n\t this.toString = properties.toString;\n\t }\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = instance.clone();\n\t */\n\t clone: function () {\n\t return this.init.prototype.extend(this);\n\t }\n\t };\n\t }());\n\n\t /**\n\t * An array of 32-bit words.\n\t *\n\t * @property {Array} words The array of 32-bit words.\n\t * @property {number} sigBytes The number of significant bytes in this word array.\n\t */\n\t var WordArray = C_lib.WordArray = Base.extend({\n\t /**\n\t * Initializes a newly created word array.\n\t *\n\t * @param {Array} words (Optional) An array of 32-bit words.\n\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.create();\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);\n\t */\n\t init: function (words, sigBytes) {\n\t words = this.words = words || [];\n\n\t if (sigBytes != undefined) {\n\t this.sigBytes = sigBytes;\n\t } else {\n\t this.sigBytes = words.length * 4;\n\t }\n\t },\n\n\t /**\n\t * Converts this word array to a string.\n\t *\n\t * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex\n\t *\n\t * @return {string} The stringified word array.\n\t *\n\t * @example\n\t *\n\t * var string = wordArray + '';\n\t * var string = wordArray.toString();\n\t * var string = wordArray.toString(CryptoJS.enc.Utf8);\n\t */\n\t toString: function (encoder) {\n\t return (encoder || Hex).stringify(this);\n\t },\n\n\t /**\n\t * Concatenates a word array to this word array.\n\t *\n\t * @param {WordArray} wordArray The word array to append.\n\t *\n\t * @return {WordArray} This word array.\n\t *\n\t * @example\n\t *\n\t * wordArray1.concat(wordArray2);\n\t */\n\t concat: function (wordArray) {\n\t // Shortcuts\n\t var thisWords = this.words;\n\t var thatWords = wordArray.words;\n\t var thisSigBytes = this.sigBytes;\n\t var thatSigBytes = wordArray.sigBytes;\n\n\t // Clamp excess bits\n\t this.clamp();\n\n\t // Concat\n\t if (thisSigBytes % 4) {\n\t // Copy one byte at a time\n\t for (var i = 0; i < thatSigBytes; i++) {\n\t var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);\n\t }\n\t } else {\n\t // Copy one word at a time\n\t for (var i = 0; i < thatSigBytes; i += 4) {\n\t thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2];\n\t }\n\t }\n\t this.sigBytes += thatSigBytes;\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Removes insignificant bits.\n\t *\n\t * @example\n\t *\n\t * wordArray.clamp();\n\t */\n\t clamp: function () {\n\t // Shortcuts\n\t var words = this.words;\n\t var sigBytes = this.sigBytes;\n\n\t // Clamp\n\t words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);\n\t words.length = Math.ceil(sigBytes / 4);\n\t },\n\n\t /**\n\t * Creates a copy of this word array.\n\t *\n\t * @return {WordArray} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = wordArray.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone.words = this.words.slice(0);\n\n\t return clone;\n\t },\n\n\t /**\n\t * Creates a word array filled with random bytes.\n\t *\n\t * @param {number} nBytes The number of random bytes to generate.\n\t *\n\t * @return {WordArray} The random word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.random(16);\n\t */\n\t random: function (nBytes) {\n\t var words = [];\n\n\t var r = (function (m_w) {\n\t var m_w = m_w;\n\t var m_z = 0x3ade68b1;\n\t var mask = 0xffffffff;\n\n\t return function () {\n\t m_z = (0x9069 * (m_z & 0xFFFF) + (m_z >> 0x10)) & mask;\n\t m_w = (0x4650 * (m_w & 0xFFFF) + (m_w >> 0x10)) & mask;\n\t var result = ((m_z << 0x10) + m_w) & mask;\n\t result /= 0x100000000;\n\t result += 0.5;\n\t return result * (Math.random() > .5 ? 1 : -1);\n\t }\n\t });\n\n\t for (var i = 0, rcache; i < nBytes; i += 4) {\n\t var _r = r((rcache || Math.random()) * 0x100000000);\n\n\t rcache = _r() * 0x3ade67b7;\n\t words.push((_r() * 0x100000000) | 0);\n\t }\n\n\t return new WordArray.init(words, nBytes);\n\t }\n\t });\n\n\t /**\n\t * Encoder namespace.\n\t */\n\t var C_enc = C.enc = {};\n\n\t /**\n\t * Hex encoding strategy.\n\t */\n\t var Hex = C_enc.Hex = {\n\t /**\n\t * Converts a word array to a hex string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The hex string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hexString = CryptoJS.enc.Hex.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var hexChars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t hexChars.push((bite >>> 4).toString(16));\n\t hexChars.push((bite & 0x0f).toString(16));\n\t }\n\n\t return hexChars.join('');\n\t },\n\n\t /**\n\t * Converts a hex string to a word array.\n\t *\n\t * @param {string} hexStr The hex string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Hex.parse(hexString);\n\t */\n\t parse: function (hexStr) {\n\t // Shortcut\n\t var hexStrLength = hexStr.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < hexStrLength; i += 2) {\n\t words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);\n\t }\n\n\t return new WordArray.init(words, hexStrLength / 2);\n\t }\n\t };\n\n\t /**\n\t * Latin1 encoding strategy.\n\t */\n\t var Latin1 = C_enc.Latin1 = {\n\t /**\n\t * Converts a word array to a Latin1 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The Latin1 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var latin1Chars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t latin1Chars.push(String.fromCharCode(bite));\n\t }\n\n\t return latin1Chars.join('');\n\t },\n\n\t /**\n\t * Converts a Latin1 string to a word array.\n\t *\n\t * @param {string} latin1Str The Latin1 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);\n\t */\n\t parse: function (latin1Str) {\n\t // Shortcut\n\t var latin1StrLength = latin1Str.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < latin1StrLength; i++) {\n\t words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);\n\t }\n\n\t return new WordArray.init(words, latin1StrLength);\n\t }\n\t };\n\n\t /**\n\t * UTF-8 encoding strategy.\n\t */\n\t var Utf8 = C_enc.Utf8 = {\n\t /**\n\t * Converts a word array to a UTF-8 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The UTF-8 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t try {\n\t return decodeURIComponent(escape(Latin1.stringify(wordArray)));\n\t } catch (e) {\n\t throw new Error('Malformed UTF-8 data');\n\t }\n\t },\n\n\t /**\n\t * Converts a UTF-8 string to a word array.\n\t *\n\t * @param {string} utf8Str The UTF-8 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);\n\t */\n\t parse: function (utf8Str) {\n\t return Latin1.parse(unescape(encodeURIComponent(utf8Str)));\n\t }\n\t };\n\n\t /**\n\t * Abstract buffered block algorithm template.\n\t *\n\t * The property blockSize must be implemented in a concrete subtype.\n\t *\n\t * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0\n\t */\n\t var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({\n\t /**\n\t * Resets this block algorithm's data buffer to its initial state.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm.reset();\n\t */\n\t reset: function () {\n\t // Initial values\n\t this._data = new WordArray.init();\n\t this._nDataBytes = 0;\n\t },\n\n\t /**\n\t * Adds new data to this block algorithm's buffer.\n\t *\n\t * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm._append('data');\n\t * bufferedBlockAlgorithm._append(wordArray);\n\t */\n\t _append: function (data) {\n\t // Convert string to WordArray, else assume WordArray already\n\t if (typeof data == 'string') {\n\t data = Utf8.parse(data);\n\t }\n\n\t // Append\n\t this._data.concat(data);\n\t this._nDataBytes += data.sigBytes;\n\t },\n\n\t /**\n\t * Processes available data blocks.\n\t *\n\t * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.\n\t *\n\t * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.\n\t *\n\t * @return {WordArray} The processed data.\n\t *\n\t * @example\n\t *\n\t * var processedData = bufferedBlockAlgorithm._process();\n\t * var processedData = bufferedBlockAlgorithm._process(!!'flush');\n\t */\n\t _process: function (doFlush) {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\t var dataSigBytes = data.sigBytes;\n\t var blockSize = this.blockSize;\n\t var blockSizeBytes = blockSize * 4;\n\n\t // Count blocks ready\n\t var nBlocksReady = dataSigBytes / blockSizeBytes;\n\t if (doFlush) {\n\t // Round up to include partial blocks\n\t nBlocksReady = Math.ceil(nBlocksReady);\n\t } else {\n\t // Round down to include only full blocks,\n\t // less the number of blocks that must remain in the buffer\n\t nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);\n\t }\n\n\t // Count words ready\n\t var nWordsReady = nBlocksReady * blockSize;\n\n\t // Count bytes ready\n\t var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);\n\n\t // Process blocks\n\t if (nWordsReady) {\n\t for (var offset = 0; offset < nWordsReady; offset += blockSize) {\n\t // Perform concrete-algorithm logic\n\t this._doProcessBlock(dataWords, offset);\n\t }\n\n\t // Remove processed words\n\t var processedWords = dataWords.splice(0, nWordsReady);\n\t data.sigBytes -= nBytesReady;\n\t }\n\n\t // Return processed words\n\t return new WordArray.init(processedWords, nBytesReady);\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = bufferedBlockAlgorithm.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone._data = this._data.clone();\n\n\t return clone;\n\t },\n\n\t _minBufferSize: 0\n\t });\n\n\t /**\n\t * Abstract hasher template.\n\t *\n\t * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)\n\t */\n\t var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({\n\t /**\n\t * Configuration options.\n\t */\n\t cfg: Base.extend(),\n\n\t /**\n\t * Initializes a newly created hasher.\n\t *\n\t * @param {Object} cfg (Optional) The configuration options to use for this hash computation.\n\t *\n\t * @example\n\t *\n\t * var hasher = CryptoJS.algo.SHA256.create();\n\t */\n\t init: function (cfg) {\n\t // Apply config defaults\n\t this.cfg = this.cfg.extend(cfg);\n\n\t // Set initial values\n\t this.reset();\n\t },\n\n\t /**\n\t * Resets this hasher to its initial state.\n\t *\n\t * @example\n\t *\n\t * hasher.reset();\n\t */\n\t reset: function () {\n\t // Reset data buffer\n\t BufferedBlockAlgorithm.reset.call(this);\n\n\t // Perform concrete-hasher logic\n\t this._doReset();\n\t },\n\n\t /**\n\t * Updates this hasher with a message.\n\t *\n\t * @param {WordArray|string} messageUpdate The message to append.\n\t *\n\t * @return {Hasher} This hasher.\n\t *\n\t * @example\n\t *\n\t * hasher.update('message');\n\t * hasher.update(wordArray);\n\t */\n\t update: function (messageUpdate) {\n\t // Append\n\t this._append(messageUpdate);\n\n\t // Update the hash\n\t this._process();\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Finalizes the hash computation.\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t *\n\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @example\n\t *\n\t * var hash = hasher.finalize();\n\t * var hash = hasher.finalize('message');\n\t * var hash = hasher.finalize(wordArray);\n\t */\n\t finalize: function (messageUpdate) {\n\t // Final message update\n\t if (messageUpdate) {\n\t this._append(messageUpdate);\n\t }\n\n\t // Perform concrete-hasher logic\n\t var hash = this._doFinalize();\n\n\t return hash;\n\t },\n\n\t blockSize: 512/32,\n\n\t /**\n\t * Creates a shortcut function to a hasher's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to create a helper for.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHelper: function (hasher) {\n\t return function (message, cfg) {\n\t return new hasher.init(cfg).finalize(message);\n\t };\n\t },\n\n\t /**\n\t * Creates a shortcut function to the HMAC's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to use in this HMAC helper.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHmacHelper: function (hasher) {\n\t return function (message, key) {\n\t return new C_algo.HMAC.init(hasher, key).finalize(message);\n\t };\n\t }\n\t });\n\n\t /**\n\t * Algorithm namespace.\n\t */\n\t var C_algo = C.algo = {};\n\n\t return C;\n\t}(Math));\n\n\n\treturn CryptoJS;\n\n}));",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\treturn CryptoJS.enc.Hex;\n\n}));",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (undefined) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Base = C_lib.Base;\n\t var X32WordArray = C_lib.WordArray;\n\n\t /**\n\t * x64 namespace.\n\t */\n\t var C_x64 = C.x64 = {};\n\n\t /**\n\t * A 64-bit word.\n\t */\n\t var X64Word = C_x64.Word = Base.extend({\n\t /**\n\t * Initializes a newly created 64-bit word.\n\t *\n\t * @param {number} high The high 32 bits.\n\t * @param {number} low The low 32 bits.\n\t *\n\t * @example\n\t *\n\t * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);\n\t */\n\t init: function (high, low) {\n\t this.high = high;\n\t this.low = low;\n\t }\n\n\t /**\n\t * Bitwise NOTs this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after negating.\n\t *\n\t * @example\n\t *\n\t * var negated = x64Word.not();\n\t */\n\t // not: function () {\n\t // var high = ~this.high;\n\t // var low = ~this.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Bitwise ANDs this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to AND with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after ANDing.\n\t *\n\t * @example\n\t *\n\t * var anded = x64Word.and(anotherX64Word);\n\t */\n\t // and: function (word) {\n\t // var high = this.high & word.high;\n\t // var low = this.low & word.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Bitwise ORs this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to OR with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after ORing.\n\t *\n\t * @example\n\t *\n\t * var ored = x64Word.or(anotherX64Word);\n\t */\n\t // or: function (word) {\n\t // var high = this.high | word.high;\n\t // var low = this.low | word.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Bitwise XORs this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to XOR with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after XORing.\n\t *\n\t * @example\n\t *\n\t * var xored = x64Word.xor(anotherX64Word);\n\t */\n\t // xor: function (word) {\n\t // var high = this.high ^ word.high;\n\t // var low = this.low ^ word.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Shifts this word n bits to the left.\n\t *\n\t * @param {number} n The number of bits to shift.\n\t *\n\t * @return {X64Word} A new x64-Word object after shifting.\n\t *\n\t * @example\n\t *\n\t * var shifted = x64Word.shiftL(25);\n\t */\n\t // shiftL: function (n) {\n\t // if (n < 32) {\n\t // var high = (this.high << n) | (this.low >>> (32 - n));\n\t // var low = this.low << n;\n\t // } else {\n\t // var high = this.low << (n - 32);\n\t // var low = 0;\n\t // }\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Shifts this word n bits to the right.\n\t *\n\t * @param {number} n The number of bits to shift.\n\t *\n\t * @return {X64Word} A new x64-Word object after shifting.\n\t *\n\t * @example\n\t *\n\t * var shifted = x64Word.shiftR(7);\n\t */\n\t // shiftR: function (n) {\n\t // if (n < 32) {\n\t // var low = (this.low >>> n) | (this.high << (32 - n));\n\t // var high = this.high >>> n;\n\t // } else {\n\t // var low = this.high >>> (n - 32);\n\t // var high = 0;\n\t // }\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Rotates this word n bits to the left.\n\t *\n\t * @param {number} n The number of bits to rotate.\n\t *\n\t * @return {X64Word} A new x64-Word object after rotating.\n\t *\n\t * @example\n\t *\n\t * var rotated = x64Word.rotL(25);\n\t */\n\t // rotL: function (n) {\n\t // return this.shiftL(n).or(this.shiftR(64 - n));\n\t // },\n\n\t /**\n\t * Rotates this word n bits to the right.\n\t *\n\t * @param {number} n The number of bits to rotate.\n\t *\n\t * @return {X64Word} A new x64-Word object after rotating.\n\t *\n\t * @example\n\t *\n\t * var rotated = x64Word.rotR(7);\n\t */\n\t // rotR: function (n) {\n\t // return this.shiftR(n).or(this.shiftL(64 - n));\n\t // },\n\n\t /**\n\t * Adds this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to add with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after adding.\n\t *\n\t * @example\n\t *\n\t * var added = x64Word.add(anotherX64Word);\n\t */\n\t // add: function (word) {\n\t // var low = (this.low + word.low) | 0;\n\t // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;\n\t // var high = (this.high + word.high + carry) | 0;\n\n\t // return X64Word.create(high, low);\n\t // }\n\t });\n\n\t /**\n\t * An array of 64-bit words.\n\t *\n\t * @property {Array} words The array of CryptoJS.x64.Word objects.\n\t * @property {number} sigBytes The number of significant bytes in this word array.\n\t */\n\t var X64WordArray = C_x64.WordArray = Base.extend({\n\t /**\n\t * Initializes a newly created word array.\n\t *\n\t * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.\n\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.x64.WordArray.create();\n\t *\n\t * var wordArray = CryptoJS.x64.WordArray.create([\n\t * CryptoJS.x64.Word.create(0x00010203, 0x04050607),\n\t * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)\n\t * ]);\n\t *\n\t * var wordArray = CryptoJS.x64.WordArray.create([\n\t * CryptoJS.x64.Word.create(0x00010203, 0x04050607),\n\t * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)\n\t * ], 10);\n\t */\n\t init: function (words, sigBytes) {\n\t words = this.words = words || [];\n\n\t if (sigBytes != undefined) {\n\t this.sigBytes = sigBytes;\n\t } else {\n\t this.sigBytes = words.length * 8;\n\t }\n\t },\n\n\t /**\n\t * Converts this 64-bit word array to a 32-bit word array.\n\t *\n\t * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.\n\t *\n\t * @example\n\t *\n\t * var x32WordArray = x64WordArray.toX32();\n\t */\n\t toX32: function () {\n\t // Shortcuts\n\t var x64Words = this.words;\n\t var x64WordsLength = x64Words.length;\n\n\t // Convert\n\t var x32Words = [];\n\t for (var i = 0; i < x64WordsLength; i++) {\n\t var x64Word = x64Words[i];\n\t x32Words.push(x64Word.high);\n\t x32Words.push(x64Word.low);\n\t }\n\n\t return X32WordArray.create(x32Words, this.sigBytes);\n\t },\n\n\t /**\n\t * Creates a copy of this word array.\n\t *\n\t * @return {X64WordArray} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = x64WordArray.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\n\t // Clone \"words\" array\n\t var words = clone.words = this.words.slice(0);\n\n\t // Clone each X64Word object\n\t var wordsLength = words.length;\n\t for (var i = 0; i < wordsLength; i++) {\n\t words[i] = words[i].clone();\n\t }\n\n\t return clone;\n\t }\n\t });\n\t}());\n\n\n\treturn CryptoJS;\n\n}));",";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./x64-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./x64-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Hasher = C_lib.Hasher;\n\t var C_x64 = C.x64;\n\t var X64Word = C_x64.Word;\n\t var X64WordArray = C_x64.WordArray;\n\t var C_algo = C.algo;\n\n\t function X64Word_create() {\n\t return X64Word.create.apply(X64Word, arguments);\n\t }\n\n\t // Constants\n\t var K = [\n\t X64Word_create(0x428a2f98, 0xd728ae22), X64Word_create(0x71374491, 0x23ef65cd),\n\t X64Word_create(0xb5c0fbcf, 0xec4d3b2f), X64Word_create(0xe9b5dba5, 0x8189dbbc),\n\t X64Word_create(0x3956c25b, 0xf348b538), X64Word_create(0x59f111f1, 0xb605d019),\n\t X64Word_create(0x923f82a4, 0xaf194f9b), X64Word_create(0xab1c5ed5, 0xda6d8118),\n\t X64Word_create(0xd807aa98, 0xa3030242), X64Word_create(0x12835b01, 0x45706fbe),\n\t X64Word_create(0x243185be, 0x4ee4b28c), X64Word_create(0x550c7dc3, 0xd5ffb4e2),\n\t X64Word_create(0x72be5d74, 0xf27b896f), X64Word_create(0x80deb1fe, 0x3b1696b1),\n\t X64Word_create(0x9bdc06a7, 0x25c71235), X64Word_create(0xc19bf174, 0xcf692694),\n\t X64Word_create(0xe49b69c1, 0x9ef14ad2), X64Word_create(0xefbe4786, 0x384f25e3),\n\t X64Word_create(0x0fc19dc6, 0x8b8cd5b5), X64Word_create(0x240ca1cc, 0x77ac9c65),\n\t X64Word_create(0x2de92c6f, 0x592b0275), X64Word_create(0x4a7484aa, 0x6ea6e483),\n\t X64Word_create(0x5cb0a9dc, 0xbd41fbd4), X64Word_create(0x76f988da, 0x831153b5),\n\t X64Word_create(0x983e5152, 0xee66dfab), X64Word_create(0xa831c66d, 0x2db43210),\n\t X64Word_create(0xb00327c8, 0x98fb213f), X64Word_create(0xbf597fc7, 0xbeef0ee4),\n\t X64Word_create(0xc6e00bf3, 0x3da88fc2), X64Word_create(0xd5a79147, 0x930aa725),\n\t X64Word_create(0x06ca6351, 0xe003826f), X64Word_create(0x14292967, 0x0a0e6e70),\n\t X64Word_create(0x27b70a85, 0x46d22ffc), X64Word_create(0x2e1b2138, 0x5c26c926),\n\t X64Word_create(0x4d2c6dfc, 0x5ac42aed), X64Word_create(0x53380d13, 0x9d95b3df),\n\t X64Word_create(0x650a7354, 0x8baf63de), X64Word_create(0x766a0abb, 0x3c77b2a8),\n\t X64Word_create(0x81c2c92e, 0x47edaee6), X64Word_create(0x92722c85, 0x1482353b),\n\t X64Word_create(0xa2bfe8a1, 0x4cf10364), X64Word_create(0xa81a664b, 0xbc423001),\n\t X64Word_create(0xc24b8b70, 0xd0f89791), X64Word_create(0xc76c51a3, 0x0654be30),\n\t X64Word_create(0xd192e819, 0xd6ef5218), X64Word_create(0xd6990624, 0x5565a910),\n\t X64Word_create(0xf40e3585, 0x5771202a), X64Word_create(0x106aa070, 0x32bbd1b8),\n\t X64Word_create(0x19a4c116, 0xb8d2d0c8), X64Word_create(0x1e376c08, 0x5141ab53),\n\t X64Word_create(0x2748774c, 0xdf8eeb99), X64Word_create(0x34b0bcb5, 0xe19b48a8),\n\t X64Word_create(0x391c0cb3, 0xc5c95a63), X64Word_create(0x4ed8aa4a, 0xe3418acb),\n\t X64Word_create(0x5b9cca4f, 0x7763e373), X64Word_create(0x682e6ff3, 0xd6b2b8a3),\n\t X64Word_create(0x748f82ee, 0x5defb2fc), X64Word_create(0x78a5636f, 0x43172f60),\n\t X64Word_create(0x84c87814, 0xa1f0ab72), X64Word_create(0x8cc70208, 0x1a6439ec),\n\t X64Word_create(0x90befffa, 0x23631e28), X64Word_create(0xa4506ceb, 0xde82bde9),\n\t X64Word_create(0xbef9a3f7, 0xb2c67915), X64Word_create(0xc67178f2, 0xe372532b),\n\t X64Word_create(0xca273ece, 0xea26619c), X64Word_create(0xd186b8c7, 0x21c0c207),\n\t X64Word_create(0xeada7dd6, 0xcde0eb1e), X64Word_create(0xf57d4f7f, 0xee6ed178),\n\t X64Word_create(0x06f067aa, 0x72176fba), X64Word_create(0x0a637dc5, 0xa2c898a6),\n\t X64Word_create(0x113f9804, 0xbef90dae), X64Word_create(0x1b710b35, 0x131c471b),\n\t X64Word_create(0x28db77f5, 0x23047d84), X64Word_create(0x32caab7b, 0x40c72493),\n\t X64Word_create(0x3c9ebe0a, 0x15c9bebc), X64Word_create(0x431d67c4, 0x9c100d4c),\n\t X64Word_create(0x4cc5d4be, 0xcb3e42b6), X64Word_create(0x597f299c, 0xfc657e2a),\n\t X64Word_create(0x5fcb6fab, 0x3ad6faec), X64Word_create(0x6c44198c, 0x4a475817)\n\t ];\n\n\t // Reusable objects\n\t var W = [];\n\t (function () {\n\t for (var i = 0; i < 80; i++) {\n\t W[i] = X64Word_create();\n\t }\n\t }());\n\n\t /**\n\t * SHA-512 hash algorithm.\n\t */\n\t var SHA512 = C_algo.SHA512 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new X64WordArray.init([\n\t new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b),\n\t new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1),\n\t new X64Word.init(0x510e527f, 0xade682d1), new X64Word.init(0x9b05688c, 0x2b3e6c1f),\n\t new X64Word.init(0x1f83d9ab, 0xfb41bd6b), new X64Word.init(0x5be0cd19, 0x137e2179)\n\t ]);\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcuts\n\t var H = this._hash.words;\n\n\t var H0 = H[0];\n\t var H1 = H[1];\n\t var H2 = H[2];\n\t var H3 = H[3];\n\t var H4 = H[4];\n\t var H5 = H[5];\n\t var H6 = H[6];\n\t var H7 = H[7];\n\n\t var H0h = H0.high;\n\t var H0l = H0.low;\n\t var H1h = H1.high;\n\t var H1l = H1.low;\n\t var H2h = H2.high;\n\t var H2l = H2.low;\n\t var H3h = H3.high;\n\t var H3l = H3.low;\n\t var H4h = H4.high;\n\t var H4l = H4.low;\n\t var H5h = H5.high;\n\t var H5l = H5.low;\n\t var H6h = H6.high;\n\t var H6l = H6.low;\n\t var H7h = H7.high;\n\t var H7l = H7.low;\n\n\t // Working variables\n\t var ah = H0h;\n\t var al = H0l;\n\t var bh = H1h;\n\t var bl = H1l;\n\t var ch = H2h;\n\t var cl = H2l;\n\t var dh = H3h;\n\t var dl = H3l;\n\t var eh = H4h;\n\t var el = H4l;\n\t var fh = H5h;\n\t var fl = H5l;\n\t var gh = H6h;\n\t var gl = H6l;\n\t var hh = H7h;\n\t var hl = H7l;\n\n\t // Rounds\n\t for (var i = 0; i < 80; i++) {\n\t // Shortcut\n\t var Wi = W[i];\n\n\t // Extend message\n\t if (i < 16) {\n\t var Wih = Wi.high = M[offset + i * 2] | 0;\n\t var Wil = Wi.low = M[offset + i * 2 + 1] | 0;\n\t } else {\n\t // Gamma0\n\t var gamma0x = W[i - 15];\n\t var gamma0xh = gamma0x.high;\n\t var gamma0xl = gamma0x.low;\n\t var gamma0h = ((gamma0xh >>> 1) | (gamma0xl << 31)) ^ ((gamma0xh >>> 8) | (gamma0xl << 24)) ^ (gamma0xh >>> 7);\n\t var gamma0l = ((gamma0xl >>> 1) | (gamma0xh << 31)) ^ ((gamma0xl >>> 8) | (gamma0xh << 24)) ^ ((gamma0xl >>> 7) | (gamma0xh << 25));\n\n\t // Gamma1\n\t var gamma1x = W[i - 2];\n\t var gamma1xh = gamma1x.high;\n\t var gamma1xl = gamma1x.low;\n\t var gamma1h = ((gamma1xh >>> 19) | (gamma1xl << 13)) ^ ((gamma1xh << 3) | (gamma1xl >>> 29)) ^ (gamma1xh >>> 6);\n\t var gamma1l = ((gamma1xl >>> 19) | (gamma1xh << 13)) ^ ((gamma1xl << 3) | (gamma1xh >>> 29)) ^ ((gamma1xl >>> 6) | (gamma1xh << 26));\n\n\t // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]\n\t var Wi7 = W[i - 7];\n\t var Wi7h = Wi7.high;\n\t var Wi7l = Wi7.low;\n\n\t var Wi16 = W[i - 16];\n\t var Wi16h = Wi16.high;\n\t var Wi16l = Wi16.low;\n\n\t var Wil = gamma0l + Wi7l;\n\t var Wih = gamma0h + Wi7h + ((Wil >>> 0) < (gamma0l >>> 0) ? 1 : 0);\n\t var Wil = Wil + gamma1l;\n\t var Wih = Wih + gamma1h + ((Wil >>> 0) < (gamma1l >>> 0) ? 1 : 0);\n\t var Wil = Wil + Wi16l;\n\t var Wih = Wih + Wi16h + ((Wil >>> 0) < (Wi16l >>> 0) ? 1 : 0);\n\n\t Wi.high = Wih;\n\t Wi.low = Wil;\n\t }\n\n\t var chh = (eh & fh) ^ (~eh & gh);\n\t var chl = (el & fl) ^ (~el & gl);\n\t var majh = (ah & bh) ^ (ah & ch) ^ (bh & ch);\n\t var majl = (al & bl) ^ (al & cl) ^ (bl & cl);\n\n\t var sigma0h = ((ah >>> 28) | (al << 4)) ^ ((ah << 30) | (al >>> 2)) ^ ((ah << 25) | (al >>> 7));\n\t var sigma0l = ((al >>> 28) | (ah << 4)) ^ ((al << 30) | (ah >>> 2)) ^ ((al << 25) | (ah >>> 7));\n\t var sigma1h = ((eh >>> 14) | (el << 18)) ^ ((eh >>> 18) | (el << 14)) ^ ((eh << 23) | (el >>> 9));\n\t var sigma1l = ((el >>> 14) | (eh << 18)) ^ ((el >>> 18) | (eh << 14)) ^ ((el << 23) | (eh >>> 9));\n\n\t // t1 = h + sigma1 + ch + K[i] + W[i]\n\t var Ki = K[i];\n\t var Kih = Ki.high;\n\t var Kil = Ki.low;\n\n\t var t1l = hl + sigma1l;\n\t var t1h = hh + sigma1h + ((t1l >>> 0) < (hl >>> 0) ? 1 : 0);\n\t var t1l = t1l + chl;\n\t var t1h = t1h + chh + ((t1l >>> 0) < (chl >>> 0) ? 1 : 0);\n\t var t1l = t1l + Kil;\n\t var t1h = t1h + Kih + ((t1l >>> 0) < (Kil >>> 0) ? 1 : 0);\n\t var t1l = t1l + Wil;\n\t var t1h = t1h + Wih + ((t1l >>> 0) < (Wil >>> 0) ? 1 : 0);\n\n\t // t2 = sigma0 + maj\n\t var t2l = sigma0l + majl;\n\t var t2h = sigma0h + majh + ((t2l >>> 0) < (sigma0l >>> 0) ? 1 : 0);\n\n\t // Update working variables\n\t hh = gh;\n\t hl = gl;\n\t gh = fh;\n\t gl = fl;\n\t fh = eh;\n\t fl = el;\n\t el = (dl + t1l) | 0;\n\t eh = (dh + t1h + ((el >>> 0) < (dl >>> 0) ? 1 : 0)) | 0;\n\t dh = ch;\n\t dl = cl;\n\t ch = bh;\n\t cl = bl;\n\t bh = ah;\n\t bl = al;\n\t al = (t1l + t2l) | 0;\n\t ah = (t1h + t2h + ((al >>> 0) < (t1l >>> 0) ? 1 : 0)) | 0;\n\t }\n\n\t // Intermediate hash value\n\t H0l = H0.low = (H0l + al);\n\t H0.high = (H0h + ah + ((H0l >>> 0) < (al >>> 0) ? 1 : 0));\n\t H1l = H1.low = (H1l + bl);\n\t H1.high = (H1h + bh + ((H1l >>> 0) < (bl >>> 0) ? 1 : 0));\n\t H2l = H2.low = (H2l + cl);\n\t H2.high = (H2h + ch + ((H2l >>> 0) < (cl >>> 0) ? 1 : 0));\n\t H3l = H3.low = (H3l + dl);\n\t H3.high = (H3h + dh + ((H3l >>> 0) < (dl >>> 0) ? 1 : 0));\n\t H4l = H4.low = (H4l + el);\n\t H4.high = (H4h + eh + ((H4l >>> 0) < (el >>> 0) ? 1 : 0));\n\t H5l = H5.low = (H5l + fl);\n\t H5.high = (H5h + fh + ((H5l >>> 0) < (fl >>> 0) ? 1 : 0));\n\t H6l = H6.low = (H6l + gl);\n\t H6.high = (H6h + gh + ((H6l >>> 0) < (gl >>> 0) ? 1 : 0));\n\t H7l = H7.low = (H7l + hl);\n\t H7.high = (H7h + hh + ((H7l >>> 0) < (hl >>> 0) ? 1 : 0));\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 30] = Math.floor(nBitsTotal / 0x100000000);\n\t dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 31] = nBitsTotal;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Convert hash to 32-bit word array before returning\n\t var hash = this._hash.toX32();\n\n\t // Return final computed hash\n\t return hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t },\n\n\t blockSize: 1024/32\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA512('message');\n\t * var hash = CryptoJS.SHA512(wordArray);\n\t */\n\t C.SHA512 = Hasher._createHelper(SHA512);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA512(message, key);\n\t */\n\t C.HmacSHA512 = Hasher._createHmacHelper(SHA512);\n\t}());\n\n\n\treturn CryptoJS.SHA512;\n\n}));",";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Base = C_lib.Base;\n\t var C_enc = C.enc;\n\t var Utf8 = C_enc.Utf8;\n\t var C_algo = C.algo;\n\n\t /**\n\t * HMAC algorithm.\n\t */\n\t var HMAC = C_algo.HMAC = Base.extend({\n\t /**\n\t * Initializes a newly created HMAC.\n\t *\n\t * @param {Hasher} hasher The hash algorithm to use.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @example\n\t *\n\t * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);\n\t */\n\t init: function (hasher, key) {\n\t // Init hasher\n\t hasher = this._hasher = new hasher.init();\n\n\t // Convert string to WordArray, else assume WordArray already\n\t if (typeof key == 'string') {\n\t key = Utf8.parse(key);\n\t }\n\n\t // Shortcuts\n\t var hasherBlockSize = hasher.blockSize;\n\t var hasherBlockSizeBytes = hasherBlockSize * 4;\n\n\t // Allow arbitrary length keys\n\t if (key.sigBytes > hasherBlockSizeBytes) {\n\t key = hasher.finalize(key);\n\t }\n\n\t // Clamp excess bits\n\t key.clamp();\n\n\t // Clone key for inner and outer pads\n\t var oKey = this._oKey = key.clone();\n\t var iKey = this._iKey = key.clone();\n\n\t // Shortcuts\n\t var oKeyWords = oKey.words;\n\t var iKeyWords = iKey.words;\n\n\t // XOR keys with pad constants\n\t for (var i = 0; i < hasherBlockSize; i++) {\n\t oKeyWords[i] ^= 0x5c5c5c5c;\n\t iKeyWords[i] ^= 0x36363636;\n\t }\n\t oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes;\n\n\t // Set initial values\n\t this.reset();\n\t },\n\n\t /**\n\t * Resets this HMAC to its initial state.\n\t *\n\t * @example\n\t *\n\t * hmacHasher.reset();\n\t */\n\t reset: function () {\n\t // Shortcut\n\t var hasher = this._hasher;\n\n\t // Reset\n\t hasher.reset();\n\t hasher.update(this._iKey);\n\t },\n\n\t /**\n\t * Updates this HMAC with a message.\n\t *\n\t * @param {WordArray|string} messageUpdate The message to append.\n\t *\n\t * @return {HMAC} This HMAC instance.\n\t *\n\t * @example\n\t *\n\t * hmacHasher.update('message');\n\t * hmacHasher.update(wordArray);\n\t */\n\t update: function (messageUpdate) {\n\t this._hasher.update(messageUpdate);\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Finalizes the HMAC computation.\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t *\n\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @example\n\t *\n\t * var hmac = hmacHasher.finalize();\n\t * var hmac = hmacHasher.finalize('message');\n\t * var hmac = hmacHasher.finalize(wordArray);\n\t */\n\t finalize: function (messageUpdate) {\n\t // Shortcut\n\t var hasher = this._hasher;\n\n\t // Compute HMAC\n\t var innerHash = hasher.finalize(messageUpdate);\n\t hasher.reset();\n\t var hmac = hasher.finalize(this._oKey.clone().concat(innerHash));\n\n\t return hmac;\n\t }\n\t });\n\t}());\n\n\n}));",";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./x64-core\"), require(\"./sha512\"), require(\"./hmac\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./x64-core\", \"./sha512\", \"./hmac\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\treturn CryptoJS.HmacSHA512;\n\n}));","import Hex from 'crypto-js/enc-hex';\nimport HmacSHA512 from 'crypto-js/hmac-sha512';\nimport { recognizerLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Compute HMAC signature for server authentication\n *\n * @param {Object} input Input data to compute HMAC\n * @param {String} applicationKey Current applicationKey\n * @param {String} hmacKey Current hmacKey\n * @return {String} Signature\n */\nexport function computeHmac(input, applicationKey, hmacKey) {\n const jsonInput = (typeof input === 'object') ? JSON.stringify(input) : input;\n logger.debug('The HmacSHA512 function is loaded', HmacSHA512);\n return new HmacSHA512(jsonInput, applicationKey + hmacKey).toString(Hex);\n}\n","/* eslint-disable no-unused-expressions */\nimport * as CryptoHelper from '../CryptoHelper';\n\n/**\n * Parse JSON String to Object\n * @param {Object} req JSON string result to be parsed\n * @return {Object} Parsed response\n */\nfunction parse(req) {\n let result;\n try {\n result = JSON.parse(req.responseText);\n } catch (e) {\n result = req.responseText;\n }\n return result;\n}\n\n/**\n * Transform object data request to a list of parameters\n * @param {Object} obj Query properties\n * @return {String} URI encoded string\n */\nfunction transformRequest(obj) {\n const str = [];\n Object.keys(obj).forEach((p) => {\n if ((typeof obj[p] !== 'undefined') &&\n (typeof obj[p] !== 'function')) {\n str.push(`${encodeURIComponent(p)}=${encodeURIComponent(obj[p])}`);\n }\n });\n return str.join('&');\n}\n\n/**\n * Send request to the network and return a promise\n * @param {String} type Request type (GET/POST)\n * @param {String} url URL\n * @param {Object} data Data to be sent\n * @param {RecognizerContext} [recognizerContext] Recognizer context\n * @param {String} apiVersion api version\n * @param {String} mimeType MimeType to be used\n * @return {Promise}\n */\nfunction xhr(type, url, data, recognizerContext = {}, apiVersion, mimeType) {\n const pptxMimeType = 'application/vnd.openxmlformats-officedocument.presentationml.presentation';\n const configuration = recognizerContext.editor.configuration;\n const recognizerContextRef = recognizerContext;\n return new Promise((resolve, reject) => {\n // We are writing some browser module here so the no import found should be ignored\n // eslint-disable-next-line no-undef\n const request = new XMLHttpRequest();\n request.open(type, url, true);\n request.withCredentials = true;\n if (apiVersion === 'V3') {\n request.setRequestHeader('Accept', 'application/json');\n request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;charset=UTF-8');\n } else if (apiVersion === 'V4') {\n switch (configuration.recognitionParams.type) {\n case 'TEXT':\n request.setRequestHeader('Accept', 'application/json,' + mimeType);\n break;\n case 'MATH':\n request.setRequestHeader('Accept', 'application/json,' + mimeType);\n break;\n case 'DIAGRAM':\n request.setRequestHeader('Accept', 'application/json,' + mimeType);\n break;\n case 'Raw Content':\n request.setRequestHeader('Accept', 'application/json,' + mimeType);\n break;\n default:\n break;\n }\n request.setRequestHeader('applicationKey', configuration.recognitionParams.server.applicationKey);\n request.setRequestHeader('hmac', CryptoHelper.computeHmac(JSON.stringify(data), configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey));\n request.setRequestHeader('Content-Type', 'application/json');\n }\n\n if (mimeType === pptxMimeType) {\n request.responseType = 'blob';\n }\n\n request.onerror = () => {\n reject({ msg: `Could not connect to ${url} connection error`, recoverable: false });\n };\n\n request.onload = () => {\n if (request.status >= 200 && request.status < 300) {\n mimeType === pptxMimeType ? resolve(request.response) : resolve(parse(request));\n } else {\n reject(new Error(request.responseText));\n }\n };\n\n request.onreadystatechange = () => {\n if (request.readyState === 4) {\n if (request.status >= 200 && request.status < 300) {\n mimeType === pptxMimeType ? resolve(request.response) : resolve(parse(request));\n }\n }\n };\n\n if (recognizerContextRef) {\n recognizerContextRef.idle = false;\n }\n if (apiVersion === 'V4') {\n request.send(JSON.stringify(data));\n } else {\n request.send(data ? transformRequest(data) : undefined);\n }\n }).then((res) => {\n if (recognizerContextRef) {\n recognizerContextRef.idle = true;\n }\n return res;\n });\n}\n\n/**\n * Get request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} params Query properties\n * @return {Promise}\n */\nexport function get(recognizerContext, url, params) {\n let queryUrl = url;\n if (params) {\n queryUrl += `?${transformRequest(params)}`;\n }\n return xhr('GET', queryUrl, undefined, recognizerContext);\n}\n\n/**\n * Post request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} data Data to be sent\n * @param {String} apiVersion api version\n * @param {String} mimeType MimeType to be used\n * @return {Promise}\n */\nexport function post(recognizerContext, url, data, apiVersion, mimeType) {\n return xhr('POST', url, data, recognizerContext, apiVersion, mimeType);\n}\n","import { recognizerLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Recognition context\n * @typedef {Object} RecognitionContext\n * @property {Model} model\n * @property {Callback} callback\n */\n\n/**\n * Recognizer context\n * @typedef {Object} RecognizerContext\n * @property {Editor} editor Get a reference to the current editor\n * @property {Array} recognitionContexts=[]\n * @property {Promise} initPromise=undefined\n * @property {RecognitionPositions} lastPositions Last recognition sent/received stroke indexes.\n * @property {String} url=undefined\n * @property {WebSocket} websocket=undefined\n * @property {function} websocketCallback=undefined\n * @property {function} reconnect=undefined\n * @property {Number} currentReconnectionCount=0\n * @property {String} sessionId=undefined\n * @property {Number} contentPartCount=0\n * @property {String} currentPartId=undefined\n * @property {String} instanceId=undefined\n * @property {Boolean} canUndo=false\n * @property {Boolean} canRedo=false\n * @property {Boolean} isEmpty=false\n * @property {Array} supportedImportMimeTypes=[]\n * @property {Number} undoStackIndex=0\n * @property {Number} possibleUndoCount=0\n * @property {Boolean} idle=true\n * @property {Boolean} initialized=false\n */\n/**\n * Create a new recognizer context\n * @param {Editor} editor\n * @return {RecognizerContext} An object that contains all recognizer context\n */\nexport function createEmptyRecognizerContext(editor) {\n const id = Date.now();\n logger.info('Create empty recognizer context with ID: ' + id);\n return {\n id,\n editor,\n // websocket\n recognitionContexts: [],\n initPromise: undefined,\n lastPositions: {\n lastSentPosition: -1,\n lastReceivedPosition: -1\n },\n url: undefined,\n websocket: undefined,\n websocketCallback: undefined,\n reconnect: undefined,\n currentReconnectionCount: 0,\n sessionId: undefined,\n contentPartCount: 0,\n currentPartId: undefined,\n instanceId: undefined,\n canUndo: false,\n canRedo: false,\n isEmpty: undefined,\n supportedImportMimeTypes: [],\n undoStackIndex: 0,\n possibleUndoCount: 0,\n idle: true,\n initialized: false\n };\n}\n\n/**\n * Return true if a reset is required, false otherwise\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Boolean}\n */\nexport function isResetRequired(recognizerContext, model) {\n if (recognizerContext.lastPositions) {\n return recognizerContext.lastPositions.lastSentPosition >= model.rawStrokes.length - 1;\n }\n return false;\n}\n\n/**\n * Update the recognition context positions\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {RecognitionPositions} positions Current recognition positions\n * @return {RecognizerContext}\n */\nexport function updateRecognitionPositions(recognizerContext, positions) {\n const recognizerContextRef = recognizerContext;\n if (positions) {\n recognizerContextRef.lastPositions.lastSentPosition = positions.lastSentPosition;\n recognizerContextRef.lastPositions.lastReceivedPosition = positions.lastReceivedPosition;\n }\n if (recognizerContextRef.lastPositions.lastSentPosition === recognizerContextRef.lastPositions.lastReceivedPosition === -1) {\n delete recognizerContextRef.instanceId;\n }\n return recognizerContextRef;\n}\n\n/**\n * Set the recognition context\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {RecognitionContext} recognitionContext\n * @return {RecognizerContext}\n */\nexport function setRecognitionContext(recognizerContext, recognitionContext) {\n const recognizerContextRef = recognizerContext;\n recognizerContextRef.recognitionContexts[0] = recognitionContext;\n return recognizerContextRef;\n}\n\n\n/**\n * Test if it is possible to reconnect\n * @param {RecognizerContext} recognizerContext\n * @return {Boolean} True if possible, false otherwise\n */\nexport function canReconnect(recognizerContext) {\n return recognizerContext.websocket.autoReconnect === true && recognizerContext.currentReconnectionCount <= recognizerContext.websocket.maxRetryCount;\n}\n\n/**\n * Test if it should attempt immediate reconnect\n * @param {RecognizerContext} recognizerContext\n * @return {Boolean} True if should attempt reconnect, false otherwise\n */\nexport function shouldAttemptImmediateReconnect(recognizerContext) {\n const recognizerContextRef = recognizerContext;\n return recognizerContextRef.websocket.autoReconnect === true && recognizerContextRef.currentReconnectionCount++ <= recognizerContextRef.websocket.maxRetryCount;\n}\n\n/**\n * Lost connection message\n * @type {{type: string}}\n */\nexport const LOST_CONNEXION_MESSAGE = { type: 'LOST_CONNECTION' };\n\n/**\n * Explicit close message\n * @type {String}\n */\nexport const CLOSE_RECOGNIZER_MESSAGE = 'CLOSE_RECOGNIZER';\n\n","import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as NetworkInterface from '../networkInterface';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\n\n/**\n * @param {String} suffixUrl\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @param {function(recognizerContext: RecognizerContext, model: Model): Object} buildMessage\n * @return {Promise.} Promise that return an updated model as a result\n */\nexport function postMessage(suffixUrl, recognizerContext, model, buildMessage) {\n const configuration = recognizerContext.editor.configuration;\n return NetworkInterface.post(recognizerContext, `${configuration.recognitionParams.server.scheme}://${configuration.recognitionParams.server.host}${suffixUrl}`, buildMessage(recognizerContext, model), 'V3')\n .then(\n (response) => {\n logger.debug('Cdkv3RestRecognizer success', response);\n const positions = recognizerContext.lastPositions;\n positions.lastReceivedPosition = positions.lastSentPosition;\n const recognizerContextReference = RecognizerContext.updateRecognitionPositions(recognizerContext, positions);\n if (response.instanceId) {\n recognizerContextReference.instanceId = response.instanceId;\n }\n return response;\n }\n );\n}\n","/**\n * Extract the exports\n * @param {Model} model Current model\n * @return {Object} exports\n */\nexport function extractExports(model) {\n // We recopy the recognized strokes to flag them as toBeRemove if they are scratched out or map with a symbol\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.textSegmentResult &&\n model.rawResults.exports.result.textSegmentResult.candidates) {\n return {\n CANDIDATES: model.rawResults.exports.result,\n TEXT: model.rawResults.exports.result.textSegmentResult.candidates[model.rawResults.exports.result.textSegmentResult.selectedCandidateIdx].label\n };\n }\n return {};\n}\n","import { recognizerLogger as logger } from '../configuration/LoggerConfig';\nimport * as InkModel from '../model/InkModel';\nimport * as RecognizerContext from '../model/RecognizerContext';\nimport Constants from '../configuration/Constants';\n\n/**\n * Triggers\n * @typedef {Object} Triggers\n * @property {Array} exportContent Supported triggers for exporting content.\n * @property {Array} [addStrokes] Supported triggers for adding strokes.\n */\n\n/**\n * Recognizer info\n * @typedef {Object} RecognizerInfo\n * @property {Array} types Supported recognition types (TEXT, MATH, SHAPE, MUSIC, ANALYZER).\n * @property {String} protocol Supported protocol (REST, WEBSOCKET).\n * @property {String} apiVersion Supported API version.\n * @property {Triggers} availableTriggers Supported triggers for this recognizer.\n */\n\n/**\n * Recognizer callback\n * @typedef {function} RecognizerCallback\n * @param {Object} [err] Error\n * @param {Model} [model] Result\n * @param {...String} [types] Result types\n */\n\n/**\n * Simple callback\n * @typedef {function} Callback\n * @param {Object} [err] Error\n * @param {Object} [res] Result\n */\n\n/**\n * Recognition service entry point\n * @typedef {Object} Recognizer\n * @property {function(): RecognizerInfo} getInfo Get information about the supported configuration (protocol, type, apiVersion, ...).\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} init Initialize recognition.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} clear Clear server context. Currently nothing to do there.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback)} [resize] Resize.\n * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)} [pointerEvents] Pointer Events.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback)} [import_] Import content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)} [convert] Convert.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [waitForIdle] Wait for idle.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback)} [setPenStyle] Set pen style.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback)} [setPenStyleClasses] Set pen style classes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback)} [setTheme] Set theme.\n */\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const modelRef = InkModel.resetModelPositions(model);\n logger.debug('Updated model', modelRef);\n const recognizerContextRef = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n recognizerContextRef.initPromise = Promise.resolve(modelRef);\n recognizerContextRef.initPromise\n .then((res) => {\n recognizerContextRef.initialized = true;\n logger.debug('Updated recognizer context', recognizerContextRef);\n callback(undefined, res, Constants.EventType.LOADED);\n });\n}\n\n/**\n * Reset server context. Currently nothing to do there.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function reset(recognizerContext, model, callback) {\n const modelRef = InkModel.resetModelPositions(model);\n logger.debug('Updated model', modelRef);\n const recognizerContextRef = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n delete recognizerContextRef.instanceId;\n logger.debug('Updated recognizer context', recognizerContextRef);\n callback(undefined, modelRef);\n}\n\n/**\n * Clear server context. Currently nothing to do there.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n const modelRef = InkModel.clearModel(model);\n logger.debug('Updated model', modelRef);\n const recognizerContextRef = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n delete recognizerContextRef.instanceId;\n logger.debug('Updated recognizer context', recognizerContextRef);\n callback(undefined, modelRef, Constants.EventType.CHANGED, Constants.EventType.EXPORTED, Constants.EventType.RENDERED);\n}\n\n/**\n * Close and free all resources that will no longer be used by the recognizer.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function close(recognizerContext, model, callback) {\n const recognizerContextRef = recognizerContext;\n recognizerContextRef.initialized = false;\n delete recognizerContextRef.instanceId;\n callback(undefined, model);\n}\n","/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\nimport * as Cdkv3CommonTextRecognizer from '../../common/v3/Cdkv3CommonTextRecognizer';\n\nexport { init, close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const textRestV3Configuration = {\n types: [Constants.RecognitionType.TEXT],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return textRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nexport function buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n inputUnits: [{\n textInputType: 'MULTI_LINE_TEXT',\n // As Rest TEXT recognition is non incremental wa add the already recognized strokes\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n }]\n };\n Object.assign(input, { textParameter: configuration.recognitionParams.v3.textParameter }); // Building the input with the suitable parameters\n\n logger.debug(`input.inputUnits[0].components size is ${input.inputUnits[0].components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n textInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.textInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestTextRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.exports = Cdkv3CommonTextRecognizer.extractExports(model);\n logger.debug('Cdkv3RestTextRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/text/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n","import { recognizerLogger as logger } from '../../configuration/LoggerConfig';\n\n/**\n * Extract the exports\n * @param {Model} model Current model\n * @return {Object} Recognition result\n */\nexport function extractExports(model) {\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.results &&\n model.rawResults.exports.result.results.length > 0) {\n return model.rawResults.exports.result.results\n .map((item) => {\n const res = {};\n if (Object.keys(item).includes('root')) {\n res[`${item.type}`] = item.root;\n } else {\n res[`${item.type}`] = item.value;\n }\n return res;\n })\n .reduce((a, b) => Object.assign(a, b), {});\n }\n return {};\n}\n","import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\n\n/**\n * Extract the recognized symbols\n * @param {Model} model Current model\n * @return {Array} Recognized symbols\n */\nexport function extractRecognizedSymbols(model) {\n // We recopy the recognized strokes to flag them as toBeRemove if they are scratched out or map with a symbol\n const strokeList = [...model.rawStrokes];\n\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.scratchOutResults &&\n (model.rawResults.exports.result.scratchOutResults.length > 0)) {\n const inkRanges = model.rawResults.exports.result.scratchOutResults\n .map(scratchOutResult => scratchOutResult.erasedInkRanges.concat(scratchOutResult.inkRanges))\n .reduce((a, b) => a.concat(b));\n return strokeList.filter((stroke, index) => !inkRanges.find(inkRange => inkRange.component === index));\n }\n return strokeList;\n}\n","/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as CdkCommonUtil from '../../common/CdkCommonUtil';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\nimport * as Cdkv3CommonMathRecognizer from '../../common/v3/Cdkv3CommonMathRecognizer';\n\nexport { init, close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const mathRestV3Configuration = {\n types: [Constants.RecognitionType.MATH],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return mathRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nfunction buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n // As Rest MATH recognition is non incremental we add the already recognized strokes\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n };\n Object.assign(input, configuration.recognitionParams.v3.mathParameter); // Building the input with the suitable parameters\n\n logger.debug(`input.components size is ${input.components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n mathInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.mathInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestMathRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.recognizedSymbols = Cdkv3CommonMathRecognizer.extractRecognizedSymbols(model);\n modelReference.exports = CdkCommonUtil.extractExports(model);\n logger.debug('Cdkv3RestMathRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n return Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/math/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n","import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as InkModel from '../../../model/InkModel';\n\n/**\n * Get style for the strokes matching the ink ranges\n * @param {Model} model\n * @param {Array} inkRanges\n * @return {{color: String, width: Number}} Style to apply\n */\nexport function getStyleFromInkRanges(model, inkRanges) {\n let strokes = model.rawStrokes;\n if (inkRanges && (inkRanges.length > 0)) {\n strokes = inkRanges\n .map(inkRange => InkModel.extractStrokesFromInkRange(model, inkRange.stroke ? inkRange.stroke : inkRange.firstStroke, inkRange.stroke ? inkRange.stroke : inkRange.lastStroke, inkRange.firstPoint, inkRange.lastPoint))\n .reduce((a, b) => a.concat(b));\n }\n // FIXME hack to apply the rendering param of the first element' stroke\n return {\n color: strokes[0].color,\n width: strokes[0].width\n };\n}\n\n/**\n * Extract recognized symbols from recognition output\n * @param {Model} model Current model\n * @param {Object} segment Shape recognition output\n * @return {Array} Recognized symbols\n */\nexport function extractShapeSymbols(model, segment) {\n if (segment.candidates && segment.candidates.length > 0) {\n const selectedCandidate = segment.candidates[segment.selectedCandidateIndex];\n switch (selectedCandidate.type) {\n case 'notRecognized':\n if (segment.inkRanges && segment.inkRanges.length > 0) {\n return segment.inkRanges\n .map(inkRange => InkModel.extractStrokesFromInkRange(model, inkRange.firstStroke, inkRange.lastStroke, inkRange.firstPoint, inkRange.lastPoint))\n .reduce((a, b) => a.concat(b));\n }\n return [];\n case 'recognizedShape':\n return selectedCandidate.primitives;\n default:\n return [];\n }\n }\n return [];\n}\n\n/**\n * Extract the recognized symbols\n * @param {Model} model Current model\n * @return {Array} Recognized symbols\n */\nexport function extractRecognizedSymbols(model) {\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.segments) {\n return model.rawResults.exports.result.segments\n .map((segment) => {\n const style = getStyleFromInkRanges(model, segment.inkRanges);\n return extractShapeSymbols(model, segment).map(primitive => Object.assign(primitive, style));\n })\n .reduce((a, b) => a.concat(b));\n }\n return [];\n}\n\n/**\n * Extract the exports\n * @param {Model} model Current model\n * @return {Object} exports\n */\nexport function extractExports(model) {\n // We recopy the recognized strokes to flag them as toBeRemove if they are scratched out or map with a symbol\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.segments) {\n return {\n SEGMENTS: model.rawResults.exports.result.segments\n };\n }\n return {};\n}\n","/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\nimport {\n extractShapeSymbols,\n getStyleFromInkRanges\n} from '../../common/v3/Cdkv3CommonShapeRecognizer';\n\nexport { init, close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const analyzerRestV3Configuration = {\n types: [Constants.RecognitionType.ANALYZER],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return analyzerRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nfunction buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n // Incremental\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n };\n Object.assign(input, { parameter: configuration.recognitionParams.v3.analyzerParameter }); // Building the input with the suitable parameters\n\n logger.debug(`input.components size is ${input.components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n analyzerInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.analyzerInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction extractSymbols(model, element) {\n const style = getStyleFromInkRanges(model, element.inkRanges);\n switch (element.elementType) {\n case 'table':\n return element.lines.map(line => Object.assign(line, style));\n case 'textLine':\n return [element].map(textLine => Object.assign(textLine, textLine.result.textSegmentResult.candidates[textLine.result.textSegmentResult.selectedCandidateIdx], style));\n case 'shape':\n return extractShapeSymbols(model, element).map(primitive => Object.assign(primitive, style));\n default:\n return [];\n }\n}\n\nfunction extractRecognizedSymbolsFromAnalyzerResult(model) {\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result) {\n return [...model.rawResults.exports.result.shapes, ...model.rawResults.exports.result.tables, ...model.rawResults.exports.result.textLines]\n .map(element => extractSymbols(model, element))\n .reduce((a, b) => a.concat(b));\n }\n return [];\n}\n\n/**\n * Extract the exports\n * @param {Model} model Current model\n * @return {Object} exports\n */\nfunction extractExports(model) {\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result) {\n return {\n ANALYSIS: model.rawResults.exports.result\n };\n }\n return {};\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestAnalyzerRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.recognizedSymbols = extractRecognizedSymbolsFromAnalyzerResult(model);\n modelReference.exports = extractExports(model);\n logger.debug('Cdkv3RestAnalyzerRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.CONVERTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n return Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/analyzer/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n","/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\nimport * as Cdkv3CommonShapeRecognizer from '../../common/v3/Cdkv3CommonShapeRecognizer';\n\nexport { init, close } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const shapeRestV3Configuration = {\n types: [Constants.RecognitionType.SHAPE],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return shapeRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nfunction buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n components: InkModel.extractPendingStrokes(model).map(stroke => StrokeComponent.toJSON(stroke))\n };\n Object.assign(input, configuration.recognitionParams.v3.shapeParameter); // Building the input with the suitable parameters\n\n logger.debug(`input.components size is ${input.components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n shapeInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.shapeInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction buildReset(recognizerContext, model) {\n return {\n instanceSessionId: recognizerContext ? recognizerContext.instanceId : undefined\n };\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestShapeRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.recognizedSymbols = Cdkv3CommonShapeRecognizer.extractRecognizedSymbols(model);\n modelReference.exports = Cdkv3CommonShapeRecognizer.extractExports(model);\n logger.debug('Cdkv3RestShapeRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.CONVERTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/shape/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n\n/**\n * Reset server context.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function reset(recognizerContext, model, callback) {\n const modelRef = InkModel.resetModelPositions(model);\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/shape/clearSessionId.json', recognizerContext, modelRef, buildReset)\n .then(res => callback(undefined, modelRef, Constants.EventType.IDLE))\n .catch(err => callback(err, modelRef));\n}\n\n/**\n * Do what is needed to clean the server context.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n const modelRef = InkModel.clearModel(InkModel.cloneModel(model));\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/shape/clearSessionId.json', recognizerContext, modelRef, buildReset)\n .then(res => callback(undefined, modelRef, Constants.EventType.CHANGED, Constants.EventType.EXPORTED, Constants.EventType.CONVERTED, Constants.EventType.IDLE))\n .catch(err => callback(err, modelRef));\n}\n","/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as CdkCommonUtil from '../../common/CdkCommonUtil';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\n\nexport { close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const musicRestV3Configuration = {\n types: [Constants.RecognitionType.MUSIC],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return musicRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nfunction buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n // As Rest MUSIC recognition is non incremental wa add the already recognized strokes\n components: []\n .concat(model.defaultSymbols, model.rawStrokes)\n .filter(symbol => symbol.type !== 'staff')\n .map((symbol) => {\n if (symbol.type === 'stroke') {\n return StrokeComponent.toJSON(symbol);\n }\n return symbol;\n })\n };\n const musicParameter = Object.assign({}, configuration.recognitionParams.v3.musicParameter);\n delete musicParameter.clef; // FIXME find a way to avoid this ugly hack\n Object.assign(input, musicParameter); // Building the input with the suitable parameters\n\n logger.debug(`input.components size is ${input.components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n musicInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.musicInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestMusicRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.exports = CdkCommonUtil.extractExports(model);\n logger.debug('Cdkv3RestMusicRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n}\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const modelRef = InkModel.resetModelPositions(model);\n logger.debug('Updated model', modelRef);\n const recognizerContextRef = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n recognizerContextRef.initPromise = Promise.resolve(modelRef);\n recognizerContextRef.initPromise\n .then((res) => {\n recognizerContextRef.initialized = true;\n logger.debug('Updated recognizer context', recognizerContextRef);\n callback(undefined, res, Constants.EventType.LOADED, Constants.EventType.RENDERED);\n });\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/music/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n","/* eslint-disable no-underscore-dangle */\nimport * as NetworkInterface from '../networkInterface';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as DefaultTheme from '../../../configuration/DefaultTheme';\nimport * as DefaultPenStyle from '../../../configuration/DefaultPenStyle';\n\nexport { init, close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const iinkRestConfiguration = {\n types: [Constants.RecognitionType.TEXT, Constants.RecognitionType.DIAGRAM, Constants.RecognitionType.MATH, Constants.RecognitionType.RAWCONTENT],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V4',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return iinkRestConfiguration;\n}\n\n\n/**\n * @param {String} suffixUrl\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @param {function(recognizerContext: RecognizerContext, model: Model, conversionState: String): Object} buildMessage\n * @param {String} conversionState\n * @param {String} mimeType\n * @return {Promise.} Promise that return an updated model as a result\n */\nexport function postMessage(suffixUrl, recognizerContext, model, buildMessage, conversionState = '', mimeType) {\n const configuration = recognizerContext.editor.configuration;\n return NetworkInterface.post(recognizerContext, `${configuration.recognitionParams.server.scheme}://${configuration.recognitionParams.server.host}${suffixUrl}`, buildMessage(recognizerContext, model, conversionState), 'V4', mimeType).then((response) => {\n logger.debug('iinkRestRecognizer success', response);\n const positions = recognizerContext.lastPositions;\n positions.lastReceivedPosition = positions.lastSentPosition;\n const recognizerContextReference = RecognizerContext.updateRecognitionPositions(recognizerContext, positions);\n if (response.instanceId) {\n recognizerContextReference.instanceId = response.instanceId;\n }\n return response;\n });\n}\n\nfunction buildTextConf(configuration) {\n return {\n text: configuration.recognitionParams.v4.text,\n lang: configuration.recognitionParams.v4.lang,\n export: configuration.recognitionParams.v4.export\n };\n}\n\nfunction buildMathConf(configuration) {\n return {\n math: configuration.recognitionParams.v4.math,\n lang: configuration.recognitionParams.v4.lang,\n export: configuration.recognitionParams.v4.export\n };\n}\n\nfunction buildDiagramConf(configuration) {\n return {\n diagram: configuration.recognitionParams.v4.diagram,\n lang: configuration.recognitionParams.v4.lang,\n export: configuration.recognitionParams.v4.export\n };\n}\n\nfunction buildRawContentConf(configuration) {\n return {\n 'raw-content': {\n recognition: configuration.recognitionParams.v4['raw-content'].recognition\n },\n lang: configuration.recognitionParams.v4.lang,\n export: configuration.recognitionParams.v4.export\n };\n}\n\nfunction buildData(recognizerContext, model, conversionState) {\n const configuration = recognizerContext.editor.configuration;\n let dataConf;\n\n if (configuration.recognitionParams.type === 'TEXT') {\n dataConf = buildTextConf(configuration);\n } else if (configuration.recognitionParams.type === 'MATH') {\n dataConf = buildMathConf(configuration);\n } else if (configuration.recognitionParams.type === 'DIAGRAM') {\n dataConf = buildDiagramConf(configuration);\n } else if (configuration.recognitionParams.type === 'Raw Content') {\n dataConf = buildRawContentConf(configuration);\n }\n\n const newStrokes = [];\n model.strokeGroups.forEach((group) => {\n const newPenStyle = JSON.stringify(group.penStyle) === '{}' ? null : DefaultPenStyle.toCSS(group.penStyle);\n const newGroup = {\n penStyle: newPenStyle,\n strokes: group.strokes.map(stroke => StrokeComponent.toJSONV4(stroke))\n };\n newStrokes.push(newGroup);\n });\n\n const contentType = configuration.recognitionParams.type === 'Raw Content' ? 'Raw Content' : configuration.recognitionParams.type.charAt(0).toUpperCase() + configuration.recognitionParams.type.slice(1).toLowerCase();\n\n const data = {\n configuration: dataConf,\n xDPI: 96,\n yDPI: 96,\n contentType,\n height: recognizerContext.editor.domElement.clientHeight,\n width: recognizerContext.editor.domElement.clientWidth,\n theme: DefaultTheme.toCSS(recognizerContext.editor.theme),\n strokeGroups: newStrokes\n };\n\n if (conversionState) {\n data.conversionState = 'DIGITAL_EDIT';\n }\n\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction extractExports(configuration, mimeType, res) {\n const exports = {};\n if (mimeType === 'application/vnd.myscript.jiix') {\n exports['application/vnd.myscript.jiix'] = res;\n }\n if (configuration.recognitionParams.type === 'TEXT' && mimeType === 'text/plain') {\n exports['text/plain'] = res;\n } else if (configuration.recognitionParams.type === 'DIAGRAM') {\n if (mimeType === 'image/svg+xml') {\n exports['image/svg+xml'] = res;\n }\n if (mimeType === 'application/vnd.openxmlformats-officedocument.presentationml.presentation') {\n exports['application/vnd.openxmlformats-officedocument.presentationml.presentation'] = res;\n }\n if (mimeType === 'application/vnd.microsoft.art-gvml-clipformat') {\n exports['application/vnd.microsoft.art-gvml-clipformat'] = res;\n }\n } else if (configuration.recognitionParams.type === 'MATH') {\n if (mimeType === 'application/x-latex') {\n exports['application/x-latex'] = res;\n }\n if (mimeType === 'application/mathml+xml') {\n exports['application/mathml+xml'] = res;\n }\n if (mimeType === 'application/mathofficeXML') {\n exports['application/mathofficeXML'] = res;\n }\n }\n return exports;\n}\n\nfunction resultCallback(model, configuration, res, mimeType, callback) {\n logger.debug('iinkRestRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n if (modelReference.exports) {\n Object.assign(modelReference.exports, extractExports(configuration, mimeType, res));\n } else {\n modelReference.exports = extractExports(configuration, mimeType, res);\n }\n logger.debug('iinkRestRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n const configuration = recognizerContext.editor.configuration;\n\n function callPostMessage(mimeType) {\n postMessage('/api/v4.0/iink/batch', recognizerContext, model, buildData, configuration.restConversionState, mimeType)\n .then(res => resultCallback(model, configuration, res, mimeType, callback))\n .catch(err => callback(err, model));\n }\n\n if (configuration.recognitionParams.type === 'TEXT') {\n configuration.recognitionParams.v4.text.mimeTypes.forEach((mimeType) => {\n callPostMessage(mimeType);\n });\n } else if (configuration.recognitionParams.type === 'DIAGRAM') {\n configuration.recognitionParams.v4.diagram.mimeTypes.forEach((mimeType) => {\n callPostMessage(mimeType);\n });\n } else if (configuration.recognitionParams.type === 'MATH') {\n configuration.recognitionParams.v4.math.mimeTypes.forEach((mimeType) => {\n callPostMessage(mimeType);\n });\n } else if (configuration.recognitionParams.type === 'Raw Content') {\n configuration.recognitionParams.v4['raw-content'].mimeTypes.forEach((mimeType) => {\n callPostMessage(mimeType);\n });\n }\n}\n\n/**\n * Ask for conversion using DIGITAL_EDIT\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function convert(recognizerContext, model, callback) {\n const configuration = recognizerContext.editor.configuration;\n postMessage('/api/v4.0/iink/batch', recognizerContext, model, buildData, 'DIGITAL_EDIT')\n .then(res => resultCallback(model, configuration, res, callback))\n .catch(err => callback(err, model));\n}\n","import { recognizerLogger as logger } from '../../configuration/LoggerConfig';\nimport * as RecognizerContext from '../../model/RecognizerContext';\n\nfunction infinitePing(websocket) {\n const websocketRef = websocket;\n websocketRef.pingLostCount++;\n if (websocketRef.pingLostCount > websocketRef.maxPingLost) {\n websocket.close(1000, 'PING_LOST');\n } else if (websocketRef.readyState <= 1) {\n setTimeout(() => {\n if (websocketRef.readyState <= 1) {\n websocketRef.send(JSON.stringify({ type: 'ping' }));\n infinitePing(websocketRef);\n }\n }, websocketRef.pingDelay);\n }\n}\n\n/**\n * Attach all socket attributes helping managing server connexion\n * @param {WebSocket} websocket Current WebSocket\n * @param {RecognizerContext} recognizerContext\n */\nfunction addWebsocketAttributes(websocket, recognizerContext) {\n const websocketConfiguration = recognizerContext.editor.configuration.recognitionParams.server.websocket;\n const socket = websocket;\n socket.start = new Date();\n socket.autoReconnect = websocketConfiguration.autoReconnect;\n socket.maxRetryCount = websocketConfiguration.maxRetryCount;\n socket.pingEnabled = websocketConfiguration.pingEnabled;\n socket.pingDelay = websocketConfiguration.pingDelay;\n socket.maxPingLost = websocketConfiguration.maxPingLostCount;\n socket.pingLostCount = 0;\n socket.recognizerContext = recognizerContext;\n}\n\n/**\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @return {WebSocket} Opened WebSocket\n */\nexport function openWebSocket(recognizerContext) {\n let socket;\n try {\n // eslint-disable-next-line no-undef\n socket = new WebSocket(recognizerContext.url);\n } catch (error) {\n logger.error('Unable to open websocket, Check the host and your connectivity');\n }\n addWebsocketAttributes(socket, recognizerContext);\n if (socket.pingEnabled) {\n infinitePing(socket);\n }\n\n socket.onopen = (e) => {\n logger.trace('onOpen');\n recognizerContext.websocketCallback(e);\n };\n\n socket.onclose = (e) => {\n logger.trace('onClose', new Date() - socket.start);\n recognizerContext.websocketCallback(e);\n };\n\n socket.onerror = (e) => {\n logger.trace('onError');\n recognizerContext.websocketCallback(e);\n };\n\n socket.onmessage = (e) => {\n logger.trace('onMessage');\n socket.pingLostCount = 0;\n const parsedMessage = JSON.parse(e.data);\n if (parsedMessage.type !== 'pong') {\n const callBackParam = {\n type: e.type,\n data: JSON.parse(e.data)\n };\n recognizerContext.websocketCallback(callBackParam);\n }\n };\n\n return socket;\n}\n\n/**\n * Send data message\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Object} message Data message\n */\nexport function send(recognizerContext, message) {\n const recognizerContextRef = recognizerContext;\n recognizerContextRef.idle = false;\n\n const websocket = recognizerContextRef.websocket;\n if (websocket.readyState <= 1) {\n websocket.send(JSON.stringify(message));\n logger.debug(`${message.type} message sent`, message);\n } else {\n throw RecognizerContext.LOST_CONNEXION_MESSAGE;\n }\n}\n\n/**\n * Close the websocket\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Number} code Exit code\n * @param {String} reason Exit reason\n */\nexport function close(recognizerContext, code, reason) {\n const websocket = recognizerContext.websocket;\n if (websocket && websocket.readyState < 2) {\n websocket.close(code, reason);\n }\n}\n","import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as NetworkWSInterface from '../networkWSInterface';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport Constants from '../../../configuration/Constants';\n\n/**\n * A CDK v3 websocket dialog have this sequence :\n * ---------- Client ------------------------------------- Server ----------------------------------\n * init (send the applicationKey) ================>\n * <=========== hmacChallenge\n * answerToHmacChallenge (send the hmac) =========>\n * <=========== init\n * start (send the parameters and first strokes ) ===============>\n * <=========== recognition with instance id\n * continue (send the other strokes ) ============>\n * <=========== recognition\n */\n\nfunction buildHmacMessage(configuration, message) {\n return {\n type: 'hmac',\n applicationKey: configuration.recognitionParams.server.applicationKey,\n challenge: message.data.challenge,\n hmac: CryptoHelper.computeHmac(message.data.challenge, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey)\n };\n}\n\nfunction buildInitMessage(configuration) {\n return {\n type: 'applicationKey',\n applicationKey: configuration.recognitionParams.server.applicationKey\n };\n}\n\n/**\n * This function bind the right behaviour when a message is receive by the websocket.\n * @param {DestructuredPromise} destructuredPromise\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @return {function} Callback to handle WebSocket results\n */\nexport function buildWebSocketCallback(destructuredPromise, recognizerContext) {\n return (message) => {\n const recognizerContextRef = recognizerContext;\n // Handle websocket messages\n logger.trace(`${message.type} websocket callback`, message);\n const recognitionContext = recognizerContext.recognitionContexts[recognizerContext.recognitionContexts.length - 1];\n logger.debug('Current recognition context', recognitionContext);\n\n switch (message.type) {\n case 'open' :\n NetworkWSInterface.send(recognizerContext, buildInitMessage(recognizerContext.editor.configuration));\n break;\n case 'message' :\n logger.trace('Receiving message', message.data.type);\n switch (message.data.type) {\n case 'hmacChallenge' :\n NetworkWSInterface.send(recognizerContext, buildHmacMessage(recognizerContext.editor.configuration, message));\n break;\n case 'init' :\n recognizerContextRef.currentReconnectionCount = 0;\n recognizerContextRef.idle = true;\n recognizerContextRef.initialized = true;\n recognitionContext.callback(undefined, message.data);\n destructuredPromise.resolve(recognitionContext);\n break;\n case 'reset' :\n recognizerContextRef.idle = true;\n recognitionContext.callback(undefined, message.data);\n break;\n case 'mathResult' :\n case 'textResult' :\n recognizerContextRef.idle = true;\n if (message.data.instanceId) {\n if (recognizerContext.instanceId && recognizerContext.instanceId !== message.data.instanceId) {\n logger.debug(`Instance id switch from ${recognizerContext.instanceId} to ${message.data.instanceId} this is suspicious`);\n }\n recognizerContextRef.instanceId = message.data.instanceId;\n logger.debug('Memorizing instance id', message.data.instanceId);\n }\n recognitionContext.callback(undefined, message.data);\n break;\n case 'error' :\n logger.debug('Error detected stopping all recognition', message);\n if (recognitionContext) {\n recognitionContext.callback(message.data);\n } else {\n destructuredPromise.reject(Object.assign({}, message.data, { recoverable: false }));\n }\n break;\n default :\n logger.warn('This is something unexpected in current recognizer. Not the type of message we should have here.', message);\n }\n break;\n case 'error' :\n logger.debug('Error detected stopping all recognition', message);\n if (recognitionContext) {\n recognitionContext.callback(Object.assign({}, message, { recoverable: false }));\n } else {\n destructuredPromise.reject(Object.assign({}, message, { recoverable: false }));\n }\n break;\n case 'close' :\n logger.debug('Close detected stopping all recognition', message);\n recognizerContextRef.initialized = false;\n if (recognitionContext) {\n recognitionContext.callback(undefined, message);\n } else {\n destructuredPromise.reject(message);\n }\n break;\n default :\n logger.warn('This is something unexpected in current recognizer. Not the type of message we should have here.', message);\n }\n };\n}\n","import { recognizerLogger as logger } from '../../configuration/LoggerConfig';\nimport Constants from '../../configuration/Constants';\nimport * as NetworkWSInterface from './networkWSInterface';\nimport * as PromiseHelper from '../../util/PromiseHelper';\nimport * as InkModel from '../../model/InkModel';\nimport * as RecognizerContext from '../../model/RecognizerContext';\n\nfunction buildUrl(configuration, suffixUrl) {\n const scheme = (configuration.recognitionParams.server.scheme === 'https') ? 'wss' : 'ws';\n return `${scheme}://${configuration.recognitionParams.server.host}${suffixUrl}`;\n}\n\nconst commonCallback = (model, err, res, callback) => {\n if (res && res.type === 'close') {\n return callback(err, model, Constants.EventType.CHANGED);\n }\n return callback(err, model);\n};\n\n/**\n * Build websocket function\n * @typedef {function} BuildWebSocketFunction\n * @param {DestructuredPromise} destructuredPromise\n * @param {RecognizerContext} recognizerContext\n * @return {Callback}\n */\n\n/**\n * Init the websocket recognizer.\n * Open the connexion and proceed to the hmac challenge.\n * @param {String} suffixUrl\n * @param {RecognizerContext} recognizerContext\n * @param {BuildWebSocketFunction} buildWebSocketCallback\n * @param {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} reconnect\n * @return {Promise} Fulfilled when the init phase is over.\n */\nexport function init(suffixUrl, recognizerContext, buildWebSocketCallback, reconnect) {\n const recognitionContext = recognizerContext.recognitionContexts[0];\n const recognizerContextReference = RecognizerContext.updateRecognitionPositions(recognizerContext, recognitionContext.model.lastPositions);\n recognizerContextReference.url = buildUrl(recognizerContext.editor.configuration, suffixUrl);\n recognizerContextReference.reconnect = reconnect;\n\n const destructuredInitPromise = PromiseHelper.destructurePromise();\n recognizerContextReference.initPromise = destructuredInitPromise.promise;\n\n logger.debug('Opening the websocket for context ', recognizerContext);\n recognizerContextReference.websocketCallback = buildWebSocketCallback(destructuredInitPromise, recognizerContextReference);\n recognizerContextReference.websocket = NetworkWSInterface.openWebSocket(recognizerContextReference);\n return recognizerContextReference.initPromise.then((res) => {\n logger.debug('Init over', res);\n return res;\n });\n}\n\nexport function retry(func, recognizerContext, model, callback, ...params) {\n if (RecognizerContext.shouldAttemptImmediateReconnect(recognizerContext) && recognizerContext.reconnect) {\n logger.info('Attempting a retry', recognizerContext.currentReconnectionCount);\n recognizerContext.reconnect(recognizerContext, model, (err, res) => {\n if (!err) {\n func(recognizerContext, res, callback, ...params);\n } else {\n logger.error('Failed retry', err);\n retry(func, recognizerContext, model, callback, ...params);\n }\n });\n } else {\n callback('Unable to reconnect', model);\n }\n}\n\n/**\n * @param {RecognizerContext} recognizerContext\n * @param {function(params: ...Object): Object} buildMessage\n * @param {...Object} params\n * @return {Promise}\n */\nexport function sendMessage(recognizerContext, buildMessage, ...params) {\n return recognizerContext.initPromise\n .then(() => {\n logger.trace('Init was done. Sending message');\n const message = buildMessage(...params);\n if (message) {\n NetworkWSInterface.send(recognizerContext, message);\n const positions = recognizerContext.recognitionContexts[0].model.lastPositions;\n if (positions) {\n RecognizerContext.updateRecognitionPositions(recognizerContext, positions);\n }\n } else {\n logger.warn('empty message');\n }\n });\n}\n\n/**\n * Do what is needed to clean the server context.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n const modelRef = InkModel.clearModel(model);\n const recognizerContextReference = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n if (recognizerContextReference && recognizerContextReference.websocket) {\n // We have to send again all strokes after a clear.\n delete recognizerContextReference.instanceId;\n try {\n NetworkWSInterface.send(recognizerContextReference, { type: 'reset' });\n } catch (sendFailedException) {\n // To force failure without breaking the flow\n // FIXME not working at all\n recognizerContextReference.websocketCallback(PromiseHelper.destructurePromise(), recognizerContextReference, model);\n }\n }\n // We do not keep track of the success of clear.\n callback(undefined, modelRef);\n}\n\n/**\n * Close and free all resources that will no longer be used by the recognizer.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @param {RecognizerCallback} callback\n */\nexport function close(recognizerContext, model, callback) {\n const recognitionContext = {\n model,\n callback: (err, res) => commonCallback(model, err, res, callback)\n };\n const recognizerContextRef = recognizerContext;\n\n recognizerContext.initPromise\n .then(() => {\n recognizerContextRef.recognitionContexts[0] = recognitionContext;\n return recognizerContextRef;\n })\n .then(context => NetworkWSInterface.close(context, 1000, RecognizerContext.CLOSE_RECOGNIZER_MESSAGE));\n}\n","/**\n * @typedef {Object} DestructuredPromise\n * @property {Promise} promise\n * @property {function(value: Object)} resolve\n * @property {function(reason: Object)} reject\n */\n\n/**\n * @return {DestructuredPromise}\n */\nexport function destructurePromise() {\n let resolve;\n let reject;\n const initPromise = new Promise(\n (resolveParam, rejectParam) => {\n resolve = resolveParam;\n reject = rejectParam;\n });\n return { promise: initPromise, resolve, reject };\n}\n","import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as Cdkv3WSWebsocketBuilder from './Cdkv3WSBuilder';\nimport * as CdkWSRecognizerUtil from '../CdkWSRecognizerUtil';\nimport * as DefaultRecognizer from '../../DefaultRecognizer';\nimport * as CdkCommonUtil from '../../common/CdkCommonUtil';\nimport * as Cdkv3CommonMathRecognizer from '../../common/v3/Cdkv3CommonMathRecognizer';\n\nexport { close } from '../CdkWSRecognizerUtil';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const mathWebSocketV3Configuration = {\n types: [Constants.RecognitionType.MATH],\n protocol: Constants.Protocol.WEBSOCKET,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [Constants.Trigger.POINTER_UP]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return mathWebSocketV3Configuration;\n}\n\nfunction buildMathInput(recognizerContext, model) {\n InkModel.updateModelSentPosition(model);\n if (recognizerContext.lastPositions.lastSentPosition < 0) {\n const configuration = recognizerContext.editor.configuration;\n return {\n type: 'start',\n parameters: configuration.recognitionParams.v3.mathParameter,\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n };\n }\n\n return {\n type: 'continue',\n components: InkModel.extractPendingStrokes(model, -1).map(stroke => StrokeComponent.toJSON(stroke))\n };\n}\n\nfunction buildResetMessage(model) {\n InkModel.resetModelPositions(model);\n return {\n type: 'reset'\n };\n}\n\nconst mathCallback = (model, err, res, callback) => {\n if (res) {\n if (res.type === 'init') {\n return callback(err, model, Constants.EventType.LOADED, Constants.EventType.IDLE);\n }\n if (res.type === 'close') {\n return callback(err, model, Constants.EventType.CHANGED);\n }\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.exports = CdkCommonUtil.extractExports(modelReference);\n modelReference.recognizedSymbols = Cdkv3CommonMathRecognizer.extractRecognizedSymbols(modelReference);\n return callback(err, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n }\n return callback(err, model);\n};\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model: InkModel.resetModelPositions(model),\n callback: (err, res) => mathCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.init('/api/v3.0/recognition/ws/math', recognizerContextRef, Cdkv3WSWebsocketBuilder.buildWebSocketCallback, init)\n .catch((err) => {\n if (RecognizerContext.shouldAttemptImmediateReconnect(recognizerContext) && recognizerContext.reconnect) {\n logger.info('Attempting a reconnect', recognizerContext.currentReconnectionCount);\n recognizerContext.reconnect(recognizerContext, model, callback);\n } else {\n logger.error('Unable to init', err);\n callback(err, model);\n }\n });\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\n// eslint-disable-next-line no-underscore-dangle\nexport function export_(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => mathCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildMathInput, recognizerContext, model)\n .catch(exception => CdkWSRecognizerUtil.retry(export_, recognizerContext, model, callback));\n}\n\n/**\n * Reset the recognition context\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function reset(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => mathCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildResetMessage, model)\n .catch(exception => CdkWSRecognizerUtil.retry(reset, recognizerContext, model, callback));\n}\n\n/**\n * Clear server context. Currently nothing to do there.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n DefaultRecognizer.clear(recognizerContext, model, (err, res, ...types) => {\n reset(recognizerContext, res, (err1, res1) => logger.trace('Session reset'));\n callback(err, res, ...types);\n });\n}\n","import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as Cdkv3WSWebsocketBuilder from './Cdkv3WSBuilder';\nimport * as CdkWSRecognizerUtil from '../CdkWSRecognizerUtil';\nimport * as DefaultRecognizer from '../../DefaultRecognizer';\nimport * as Cdkv3CommonTextRecognizer from '../../common/v3/Cdkv3CommonTextRecognizer';\n\nexport { close } from '../CdkWSRecognizerUtil';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const textWebSocketV3Configuration = {\n types: [Constants.RecognitionType.TEXT],\n protocol: Constants.Protocol.WEBSOCKET,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [Constants.Trigger.POINTER_UP]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return textWebSocketV3Configuration;\n}\n\nfunction buildTextInput(recognizerContext, model) {\n InkModel.updateModelSentPosition(model);\n if (recognizerContext.lastPositions.lastSentPosition < 0) {\n const configuration = recognizerContext.editor.configuration;\n return {\n type: 'start',\n textParameter: configuration.recognitionParams.v3.textParameter,\n inputUnits: [{\n textInputType: 'MULTI_LINE_TEXT',\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n }]\n };\n }\n\n return {\n type: 'continue',\n inputUnits: [{\n textInputType: 'MULTI_LINE_TEXT',\n components: InkModel.extractPendingStrokes(model, -1).map(stroke => StrokeComponent.toJSON(stroke))\n }]\n };\n}\n\nfunction buildResetMessage(model) {\n InkModel.resetModelPositions(model);\n return {\n type: 'reset'\n };\n}\n\nconst textCallback = (model, err, res, callback) => {\n if (res) {\n if (res.type === 'init') {\n return callback(err, model, Constants.EventType.LOADED, Constants.EventType.IDLE);\n }\n if (res.type === 'close') {\n return callback(err, model, Constants.EventType.CHANGED);\n }\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.exports = Cdkv3CommonTextRecognizer.extractExports(model);\n return callback(err, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n }\n return callback(err, model);\n};\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model: InkModel.resetModelPositions(model),\n callback: (err, res) => textCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.init('/api/v3.0/recognition/ws/text', recognizerContextRef, Cdkv3WSWebsocketBuilder.buildWebSocketCallback, init)\n .catch((err) => {\n if (RecognizerContext.shouldAttemptImmediateReconnect(recognizerContext) && recognizerContext.reconnect) {\n logger.info('Attempting a reconnect', recognizerContext.currentReconnectionCount);\n recognizerContext.reconnect(recognizerContext, model, callback);\n } else {\n logger.error('Unable to init', err);\n callback(err, model);\n }\n });\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\n// eslint-disable-next-line no-underscore-dangle\nexport function export_(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => textCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildTextInput, recognizerContext, model)\n .catch(exception => CdkWSRecognizerUtil.retry(export_, recognizerContext, model, callback));\n}\n\n/**\n * Reset the recognition context\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function reset(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => textCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildResetMessage, model)\n .catch(exception => CdkWSRecognizerUtil.retry(reset, recognizerContext, model, callback));\n}\n\n/**\n * Clear server context. Currently nothing to do there.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n DefaultRecognizer.clear(recognizerContext, model, (err, res, ...types) => {\n reset(recognizerContext, res, (err1, res1) => logger.trace('Session reset'));\n callback(err, res, ...types);\n });\n}\n","/*\n * UUID-js: A js library to generate and parse UUIDs, TimeUUIDs and generate\n * TimeUUID based on dates for range selections.\n * @see http://www.ietf.org/rfc/rfc4122.txt\n **/\n\nfunction UUIDjs() {\n};\n\nUUIDjs.maxFromBits = function(bits) {\n return Math.pow(2, bits);\n};\n\nUUIDjs.limitUI04 = UUIDjs.maxFromBits(4);\nUUIDjs.limitUI06 = UUIDjs.maxFromBits(6);\nUUIDjs.limitUI08 = UUIDjs.maxFromBits(8);\nUUIDjs.limitUI12 = UUIDjs.maxFromBits(12);\nUUIDjs.limitUI14 = UUIDjs.maxFromBits(14);\nUUIDjs.limitUI16 = UUIDjs.maxFromBits(16);\nUUIDjs.limitUI32 = UUIDjs.maxFromBits(32);\nUUIDjs.limitUI40 = UUIDjs.maxFromBits(40);\nUUIDjs.limitUI48 = UUIDjs.maxFromBits(48);\n\n// Returns a random integer between min and max\n// Using Math.round() will give you a non-uniform distribution!\n// @see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/random\nfunction getRandomInt(min, max) {\n return Math.floor(Math.random() * (max - min + 1)) + min;\n}\n\nUUIDjs.randomUI04 = function() {\n return getRandomInt(0, UUIDjs.limitUI04-1);\n};\nUUIDjs.randomUI06 = function() {\n return getRandomInt(0, UUIDjs.limitUI06-1);\n};\nUUIDjs.randomUI08 = function() {\n return getRandomInt(0, UUIDjs.limitUI08-1);\n};\nUUIDjs.randomUI12 = function() {\n return getRandomInt(0, UUIDjs.limitUI12-1);\n};\nUUIDjs.randomUI14 = function() {\n return getRandomInt(0, UUIDjs.limitUI14-1);\n};\nUUIDjs.randomUI16 = function() {\n return getRandomInt(0, UUIDjs.limitUI16-1);\n};\nUUIDjs.randomUI32 = function() {\n return getRandomInt(0, UUIDjs.limitUI32-1);\n};\nUUIDjs.randomUI40 = function() {\n return (0 | Math.random() * (1 << 30)) + (0 | Math.random() * (1 << 40 - 30)) * (1 << 30);\n};\nUUIDjs.randomUI48 = function() {\n return (0 | Math.random() * (1 << 30)) + (0 | Math.random() * (1 << 48 - 30)) * (1 << 30);\n};\n\nUUIDjs.paddedString = function(string, length, z) {\n string = String(string);\n z = (!z) ? '0' : z;\n var i = length - string.length;\n for (; i > 0; i >>>= 1, z += z) {\n if (i & 1) {\n string = z + string;\n }\n }\n return string;\n};\n\nUUIDjs.prototype.fromParts = function(timeLow, timeMid, timeHiAndVersion, clockSeqHiAndReserved, clockSeqLow, node) {\n this.version = (timeHiAndVersion >> 12) & 0xF;\n this.hex = UUIDjs.paddedString(timeLow.toString(16), 8)\n + '-'\n + UUIDjs.paddedString(timeMid.toString(16), 4)\n + '-'\n + UUIDjs.paddedString(timeHiAndVersion.toString(16), 4)\n + '-'\n + UUIDjs.paddedString(clockSeqHiAndReserved.toString(16), 2)\n + UUIDjs.paddedString(clockSeqLow.toString(16), 2)\n + '-'\n + UUIDjs.paddedString(node.toString(16), 12);\n return this;\n};\n\nUUIDjs.prototype.toString = function() {\n return this.hex;\n};\nUUIDjs.prototype.toURN = function() {\n return 'urn:uuid:' + this.hex;\n};\n\nUUIDjs.prototype.toBytes = function() {\n var parts = this.hex.split('-');\n var ints = [];\n var intPos = 0;\n for (var i = 0; i < parts.length; i++) {\n for (var j = 0; j < parts[i].length; j+=2) {\n ints[intPos++] = parseInt(parts[i].substr(j, 2), 16);\n }\n }\n return ints;\n};\n\nUUIDjs.prototype.equals = function(uuid) {\n if (!(uuid instanceof UUID)) {\n return false;\n }\n if (this.hex !== uuid.hex) {\n return false;\n }\n return true;\n};\n\nUUIDjs.getTimeFieldValues = function(time) {\n var ts = time - Date.UTC(1582, 9, 15);\n var hm = ((ts / 0x100000000) * 10000) & 0xFFFFFFF;\n return { low: ((ts & 0xFFFFFFF) * 10000) % 0x100000000,\n mid: hm & 0xFFFF, hi: hm >>> 16, timestamp: ts };\n};\n\nUUIDjs._create4 = function() {\n return new UUIDjs().fromParts(\n UUIDjs.randomUI32(),\n UUIDjs.randomUI16(),\n 0x4000 | UUIDjs.randomUI12(),\n 0x80 | UUIDjs.randomUI06(),\n UUIDjs.randomUI08(),\n UUIDjs.randomUI48()\n );\n};\n\nUUIDjs._create1 = function() {\n var now = new Date().getTime();\n var sequence = UUIDjs.randomUI14();\n var node = (UUIDjs.randomUI08() | 1) * 0x10000000000 + UUIDjs.randomUI40();\n var tick = UUIDjs.randomUI04();\n var timestamp = 0;\n var timestampRatio = 1/4;\n\n if (now != timestamp) {\n if (now < timestamp) {\n sequence++;\n }\n timestamp = now;\n tick = UUIDjs.randomUI04();\n } else if (Math.random() < timestampRatio && tick < 9984) {\n tick += 1 + UUIDjs.randomUI04();\n } else {\n sequence++;\n }\n\n var tf = UUIDjs.getTimeFieldValues(timestamp);\n var tl = tf.low + tick;\n var thav = (tf.hi & 0xFFF) | 0x1000;\n\n sequence &= 0x3FFF;\n var cshar = (sequence >>> 8) | 0x80;\n var csl = sequence & 0xFF;\n\n return new UUIDjs().fromParts(tl, tf.mid, thav, cshar, csl, node);\n};\n\nUUIDjs.create = function(version) {\n version = version || 4;\n return this['_create' + version]();\n};\n\nUUIDjs.fromTime = function(time, last) {\n last = (!last) ? false : last;\n var tf = UUIDjs.getTimeFieldValues(time);\n var tl = tf.low;\n var thav = (tf.hi & 0xFFF) | 0x1000; // set version '0001'\n if (last === false) {\n return new UUIDjs().fromParts(tl, tf.mid, thav, 0, 0, 0);\n } else {\n return new UUIDjs().fromParts(tl, tf.mid, thav, 0x80 | UUIDjs.limitUI06, UUIDjs.limitUI08 - 1, UUIDjs.limitUI48 - 1);\n }\n};\n\nUUIDjs.firstFromTime = function(time) {\n return UUIDjs.fromTime(time, false);\n};\nUUIDjs.lastFromTime = function(time) {\n return UUIDjs.fromTime(time, true);\n};\n\nUUIDjs.fromURN = function(strId) {\n var r, p = /^(?:urn:uuid:|\\{)?([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{2})([0-9a-f]{2})-([0-9a-f]{12})(?:\\})?$/i;\n if ((r = p.exec(strId))) {\n return new UUIDjs().fromParts(parseInt(r[1], 16), parseInt(r[2], 16),\n parseInt(r[3], 16), parseInt(r[4], 16),\n parseInt(r[5], 16), parseInt(r[6], 16));\n }\n return null;\n};\n\nUUIDjs.fromBytes = function(ints) {\n if (ints.length < 5) {\n return null;\n }\n var str = '';\n var pos = 0;\n var parts = [4, 2, 2, 2, 6];\n for (var i = 0; i < parts.length; i++) {\n for (var j = 0; j < parts[i]; j++) {\n var octet = ints[pos++].toString(16);\n if (octet.length == 1) {\n octet = '0' + octet;\n }\n str += octet;\n }\n if (parts[i] !== 6) {\n str += '-';\n }\n }\n return UUIDjs.fromURN(str);\n};\n\nUUIDjs.fromBinary = function(binary) {\n var ints = [];\n for (var i = 0; i < binary.length; i++) {\n ints[i] = binary.charCodeAt(i);\n if (ints[i] > 255 || ints[i] < 0) {\n throw new Error('Unexpected byte in binary data.');\n }\n }\n return UUIDjs.fromBytes(ints);\n};\n\n// Aliases to support legacy code. Do not use these when writing new code as\n// they may be removed in future versions!\nUUIDjs.new = function() {\n return this.create(4);\n};\nUUIDjs.newTS = function() {\n return this.create(1);\n};\n\nmodule.exports = UUIDjs;\n","import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as NetworkWSInterface from '../networkWSInterface';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\n\nimport {\n buildNewContentPackageInput,\n buildRestoreIInkSessionInput,\n buildNewContentPart,\n buildOpenContentPart,\n buildConfiguration,\n buildSetTheme,\n buildSetPenStyle,\n buildSetPenStyleClasses\n} from './Cdkv4WSIInkRecognizer';\n\n/**\n * A CDK v4 websocket dialog have this sequence :\n * ---------- Client ------------------------------------- Server ----------------------------------\n * init (send the new content package) ================>\n * <=========== hmacChallenge\n * answerToHmacChallenge (send the hmac) =========>\n * newPart (send the parameters ) ===============>\n * <=========== update\n * addStrokes (send the strokes ) ============>\n * <=========== update\n */\n\nfunction buildHmacMessage(configuration, message) {\n return {\n type: 'hmac',\n hmac: CryptoHelper.computeHmac(message.data.hmacChallenge, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey)\n };\n}\n\n/**\n * This function bind the right behaviour when a message is receive by the websocket.\n * @param {DestructuredPromise} destructuredPromise\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @return {function} Callback to handle WebSocket results\n */\nexport function buildWebSocketCallback(destructuredPromise, recognizerContext) {\n return (message) => {\n const recognizerContextRef = recognizerContext;\n // Handle websocket messages\n logger.trace(`${message.type} websocket callback`, message);\n const recognitionContext = recognizerContext.recognitionContexts[recognizerContext.recognitionContexts.length - 1];\n logger.debug('Current recognition context', recognitionContext);\n\n switch (message.type) {\n case 'open':\n if (recognizerContext.sessionId) {\n NetworkWSInterface.send(recognizerContext, buildRestoreIInkSessionInput(recognizerContext.editor.configuration, recognizerContext.editor.domElement, recognizerContext.sessionId));\n } else {\n NetworkWSInterface.send(recognizerContext, buildNewContentPackageInput(recognizerContext.editor.configuration, recognizerContext.editor.domElement));\n }\n break;\n case 'message':\n logger.debug(`Receiving ${message.data.type} message`, message);\n switch (message.data.type) {\n case 'ack':\n if (message.data.hmacChallenge) {\n NetworkWSInterface.send(recognizerContext, buildHmacMessage(recognizerContext.editor.configuration, message));\n }\n if (message.data.iinkSessionId) {\n recognizerContextRef.sessionId = message.data.iinkSessionId;\n }\n break;\n case 'newPart':\n break;\n case 'contentPackageDescription':\n recognizerContextRef.currentReconnectionCount = 0;\n recognizerContextRef.contentPartCount = message.data.contentPartCount;\n NetworkWSInterface.send(recognizerContext, buildConfiguration(recognizerContext.editor.configuration));\n if (recognizerContextRef.currentPartId) { // FIXME: Ugly hack to resolve init promise after opening part\n NetworkWSInterface.send(recognizerContext, buildOpenContentPart(recognizerContext.editor.configuration, recognizerContext.currentPartId));\n } else {\n NetworkWSInterface.send(recognizerContext, buildNewContentPart(recognizerContext.editor.configuration));\n }\n break;\n case 'partChanged':\n if (message.data.partId) {\n recognizerContextRef.currentPartId = message.data.partId;\n }\n recognizerContextRef.initialized = true;\n NetworkWSInterface.send(recognizerContext, buildSetTheme(recognizerContext.editor.theme));\n NetworkWSInterface.send(recognizerContext, buildSetPenStyle(recognizerContext.editor.penStyle));\n NetworkWSInterface.send(recognizerContext, buildSetPenStyleClasses(recognizerContext.editor.penStyleClasses));\n recognitionContext.callback(undefined, message.data);\n destructuredPromise.resolve(recognitionContext);\n break;\n case 'contentChanged':\n if (message.data.canUndo !== undefined) {\n recognizerContextRef.canUndo = message.data.canUndo;\n }\n if (message.data.canRedo !== undefined) {\n recognizerContextRef.canRedo = message.data.canRedo;\n }\n if (message.data.empty !== undefined) {\n recognizerContextRef.isEmpty = message.data.empty;\n }\n if (message.data.possibleUndoCount !== undefined) {\n recognizerContextRef.possibleUndoCount = message.data.possibleUndoCount;\n }\n if (message.data.undoStackIndex !== undefined) {\n recognizerContextRef.undoStackIndex = message.data.undoStackIndex;\n }\n recognitionContext.callback(undefined, message.data);\n break;\n case 'exported':\n recognitionContext.callback(undefined, message.data);\n break;\n case 'svgPatch':\n recognitionContext.callback(undefined, message.data);\n break;\n case 'supportedImportMimeTypes':\n recognizerContextRef.supportedImportMimeTypes = message.data.mimeTypes;\n recognitionContext.callback(undefined, message.data);\n break;\n case 'fileChunkAck':\n recognitionContext.callback(undefined, message.data);\n break;\n case 'idle':\n recognizerContextRef.idle = true;\n recognitionContext.callback(undefined, message.data);\n break;\n case 'error':\n logger.debug('Error detected stopping all recognition', message);\n if (recognitionContext) {\n recognitionContext.callback(message.data);\n } else {\n destructuredPromise.reject(Object.assign({}, message.data, { recoverable: false }));\n }\n break;\n default :\n logger.warn('This is something unexpected in current recognizer. Not the type of message we should have here.', message);\n }\n break;\n case 'error':\n logger.debug('Error detected stopping all recognition', message);\n if (recognitionContext) {\n recognitionContext.callback(Object.assign({}, message, { recoverable: false }));\n } else {\n destructuredPromise.reject(Object.assign({}, message, { recoverable: false }));\n }\n break;\n case 'close':\n logger.debug('Close detected stopping all recognition', message);\n recognizerContextRef.initialized = false;\n recognizerContextRef.canRedo = false;\n recognizerContextRef.canUndo = false;\n if (recognitionContext) {\n recognitionContext.callback(message);\n } else {\n destructuredPromise.reject(message);\n }\n break;\n default :\n logger.warn('This is something unexpected in current recognizer. Not the type of message we should have here.', message);\n }\n };\n}\n","import uuid from 'uuid-js';\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as DefaultTheme from '../../../configuration/DefaultTheme';\nimport * as DefaultPenStyle from '../../../configuration/DefaultPenStyle';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as DefaultRecognizer from '../../DefaultRecognizer';\nimport * as Cdkv4WSWebsocketBuilder from './Cdkv4WSBuilder';\nimport * as CdkWSRecognizerUtil from '../CdkWSRecognizerUtil';\n\nexport { close } from '../CdkWSRecognizerUtil';\n\nfunction readBlob(blob) {\n const fileReader = new FileReader();\n return new Promise((resolve, reject) => {\n fileReader.onload = event => resolve(event.target.result);\n fileReader.onerror = () => reject(this);\n fileReader.readAsText(blob);\n });\n}\n\n\nfunction getDPI(element) {\n // const startDpi = 56;\n // for (let dpi = startDpi; dpi < 2000; dpi++) {\n // if (window.matchMedia(`(max-resolution: ${dpi}dpi)`).matches === true) {\n // return dpi;\n // }\n // }\n // return startDpi;\n return 96;\n}\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const IInkWebSocketV4Configuration = {\n types: [Constants.RecognitionType.MATH, Constants.RecognitionType.TEXT, Constants.RecognitionType.DIAGRAM, Constants.RecognitionType.NEBO],\n protocol: Constants.Protocol.WEBSOCKET,\n apiVersion: 'V4',\n availableTriggers: {\n exportContent: [Constants.Trigger.POINTER_UP, Constants.Trigger.DEMAND],\n addStrokes: [Constants.Trigger.POINTER_UP]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return IInkWebSocketV4Configuration;\n}\n\nexport function buildNewContentPackageInput(configuration, element) {\n return {\n type: 'newContentPackage',\n applicationKey: configuration.recognitionParams.server.applicationKey,\n xDpi: getDPI(element),\n yDpi: getDPI(element),\n viewSizeHeight: element.clientHeight < configuration.renderingParams.minHeight ? configuration.renderingParams.minHeight : element.clientHeight,\n viewSizeWidth: element.clientWidth < configuration.renderingParams.minWidth ? configuration.renderingParams.minWidth : element.clientWidth\n };\n}\n\nexport function buildRestoreIInkSessionInput(configuration, element, sessionId) {\n return {\n type: 'restoreIInkSession',\n iinkSessionId: sessionId,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n xDpi: getDPI(element),\n yDpi: getDPI(element),\n viewSizeHeight: element.clientHeight < configuration.renderingParams.minHeight ? configuration.renderingParams.minHeight : element.clientHeight,\n viewSizeWidth: element.clientWidth < configuration.renderingParams.minWidth ? configuration.renderingParams.minWidth : element.clientWidth\n };\n}\n\nexport function buildNewContentPart(configuration) {\n return {\n type: 'newContentPart',\n contentType: configuration.recognitionParams.type,\n mimeTypes: (configuration.triggers.exportContent !== Constants.Trigger.DEMAND) ?\n configuration.recognitionParams.v4[`${configuration.recognitionParams.type.toLowerCase()}`].mimeTypes : undefined\n };\n}\n\nexport function buildOpenContentPart(configuration, partId) {\n return {\n type: 'openContentPart',\n id: partId,\n mimeTypes: (configuration.triggers.exportContent !== Constants.Trigger.DEMAND) ?\n configuration.recognitionParams.v4[`${configuration.recognitionParams.type.toLowerCase()}`].mimeTypes : undefined\n };\n}\n\nexport function buildConfiguration(configuration) {\n return Object.assign({ type: 'configuration' }, configuration.recognitionParams.v4);\n}\n\nfunction buildAddStrokes(recognizerContext, model) {\n const strokes = InkModel.extractPendingStrokes(model, recognizerContext.lastPositions.lastSentPosition + 1);\n if (strokes.length > 0) {\n InkModel.updateModelSentPosition(model);\n return {\n type: 'addStrokes',\n strokes: strokes.map(stroke => Object.assign({}, {\n id: stroke.id,\n pointerType: stroke.pointerType,\n pointerId: stroke.pointerId,\n x: stroke.x,\n y: stroke.y,\n t: stroke.t,\n p: stroke.p\n }))\n };\n }\n return undefined;\n}\n\nfunction buildUndo() {\n return {\n type: 'undo'\n };\n}\n\nfunction buildRedo() {\n return {\n type: 'redo'\n };\n}\n\nfunction buildClear() {\n return {\n type: 'clear'\n };\n}\n\nfunction buildConvert(state) {\n return {\n type: 'convert',\n conversionState: state\n };\n}\n\nfunction buildZoom(value) {\n return {\n type: 'zoom',\n zoom: value\n };\n}\n\nfunction buildResize(element, minHeight = 0, minWidth = 0) {\n return {\n type: 'changeViewSize',\n height: element.clientHeight < minHeight ? minHeight : element.clientHeight,\n width: element.clientWidth < minWidth ? minWidth : element.clientWidth\n };\n}\n\nfunction buildExport(configuration, partId, requestedMimeType) {\n let usedMimeType;\n if (requestedMimeType && Object.keys(requestedMimeType).length !== 0) {\n usedMimeType = requestedMimeType;\n } else {\n usedMimeType = configuration.recognitionParams.v4[`${configuration.recognitionParams.type.toLowerCase()}`].mimeTypes;\n }\n\n return {\n type: 'export',\n partId,\n mimeTypes: usedMimeType\n };\n}\n\nfunction buildImportFile(id, mimetype) {\n return {\n type: 'importFile',\n importFileId: id,\n mimeType: mimetype\n };\n}\n\nfunction buildImportChunk(id, data, lastChunk) {\n return {\n type: 'fileChunk',\n importFileId: id,\n data,\n lastChunk\n };\n}\n\nfunction buildPointerEvents(events) {\n return Object.assign({ type: 'pointerEvents' }, events);\n}\n\nfunction buildWaitForIdle() {\n return {\n type: 'waitForIdle'\n };\n}\n\nfunction buildGetSupportedImportMimeTypes() {\n return {\n type: 'getSupportedImportMimeTypes'\n };\n}\n\nexport function buildSetPenStyle(penStyle) {\n return {\n type: 'setPenStyle',\n style: penStyle ? DefaultPenStyle.toCSS(penStyle) : ''\n };\n}\n\nexport function buildSetPenStyleClasses(penStyleClasses) {\n return {\n type: 'setPenStyleClasses',\n styleClasses: penStyleClasses\n };\n}\n\nexport function buildSetTheme(theme) {\n return {\n type: 'setTheme',\n theme: DefaultTheme.toCSS(theme)\n };\n}\n\nconst iinkCallback = (model, err, res, callback) => {\n const modelReference = InkModel.updateModelReceivedPosition(model);\n if (res) {\n if (res.updates !== undefined) {\n if (modelReference.recognizedSymbols) {\n modelReference.recognizedSymbols.push(res);\n } else {\n modelReference.recognizedSymbols = [res];\n }\n return callback(err, modelReference, Constants.EventType.RENDERED);\n }\n if (res.exports !== undefined) {\n modelReference.rawResults.exports = res;\n modelReference.exports = res.exports;\n return callback(err, modelReference, Constants.EventType.EXPORTED);\n }\n\n if ((res.canUndo !== undefined) || (res.canRedo !== undefined)) {\n return callback(err, modelReference, Constants.EventType.CHANGED);\n }\n\n if (res.type === 'supportedImportMimeTypes') {\n return callback(err, modelReference, Constants.EventType.SUPPORTED_IMPORT_MIMETYPES);\n }\n\n if (res.type === 'partChanged') {\n return callback(err, modelReference, Constants.EventType.LOADED);\n }\n\n if (res.type === 'idle') {\n return callback(err, modelReference, Constants.EventType.IDLE);\n }\n\n if (res.type === 'close') {\n return callback(err, modelReference, Constants.EventType.CHANGED);\n }\n }\n return callback(err, modelReference);\n};\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model: InkModel.updateModelSentPosition(model, model.lastPositions.lastReceivedPosition),\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.init('/api/v4.0/iink/document', recognizerContextRef, Cdkv4WSWebsocketBuilder.buildWebSocketCallback, init)\n .catch((err) => {\n if (RecognizerContext.shouldAttemptImmediateReconnect(recognizerContext) && recognizerContext.reconnect) {\n logger.info('Attempting a reconnect', recognizerContext.currentReconnectionCount);\n recognizerContext.reconnect(recognizerContext, model, callback);\n } else {\n logger.error('Unable to reconnect', err);\n iinkCallback(model, err, undefined, callback);\n }\n });\n}\n\n/**\n * Create a new content part\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function newContentPart(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildNewContentPart, recognizerContext.editor.configuration)\n .catch(exception => CdkWSRecognizerUtil.retry(newContentPart, recognizerContext, model, callback));\n}\n\n/**\n * Open the recognizer context content part\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function openContentPart(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildOpenContentPart, recognizerContext.editor.configuration, recognizerContext.currentPartId)\n .catch(exception => CdkWSRecognizerUtil.retry(openContentPart, recognizerContext, model, callback));\n}\n\nexport function sendConfiguration(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildConfiguration, recognizerContext.editor.configuration)\n .catch(exception => CdkWSRecognizerUtil.retry(sendConfiguration, recognizerContext, model, callback));\n}\n\n/**\n * Pointer Events\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {PointerEvents} events to be imported\n * @param {RecognizerCallback} callback\n */\nexport function pointerEvents(recognizerContext, model, events, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildPointerEvents, events)\n .catch(exception => CdkWSRecognizerUtil.retry(pointerEvents, recognizerContext, model, events, callback));\n}\n\n/**\n * Add strokes to the model\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function addStrokes(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildAddStrokes, recognizerContext, model)\n .catch(exception => CdkWSRecognizerUtil.retry(addStrokes, recognizerContext, model, callback));\n}\n\n/**\n * Undo last action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function undo(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildUndo)\n .catch(exception => CdkWSRecognizerUtil.retry(undo, recognizerContext, model, callback));\n}\n\n/**\n * Redo last action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function redo(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildRedo)\n .catch(exception => CdkWSRecognizerUtil.retry(redo, recognizerContext, model, callback));\n}\n\n/**\n * Clear action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => {\n DefaultRecognizer.clear(recognizerContext, model, (noerr, newModel, ...attrs) => {\n logger.debug('The model after clear is :', newModel);\n iinkCallback(newModel, err, res, callback);\n });\n }\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildClear)\n .catch(exception => CdkWSRecognizerUtil.retry(clear, recognizerContext, model, callback));\n}\n\n/**\n * Convert action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n * @param {String} conversionState Conversion State, by default DigitalEdit\n */\nexport function convert(recognizerContext, model, callback, conversionState) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildConvert, conversionState)\n .catch(exception => CdkWSRecognizerUtil.retry(convert, recognizerContext, model, callback, conversionState));\n}\n\n/**\n * Export action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n * @param {Array[String]} requestedMimeTypes\n */\n// eslint-disable-next-line no-underscore-dangle\nexport function export_(recognizerContext, model, callback, requestedMimeTypes) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildExport, recognizerContext.editor.configuration, recognizerContext.currentPartId, requestedMimeTypes)\n .catch(exception => CdkWSRecognizerUtil.retry(export_, recognizerContext, model, callback, requestedMimeTypes));\n}\n\n/**\n * Import action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Blob} data Import data\n * @param {RecognizerCallback} callback\n */\n// eslint-disable-next-line no-underscore-dangle\nexport function import_(recognizerContext, model, data, callback) {\n const recognitionContext = {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback),\n importFileId: uuid.create(4).toString()\n };\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, recognitionContext);\n\n const chunkSize = recognizerContext.editor.configuration.recognitionParams.server.websocket.fileChunkSize;\n\n for (let i = 0; i < data.size; i += chunkSize) {\n if (i === 0) {\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildImportFile, recognitionContext.importFileId, data.type)\n .catch(exception => CdkWSRecognizerUtil.retry(import_, recognizerContext, model, data, callback));\n }\n const blobPart = data.slice(i, chunkSize, data.type);\n readBlob(blobPart).then((res) => {\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildImportChunk, recognitionContext.importFileId, res, i + chunkSize > data.size)\n .catch(exception => CdkWSRecognizerUtil.retry(import_, recognizerContext, model, data, callback));\n });\n }\n}\n\nexport function getSupportedImportMimeTypes(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildGetSupportedImportMimeTypes)\n .catch(exception => CdkWSRecognizerUtil.retry(getSupportedImportMimeTypes, recognizerContext, model, callback));\n}\n\n/**\n * WaitForIdle action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function waitForIdle(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildWaitForIdle)\n .catch(exception => CdkWSRecognizerUtil.retry(waitForIdle, recognizerContext, model, callback));\n}\n\n/**\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Element} element Current element\n * @param {RecognizerCallback} callback\n */\nexport function resize(recognizerContext, model, element, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildResize, element, recognizerContext.editor.configuration.renderingParams.minHeight, recognizerContext.editor.configuration.renderingParams.minWidth)\n .catch(exception => CdkWSRecognizerUtil.retry(resize, recognizerContext, model, callback));\n}\n\n/**\n * Zoom action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Number} value=10 Zoom value\n * @param {RecognizerCallback} callback\n */\nexport function zoom(recognizerContext, model, value = 10, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildZoom, value)\n .catch(exception => CdkWSRecognizerUtil.retry(zoom, recognizerContext, model, callback));\n}\n\n/**\n * SetPenStyle action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {PenStyle} penStyle Current penStyle\n * @param {RecognizerCallback} callback\n */\nexport function setPenStyle(recognizerContext, model, penStyle, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildSetPenStyle, penStyle)\n .catch(exception => CdkWSRecognizerUtil.retry(setPenStyle, recognizerContext, model, callback));\n}\n\n/**\n * setPenStyleClasses action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {String} penStyleClasses Current penStyleClasses\n * @param {RecognizerCallback} callback\n */\nexport function setPenStyleClasses(recognizerContext, model, penStyleClasses, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildSetPenStyleClasses, penStyleClasses)\n .catch(exception => CdkWSRecognizerUtil.retry(setPenStyleClasses, recognizerContext, model, callback));\n}\n\n/**\n * SetTheme action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Theme} theme Current theme\n * @param {RecognizerCallback} callback\n */\nexport function setTheme(recognizerContext, model, theme, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildSetTheme, theme)\n .catch(exception => CdkWSRecognizerUtil.retry(setTheme, recognizerContext, model, callback));\n}\n","import { editorLogger as logger } from './LoggerConfig';\nimport * as PointerEventGrabber from '../grabber/PointerEventGrabber';\nimport * as CanvasRenderer from '../renderer/canvas/CanvasRenderer';\nimport * as QuadraticCanvasStroker from '../renderer/canvas/stroker/QuadraticCanvasStroker';\nimport * as SVGRenderer from '../renderer/svg/SVGRenderer';\nimport * as QuadraticSVGStroker from '../renderer/svg/stroker/QuadraticSVGStroker';\nimport * as Cdkv3RestTextRecognizer from '../recognizer/rest/v3/Cdkv3RestTextRecognizer';\nimport * as Cdkv3RestMathRecognizer from '../recognizer/rest/v3/Cdkv3RestMathRecognizer';\nimport * as Cdkv3RestAnalyzerRecognizer from '../recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer';\nimport * as Cdkv3RestShapeRecognizer from '../recognizer/rest/v3/Cdkv3RestShapeRecognizer';\nimport * as Cdkv3RestMusicRecognizer from '../recognizer/rest/v3/Cdkv3RestMusicRecognizer';\nimport * as iinkRestRecognizer from '../recognizer/rest/v4/iinkRestRecognizer';\nimport * as Cdkv3WSMathRecognizer from '../recognizer/websocket/v3/Cdkv3WSMathRecognizer';\nimport * as Cdkv3WSTextRecognizer from '../recognizer/websocket/v3/Cdkv3WSTextRecognizer';\nimport * as Cdkv4WSInteractiveRecognizer from '../recognizer/websocket/v4/Cdkv4WSIInkRecognizer';\nimport eventCallback from '../callback/EventCallback';\n\n/**\n * Current behavior\n * @typedef {Object} Behavior\n * @property {Grabber} grabber Grabber to capture strokes\n * @property {Stroker} stroker Stroker to draw stroke\n * @property {Renderer} renderer Renderer to draw on the editor\n * @property {Recognizer} recognizer Recognizer to call the recognition service\n * @property {Array} callbacks Functions to handle model changes\n */\n\n/**\n * Set of behaviors to be used by the {@link Editor}\n * @typedef {Object} Behaviors\n * @property {Grabber} grabber Grabber to capture strokes\n * @property {Array} strokerList List of stroker to draw stroke\n * @property {Array} rendererList List of renderer to draw on the editor\n * @property {Array} recognizerList Recognizers to call the recognition service\n * @property {function(behaviors: Behaviors, configuration: Configuration): Behavior} getBehaviorFromConfiguration Get the current behavior to use regarding the current configuration\n * @property {Array} callbacks Functions to handle model changes\n */\n\n/**\n * Default behaviors\n * @type {Behaviors}\n */\nexport const defaultBehaviors = {\n grabber: PointerEventGrabber,\n strokerList: [QuadraticCanvasStroker, QuadraticSVGStroker],\n rendererList: [CanvasRenderer, SVGRenderer],\n recognizerList: [Cdkv3RestTextRecognizer, Cdkv3RestMathRecognizer, Cdkv3RestAnalyzerRecognizer, Cdkv3RestShapeRecognizer, Cdkv3RestMusicRecognizer, iinkRestRecognizer, Cdkv3WSTextRecognizer, Cdkv3WSMathRecognizer, Cdkv4WSInteractiveRecognizer],\n callbacks: [eventCallback],\n getBehaviorFromConfiguration: (behaviors, configuration) => {\n const behavior = {};\n behavior.grabber = behaviors.grabber;\n if (configuration) {\n if (configuration.recognitionParams.apiVersion === 'V4' && configuration.recognitionParams.protocol === 'REST') {\n behavior.stroker = QuadraticCanvasStroker;\n } else {\n behavior.stroker = behaviors.strokerList.find(item =>\n (item.getInfo().apiVersion === configuration.recognitionParams.apiVersion) &&\n (item.getInfo().name === configuration.renderingParams.stroker));\n }\n if (configuration.recognitionParams.apiVersion === 'V4' && configuration.recognitionParams.protocol === 'REST') {\n behavior.renderer = CanvasRenderer;\n } else {\n behavior.renderer = behaviors.rendererList.find(item => item.getInfo().apiVersion === configuration.recognitionParams.apiVersion);\n }\n behavior.recognizer = behaviors.recognizerList.find(item =>\n (item.getInfo()\n .types\n .includes(configuration.recognitionParams.type)) &&\n (item.getInfo().protocol === configuration.recognitionParams.protocol) &&\n (item.getInfo().apiVersion === configuration.recognitionParams.apiVersion));\n }\n behavior.callbacks = behaviors.callbacks;\n return behavior;\n }\n};\n\n/**\n * Generate behaviors\n * @param {Behaviors} behaviors Behaviors to be used\n * @return {Behaviors} Overridden behaviors\n */\nexport function overrideDefaultBehaviors(behaviors) {\n if (behaviors) {\n const currentBehaviors = {\n grabber: behaviors.grabber || defaultBehaviors.grabber,\n rendererList: behaviors.rendererList || defaultBehaviors.rendererList,\n strokerList: behaviors.strokerList || defaultBehaviors.strokerList,\n recognizerList: behaviors.recognizerList || defaultBehaviors.recognizerList,\n callbacks: behaviors.callbacks || defaultBehaviors.callbacks,\n getBehaviorFromConfiguration: behaviors.getBehaviorFromConfiguration || defaultBehaviors.getBehaviorFromConfiguration\n };\n logger.debug('Override default behaviors', currentBehaviors);\n return currentBehaviors;\n }\n return defaultBehaviors;\n}\n","import { callbackLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Emits an event when the editor state change\n * @param {String} type\n * @param {Object} data\n * @emits {Event}\n */\nexport default function eventCallback(type, data) {\n logger.info(`emitting ${type} event`, data);\n // We are making usage of a browser provided class\n // eslint-disable-next-line no-undef\n this.dispatchEvent(new CustomEvent(type, Object.assign({ bubbles: true, composed: true }, data ? { detail: data } : undefined)));\n}\n","import { modelLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Undo/redo context\n * @typedef {Object} UndoRedoContext\n * @property {Array} stack=[] List of processed models.\n * @property {Number} currentPosition=-1 Current model index into the stack.\n * @property {Number} maxSize Max size of the stack.\n * @property {Boolean} canUndo=false\n * @property {Boolean} canRedo=false\n */\n\n/**\n * Create a new undo/redo context\n * @param {Configuration} configuration Current configuration\n * @return {UndoRedoContext} New undo/redo context\n */\nexport function createUndoRedoContext(configuration) {\n return {\n stack: [],\n currentPosition: -1,\n maxSize: configuration.undoRedoMaxStackSize,\n canUndo: false,\n canRedo: false\n };\n}\n\n/**\n * Update the undo/redo state\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context\n * @return {UndoRedoContext} Updated undo/redo context\n */\nexport function updateUndoRedoState(undoRedoContext) {\n const undoRedoContextRef = undoRedoContext;\n undoRedoContextRef.canUndo = undoRedoContext.currentPosition > 0;\n undoRedoContextRef.canRedo = undoRedoContext.currentPosition < (undoRedoContext.stack.length - 1);\n return undoRedoContextRef;\n}\n","import * as InkModel from '../model/InkModel';\nimport * as UndoRedoContext from '../model/UndoRedoContext';\nimport { modelLogger as logger } from '../configuration/LoggerConfig';\nimport Constants from '../configuration/Constants';\n\n/**\n * Undo/redo manager\n * @typedef {Object} UndoRedoManager\n * @property {function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)} updateModel Push the current model into the undo/redo context.\n * @property {function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)} undo Undo.\n * @property {function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)} redo Redo.\n * @property {function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)} clear Clear.\n */\n\n/**\n * Get current model in stack\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context\n * @param {function(err: Object, res: Model, types: ...String)} callback\n * @param {Boolean} [clone=true] Whether or not to clone the model\n * @param {...String} types\n */\nexport function getModel(undoRedoContext, callback, clone = true, ...types) {\n const model = undoRedoContext.stack[undoRedoContext.currentPosition];\n callback(undefined, clone ? InkModel.cloneModel(model) : model, ...types);\n}\n\n/**\n * Mutate the undoRedo stack by adding a new model to it.\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context.\n * @param {Model} model Current model.\n * @param {function(err: Object, res: Model, types: ...String)} callback\n */\nexport function updateModel(undoRedoContext, model, callback) {\n // Used to update the model with the recognition result if relevant\n const modelIndex = undoRedoContext.stack.findIndex(item => (item.modificationTime === model.modificationTime) && (item.rawStrokes.length === model.rawStrokes.length));\n\n const modelReference = model;\n modelReference.modificationTime = new Date().getTime();\n\n const types = [];\n if (modelIndex > -1) {\n undoRedoContext.stack.splice(modelIndex, 1, InkModel.cloneModel(modelReference));\n logger.debug('model updated', modelReference);\n } else {\n const undoRedoContextReference = undoRedoContext;\n undoRedoContextReference.currentPosition += 1;\n undoRedoContextReference.stack = undoRedoContextReference.stack.slice(0, undoRedoContextReference.currentPosition);\n undoRedoContextReference.stack.push(InkModel.cloneModel(modelReference));\n if (undoRedoContextReference.stack.length > undoRedoContextReference.maxSize) {\n undoRedoContextReference.stack.shift();\n undoRedoContextReference.currentPosition--;\n }\n logger.debug('model pushed', modelReference);\n types.push(Constants.EventType.CHANGED);\n }\n UndoRedoContext.updateUndoRedoState(undoRedoContext);\n logger.debug('undo/redo stack updated', undoRedoContext);\n getModel(undoRedoContext, callback, false, ...types);\n}\n\n/**\n * Undo\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context.\n * @param {Model} model Current model.\n * @param {function(err: Object, res: Model, types: ...String)} callback\n */\nexport function undo(undoRedoContext, model, callback) {\n const undoRedoContextReference = undoRedoContext;\n if (undoRedoContextReference.currentPosition > 0) {\n undoRedoContextReference.currentPosition -= 1;\n UndoRedoContext.updateUndoRedoState(undoRedoContext);\n logger.debug('undo index', undoRedoContextReference.currentPosition);\n }\n getModel(undoRedoContext, callback, true, Constants.EventType.CHANGED, Constants.EventType.EXPORTED);\n}\n\n/**\n * Redo\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context.\n * @param {Model} model Current model.\n * @param {function(err: Object, res: Model, types: ...String)} callback\n */\nexport function redo(undoRedoContext, model, callback) {\n const undoRedoContextReference = undoRedoContext;\n if (undoRedoContextReference.currentPosition < undoRedoContextReference.stack.length - 1) {\n undoRedoContextReference.currentPosition += 1;\n UndoRedoContext.updateUndoRedoState(undoRedoContext);\n logger.debug('redo index', undoRedoContextReference.currentPosition);\n }\n getModel(undoRedoContext, callback, true, Constants.EventType.CHANGED, Constants.EventType.EXPORTED);\n}\n","import { drawModel } from './CanvasRenderer';\nimport * as InkModel from '../../model/InkModel';\n\nfunction createCanvas(borderCoordinates, margin = 10) {\n // eslint-disable-next-line no-undef\n const browserDocument = document;\n const canvas = browserDocument.createElement('canvas');\n canvas.width = Math.abs(borderCoordinates.maxX - borderCoordinates.minX) + (2 * margin);\n canvas.style.width = `${canvas.width}px`;\n canvas.height = Math.abs(borderCoordinates.maxY - borderCoordinates.minY) + (2 * margin);\n canvas.style.height = `${canvas.height}px`;\n return canvas;\n}\n\n/**\n * Generate a PNG image data url from the model\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @param {Number} [margin=10] Margins to apply around the image\n * @return {String} Image data string result\n */\nexport function getImage(model, stroker, margin = 10) {\n if (model.rawStrokes.length > 0) {\n const borderCoordinates = InkModel.getBorderCoordinates(model);\n\n const capturingCanvas = createCanvas(borderCoordinates, margin);\n const renderingCanvas = createCanvas(borderCoordinates, margin);\n const renderStructure = {\n renderingCanvas,\n renderingCanvasContext: renderingCanvas.getContext('2d'),\n capturingCanvas,\n capturingCanvasContext: capturingCanvas.getContext('2d')\n };\n // Change canvas origin\n renderStructure.renderingCanvasContext.translate(-borderCoordinates.minX + margin, -borderCoordinates.minY + margin);\n drawModel(renderStructure, model, stroker);\n return renderStructure.renderingCanvas.toDataURL('image/png');\n }\n return null;\n}\n","/*!\n * perfect-scrollbar v1.3.0\n * (c) 2017 Hyunje Jun\n * @license MIT\n */\nfunction get(element) {\n return getComputedStyle(element);\n}\n\nfunction set(element, obj) {\n for (var key in obj) {\n var val = obj[key];\n if (typeof val === 'number') {\n val = val + \"px\";\n }\n element.style[key] = val;\n }\n return element;\n}\n\nfunction div(className) {\n var div = document.createElement('div');\n div.className = className;\n return div;\n}\n\nvar elMatches =\n typeof Element !== 'undefined' &&\n (Element.prototype.matches ||\n Element.prototype.webkitMatchesSelector ||\n Element.prototype.msMatchesSelector);\n\nfunction matches(element, query) {\n if (!elMatches) {\n throw new Error('No element matching method supported');\n }\n\n return elMatches.call(element, query);\n}\n\nfunction remove(element) {\n if (element.remove) {\n element.remove();\n } else {\n if (element.parentNode) {\n element.parentNode.removeChild(element);\n }\n }\n}\n\nfunction queryChildren(element, selector) {\n return Array.prototype.filter.call(element.children, function (child) { return matches(child, selector); }\n );\n}\n\nvar cls = {\n main: 'ps',\n element: {\n thumb: function (x) { return (\"ps__thumb-\" + x); },\n rail: function (x) { return (\"ps__rail-\" + x); },\n consuming: 'ps__child--consume',\n },\n state: {\n focus: 'ps--focus',\n active: function (x) { return (\"ps--active-\" + x); },\n scrolling: function (x) { return (\"ps--scrolling-\" + x); },\n },\n};\n\n/*\n * Helper methods\n */\nvar scrollingClassTimeout = { x: null, y: null };\n\nfunction addScrollingClass(i, x) {\n var classList = i.element.classList;\n var className = cls.state.scrolling(x);\n\n if (classList.contains(className)) {\n clearTimeout(scrollingClassTimeout[x]);\n } else {\n classList.add(className);\n }\n}\n\nfunction removeScrollingClass(i, x) {\n scrollingClassTimeout[x] = setTimeout(\n function () { return i.isAlive && i.element.classList.remove(cls.state.scrolling(x)); },\n i.settings.scrollingThreshold\n );\n}\n\nfunction setScrollingClassInstantly(i, x) {\n addScrollingClass(i, x);\n removeScrollingClass(i, x);\n}\n\nvar EventElement = function EventElement(element) {\n this.element = element;\n this.handlers = {};\n};\n\nvar prototypeAccessors = { isEmpty: { configurable: true } };\n\nEventElement.prototype.bind = function bind (eventName, handler) {\n if (typeof this.handlers[eventName] === 'undefined') {\n this.handlers[eventName] = [];\n }\n this.handlers[eventName].push(handler);\n this.element.addEventListener(eventName, handler, false);\n};\n\nEventElement.prototype.unbind = function unbind (eventName, target) {\n var this$1 = this;\n\n this.handlers[eventName] = this.handlers[eventName].filter(function (handler) {\n if (target && handler !== target) {\n return true;\n }\n this$1.element.removeEventListener(eventName, handler, false);\n return false;\n });\n};\n\nEventElement.prototype.unbindAll = function unbindAll () {\n var this$1 = this;\n\n for (var name in this$1.handlers) {\n this$1.unbind(name);\n }\n};\n\nprototypeAccessors.isEmpty.get = function () {\n var this$1 = this;\n\n return Object.keys(this.handlers).every(\n function (key) { return this$1.handlers[key].length === 0; }\n );\n};\n\nObject.defineProperties( EventElement.prototype, prototypeAccessors );\n\nvar EventManager = function EventManager() {\n this.eventElements = [];\n};\n\nEventManager.prototype.eventElement = function eventElement (element) {\n var ee = this.eventElements.filter(function (ee) { return ee.element === element; })[0];\n if (!ee) {\n ee = new EventElement(element);\n this.eventElements.push(ee);\n }\n return ee;\n};\n\nEventManager.prototype.bind = function bind (element, eventName, handler) {\n this.eventElement(element).bind(eventName, handler);\n};\n\nEventManager.prototype.unbind = function unbind (element, eventName, handler) {\n var ee = this.eventElement(element);\n ee.unbind(eventName, handler);\n\n if (ee.isEmpty) {\n // remove\n this.eventElements.splice(this.eventElements.indexOf(ee), 1);\n }\n};\n\nEventManager.prototype.unbindAll = function unbindAll () {\n this.eventElements.forEach(function (e) { return e.unbindAll(); });\n this.eventElements = [];\n};\n\nEventManager.prototype.once = function once (element, eventName, handler) {\n var ee = this.eventElement(element);\n var onceHandler = function (evt) {\n ee.unbind(eventName, onceHandler);\n handler(evt);\n };\n ee.bind(eventName, onceHandler);\n};\n\nfunction createEvent(name) {\n if (typeof window.CustomEvent === 'function') {\n return new CustomEvent(name);\n } else {\n var evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(name, false, false, undefined);\n return evt;\n }\n}\n\nvar processScrollDiff = function(\n i,\n axis,\n diff,\n useScrollingClass,\n forceFireReachEvent\n) {\n if ( useScrollingClass === void 0 ) useScrollingClass = true;\n if ( forceFireReachEvent === void 0 ) forceFireReachEvent = false;\n\n var fields;\n if (axis === 'top') {\n fields = [\n 'contentHeight',\n 'containerHeight',\n 'scrollTop',\n 'y',\n 'up',\n 'down' ];\n } else if (axis === 'left') {\n fields = [\n 'contentWidth',\n 'containerWidth',\n 'scrollLeft',\n 'x',\n 'left',\n 'right' ];\n } else {\n throw new Error('A proper axis should be provided');\n }\n\n processScrollDiff$1(i, diff, fields, useScrollingClass, forceFireReachEvent);\n};\n\nfunction processScrollDiff$1(\n i,\n diff,\n ref,\n useScrollingClass,\n forceFireReachEvent\n) {\n var contentHeight = ref[0];\n var containerHeight = ref[1];\n var scrollTop = ref[2];\n var y = ref[3];\n var up = ref[4];\n var down = ref[5];\n if ( useScrollingClass === void 0 ) useScrollingClass = true;\n if ( forceFireReachEvent === void 0 ) forceFireReachEvent = false;\n\n var element = i.element;\n\n // reset reach\n i.reach[y] = null;\n\n // 1 for subpixel rounding\n if (element[scrollTop] < 1) {\n i.reach[y] = 'start';\n }\n\n // 1 for subpixel rounding\n if (element[scrollTop] > i[contentHeight] - i[containerHeight] - 1) {\n i.reach[y] = 'end';\n }\n\n if (diff) {\n element.dispatchEvent(createEvent((\"ps-scroll-\" + y)));\n\n if (diff < 0) {\n element.dispatchEvent(createEvent((\"ps-scroll-\" + up)));\n } else if (diff > 0) {\n element.dispatchEvent(createEvent((\"ps-scroll-\" + down)));\n }\n\n if (useScrollingClass) {\n setScrollingClassInstantly(i, y);\n }\n }\n\n if (i.reach[y] && (diff || forceFireReachEvent)) {\n element.dispatchEvent(createEvent((\"ps-\" + y + \"-reach-\" + (i.reach[y]))));\n }\n}\n\nfunction toInt(x) {\n return parseInt(x, 10) || 0;\n}\n\nfunction isEditable(el) {\n return (\n matches(el, 'input,[contenteditable]') ||\n matches(el, 'select,[contenteditable]') ||\n matches(el, 'textarea,[contenteditable]') ||\n matches(el, 'button,[contenteditable]')\n );\n}\n\nfunction outerWidth(element) {\n var styles = get(element);\n return (\n toInt(styles.width) +\n toInt(styles.paddingLeft) +\n toInt(styles.paddingRight) +\n toInt(styles.borderLeftWidth) +\n toInt(styles.borderRightWidth)\n );\n}\n\nvar env = {\n isWebKit:\n typeof document !== 'undefined' &&\n 'WebkitAppearance' in document.documentElement.style,\n supportsTouch:\n typeof window !== 'undefined' &&\n ('ontouchstart' in window ||\n (window.DocumentTouch && document instanceof window.DocumentTouch)),\n supportsIePointer:\n typeof navigator !== 'undefined' && navigator.msMaxTouchPoints,\n isChrome:\n typeof navigator !== 'undefined' &&\n /Chrome/i.test(navigator && navigator.userAgent),\n};\n\nvar updateGeometry = function(i) {\n var element = i.element;\n\n i.containerWidth = element.clientWidth;\n i.containerHeight = element.clientHeight;\n i.contentWidth = element.scrollWidth;\n i.contentHeight = element.scrollHeight;\n\n if (!element.contains(i.scrollbarXRail)) {\n // clean up and append\n queryChildren(element, cls.element.rail('x')).forEach(function (el) { return remove(el); }\n );\n element.appendChild(i.scrollbarXRail);\n }\n if (!element.contains(i.scrollbarYRail)) {\n // clean up and append\n queryChildren(element, cls.element.rail('y')).forEach(function (el) { return remove(el); }\n );\n element.appendChild(i.scrollbarYRail);\n }\n\n if (\n !i.settings.suppressScrollX &&\n i.containerWidth + i.settings.scrollXMarginOffset < i.contentWidth\n ) {\n i.scrollbarXActive = true;\n i.railXWidth = i.containerWidth - i.railXMarginWidth;\n i.railXRatio = i.containerWidth / i.railXWidth;\n i.scrollbarXWidth = getThumbSize(\n i,\n toInt(i.railXWidth * i.containerWidth / i.contentWidth)\n );\n i.scrollbarXLeft = toInt(\n (i.negativeScrollAdjustment + element.scrollLeft) *\n (i.railXWidth - i.scrollbarXWidth) /\n (i.contentWidth - i.containerWidth)\n );\n } else {\n i.scrollbarXActive = false;\n }\n\n if (\n !i.settings.suppressScrollY &&\n i.containerHeight + i.settings.scrollYMarginOffset < i.contentHeight\n ) {\n i.scrollbarYActive = true;\n i.railYHeight = i.containerHeight - i.railYMarginHeight;\n i.railYRatio = i.containerHeight / i.railYHeight;\n i.scrollbarYHeight = getThumbSize(\n i,\n toInt(i.railYHeight * i.containerHeight / i.contentHeight)\n );\n i.scrollbarYTop = toInt(\n element.scrollTop *\n (i.railYHeight - i.scrollbarYHeight) /\n (i.contentHeight - i.containerHeight)\n );\n } else {\n i.scrollbarYActive = false;\n }\n\n if (i.scrollbarXLeft >= i.railXWidth - i.scrollbarXWidth) {\n i.scrollbarXLeft = i.railXWidth - i.scrollbarXWidth;\n }\n if (i.scrollbarYTop >= i.railYHeight - i.scrollbarYHeight) {\n i.scrollbarYTop = i.railYHeight - i.scrollbarYHeight;\n }\n\n updateCss(element, i);\n\n if (i.scrollbarXActive) {\n element.classList.add(cls.state.active('x'));\n } else {\n element.classList.remove(cls.state.active('x'));\n i.scrollbarXWidth = 0;\n i.scrollbarXLeft = 0;\n element.scrollLeft = 0;\n }\n if (i.scrollbarYActive) {\n element.classList.add(cls.state.active('y'));\n } else {\n element.classList.remove(cls.state.active('y'));\n i.scrollbarYHeight = 0;\n i.scrollbarYTop = 0;\n element.scrollTop = 0;\n }\n};\n\nfunction getThumbSize(i, thumbSize) {\n if (i.settings.minScrollbarLength) {\n thumbSize = Math.max(thumbSize, i.settings.minScrollbarLength);\n }\n if (i.settings.maxScrollbarLength) {\n thumbSize = Math.min(thumbSize, i.settings.maxScrollbarLength);\n }\n return thumbSize;\n}\n\nfunction updateCss(element, i) {\n var xRailOffset = { width: i.railXWidth };\n if (i.isRtl) {\n xRailOffset.left =\n i.negativeScrollAdjustment +\n element.scrollLeft +\n i.containerWidth -\n i.contentWidth;\n } else {\n xRailOffset.left = element.scrollLeft;\n }\n if (i.isScrollbarXUsingBottom) {\n xRailOffset.bottom = i.scrollbarXBottom - element.scrollTop;\n } else {\n xRailOffset.top = i.scrollbarXTop + element.scrollTop;\n }\n set(i.scrollbarXRail, xRailOffset);\n\n var yRailOffset = { top: element.scrollTop, height: i.railYHeight };\n if (i.isScrollbarYUsingRight) {\n if (i.isRtl) {\n yRailOffset.right =\n i.contentWidth -\n (i.negativeScrollAdjustment + element.scrollLeft) -\n i.scrollbarYRight -\n i.scrollbarYOuterWidth;\n } else {\n yRailOffset.right = i.scrollbarYRight - element.scrollLeft;\n }\n } else {\n if (i.isRtl) {\n yRailOffset.left =\n i.negativeScrollAdjustment +\n element.scrollLeft +\n i.containerWidth * 2 -\n i.contentWidth -\n i.scrollbarYLeft -\n i.scrollbarYOuterWidth;\n } else {\n yRailOffset.left = i.scrollbarYLeft + element.scrollLeft;\n }\n }\n set(i.scrollbarYRail, yRailOffset);\n\n set(i.scrollbarX, {\n left: i.scrollbarXLeft,\n width: i.scrollbarXWidth - i.railBorderXWidth,\n });\n set(i.scrollbarY, {\n top: i.scrollbarYTop,\n height: i.scrollbarYHeight - i.railBorderYWidth,\n });\n}\n\nvar clickRail = function(i) {\n i.event.bind(i.scrollbarY, 'mousedown', function (e) { return e.stopPropagation(); });\n i.event.bind(i.scrollbarYRail, 'mousedown', function (e) {\n var positionTop =\n e.pageY -\n window.pageYOffset -\n i.scrollbarYRail.getBoundingClientRect().top;\n var direction = positionTop > i.scrollbarYTop ? 1 : -1;\n\n i.element.scrollTop += direction * i.containerHeight;\n updateGeometry(i);\n\n e.stopPropagation();\n });\n\n i.event.bind(i.scrollbarX, 'mousedown', function (e) { return e.stopPropagation(); });\n i.event.bind(i.scrollbarXRail, 'mousedown', function (e) {\n var positionLeft =\n e.pageX -\n window.pageXOffset -\n i.scrollbarXRail.getBoundingClientRect().left;\n var direction = positionLeft > i.scrollbarXLeft ? 1 : -1;\n\n i.element.scrollLeft += direction * i.containerWidth;\n updateGeometry(i);\n\n e.stopPropagation();\n });\n};\n\nvar dragThumb = function(i) {\n bindMouseScrollHandler(i, [\n 'containerWidth',\n 'contentWidth',\n 'pageX',\n 'railXWidth',\n 'scrollbarX',\n 'scrollbarXWidth',\n 'scrollLeft',\n 'x' ]);\n bindMouseScrollHandler(i, [\n 'containerHeight',\n 'contentHeight',\n 'pageY',\n 'railYHeight',\n 'scrollbarY',\n 'scrollbarYHeight',\n 'scrollTop',\n 'y' ]);\n};\n\nfunction bindMouseScrollHandler(\n i,\n ref\n) {\n var containerHeight = ref[0];\n var contentHeight = ref[1];\n var pageY = ref[2];\n var railYHeight = ref[3];\n var scrollbarY = ref[4];\n var scrollbarYHeight = ref[5];\n var scrollTop = ref[6];\n var y = ref[7];\n\n var element = i.element;\n\n var startingScrollTop = null;\n var startingMousePageY = null;\n var scrollBy = null;\n\n function mouseMoveHandler(e) {\n element[scrollTop] =\n startingScrollTop + scrollBy * (e[pageY] - startingMousePageY);\n addScrollingClass(i, y);\n updateGeometry(i);\n\n e.stopPropagation();\n e.preventDefault();\n }\n\n function mouseUpHandler() {\n removeScrollingClass(i, y);\n i.event.unbind(i.ownerDocument, 'mousemove', mouseMoveHandler);\n }\n\n i.event.bind(i[scrollbarY], 'mousedown', function (e) {\n startingScrollTop = element[scrollTop];\n startingMousePageY = e[pageY];\n scrollBy =\n (i[contentHeight] - i[containerHeight]) /\n (i[railYHeight] - i[scrollbarYHeight]);\n\n i.event.bind(i.ownerDocument, 'mousemove', mouseMoveHandler);\n i.event.once(i.ownerDocument, 'mouseup', mouseUpHandler);\n\n e.stopPropagation();\n e.preventDefault();\n });\n}\n\nvar keyboard = function(i) {\n var element = i.element;\n\n var elementHovered = function () { return matches(element, ':hover'); };\n var scrollbarFocused = function () { return matches(i.scrollbarX, ':focus') || matches(i.scrollbarY, ':focus'); };\n\n function shouldPreventDefault(deltaX, deltaY) {\n var scrollTop = element.scrollTop;\n if (deltaX === 0) {\n if (!i.scrollbarYActive) {\n return false;\n }\n if (\n (scrollTop === 0 && deltaY > 0) ||\n (scrollTop >= i.contentHeight - i.containerHeight && deltaY < 0)\n ) {\n return !i.settings.wheelPropagation;\n }\n }\n\n var scrollLeft = element.scrollLeft;\n if (deltaY === 0) {\n if (!i.scrollbarXActive) {\n return false;\n }\n if (\n (scrollLeft === 0 && deltaX < 0) ||\n (scrollLeft >= i.contentWidth - i.containerWidth && deltaX > 0)\n ) {\n return !i.settings.wheelPropagation;\n }\n }\n return true;\n }\n\n i.event.bind(i.ownerDocument, 'keydown', function (e) {\n if (\n (e.isDefaultPrevented && e.isDefaultPrevented()) ||\n e.defaultPrevented\n ) {\n return;\n }\n\n if (!elementHovered() && !scrollbarFocused()) {\n return;\n }\n\n var activeElement = document.activeElement\n ? document.activeElement\n : i.ownerDocument.activeElement;\n if (activeElement) {\n if (activeElement.tagName === 'IFRAME') {\n activeElement = activeElement.contentDocument.activeElement;\n } else {\n // go deeper if element is a webcomponent\n while (activeElement.shadowRoot) {\n activeElement = activeElement.shadowRoot.activeElement;\n }\n }\n if (isEditable(activeElement)) {\n return;\n }\n }\n\n var deltaX = 0;\n var deltaY = 0;\n\n switch (e.which) {\n case 37: // left\n if (e.metaKey) {\n deltaX = -i.contentWidth;\n } else if (e.altKey) {\n deltaX = -i.containerWidth;\n } else {\n deltaX = -30;\n }\n break;\n case 38: // up\n if (e.metaKey) {\n deltaY = i.contentHeight;\n } else if (e.altKey) {\n deltaY = i.containerHeight;\n } else {\n deltaY = 30;\n }\n break;\n case 39: // right\n if (e.metaKey) {\n deltaX = i.contentWidth;\n } else if (e.altKey) {\n deltaX = i.containerWidth;\n } else {\n deltaX = 30;\n }\n break;\n case 40: // down\n if (e.metaKey) {\n deltaY = -i.contentHeight;\n } else if (e.altKey) {\n deltaY = -i.containerHeight;\n } else {\n deltaY = -30;\n }\n break;\n case 32: // space bar\n if (e.shiftKey) {\n deltaY = i.containerHeight;\n } else {\n deltaY = -i.containerHeight;\n }\n break;\n case 33: // page up\n deltaY = i.containerHeight;\n break;\n case 34: // page down\n deltaY = -i.containerHeight;\n break;\n case 36: // home\n deltaY = i.contentHeight;\n break;\n case 35: // end\n deltaY = -i.contentHeight;\n break;\n default:\n return;\n }\n\n if (i.settings.suppressScrollX && deltaX !== 0) {\n return;\n }\n if (i.settings.suppressScrollY && deltaY !== 0) {\n return;\n }\n\n element.scrollTop -= deltaY;\n element.scrollLeft += deltaX;\n updateGeometry(i);\n\n if (shouldPreventDefault(deltaX, deltaY)) {\n e.preventDefault();\n }\n });\n};\n\nvar wheel = function(i) {\n var element = i.element;\n\n function shouldPreventDefault(deltaX, deltaY) {\n var isTop = element.scrollTop === 0;\n var isBottom =\n element.scrollTop + element.offsetHeight === element.scrollHeight;\n var isLeft = element.scrollLeft === 0;\n var isRight =\n element.scrollLeft + element.offsetWidth === element.offsetWidth;\n\n var hitsBound;\n\n // pick axis with primary direction\n if (Math.abs(deltaY) > Math.abs(deltaX)) {\n hitsBound = isTop || isBottom;\n } else {\n hitsBound = isLeft || isRight;\n }\n\n return hitsBound ? !i.settings.wheelPropagation : true;\n }\n\n function getDeltaFromEvent(e) {\n var deltaX = e.deltaX;\n var deltaY = -1 * e.deltaY;\n\n if (typeof deltaX === 'undefined' || typeof deltaY === 'undefined') {\n // OS X Safari\n deltaX = -1 * e.wheelDeltaX / 6;\n deltaY = e.wheelDeltaY / 6;\n }\n\n if (e.deltaMode && e.deltaMode === 1) {\n // Firefox in deltaMode 1: Line scrolling\n deltaX *= 10;\n deltaY *= 10;\n }\n\n if (deltaX !== deltaX && deltaY !== deltaY /* NaN checks */) {\n // IE in some mouse drivers\n deltaX = 0;\n deltaY = e.wheelDelta;\n }\n\n if (e.shiftKey) {\n // reverse axis with shift key\n return [-deltaY, -deltaX];\n }\n return [deltaX, deltaY];\n }\n\n function shouldBeConsumedByChild(target, deltaX, deltaY) {\n // FIXME: this is a workaround for issue in FF and IE #571\n if (!env.isWebKit && element.querySelector('select:focus')) {\n return true;\n }\n\n if (!element.contains(target)) {\n return false;\n }\n\n var cursor = target;\n\n while (cursor && cursor !== element) {\n if (cursor.classList.contains(cls.element.consuming)) {\n return true;\n }\n\n var style = get(cursor);\n var overflow = [style.overflow, style.overflowX, style.overflowY].join(\n ''\n );\n\n // if scrollable\n if (overflow.match(/(scroll|auto)/)) {\n var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;\n if (maxScrollTop > 0) {\n if (\n !(cursor.scrollTop === 0 && deltaY > 0) &&\n !(cursor.scrollTop === maxScrollTop && deltaY < 0)\n ) {\n return true;\n }\n }\n var maxScrollLeft = cursor.scrollLeft - cursor.clientWidth;\n if (maxScrollLeft > 0) {\n if (\n !(cursor.scrollLeft === 0 && deltaX < 0) &&\n !(cursor.scrollLeft === maxScrollLeft && deltaX > 0)\n ) {\n return true;\n }\n }\n }\n\n cursor = cursor.parentNode;\n }\n\n return false;\n }\n\n function mousewheelHandler(e) {\n var ref = getDeltaFromEvent(e);\n var deltaX = ref[0];\n var deltaY = ref[1];\n\n if (shouldBeConsumedByChild(e.target, deltaX, deltaY)) {\n return;\n }\n\n var shouldPrevent = false;\n if (!i.settings.useBothWheelAxes) {\n // deltaX will only be used for horizontal scrolling and deltaY will\n // only be used for vertical scrolling - this is the default\n element.scrollTop -= deltaY * i.settings.wheelSpeed;\n element.scrollLeft += deltaX * i.settings.wheelSpeed;\n } else if (i.scrollbarYActive && !i.scrollbarXActive) {\n // only vertical scrollbar is active and useBothWheelAxes option is\n // active, so let's scroll vertical bar using both mouse wheel axes\n if (deltaY) {\n element.scrollTop -= deltaY * i.settings.wheelSpeed;\n } else {\n element.scrollTop += deltaX * i.settings.wheelSpeed;\n }\n shouldPrevent = true;\n } else if (i.scrollbarXActive && !i.scrollbarYActive) {\n // useBothWheelAxes and only horizontal bar is active, so use both\n // wheel axes for horizontal bar\n if (deltaX) {\n element.scrollLeft += deltaX * i.settings.wheelSpeed;\n } else {\n element.scrollLeft -= deltaY * i.settings.wheelSpeed;\n }\n shouldPrevent = true;\n }\n\n updateGeometry(i);\n\n shouldPrevent = shouldPrevent || shouldPreventDefault(deltaX, deltaY);\n if (shouldPrevent && !e.ctrlKey) {\n e.stopPropagation();\n e.preventDefault();\n }\n }\n\n if (typeof window.onwheel !== 'undefined') {\n i.event.bind(element, 'wheel', mousewheelHandler);\n } else if (typeof window.onmousewheel !== 'undefined') {\n i.event.bind(element, 'mousewheel', mousewheelHandler);\n }\n};\n\nvar touch = function(i) {\n if (!env.supportsTouch && !env.supportsIePointer) {\n return;\n }\n\n var element = i.element;\n\n function shouldPrevent(deltaX, deltaY) {\n var scrollTop = element.scrollTop;\n var scrollLeft = element.scrollLeft;\n var magnitudeX = Math.abs(deltaX);\n var magnitudeY = Math.abs(deltaY);\n\n if (magnitudeY > magnitudeX) {\n // user is perhaps trying to swipe up/down the page\n\n if (\n (deltaY < 0 && scrollTop === i.contentHeight - i.containerHeight) ||\n (deltaY > 0 && scrollTop === 0)\n ) {\n // set prevent for mobile Chrome refresh\n return window.scrollY === 0 && deltaY > 0 && env.isChrome;\n }\n } else if (magnitudeX > magnitudeY) {\n // user is perhaps trying to swipe left/right across the page\n\n if (\n (deltaX < 0 && scrollLeft === i.contentWidth - i.containerWidth) ||\n (deltaX > 0 && scrollLeft === 0)\n ) {\n return true;\n }\n }\n\n return true;\n }\n\n function applyTouchMove(differenceX, differenceY) {\n element.scrollTop -= differenceY;\n element.scrollLeft -= differenceX;\n\n updateGeometry(i);\n }\n\n var startOffset = {};\n var startTime = 0;\n var speed = {};\n var easingLoop = null;\n\n function getTouch(e) {\n if (e.targetTouches) {\n return e.targetTouches[0];\n } else {\n // Maybe IE pointer\n return e;\n }\n }\n\n function shouldHandle(e) {\n if (e.pointerType && e.pointerType === 'pen' && e.buttons === 0) {\n return false;\n }\n if (e.targetTouches && e.targetTouches.length === 1) {\n return true;\n }\n if (\n e.pointerType &&\n e.pointerType !== 'mouse' &&\n e.pointerType !== e.MSPOINTER_TYPE_MOUSE\n ) {\n return true;\n }\n return false;\n }\n\n function touchStart(e) {\n if (!shouldHandle(e)) {\n return;\n }\n\n var touch = getTouch(e);\n\n startOffset.pageX = touch.pageX;\n startOffset.pageY = touch.pageY;\n\n startTime = new Date().getTime();\n\n if (easingLoop !== null) {\n clearInterval(easingLoop);\n }\n }\n\n function shouldBeConsumedByChild(target, deltaX, deltaY) {\n if (!element.contains(target)) {\n return false;\n }\n\n var cursor = target;\n\n while (cursor && cursor !== element) {\n if (cursor.classList.contains(cls.element.consuming)) {\n return true;\n }\n\n var style = get(cursor);\n var overflow = [style.overflow, style.overflowX, style.overflowY].join(\n ''\n );\n\n // if scrollable\n if (overflow.match(/(scroll|auto)/)) {\n var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;\n if (maxScrollTop > 0) {\n if (\n !(cursor.scrollTop === 0 && deltaY > 0) &&\n !(cursor.scrollTop === maxScrollTop && deltaY < 0)\n ) {\n return true;\n }\n }\n var maxScrollLeft = cursor.scrollLeft - cursor.clientWidth;\n if (maxScrollLeft > 0) {\n if (\n !(cursor.scrollLeft === 0 && deltaX < 0) &&\n !(cursor.scrollLeft === maxScrollLeft && deltaX > 0)\n ) {\n return true;\n }\n }\n }\n\n cursor = cursor.parentNode;\n }\n\n return false;\n }\n\n function touchMove(e) {\n if (shouldHandle(e)) {\n var touch = getTouch(e);\n\n var currentOffset = { pageX: touch.pageX, pageY: touch.pageY };\n\n var differenceX = currentOffset.pageX - startOffset.pageX;\n var differenceY = currentOffset.pageY - startOffset.pageY;\n\n if (shouldBeConsumedByChild(e.target, differenceX, differenceY)) {\n return;\n }\n\n applyTouchMove(differenceX, differenceY);\n startOffset = currentOffset;\n\n var currentTime = new Date().getTime();\n\n var timeGap = currentTime - startTime;\n if (timeGap > 0) {\n speed.x = differenceX / timeGap;\n speed.y = differenceY / timeGap;\n startTime = currentTime;\n }\n\n if (shouldPrevent(differenceX, differenceY)) {\n e.preventDefault();\n }\n }\n }\n function touchEnd() {\n if (i.settings.swipeEasing) {\n clearInterval(easingLoop);\n easingLoop = setInterval(function() {\n if (i.isInitialized) {\n clearInterval(easingLoop);\n return;\n }\n\n if (!speed.x && !speed.y) {\n clearInterval(easingLoop);\n return;\n }\n\n if (Math.abs(speed.x) < 0.01 && Math.abs(speed.y) < 0.01) {\n clearInterval(easingLoop);\n return;\n }\n\n applyTouchMove(speed.x * 30, speed.y * 30);\n\n speed.x *= 0.8;\n speed.y *= 0.8;\n }, 10);\n }\n }\n\n if (env.supportsTouch) {\n i.event.bind(element, 'touchstart', touchStart);\n i.event.bind(element, 'touchmove', touchMove);\n i.event.bind(element, 'touchend', touchEnd);\n } else if (env.supportsIePointer) {\n if (window.PointerEvent) {\n i.event.bind(element, 'pointerdown', touchStart);\n i.event.bind(element, 'pointermove', touchMove);\n i.event.bind(element, 'pointerup', touchEnd);\n } else if (window.MSPointerEvent) {\n i.event.bind(element, 'MSPointerDown', touchStart);\n i.event.bind(element, 'MSPointerMove', touchMove);\n i.event.bind(element, 'MSPointerUp', touchEnd);\n }\n }\n};\n\nvar defaultSettings = function () { return ({\n handlers: ['click-rail', 'drag-thumb', 'keyboard', 'wheel', 'touch'],\n maxScrollbarLength: null,\n minScrollbarLength: null,\n scrollingThreshold: 1000,\n scrollXMarginOffset: 0,\n scrollYMarginOffset: 0,\n suppressScrollX: false,\n suppressScrollY: false,\n swipeEasing: true,\n useBothWheelAxes: false,\n wheelPropagation: false,\n wheelSpeed: 1,\n}); };\n\nvar handlers = {\n 'click-rail': clickRail,\n 'drag-thumb': dragThumb,\n keyboard: keyboard,\n wheel: wheel,\n touch: touch,\n};\n\nvar PerfectScrollbar = function PerfectScrollbar(element, userSettings) {\n var this$1 = this;\n if ( userSettings === void 0 ) userSettings = {};\n\n if (typeof element === 'string') {\n element = document.querySelector(element);\n }\n\n if (!element || !element.nodeName) {\n throw new Error('no element is specified to initialize PerfectScrollbar');\n }\n\n this.element = element;\n\n element.classList.add(cls.main);\n\n this.settings = defaultSettings();\n for (var key in userSettings) {\n this$1.settings[key] = userSettings[key];\n }\n\n this.containerWidth = null;\n this.containerHeight = null;\n this.contentWidth = null;\n this.contentHeight = null;\n\n var focus = function () { return element.classList.add(cls.state.focus); };\n var blur = function () { return element.classList.remove(cls.state.focus); };\n\n this.isRtl = get(element).direction === 'rtl';\n this.isNegativeScroll = (function () {\n var originalScrollLeft = element.scrollLeft;\n var result = null;\n element.scrollLeft = -1;\n result = element.scrollLeft < 0;\n element.scrollLeft = originalScrollLeft;\n return result;\n })();\n this.negativeScrollAdjustment = this.isNegativeScroll\n ? element.scrollWidth - element.clientWidth\n : 0;\n this.event = new EventManager();\n this.ownerDocument = element.ownerDocument || document;\n\n this.scrollbarXRail = div(cls.element.rail('x'));\n element.appendChild(this.scrollbarXRail);\n this.scrollbarX = div(cls.element.thumb('x'));\n this.scrollbarXRail.appendChild(this.scrollbarX);\n this.scrollbarX.setAttribute('tabindex', 0);\n this.event.bind(this.scrollbarX, 'focus', focus);\n this.event.bind(this.scrollbarX, 'blur', blur);\n this.scrollbarXActive = null;\n this.scrollbarXWidth = null;\n this.scrollbarXLeft = null;\n var railXStyle = get(this.scrollbarXRail);\n this.scrollbarXBottom = parseInt(railXStyle.bottom, 10);\n if (isNaN(this.scrollbarXBottom)) {\n this.isScrollbarXUsingBottom = false;\n this.scrollbarXTop = toInt(railXStyle.top);\n } else {\n this.isScrollbarXUsingBottom = true;\n }\n this.railBorderXWidth =\n toInt(railXStyle.borderLeftWidth) + toInt(railXStyle.borderRightWidth);\n // Set rail to display:block to calculate margins\n set(this.scrollbarXRail, { display: 'block' });\n this.railXMarginWidth =\n toInt(railXStyle.marginLeft) + toInt(railXStyle.marginRight);\n set(this.scrollbarXRail, { display: '' });\n this.railXWidth = null;\n this.railXRatio = null;\n\n this.scrollbarYRail = div(cls.element.rail('y'));\n element.appendChild(this.scrollbarYRail);\n this.scrollbarY = div(cls.element.thumb('y'));\n this.scrollbarYRail.appendChild(this.scrollbarY);\n this.scrollbarY.setAttribute('tabindex', 0);\n this.event.bind(this.scrollbarY, 'focus', focus);\n this.event.bind(this.scrollbarY, 'blur', blur);\n this.scrollbarYActive = null;\n this.scrollbarYHeight = null;\n this.scrollbarYTop = null;\n var railYStyle = get(this.scrollbarYRail);\n this.scrollbarYRight = parseInt(railYStyle.right, 10);\n if (isNaN(this.scrollbarYRight)) {\n this.isScrollbarYUsingRight = false;\n this.scrollbarYLeft = toInt(railYStyle.left);\n } else {\n this.isScrollbarYUsingRight = true;\n }\n this.scrollbarYOuterWidth = this.isRtl ? outerWidth(this.scrollbarY) : null;\n this.railBorderYWidth =\n toInt(railYStyle.borderTopWidth) + toInt(railYStyle.borderBottomWidth);\n set(this.scrollbarYRail, { display: 'block' });\n this.railYMarginHeight =\n toInt(railYStyle.marginTop) + toInt(railYStyle.marginBottom);\n set(this.scrollbarYRail, { display: '' });\n this.railYHeight = null;\n this.railYRatio = null;\n\n this.reach = {\n x:\n element.scrollLeft <= 0\n ? 'start'\n : element.scrollLeft >= this.contentWidth - this.containerWidth\n ? 'end'\n : null,\n y:\n element.scrollTop <= 0\n ? 'start'\n : element.scrollTop >= this.contentHeight - this.containerHeight\n ? 'end'\n : null,\n };\n\n this.isAlive = true;\n\n this.settings.handlers.forEach(function (handlerName) { return handlers[handlerName](this$1); });\n\n this.lastScrollTop = element.scrollTop; // for onScroll only\n this.lastScrollLeft = element.scrollLeft; // for onScroll only\n this.event.bind(this.element, 'scroll', function (e) { return this$1.onScroll(e); });\n updateGeometry(this);\n};\n\nPerfectScrollbar.prototype.update = function update () {\n if (!this.isAlive) {\n return;\n }\n\n // Recalcuate negative scrollLeft adjustment\n this.negativeScrollAdjustment = this.isNegativeScroll\n ? this.element.scrollWidth - this.element.clientWidth\n : 0;\n\n // Recalculate rail margins\n set(this.scrollbarXRail, { display: 'block' });\n set(this.scrollbarYRail, { display: 'block' });\n this.railXMarginWidth =\n toInt(get(this.scrollbarXRail).marginLeft) +\n toInt(get(this.scrollbarXRail).marginRight);\n this.railYMarginHeight =\n toInt(get(this.scrollbarYRail).marginTop) +\n toInt(get(this.scrollbarYRail).marginBottom);\n\n // Hide scrollbars not to affect scrollWidth and scrollHeight\n set(this.scrollbarXRail, { display: 'none' });\n set(this.scrollbarYRail, { display: 'none' });\n\n updateGeometry(this);\n\n processScrollDiff(this, 'top', 0, false, true);\n processScrollDiff(this, 'left', 0, false, true);\n\n set(this.scrollbarXRail, { display: '' });\n set(this.scrollbarYRail, { display: '' });\n};\n\nPerfectScrollbar.prototype.onScroll = function onScroll (e) {\n if (!this.isAlive) {\n return;\n }\n\n updateGeometry(this);\n processScrollDiff(this, 'top', this.element.scrollTop - this.lastScrollTop);\n processScrollDiff(\n this,\n 'left',\n this.element.scrollLeft - this.lastScrollLeft\n );\n\n this.lastScrollTop = this.element.scrollTop;\n this.lastScrollLeft = this.element.scrollLeft;\n};\n\nPerfectScrollbar.prototype.destroy = function destroy () {\n if (!this.isAlive) {\n return;\n }\n\n this.event.unbindAll();\n remove(this.scrollbarX);\n remove(this.scrollbarY);\n remove(this.scrollbarXRail);\n remove(this.scrollbarYRail);\n this.removePsClasses();\n\n // unset elements\n this.element = null;\n this.scrollbarX = null;\n this.scrollbarY = null;\n this.scrollbarXRail = null;\n this.scrollbarYRail = null;\n\n this.isAlive = false;\n};\n\nPerfectScrollbar.prototype.removePsClasses = function removePsClasses () {\n this.element.className = this.element.className\n .split(' ')\n .filter(function (name) { return !name.match(/^ps([-_].+|)$/); })\n .join(' ');\n};\n\nexport default PerfectScrollbar;\n","function select(element) {\n var selectedText;\n\n if (element.nodeName === 'SELECT') {\n element.focus();\n\n selectedText = element.value;\n }\n else if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {\n var isReadOnly = element.hasAttribute('readonly');\n\n if (!isReadOnly) {\n element.setAttribute('readonly', '');\n }\n\n element.select();\n element.setSelectionRange(0, element.value.length);\n\n if (!isReadOnly) {\n element.removeAttribute('readonly');\n }\n\n selectedText = element.value;\n }\n else {\n if (element.hasAttribute('contenteditable')) {\n element.focus();\n }\n\n var selection = window.getSelection();\n var range = document.createRange();\n\n range.selectNodeContents(element);\n selection.removeAllRanges();\n selection.addRange(range);\n\n selectedText = selection.toString();\n }\n\n return selectedText;\n}\n\nmodule.exports = select;\n","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['module', 'select'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(module, require('select'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod, global.select);\n global.clipboardAction = mod.exports;\n }\n})(this, function (module, _select) {\n 'use strict';\n\n var _select2 = _interopRequireDefault(_select);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n var ClipboardAction = function () {\n /**\n * @param {Object} options\n */\n function ClipboardAction(options) {\n _classCallCheck(this, ClipboardAction);\n\n this.resolveOptions(options);\n this.initSelection();\n }\n\n /**\n * Defines base properties passed from constructor.\n * @param {Object} options\n */\n\n\n _createClass(ClipboardAction, [{\n key: 'resolveOptions',\n value: function resolveOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n this.action = options.action;\n this.container = options.container;\n this.emitter = options.emitter;\n this.target = options.target;\n this.text = options.text;\n this.trigger = options.trigger;\n\n this.selectedText = '';\n }\n }, {\n key: 'initSelection',\n value: function initSelection() {\n if (this.text) {\n this.selectFake();\n } else if (this.target) {\n this.selectTarget();\n }\n }\n }, {\n key: 'selectFake',\n value: function selectFake() {\n var _this = this;\n\n var isRTL = document.documentElement.getAttribute('dir') == 'rtl';\n\n this.removeFake();\n\n this.fakeHandlerCallback = function () {\n return _this.removeFake();\n };\n this.fakeHandler = this.container.addEventListener('click', this.fakeHandlerCallback) || true;\n\n this.fakeElem = document.createElement('textarea');\n // Prevent zooming on iOS\n this.fakeElem.style.fontSize = '12pt';\n // Reset box model\n this.fakeElem.style.border = '0';\n this.fakeElem.style.padding = '0';\n this.fakeElem.style.margin = '0';\n // Move element out of screen horizontally\n this.fakeElem.style.position = 'absolute';\n this.fakeElem.style[isRTL ? 'right' : 'left'] = '-9999px';\n // Move element to the same position vertically\n var yPosition = window.pageYOffset || document.documentElement.scrollTop;\n this.fakeElem.style.top = yPosition + 'px';\n\n this.fakeElem.setAttribute('readonly', '');\n this.fakeElem.value = this.text;\n\n this.container.appendChild(this.fakeElem);\n\n this.selectedText = (0, _select2.default)(this.fakeElem);\n this.copyText();\n }\n }, {\n key: 'removeFake',\n value: function removeFake() {\n if (this.fakeHandler) {\n this.container.removeEventListener('click', this.fakeHandlerCallback);\n this.fakeHandler = null;\n this.fakeHandlerCallback = null;\n }\n\n if (this.fakeElem) {\n this.container.removeChild(this.fakeElem);\n this.fakeElem = null;\n }\n }\n }, {\n key: 'selectTarget',\n value: function selectTarget() {\n this.selectedText = (0, _select2.default)(this.target);\n this.copyText();\n }\n }, {\n key: 'copyText',\n value: function copyText() {\n var succeeded = void 0;\n\n try {\n succeeded = document.execCommand(this.action);\n } catch (err) {\n succeeded = false;\n }\n\n this.handleResult(succeeded);\n }\n }, {\n key: 'handleResult',\n value: function handleResult(succeeded) {\n this.emitter.emit(succeeded ? 'success' : 'error', {\n action: this.action,\n text: this.selectedText,\n trigger: this.trigger,\n clearSelection: this.clearSelection.bind(this)\n });\n }\n }, {\n key: 'clearSelection',\n value: function clearSelection() {\n if (this.trigger) {\n this.trigger.focus();\n }\n\n window.getSelection().removeAllRanges();\n }\n }, {\n key: 'destroy',\n value: function destroy() {\n this.removeFake();\n }\n }, {\n key: 'action',\n set: function set() {\n var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'copy';\n\n this._action = action;\n\n if (this._action !== 'copy' && this._action !== 'cut') {\n throw new Error('Invalid \"action\" value, use either \"copy\" or \"cut\"');\n }\n },\n get: function get() {\n return this._action;\n }\n }, {\n key: 'target',\n set: function set(target) {\n if (target !== undefined) {\n if (target && (typeof target === 'undefined' ? 'undefined' : _typeof(target)) === 'object' && target.nodeType === 1) {\n if (this.action === 'copy' && target.hasAttribute('disabled')) {\n throw new Error('Invalid \"target\" attribute. Please use \"readonly\" instead of \"disabled\" attribute');\n }\n\n if (this.action === 'cut' && (target.hasAttribute('readonly') || target.hasAttribute('disabled'))) {\n throw new Error('Invalid \"target\" attribute. You can\\'t cut text from elements with \"readonly\" or \"disabled\" attributes');\n }\n\n this._target = target;\n } else {\n throw new Error('Invalid \"target\" value, use a valid Element');\n }\n }\n },\n get: function get() {\n return this._target;\n }\n }]);\n\n return ClipboardAction;\n }();\n\n module.exports = ClipboardAction;\n});","function E () {\n // Keep this empty so it's easier to inherit from\n // (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)\n}\n\nE.prototype = {\n on: function (name, callback, ctx) {\n var e = this.e || (this.e = {});\n\n (e[name] || (e[name] = [])).push({\n fn: callback,\n ctx: ctx\n });\n\n return this;\n },\n\n once: function (name, callback, ctx) {\n var self = this;\n function listener () {\n self.off(name, listener);\n callback.apply(ctx, arguments);\n };\n\n listener._ = callback\n return this.on(name, listener, ctx);\n },\n\n emit: function (name) {\n var data = [].slice.call(arguments, 1);\n var evtArr = ((this.e || (this.e = {}))[name] || []).slice();\n var i = 0;\n var len = evtArr.length;\n\n for (i; i < len; i++) {\n evtArr[i].fn.apply(evtArr[i].ctx, data);\n }\n\n return this;\n },\n\n off: function (name, callback) {\n var e = this.e || (this.e = {});\n var evts = e[name];\n var liveEvents = [];\n\n if (evts && callback) {\n for (var i = 0, len = evts.length; i < len; i++) {\n if (evts[i].fn !== callback && evts[i].fn._ !== callback)\n liveEvents.push(evts[i]);\n }\n }\n\n // Remove event from queue to prevent memory leak\n // Suggested by https://github.com/lazd\n // Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910\n\n (liveEvents.length)\n ? e[name] = liveEvents\n : delete e[name];\n\n return this;\n }\n};\n\nmodule.exports = E;\n","/**\n * Check if argument is a HTML element.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.node = function(value) {\n return value !== undefined\n && value instanceof HTMLElement\n && value.nodeType === 1;\n};\n\n/**\n * Check if argument is a list of HTML elements.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.nodeList = function(value) {\n var type = Object.prototype.toString.call(value);\n\n return value !== undefined\n && (type === '[object NodeList]' || type === '[object HTMLCollection]')\n && ('length' in value)\n && (value.length === 0 || exports.node(value[0]));\n};\n\n/**\n * Check if argument is a string.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.string = function(value) {\n return typeof value === 'string'\n || value instanceof String;\n};\n\n/**\n * Check if argument is a function.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.fn = function(value) {\n var type = Object.prototype.toString.call(value);\n\n return type === '[object Function]';\n};\n","var DOCUMENT_NODE_TYPE = 9;\n\n/**\n * A polyfill for Element.matches()\n */\nif (typeof Element !== 'undefined' && !Element.prototype.matches) {\n var proto = Element.prototype;\n\n proto.matches = proto.matchesSelector ||\n proto.mozMatchesSelector ||\n proto.msMatchesSelector ||\n proto.oMatchesSelector ||\n proto.webkitMatchesSelector;\n}\n\n/**\n * Finds the closest parent that matches a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @return {Function}\n */\nfunction closest (element, selector) {\n while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {\n if (typeof element.matches === 'function' &&\n element.matches(selector)) {\n return element;\n }\n element = element.parentNode;\n }\n}\n\nmodule.exports = closest;\n","var closest = require('./closest');\n\n/**\n * Delegates event to a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\nfunction delegate(element, selector, type, callback, useCapture) {\n var listenerFn = listener.apply(this, arguments);\n\n element.addEventListener(type, listenerFn, useCapture);\n\n return {\n destroy: function() {\n element.removeEventListener(type, listenerFn, useCapture);\n }\n }\n}\n\n/**\n * Finds closest match and invokes callback.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Function}\n */\nfunction listener(element, selector, type, callback) {\n return function(e) {\n e.delegateTarget = closest(e.target, selector);\n\n if (e.delegateTarget) {\n callback.call(element, e);\n }\n }\n}\n\nmodule.exports = delegate;\n","var is = require('./is');\nvar delegate = require('delegate');\n\n/**\n * Validates all params and calls the right\n * listener function based on its target type.\n *\n * @param {String|HTMLElement|HTMLCollection|NodeList} target\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listen(target, type, callback) {\n if (!target && !type && !callback) {\n throw new Error('Missing required arguments');\n }\n\n if (!is.string(type)) {\n throw new TypeError('Second argument must be a String');\n }\n\n if (!is.fn(callback)) {\n throw new TypeError('Third argument must be a Function');\n }\n\n if (is.node(target)) {\n return listenNode(target, type, callback);\n }\n else if (is.nodeList(target)) {\n return listenNodeList(target, type, callback);\n }\n else if (is.string(target)) {\n return listenSelector(target, type, callback);\n }\n else {\n throw new TypeError('First argument must be a String, HTMLElement, HTMLCollection, or NodeList');\n }\n}\n\n/**\n * Adds an event listener to a HTML element\n * and returns a remove listener function.\n *\n * @param {HTMLElement} node\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNode(node, type, callback) {\n node.addEventListener(type, callback);\n\n return {\n destroy: function() {\n node.removeEventListener(type, callback);\n }\n }\n}\n\n/**\n * Add an event listener to a list of HTML elements\n * and returns a remove listener function.\n *\n * @param {NodeList|HTMLCollection} nodeList\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNodeList(nodeList, type, callback) {\n Array.prototype.forEach.call(nodeList, function(node) {\n node.addEventListener(type, callback);\n });\n\n return {\n destroy: function() {\n Array.prototype.forEach.call(nodeList, function(node) {\n node.removeEventListener(type, callback);\n });\n }\n }\n}\n\n/**\n * Add an event listener to a selector\n * and returns a remove listener function.\n *\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenSelector(selector, type, callback) {\n return delegate(document.body, selector, type, callback);\n}\n\nmodule.exports = listen;\n","(function (global, factory) {\n if (typeof define === \"function\" && define.amd) {\n define(['module', './clipboard-action', 'tiny-emitter', 'good-listener'], factory);\n } else if (typeof exports !== \"undefined\") {\n factory(module, require('./clipboard-action'), require('tiny-emitter'), require('good-listener'));\n } else {\n var mod = {\n exports: {}\n };\n factory(mod, global.clipboardAction, global.tinyEmitter, global.goodListener);\n global.clipboard = mod.exports;\n }\n})(this, function (module, _clipboardAction, _tinyEmitter, _goodListener) {\n 'use strict';\n\n var _clipboardAction2 = _interopRequireDefault(_clipboardAction);\n\n var _tinyEmitter2 = _interopRequireDefault(_tinyEmitter);\n\n var _goodListener2 = _interopRequireDefault(_goodListener);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n }\n\n var Clipboard = function (_Emitter) {\n _inherits(Clipboard, _Emitter);\n\n /**\n * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n * @param {Object} options\n */\n function Clipboard(trigger, options) {\n _classCallCheck(this, Clipboard);\n\n var _this = _possibleConstructorReturn(this, (Clipboard.__proto__ || Object.getPrototypeOf(Clipboard)).call(this));\n\n _this.resolveOptions(options);\n _this.listenClick(trigger);\n return _this;\n }\n\n /**\n * Defines if attributes would be resolved using internal setter functions\n * or custom functions that were passed in the constructor.\n * @param {Object} options\n */\n\n\n _createClass(Clipboard, [{\n key: 'resolveOptions',\n value: function resolveOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n this.action = typeof options.action === 'function' ? options.action : this.defaultAction;\n this.target = typeof options.target === 'function' ? options.target : this.defaultTarget;\n this.text = typeof options.text === 'function' ? options.text : this.defaultText;\n this.container = _typeof(options.container) === 'object' ? options.container : document.body;\n }\n }, {\n key: 'listenClick',\n value: function listenClick(trigger) {\n var _this2 = this;\n\n this.listener = (0, _goodListener2.default)(trigger, 'click', function (e) {\n return _this2.onClick(e);\n });\n }\n }, {\n key: 'onClick',\n value: function onClick(e) {\n var trigger = e.delegateTarget || e.currentTarget;\n\n if (this.clipboardAction) {\n this.clipboardAction = null;\n }\n\n this.clipboardAction = new _clipboardAction2.default({\n action: this.action(trigger),\n target: this.target(trigger),\n text: this.text(trigger),\n container: this.container,\n trigger: trigger,\n emitter: this\n });\n }\n }, {\n key: 'defaultAction',\n value: function defaultAction(trigger) {\n return getAttributeValue('action', trigger);\n }\n }, {\n key: 'defaultTarget',\n value: function defaultTarget(trigger) {\n var selector = getAttributeValue('target', trigger);\n\n if (selector) {\n return document.querySelector(selector);\n }\n }\n }, {\n key: 'defaultText',\n value: function defaultText(trigger) {\n return getAttributeValue('text', trigger);\n }\n }, {\n key: 'destroy',\n value: function destroy() {\n this.listener.destroy();\n\n if (this.clipboardAction) {\n this.clipboardAction.destroy();\n this.clipboardAction = null;\n }\n }\n }], [{\n key: 'isSupported',\n value: function isSupported() {\n var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['copy', 'cut'];\n\n var actions = typeof action === 'string' ? [action] : action;\n var support = !!document.queryCommandSupported;\n\n actions.forEach(function (action) {\n support = support && !!document.queryCommandSupported(action);\n });\n\n return support;\n }\n }]);\n\n return Clipboard;\n }(_tinyEmitter2.default);\n\n /**\n * Helper function to retrieve attribute value.\n * @param {String} suffix\n * @param {Element} element\n */\n function getAttributeValue(suffix, element) {\n var attribute = 'data-clipboard-' + suffix;\n\n if (!element.hasAttribute(attribute)) {\n return;\n }\n\n return element.getAttribute(attribute);\n }\n\n module.exports = Clipboard;\n});","import PerfectScrollbar from 'perfect-scrollbar';\nimport Clipboard from 'clipboard';\nimport Constants from '../configuration/Constants';\n\n/**\n * Smart guide\n * @typedef {Object} SmartGuide\n * @property {Editor} editor - A reference to the current editor.\n * @property {String} wordToChange - Word to change following a click on a word.\n * @property {String} lastWord - Keep the last word of the previous export to compare with the new and scroll if it's different.\n * @property {String} previousLabelExport - Keep the previous label export to know if we should repopulate the prompter text.\n * @property {PerfectScrollbar} perfectScrollbar - Perfect Scrollbar used to get gestures from smart guide using touch-action none anyway and get scrolling too.\n * @property {Object} elements - All the HTML elements of the smart guide.\n * @property {Number} smartGuideTimeOutId - Id of the setTimeOut from fade out animation to clear.\n * @property {String} randomString - Random string used in case of multiple smart guide.\n */\n\n/**\n * Create all the smart guide HTML elements.\n */\nfunction createHTMLElements(randomString) {\n /**\n * The smart guide element.\n * @type {HTMLDivElement}\n */\n const smartGuideElement = document.createElement('div');\n smartGuideElement.id = 'smartguide' + randomString;\n smartGuideElement.classList.add('smartguide');\n\n /**\n * The prompter text element that contains the text to get the overflow working.\n * @type {HTMLDivElement}\n */\n const textElement = document.createElement('div');\n textElement.id = 'prompter-text' + randomString;\n textElement.classList.add('prompter-text');\n textElement.setAttribute('touch-action', 'none');\n\n /**\n * The text container element that contains the text element.\n * @type {HTMLDivElement}\n */\n const textContainer = document.createElement('div');\n textContainer.id = 'prompter-text-container' + randomString;\n textContainer.classList.add('prompter-text-container');\n textContainer.appendChild(textElement);\n\n /**\n * The actions menu represented by the ellipsis character.\n * @type {HTMLDivElement}\n */\n const ellipsisElement = document.createElement('div');\n ellipsisElement.id = 'ellipsis' + randomString;\n ellipsisElement.classList.add('ellipsis');\n ellipsisElement.innerHTML = '...';\n\n /**\n * The tag element.\n * @type {HTMLDivElement}\n */\n const tagElement = document.createElement('div');\n tagElement.id = 'tag-icon' + randomString;\n tagElement.classList.add('tag-icon');\n tagElement.innerHTML = '¶';\n\n /**\n * The candidates element that contains the candidates for a word.\n * @type {HTMLDivElement}\n */\n const candidatesElement = document.createElement('div');\n candidatesElement.id = 'candidates' + randomString;\n candidatesElement.classList.add('candidates');\n\n /**\n * The menu element that contains the actions.\n * @type {HTMLDivElement}\n */\n const menuElement = document.createElement('div');\n menuElement.id = 'more-menu' + randomString;\n menuElement.classList.add('more-menu');\n\n /**\n * The convert button from actions menu.\n * @type {HTMLButtonElement}\n */\n const convertElement = document.createElement('button');\n convertElement.classList.add('options-label-button');\n convertElement.id = 'convert' + randomString;\n convertElement.innerHTML = 'Convert';\n\n /**\n * The copy button from actions menu.\n * @type {HTMLButtonElement}\n */\n const copyElement = document.createElement('button');\n copyElement.classList.add('options-label-button');\n copyElement.id = 'copy' + randomString;\n copyElement.innerHTML = 'Copy';\n\n /**\n * The delete button from actions menu.\n * @type {HTMLButtonElement}\n */\n const deleteElement = document.createElement('button');\n deleteElement.classList.add('options-label-button');\n deleteElement.id = 'delete' + randomString;\n deleteElement.innerHTML = 'Delete';\n\n return {\n smartGuideElement,\n textElement,\n textContainer,\n candidatesElement,\n menuElement,\n tagElement,\n ellipsisElement,\n convertElement,\n copyElement,\n deleteElement,\n };\n}\n\n/**\n * Check if node is in shadow dom\n * @param {Node} node - A node element.\n * @returns {boolean} true if is in shadow dom, false otherwise.\n */\nfunction isInShadow(node) {\n let parent = (node && node.parentNode);\n while (parent) {\n if (parent.toString() === '[object ShadowRoot]') {\n return true;\n }\n parent = parent.parentNode;\n }\n return false;\n}\n\n/**\n * Show the actions of the action menu.\n * @param {Event} evt - Event used to insert the option div using the event's target.\n * @param {Object} elements - All the elements of the smart guide.\n * @param {SmartGuide} smartGuide\n */\nfunction showActions(evt, elements) {\n const elementsRef = elements;\n\n const insertActions = () => {\n elementsRef.menuElement.appendChild(elementsRef.convertElement);\n elementsRef.menuElement.appendChild(elementsRef.copyElement);\n elementsRef.menuElement.appendChild(elementsRef.deleteElement);\n\n const parent = evt.target.parentNode;\n parent.insertBefore(elementsRef.menuElement, evt.target);\n };\n\n const positionActions = () => {\n // 48 to get the boundary of smart guide element.\n const left = evt.target.offsetLeft - 68;\n elementsRef.menuElement.style.left = `${left}px`;\n };\n\n const isMenuInDocument = document.contains(elementsRef.menuElement);\n if (!isInShadow(elementsRef.menuElement) && !isMenuInDocument) {\n elementsRef.menuElement.style.display = 'flex';\n positionActions();\n insertActions();\n } else if (elementsRef.menuElement.style.display === 'none') {\n positionActions();\n elementsRef.menuElement.style.display = 'flex';\n }\n}\n\n/**\n * Show the candidates of the clicked word.\n * @param {Event} evt - Event used to determine the clicked word.\n * @param {Editor} editor - A reference to the editor.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nfunction showCandidates(evt, editor, smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n\n if (evt.target.id !== `prompter-text${smartGuide.randomString}`) {\n const id = evt.target.id.replace('word-', '').replace(smartGuide.randomString, '');\n const words = JSON.parse(editor.exports[Constants.Exports.JIIX]).words;\n smartGuideRef.wordToChange = words[id];\n smartGuideRef.wordToChange.id = id;\n elementsRef.candidatesElement.innerHTML = '';\n if (smartGuideRef.wordToChange && smartGuideRef.wordToChange.candidates) {\n elementsRef.candidatesElement.style.display = 'flex';\n smartGuideRef.wordToChange.candidates.forEach((word, index) => {\n if (smartGuideRef.wordToChange.label === word) {\n elementsRef.candidatesElement.innerHTML += `${word}`;\n } else {\n elementsRef.candidatesElement.innerHTML += `${word}`;\n }\n });\n // get the parent parent of word to insert just before smart guide, 48 to get the boundary of smart guide element.\n const top = 48;\n const left = evt.target.getBoundingClientRect().left - 60;\n elementsRef.candidatesElement.style.top = `${top}px`;\n elementsRef.candidatesElement.style.left = `${left}px`;\n\n const parent = evt.target.parentNode.parentNode.parentNode;\n parent.insertBefore(elementsRef.candidatesElement, evt.target.parentNode.parentNode);\n }\n }\n}\n\n/**\n * Call the import_ function of the editor to import the modified Jiix with the new label.\n * @param {Event} evt - Event to determine the clicked candidate.\n * @param {Editor} editor - A reference to the editor.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nfunction clickCandidate(evt, editor, smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n const candidate = evt.target.innerText;\n\n if (candidate !== smartGuideRef.wordToChange.label && smartGuideRef.wordToChange.candidates.includes(candidate)) {\n const jiixToImport = JSON.parse(editor.exports[Constants.Exports.JIIX]);\n jiixToImport.words[smartGuideRef.wordToChange.id].label = candidate;\n // eslint-disable-next-line no-underscore-dangle\n editor.import_(JSON.stringify(jiixToImport), Constants.Exports.JIIX);\n }\n elementsRef.candidatesElement.style.display = 'none';\n}\n\n/**\n * Add the listeners to the smart guide elements.\n * @param {Editor} editor - A reference to the editor.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nfunction addListeners(editor, smartGuide) {\n const elementsRef = smartGuide.elements;\n\n elementsRef.textElement.addEventListener('click', evt => showCandidates(evt, editor, smartGuide));\n elementsRef.candidatesElement.addEventListener('click', evt => clickCandidate(evt, editor, smartGuide));\n elementsRef.ellipsisElement.addEventListener('click', evt => showActions(evt, elementsRef));\n elementsRef.copyElement.addEventListener('click', () => {\n elementsRef.menuElement.style.display = 'none';\n });\n elementsRef.convertElement.addEventListener('click', () => {\n elementsRef.menuElement.style.display = 'none';\n editor.convert();\n });\n elementsRef.deleteElement.addEventListener('click', () => {\n elementsRef.menuElement.style.display = 'none';\n editor.clear();\n });\n}\n\n/**\n * Call mutation observer to trigger fade out animation.\n * @param {number} [duration=10000] - the duration in milliseconds before calling the fade out animation.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nfunction callFadeOutObserver(duration = 10000, smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n // eslint-disable-next-line no-undef\n const observer = new MutationObserver((mutations) => {\n mutations.forEach(() => {\n if (smartGuideRef.smartGuideTimeOutId) {\n clearTimeout(smartGuideRef.smartGuideTimeOutId);\n }\n if (elementsRef.candidatesElement.style.display === 'none' && elementsRef.menuElement.style.display === 'none') {\n smartGuideRef.smartGuideTimeOutId = setTimeout(() => {\n elementsRef.smartGuideElement.classList.add('smartguide-out');\n elementsRef.smartGuideElement.classList.remove('smartguide-in');\n }, duration);\n } else if (!document.contains(elementsRef.candidatesElement) && !document.contains(elementsRef.menuElement)) {\n smartGuideRef.smartGuideTimeOutId = setTimeout(() => {\n elementsRef.smartGuideElement.classList.add('smartguide-out');\n elementsRef.smartGuideElement.classList.remove('smartguide-in');\n }, duration);\n }\n });\n });\n observer.observe(elementsRef.smartGuideElement, { childList: true, subtree: true, attributes: true });\n}\n\n/**\n * Create a new smart guide\n * @param {Editor} editor - A reference to the editor.\n * @returns {SmartGuide} New smart guide\n */\nexport function createSmartGuide(editor) {\n const randomString = '-' + Math.random().toString(10).substring(2, 12);\n const elements = createHTMLElements(randomString);\n\n /**\n * Clipboard from clipboard.js used to get copy across all browsers.\n * @type {Clipboard}\n */\n const clipboard = new Clipboard(elements.copyElement);\n const perfectScrollbar = new PerfectScrollbar(elements.textContainer, { suppressScrollY: true, scrollXMarginOffset: 1 });\n\n const smartGuide = {\n editor,\n wordToChange: '',\n lastWord: '',\n previousLabelExport: ' ',\n perfectScrollbar,\n elements,\n smartGuideTimeOutId: 0,\n randomString\n };\n addListeners(editor, smartGuide);\n\n if (editor.configuration.recognitionParams.v4.text.smartGuideFadeOut.enable) {\n callFadeOutObserver(editor.configuration.recognitionParams.v4.text.smartGuideFadeOut.duration, smartGuide);\n }\n\n return smartGuide;\n}\n\nexport function resize(smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n\n const mmToPixels = 3.779527559;\n let left = smartGuideRef.editor.configuration.recognitionParams.v4.text.margin.left * mmToPixels;\n\n const maxWidthTextContainer = smartGuideRef.editor.domElement.clientWidth - left - elementsRef.tagElement.offsetWidth - 35 - left;\n\n // Assign a max width to the smartguide based on the editor width, the left position and a small margin for the ellipsis (48px)\n elementsRef.textContainer.style.width = `${maxWidthTextContainer}px`;\n elementsRef.textContainer.style.maxWidth = `${maxWidthTextContainer}px`;\n\n left = elementsRef.tagElement.offsetWidth;\n left += maxWidthTextContainer;\n elementsRef.ellipsisElement.style.left = `${left}px`;\n\n elementsRef.smartGuideElement.style.width = `${elementsRef.tagElement.offsetWidth + elementsRef.textContainer.offsetWidth + elementsRef.ellipsisElement.offsetWidth}px`;\n smartGuideRef.perfectScrollbar.update();\n}\n\n/**\n * Insert the smart guide HTML elements in the DOM.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nexport function insertSmartGuide(smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n\n const insertSmartGuideElement = (left, top) => {\n elementsRef.smartGuideElement.style.top = `${top}px`;\n elementsRef.smartGuideElement.style.left = `${left}px`;\n elementsRef.smartGuideElement.style.visibility = 'hidden';\n\n const parent = smartGuideRef.editor.domElement;\n parent.insertBefore(elementsRef.smartGuideElement, smartGuideRef.editor.loader);\n };\n const insertTag = () => {\n elementsRef.smartGuideElement.appendChild(elementsRef.tagElement);\n };\n const insertTextContainer = (left, maxWidth) => {\n elementsRef.textContainer.style.left = `${left}px`;\n\n // Assign a max width to the smartguide based on the editor width, the left position and a small margin for the ellipsis (48px)\n elementsRef.textContainer.style.width = `${maxWidth}px`;\n elementsRef.textContainer.style.maxWidth = `${maxWidth}px`;\n\n elementsRef.smartGuideElement.appendChild(elementsRef.textContainer);\n };\n const insertEllipsis = (left) => {\n elementsRef.ellipsisElement.style.left = `${left}px`;\n\n elementsRef.smartGuideElement.appendChild(elementsRef.ellipsisElement);\n };\n\n\n // FIXME Use value from contentChanged when available\n\n const mmToPixels = 3.779527559;\n\n const marginTop = smartGuideRef.editor.configuration.recognitionParams.v4.text.margin.top * mmToPixels;\n const marginLeft = smartGuideRef.editor.configuration.recognitionParams.v4.text.margin.left * mmToPixels;\n\n // 12 is the space between line in mm\n const top = marginTop - (12 * mmToPixels);\n let left = marginLeft;\n\n insertSmartGuideElement(left, top);\n insertTag();\n\n // 35 is the ellipsis element width\n const maxWidthTextContainer = smartGuideRef.editor.domElement.clientWidth - left - elementsRef.tagElement.offsetWidth - 35 - left;\n left = elementsRef.tagElement.offsetWidth;\n insertTextContainer(left, maxWidthTextContainer);\n\n left += maxWidthTextContainer;\n insertEllipsis(left);\n\n elementsRef.menuElement.style.display = 'none';\n elementsRef.menuElement.appendChild(elementsRef.convertElement);\n elementsRef.menuElement.appendChild(elementsRef.copyElement);\n elementsRef.menuElement.appendChild(elementsRef.deleteElement);\n elementsRef.smartGuideElement.appendChild(elementsRef.menuElement);\n\n elementsRef.candidatesElement.style.display = 'none';\n elementsRef.smartGuideElement.appendChild(elementsRef.candidatesElement);\n\n // 48px as set in css\n elementsRef.smartGuideElement.style.height = '48px';\n elementsRef.smartGuideElement.style.width = `${elementsRef.tagElement.offsetWidth + elementsRef.textContainer.offsetWidth + elementsRef.ellipsisElement.offsetWidth}px`;\n smartGuideRef.perfectScrollbar.update();\n}\n\n/**\n * Launch the smartguide.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n * @param {Object} exports - The export from the editor.\n */\nexport function launchSmartGuide(smartGuide, exports) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n\n const isSmartGuideInDocument = document.contains(elementsRef.smartGuideElement);\n\n if (!isInShadow(elementsRef.smartGuideElement) && !isSmartGuideInDocument) {\n insertSmartGuide(smartGuide);\n }\n\n const addAnimationToModifiedWord = (words) => {\n if (smartGuideRef.tempWords && smartGuideRef.tempWords.length === words.length) {\n const labelWordsArray = words.map(word => word.label);\n const tempLabelWordsArray = smartGuideRef.tempWords.map(word => word.label);\n const wordChangedId = labelWordsArray.indexOf(labelWordsArray.filter(a => tempLabelWordsArray.indexOf(a) === -1)[0]);\n if (document.getElementById(`word-${wordChangedId}${smartGuide.randomString}`) && wordChangedId > -1) {\n document.getElementById(`word-${wordChangedId}${smartGuide.randomString}`).classList.add('modified-word');\n elementsRef.textContainer.scrollLeft = document.getElementById(`word-${wordChangedId}${smartGuide.randomString}`).offsetLeft - 10;\n }\n }\n smartGuideRef.tempWords = JSON.parse(exports[Constants.Exports.JIIX]).words;\n };\n\n const createWordSpan = (empty, index, word) => {\n const span = document.createElement('span');\n span.id = `word-${index}${smartGuide.randomString}`;\n if (empty) {\n span.innerHTML = ' ';\n } else {\n span.textContent = word.label;\n }\n return span;\n };\n\n // Possible optimisation ? Check if we can find a way to not repopulate the smartguide every time even if we now use Document fragment\n const populatePrompter = (words) => {\n elementsRef.textElement.innerHTML = '';\n // We use a DocumentFragment to reflow the DOM only one time as it is not part of the DOM\n const myFragment = document.createDocumentFragment();\n words.forEach((word, index) => {\n if (word.label === ' ' || word.label.includes('\\n')) {\n myFragment.appendChild(createWordSpan(true, index));\n } else if (index !== words.length - 1) {\n myFragment.appendChild(createWordSpan(false, index, word));\n } else {\n elementsRef.textElement.appendChild(myFragment);\n smartGuideRef.perfectScrollbar.update();\n if (smartGuideRef.lastWord === '') {\n smartGuideRef.lastWord = word;\n }\n const span = createWordSpan(false, index, word);\n // This is used to scroll to last word if last word is modified\n if ((smartGuideRef.lastWord.candidates !== word.candidates) && (smartGuideRef.lastWord.label !== word.label)) {\n span.classList.add('added-word');\n elementsRef.textElement.appendChild(span);\n elementsRef.textContainer.scrollLeft = span.offsetLeft;\n smartGuideRef.lastWord = word;\n } else {\n elementsRef.textElement.appendChild(span);\n elementsRef.textContainer.scrollLeft = span.offsetLeft;\n }\n }\n });\n };\n\n if (exports && JSON.parse(exports[Constants.Exports.JIIX]).words.length > 0) {\n elementsRef.smartGuideElement.classList.add('smartguide-in');\n elementsRef.smartGuideElement.classList.remove('smartguide-out');\n elementsRef.candidatesElement.style.display = 'none';\n elementsRef.menuElement.style.display = 'none';\n if (smartGuideRef.previousLabelExport && smartGuideRef.previousLabelExport !== JSON.parse(exports[Constants.Exports.JIIX]).label) {\n const words = JSON.parse(exports[Constants.Exports.JIIX]).words;\n populatePrompter(words);\n addAnimationToModifiedWord(words);\n }\n smartGuideRef.previousLabelExport = JSON.parse(exports[Constants.Exports.JIIX]).label;\n // This is required by clipboard.js to get the text to be copied.\n elementsRef.copyElement.setAttribute('data-clipboard-text', JSON.parse(exports[Constants.Exports.JIIX]).label);\n } else {\n elementsRef.smartGuideElement.classList.add('smartguide-out');\n elementsRef.smartGuideElement.classList.remove('smartguide-in');\n }\n\n return smartGuideRef;\n}\n","/* eslint-disable no-undef */\nimport { editorLogger as logger } from '../configuration/LoggerConfig';\nimport * as InkModel from '../model/InkModel';\n\n/**\n * Function to copy past to inject ink during tutorial.\n * @param editorParam\n * @param strokes\n * @param delayBetweenStrokes\n * @param lastOneDelay\n */\nexport function inkImporter(editorParam, strokes, delayBetweenStrokes, lastOneDelay) {\n const editor = editorParam;\n logger.debug('inkImporter start importing =>', strokes);\n const origGrabber = Object.assign({}, editor.behavior.grabber);\n origGrabber.detach = editor.behavior.grabber.detach;\n editor.behavior.grabber = {};\n const actions = [];\n strokes.forEach((stroke) => {\n if (stroke.convert) {\n actions.push({ action: 'convert', value: true });\n } else if (stroke.setDelay) {\n actions.push({ action: 'setDelay', value: stroke.setDelay });\n } else {\n if (stroke.color) {\n actions.push({ action: 'setColor', value: stroke.color });\n }\n stroke.X.forEach((x, idx) => {\n let action = 'move';\n if (idx === 0) {\n action = 'down';\n } else if (idx === (stroke.X.length - 1)) {\n action = 'up';\n }\n actions.push({ action, point: { x: stroke.X[idx], y: stroke.Y[idx] } });\n });\n }\n });\n logger.debug('Array of actions =>', actions);\n const play = (actionsArray, position, delay) => {\n if (position < actionsArray.length) {\n const currentAction = actionsArray[position];\n let nextDelay = delay;\n if (currentAction.action === 'convert') {\n editor.convert();\n } else if (currentAction.action === 'setDelay') {\n nextDelay = currentAction.value;\n } else if (currentAction.action === 'setColor') {\n editor.penStyle = {\n color: currentAction.value,\n };\n } else {\n currentAction.point.t = new Date().getTime();\n if (currentAction.action === 'down') {\n editor.pointerDown(currentAction.point);\n } else if (currentAction.action === 'up') {\n editor.pointerUp(currentAction.point);\n } else if (currentAction.action === 'move') {\n editor.pointerMove(currentAction.point);\n }\n } if (lastOneDelay && position === actionsArray.map(x => x.action).lastIndexOf('down') - 1) {\n setTimeout(() => {\n play(actionsArray, position + 1, nextDelay);\n }, lastOneDelay);\n } else if (position === actionsArray.length - 1) {\n const event = new Event('drawEnded');\n document.dispatchEvent(event);\n editor.behavior.grabber = origGrabber;\n } else {\n setTimeout(() => {\n play(actionsArray, position + 1, nextDelay);\n }, nextDelay);\n }\n }\n };\n play(actions, 0, delayBetweenStrokes);\n}\n\n\nexport function importStrokeGroups(editorParam, strokeGroups) {\n strokeGroups.forEach((group) => {\n group.strokes.forEach((strokeFromGroup) => {\n InkModel.addStroke(editorParam.model, strokeFromGroup);\n InkModel.addStrokeToGroup(editorParam.model, strokeFromGroup, group.penStyle);\n });\n });\n editorParam.renderer.drawModel(editorParam.rendererContext, editorParam.model, editorParam.stroker);\n}\n","/* eslint-disable no-underscore-dangle */\nimport { editorLogger as logger } from './configuration/LoggerConfig';\nimport * as DefaultBehaviors from './configuration/DefaultBehaviors';\nimport * as DefaultConfiguration from './configuration/DefaultConfiguration';\nimport * as DefaultStyles from './configuration/DefaultPenStyle';\nimport * as DefaultTheme from './configuration/DefaultTheme';\nimport * as InkModel from './model/InkModel';\nimport * as UndoRedoContext from './model/UndoRedoContext';\nimport * as UndoRedoManager from './model/UndoRedoManager';\nimport * as ModelStats from './util/ModelStats';\nimport * as ImageRenderer from './renderer/canvas/ImageRenderer';\nimport * as RecognizerContext from './model/RecognizerContext';\nimport * as SmartGuide from './smartguide/SmartGuide';\nimport Constants from './configuration/Constants';\nimport * as eastereggs from './eastereggs/InkImporter';\n\n\n/**\n * Trigger callbacks\n * @param {Editor} editor\n * @param {Object} data\n * @param {...String} types\n * @return {Model}\n */\nfunction triggerCallbacks(editor, data, ...types) {\n const editorRef = editor;\n types.forEach((type) => {\n switch (type) {\n case Constants.EventType.RENDERED:\n break; // Internal use only\n case Constants.EventType.UNDO:\n case Constants.EventType.REDO:\n case Constants.EventType.CLEAR:\n case Constants.EventType.CONVERT:\n case Constants.EventType.EXPORT:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type));\n break;\n case Constants.EventType.LOADED:\n case Constants.EventType.CHANGED:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, {\n initialized: editor.initialized,\n canUndo: editor.canUndo,\n canRedo: editor.canRedo,\n canClear: editor.canClear,\n isEmpty: editor.isEmpty,\n possibleUndoCount: editor.possibleUndoCount,\n undoStackIndex: editor.undoStackIndex,\n canConvert: editor.canConvert,\n canExport: editor.canExport\n }));\n break;\n case Constants.EventType.EXPORTED:\n window.clearTimeout(editorRef.notifyTimer);\n editorRef.notifyTimer = window.setTimeout(() => {\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, {\n exports: editor.exports\n }));\n }, editorRef.configuration.processDelay);\n break;\n case Constants.EventType.SUPPORTED_IMPORT_MIMETYPES:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, {\n mimeTypes: editor.supportedImportMimeTypes\n }));\n break;\n case Constants.EventType.ERROR:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, data));\n break;\n case Constants.EventType.IDLE:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, {\n idle: editor.idle\n }));\n break;\n default:\n logger.debug(`No valid trigger configured for ${type}`);\n break;\n }\n });\n}\n\n/**\n * Check if a clear is required, and does it if it is\n * @param {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} resetFunc\n * @param {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} func\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nfunction manageResetState(resetFunc, func, recognizerContext, model, callback, ...params) {\n // If strokes moved in the undo redo stack then a clear is mandatory before sending strokes.\n if (resetFunc && RecognizerContext.isResetRequired(recognizerContext, model)) {\n logger.debug('Reset is needed');\n resetFunc(recognizerContext, model, (err, resetedModel, ...types) => {\n if (err) {\n callback(err, resetedModel, ...types);\n } else {\n func(recognizerContext, resetedModel, callback, ...params);\n }\n });\n } else {\n func(recognizerContext, model, callback, ...params);\n }\n}\n\n/**\n * Check if the trigger in parameter is valid.\n * @param {Editor} editor\n * @param {String} type\n * @param {String} [trigger]\n * @return {Boolean}\n */\nfunction isTriggerValid(editor, type, trigger = editor.configuration.triggers[type]) {\n if (editor.recognizer &&\n editor.recognizer.getInfo().availableTriggers[type].includes(trigger)) {\n return true;\n }\n logger.error(`${trigger} is not a valid trigger for ${type}`);\n return false;\n}\n\n/**\n * Manage recognized model\n * @param {Editor} editor\n * @param {Model} model\n * @param {...String} types\n */\nfunction manageRecognizedModel(editor, model, ...types) {\n const editorRef = editor;\n const modelRef = model;\n logger.debug(`model changed callback on ${types} event(s)`, model);\n if (modelRef.creationTime === editor.model.creationTime) {\n // Merge recognized model if relevant and return current editor model\n if ((modelRef.rawStrokes.length === editor.model.rawStrokes.length) &&\n (modelRef.lastPositions.lastSentPosition >= editor.model.lastPositions.lastReceivedPosition)) {\n editorRef.model = InkModel.mergeModels(editorRef.model, modelRef);\n if (InkModel.needRedraw(editorRef.model) || types.includes(Constants.EventType.RENDERED)) {\n editor.renderer.drawModel(editor.rendererContext, editorRef.model, editor.stroker);\n }\n } else {\n editorRef.model = modelRef;\n editor.renderer.drawModel(editor.rendererContext, editorRef.model, editor.stroker);\n }\n triggerCallbacks(editor, undefined, ...types);\n }\n\n if (editor.configuration.recognitionParams.type === 'TEXT'\n && editor.configuration.recognitionParams.apiVersion === 'V4'\n && editor.configuration.recognitionParams.protocol !== 'REST'\n && editor.configuration.recognitionParams.v4.text.mimeTypes.includes(Constants.Exports.JIIX)\n && editor.configuration.recognitionParams.v4.text.smartGuide) {\n // eslint-disable-next-line no-use-before-define\n launchSmartGuide(editorRef, modelRef.exports);\n }\n\n if ((InkModel.extractPendingStrokes(model).length > 0) &&\n (!editor.recognizer.addStrokes) && // FIXME: Ugly hack to avoid double export (addStrokes + export)\n (editor.configuration.triggers.exportContent !== Constants.Trigger.DEMAND)) {\n /* eslint-disable no-use-before-define */\n launchExport(editor, model);\n /* eslint-enable no-use-before-define */\n }\n}\n\n/**\n * Recognizer callback\n * @param {Editor} editor\n * @param {Object} error\n * @param {Model} model\n * @param {...String} events\n */\nfunction recognizerCallback(editor, error, model, ...events) {\n const editorRef = editor;\n\n const handleResult = (err, res, ...types) => {\n if (err) {\n if (err.type !== 'close') {\n logger.error('Error while firing the recognition', err.stack || err); // Handle any error from all above steps\n }\n if (\n // IInk error managment before refactor\n (err.message === 'Invalid application key.') || (err.message === 'Invalid HMAC') ||\n // CDK error managment\n (err.error &&\n err.error.result &&\n err.error.result.error &&\n (err.error.result.error === 'InvalidApplicationKeyException' || err.error.result.error === 'InvalidHMACSignatureException')) ||\n // IInk error managment after refactor\n (err.code && err.code === 'access.not.granted')) {\n editorRef.error.innerText = Constants.Error.WRONG_CREDENTIALS;\n } else if (err.message === 'Session is too old. Max Session Duration Reached' ||\n (err.code && err.code === 'session.too.old')) {\n editorRef.error.innerText = Constants.Error.TOO_OLD;\n } else if ((err.message || err.code === 1006) && editorRef.error.style.display === 'none') {\n editorRef.error.innerText = Constants.Error.NOT_REACHABLE;\n }\n if ((editorRef.error.innerText === Constants.Error.TOO_OLD || err.code === 1000 || err.reason === 'CLOSE_RECOGNIZER') && RecognizerContext.canReconnect(editor.recognizerContext)) {\n logger.info('Reconnection is available', err.stack || err);\n editorRef.error.style.display = 'none';\n } else {\n editorRef.error.style.display = 'initial';\n triggerCallbacks(editor, err, Constants.EventType.ERROR, ...types);\n }\n } else {\n manageRecognizedModel(editorRef, res, ...[...events, ...types].filter((el, i, a) => i === a.indexOf(el))); // Remove duplicate events\n }\n };\n\n logger.debug('recognition callback');\n if (editor.undoRedoManager.updateModel && !error) {\n editor.undoRedoManager.updateModel(editor.undoRedoContext, model, handleResult);\n } else {\n handleResult(error, model, ...events);\n }\n}\n\n/**\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [trigger]\n */\nfunction addStrokes(editor, model, trigger = editor.configuration.triggers.addStrokes) {\n if (editor.recognizer && editor.recognizer.addStrokes) {\n editor.recognizerContext.initPromise\n .then(() => {\n // Firing addStrokes only if recognizer is configure to do it\n if (isTriggerValid(editor, 'addStrokes', trigger)) {\n manageResetState(editor.recognizer.reset, editor.recognizer.addStrokes, editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n }\n });\n }\n}\n\n/**\n * Launch smartguide.\n * @param {Editor} editor\n * @param {Object} exports\n */\nfunction launchSmartGuide(editor, exports) {\n const editorRef = editor;\n editorRef.smartGuide = SmartGuide.launchSmartGuide(editor.smartGuide, exports);\n}\n\n/**\n * Launch ink import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {PointerEvents} events\n */\nfunction launchPointerEvents(editor, model, events) {\n if (editor.recognizer && editor.recognizer.pointerEvents) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.pointerEvents(editor.recognizerContext, model, events, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [requestedMimeTypes]\n * @param {String} [trigger]\n */\nfunction launchExport(editor, model, requestedMimeTypes, trigger = editor.configuration.triggers.exportContent) {\n if (editor.recognizer && editor.recognizer.export_) {\n editor.recognizerContext.initPromise\n .then(() => {\n // Firing export only if recognizer is configure to do it\n if (isTriggerValid(editor, 'exportContent', trigger)) {\n const editorRef = editor;\n window.clearTimeout(editor.exportTimer);\n editorRef.exportTimer = window.setTimeout(() => {\n manageResetState(editor.recognizer.reset, editor.recognizer.export_, editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n }, requestedMimeTypes);\n }, trigger === Constants.Trigger.QUIET_PERIOD ? editor.configuration.triggerDelay : 0);\n }\n });\n }\n}\n\n/**\n * Launch the import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {Blob} data\n */\nfunction launchImport(editor, model, data) {\n if (editor.recognizer && editor.recognizer.import_) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.import_(editor.recognizerContext, model, data, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\nfunction launchGetSupportedImportMimeTypes(editor, model) {\n if (editor.recognizer && editor.recognizer.getSupportedImportMimeTypes) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.getSupportedImportMimeTypes(editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Launch the convert with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} conversionState\n */\nfunction launchConvert(editor, model, conversionState) {\n if (editor.recognizer && editor.recognizer.convert) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.convert(editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n }, conversionState);\n });\n }\n}\n\nfunction launchConfig(editor, model) {\n if (editor.recognizer && editor.recognizer.sendConfiguration) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.sendConfiguration(editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Launch the resize.\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction launchResize(editor, model) {\n if (editor.recognizer && editor.recognizer.resize) {\n editor.recognizerContext.initPromise\n .then(() => {\n const editorRef = editor;\n window.clearTimeout(editor.resizeTimer);\n editorRef.resizeTimer = window.setTimeout(() => {\n editor.recognizer.resize(editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n }, editor.domElement);\n }, editor.configuration.resizeTriggerDelay);\n });\n SmartGuide.resize(editor.smartGuide);\n }\n}\n\n/**\n * Launch wait for idle\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction launchWaitForIdle(editor, model) {\n if (editor.recognizer && editor.recognizer.waitForIdle) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.waitForIdle(editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction setPenStyle(editor, model) {\n if (editor.recognizer && editor.recognizer.setPenStyle) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.setPenStyle(editor.recognizerContext, model, editor.penStyle, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction setPenStyleClasses(editor, model) {\n if (editor.recognizer && editor.recognizer.setPenStyleClasses) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.setPenStyleClasses(editor.recognizerContext, model, editor.penStyleClasses, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Set theme.\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction setTheme(editor, model) {\n if (editor.recognizer && editor.recognizer.setTheme) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.setTheme(editor.recognizerContext, model, editor.theme, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Editor\n */\nexport class Editor {\n /**\n * @param {Element} element DOM element to attach this editor\n * @param {Configuration} [configuration] Configuration to apply\n * @param {Theme} [theme] Custom theme to apply\n * @param {PenStyle} [penStyle] Custom style to apply\n * @param {Behaviors} [behaviors] Custom behaviors to apply\n */\n constructor(element, configuration, penStyle, theme, behaviors) {\n /**\n * Inner reference to the DOM Element\n * @type {Element}\n */\n this.domElement = element;\n this.domElement.classList.add('ms-editor');\n\n // eslint-disable-next-line no-undef\n this.loader = document.createElement('div');\n this.loader.classList.add('loader');\n this.loader = this.domElement.appendChild(this.loader);\n\n // eslint-disable-next-line no-undef\n this.error = document.createElement('div');\n this.error.classList.add('error-msg');\n this.error = this.domElement.appendChild(this.error);\n\n /**\n * Launch export timer\n * @type {Number}\n */\n this.exportTimer = undefined;\n\n /**\n * Launch resize timer\n * @type {Number}\n */\n this.resizeTimer = undefined;\n\n /**\n * Notify delay timer\n * @type {Number}\n */\n this.notifyTimer = undefined;\n\n\n /**\n * @private\n * @type {Behaviors}\n */\n this.innerBehaviors = DefaultBehaviors.overrideDefaultBehaviors(behaviors);\n this.configuration = configuration;\n this.smartGuide = SmartGuide.createSmartGuide(this);\n\n /**\n * Pen color used only for pending stroke\n * @type {string}\n */\n this.localTheme = '';\n\n this.theme = theme;\n this.penStyle = penStyle;\n this.penStyleClasses = '';\n\n this.domElement.editor = this;\n }\n\n /**\n * Set the recognition parameters\n * WARNING : Need to fire a clear if user have already input some strokes.\n * @param {Configuration} configuration\n */\n set configuration(configuration) {\n this.loader.style.display = 'initial';\n this.error.style.display = 'none';\n /**\n * @private\n * @type {Configuration}\n */\n this.innerConfiguration = DefaultConfiguration.overrideDefaultConfiguration(configuration);\n this.setThemeForFont(this.innerConfiguration.recognitionParams.v4.lang);\n this.behavior = this.behaviors.getBehaviorFromConfiguration(this.behaviors, this.innerConfiguration);\n }\n\n /**\n * Get the current recognition parameters\n * @return {Configuration}\n */\n get configuration() {\n return this.innerConfiguration;\n }\n\n /**\n * Set the pen style\n * @param {PenStyle} penStyle\n */\n set penStyle(penStyle) {\n /**\n * @private\n * @type {PenStyle}\n */\n this.innerPenStyle = DefaultStyles.overrideDefaultPenStyle(penStyle);\n this.localPenStyle = this.innerPenStyle;\n setPenStyle(this, this.model);\n }\n\n /**\n * Get the pen style\n * @return {PenStyle}\n */\n get penStyle() {\n return this.innerPenStyle;\n }\n\n /**\n * Set the pen style\n * @param {String} penStyleClasses\n */\n set penStyleClasses(penStyleClasses) {\n /**\n * @private\n * @type {String}\n */\n this.innerPenStyleClasses = penStyleClasses;\n this.localPenStyle = this.theme[`.${this.innerPenStyleClasses}`];\n setPenStyleClasses(this, this.model);\n }\n\n /**\n * Get the pen style\n * @return {String}\n */\n get penStyleClasses() {\n return this.innerPenStyleClasses;\n }\n\n /**\n * Set the theme\n * @param {Theme} theme\n */\n set theme(theme) {\n /**\n * @private\n * @type {Theme}\n */\n this.innerTheme = DefaultTheme.overrideDefaultTheme(theme);\n setTheme(this, this.model);\n }\n\n /**\n * Get the theme\n * @return {Theme}\n */\n get theme() {\n return this.innerTheme;\n }\n\n /**\n * Get behaviors\n * @return {Behaviors}\n */\n get behaviors() {\n return this.innerBehaviors;\n }\n\n /**\n * @private\n * @param {Behavior} behavior\n */\n set behavior(behavior) {\n if (behavior) {\n if (this.grabber) { // Remove event handlers to avoid multiplication (detach grabber)\n this.grabber.detach(this.domElement, this.grabberContext);\n }\n /**\n * @private\n * @type {Behavior}\n */\n this.innerBehavior = behavior;\n this.renderer = this.innerBehavior.renderer;\n this.recognizer = this.innerBehavior.recognizer;\n /**\n * Current grabber context\n * @type {GrabberContext}\n */\n this.grabberContext = this.grabber.attach(this.domElement, this);\n }\n }\n\n /**\n * Get current behavior\n * @return {Behavior}\n */\n get behavior() {\n return this.innerBehavior;\n }\n\n /**\n * Set the current recognizer\n * @private\n * @param {Recognizer} recognizer\n */\n set recognizer(recognizer) {\n this.undoRedoContext = UndoRedoContext.createUndoRedoContext(this.configuration);\n this.undoRedoManager = UndoRedoManager;\n\n const initialize = (model) => {\n /**\n * @private\n * @type {Recognizer}\n */\n this.innerRecognizer = recognizer;\n if (this.innerRecognizer) {\n /**\n * Current recognition context\n * @type {RecognizerContext}\n */\n this.recognizerContext = RecognizerContext.createEmptyRecognizerContext(this);\n // FIXME: merge undo/redo manager with default recognizer\n if (this.innerRecognizer.undo && this.innerRecognizer.redo && this.innerRecognizer.clear) {\n this.undoRedoContext = this.recognizerContext;\n this.undoRedoManager = this.innerRecognizer;\n }\n\n this.innerRecognizer.init(this.recognizerContext, model, (err, res, ...types) => {\n logger.debug('Recognizer initialized', res);\n this.loader.style.display = 'none';\n recognizerCallback(this, err, res, ...types);\n });\n }\n };\n\n if (recognizer) {\n if (this.innerRecognizer) {\n this.innerRecognizer.close(this.recognizerContext, this.model, (err, res, ...types) => {\n logger.info('Recognizer closed');\n recognizerCallback(this, err, res, ...types);\n initialize(InkModel.clearModel(res));\n });\n } else {\n /**\n * Current model\n * @type {Model}\n */\n this.model = InkModel.createModel(this.configuration);\n\n // INFO: Recognizer needs model to be initialized\n initialize(this.model);\n }\n }\n }\n\n /**\n * Get current recognizer\n * @return {Recognizer}\n */\n get recognizer() {\n return this.innerRecognizer;\n }\n\n /**\n * Set the current renderer\n * @private\n * @param {Renderer} renderer\n */\n set renderer(renderer) {\n if (renderer) {\n if (this.innerRenderer) {\n this.innerRenderer.detach(this.domElement, this.rendererContext);\n }\n\n /**\n * @private\n * @type {Renderer}\n */\n this.innerRenderer = renderer;\n if (this.innerRenderer) {\n /**\n * Current rendering context\n * @type {Object}\n */\n this.rendererContext = this.innerRenderer.attach(this.domElement, this.configuration.renderingParams.minHeight, this.configuration.renderingParams.minWidth);\n }\n }\n }\n\n /**\n * Get current renderer\n * @return {Renderer}\n */\n get renderer() {\n return this.innerRenderer;\n }\n\n /**\n * Get current grabber\n * @return {Grabber}\n */\n get grabber() {\n return this.behavior ? this.behavior.grabber : undefined;\n }\n\n /**\n * Get current stroker\n * @return {Stroker}\n */\n get stroker() {\n return this.behavior ? this.behavior.stroker : undefined;\n }\n\n /**\n * Get current callbacks\n * @return {Array}\n */\n get callbacks() {\n return this.behavior ? this.behavior.callbacks : undefined;\n }\n\n /**\n * Get a PNG image data url from the data model\n * @return {String}\n */\n get png() {\n return ImageRenderer.getImage(this.model, this.stroker);\n }\n\n /**\n * Get statistics to monitor what ink size is send to the server.\n * @return {Stats}\n */\n getStats() {\n return ModelStats.computeStats(this.model);\n }\n\n /**\n * True if initialized, false otherwise\n * @return {Boolean}\n */\n get initialized() {\n return this.recognizerContext ? this.recognizerContext.initialized : false;\n }\n\n /**\n * Handle a pointer down\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n * @param {String} [pointerType=mouse] Current pointer type\n * @param {String} [pointerId] Current pointer id\n */\n pointerDown(point, pointerType = 'pen', pointerId) {\n logger.trace('Pointer down', point);\n window.clearTimeout(this.notifyTimer);\n window.clearTimeout(this.exportTimer);\n this.model = InkModel.initPendingStroke(this.model, point, Object.assign({ pointerType, pointerId }, this.theme.ink, this.localPenStyle));\n this.renderer.drawCurrentStroke(this.rendererContext, this.model, this.stroker);\n // Currently no recognition on pointer down\n }\n\n /**\n * Handle a pointer move\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n */\n pointerMove(point) {\n logger.trace('Pointer move', point);\n this.model = InkModel.appendToPendingStroke(this.model, point);\n this.renderer.drawCurrentStroke(this.rendererContext, this.model, this.stroker);\n // Currently no recognition on pointer move\n }\n\n /**\n * Handle a pointer up\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n */\n pointerUp(point) {\n logger.trace('Pointer up', point);\n this.model = InkModel.endPendingStroke(this.model, point, this.penStyle);\n this.renderer.drawModel(this.rendererContext, this.model, this.stroker);\n\n if (this.recognizer.addStrokes) {\n addStrokes(this, this.model);\n } else {\n // Push model in undo redo manager\n recognizerCallback(this, undefined, this.model);\n }\n }\n\n removeStroke(stroke) {\n this.model.strokeGroups.forEach((group) => {\n const stringStrokes = group.strokes.map(strokeFromGroup => JSON.stringify(strokeFromGroup));\n const strokeIndex = stringStrokes.indexOf(JSON.stringify(stroke));\n if (strokeIndex !== -1) {\n group.strokes.splice(strokeIndex, 1);\n }\n });\n const stringRawStrokes = this.model.rawStrokes.map(strokes => JSON.stringify(strokes));\n const strokeIndex = stringRawStrokes.indexOf(JSON.stringify(stroke));\n if (strokeIndex !== -1) {\n this.model.rawStrokes.splice(strokeIndex, 1);\n }\n this.renderer.drawModel(this.rendererContext, this.model, this.stroker);\n recognizerCallback(this, undefined, this.model);\n if (!(this.configuration.triggers.exportContent === 'DEMAND')) {\n launchExport(this, this.model);\n }\n }\n\n /**\n * @Deprecated\n * @param rawStrokes\n * @param strokeGroups\n */\n reDraw(rawStrokes, strokeGroups) {\n rawStrokes.forEach((stroke) => {\n InkModel.addStroke(this.model, stroke);\n });\n strokeGroups.forEach((group) => {\n group.strokes.forEach((strokeFromGroup) => {\n InkModel.addStrokeToGroup(this.model, strokeFromGroup, group.penStyle);\n });\n });\n this.renderer.drawModel(this.rendererContext, this.model, this.stroker);\n recognizerCallback(this, undefined, this.model);\n }\n\n /**\n * True if idle state\n * @return {Boolean}\n */\n get idle() {\n return this.recognizerContext.idle;\n }\n\n /**\n * Wait for idle state.\n */\n waitForIdle() {\n triggerCallbacks(this, undefined, Constants.EventType.IDLE);\n launchWaitForIdle(this, this.model);\n }\n\n /**\n * True if can undo, false otherwise.\n * @return {Boolean}\n */\n get canUndo() {\n return this.undoRedoContext.canUndo;\n }\n\n /**\n * Undo the last action.\n */\n undo() {\n logger.debug('Undo current model', this.model);\n triggerCallbacks(this, undefined, Constants.EventType.UNDO);\n this.undoRedoManager.undo(this.undoRedoContext, this.model, (err, res, ...types) => {\n manageRecognizedModel(this, res, ...types);\n });\n }\n\n /**\n * True if can redo, false otherwise.\n * @return {Boolean}\n */\n get canRedo() {\n return this.undoRedoContext.canRedo;\n }\n\n /**\n * Redo the last action.\n */\n redo() {\n logger.debug('Redo current model', this.model);\n triggerCallbacks(this, undefined, Constants.EventType.REDO);\n this.undoRedoManager.redo(this.undoRedoContext, this.model, (err, res, ...types) => {\n manageRecognizedModel(this, res, ...types);\n });\n }\n\n /**\n * True if empty, false otherwise\n * @returns {boolean}\n */\n get isEmpty() {\n return this.recognizerContext.isEmpty;\n }\n\n /**\n * True if can clear, false otherwise.\n * @return {Boolean}\n */\n get canClear() {\n return this.canUndo && this.model.rawStrokes.length > 0;\n }\n\n /**\n * Clear the output and the recognition result.\n */\n clear() {\n logger.debug('Clear current model', this.model);\n triggerCallbacks(this, undefined, Constants.EventType.CLEAR);\n this.recognizer.clear(this.recognizerContext, this.model, (err, res, ...types) => {\n recognizerCallback(this, err, res, ...types);\n });\n }\n\n /**\n * True if can convert, false otherwise.\n * @return {Boolean}\n */\n get canConvert() {\n return this.canUndo && this.canClear && this.recognizer && this.recognizer.convert;\n }\n\n /**\n * Convert the current content\n */\n convert(conversionState = 'DIGITAL_EDIT') {\n if (this.canConvert) {\n triggerCallbacks(this, undefined, Constants.EventType.CONVERT);\n launchConvert(this, this.model, conversionState);\n }\n }\n\n /**\n * Set the guides for text\n * @param {Boolean} [enable]\n */\n setGuides(enable = true) {\n this.configuration.recognitionParams.v4.text.guides.enable = enable;\n launchConfig(this, this.model);\n }\n\n /**\n * Return the position of the cursor identifying the current state in the internal iink undo/redo stack.\n * @returns {Number}\n */\n get possibleUndoCount() {\n return this.recognizerContext.possibleUndoCount;\n }\n\n /**\n * The number of operations that it is currently possible to undo.\n * @returns {Number}\n */\n get undoStackIndex() {\n return this.recognizerContext.undoStackIndex;\n }\n\n /**\n * True if can export, false otherwise.\n * @return {Boolean}\n */\n get canExport() {\n return this.canUndo && this.canClear && this.recognizer && this.recognizer.getInfo().availableTriggers.exportContent.includes(Constants.Trigger.DEMAND);\n }\n\n /**\n * Explicitly ask to perform an export. You have to listen to events to get the content as this function is non blocking and does not have a return type.\n * @param {Array} requestedMimeTypes Requested mime-types. Be sure to ask all the types required by the listeners of exported event.\n */\n export_(requestedMimeTypes) {\n if (this.canExport) {\n triggerCallbacks(this, undefined, Constants.EventType.EXPORT);\n launchExport(this, this.model, requestedMimeTypes, Constants.Trigger.DEMAND);\n }\n }\n\n /**\n * Import content.\n * @param {Blob|*} data Data to import\n * @param {String} [mimetype] Mimetype of the data, needed if data is not a Blob\n */\n import_(data, mimetype) {\n triggerCallbacks(this, undefined, Constants.EventType.IMPORT);\n launchImport(this, this.model, !(data instanceof Blob) ? new Blob([data], { type: mimetype }) : data);\n }\n\n /**\n * Get supported import mime types\n */\n getSupportedImportMimeTypes() {\n launchGetSupportedImportMimeTypes(this, this.model);\n }\n\n /**\n * pointer events\n * @param {PointerEvents} events\n */\n pointerEvents(events) {\n launchPointerEvents(this, this.model, events);\n }\n\n /**\n * Get current state exports\n * @return {Object}\n */\n get exports() {\n return this.model ? this.model.exports : undefined;\n }\n\n get supportedImportMimeTypes() {\n return this.recognizerContext.supportedImportMimeTypes;\n }\n\n /**\n * Function to call when the dom element link to the current ink paper has been resize.\n */\n resize() {\n logger.debug('Resizing editor');\n this.renderer.resize(this.rendererContext, this.model, this.stroker, this.configuration.renderingParams.minHeight, this.configuration.renderingParams.minWidth);\n launchResize(this, this.model);\n }\n\n /**\n * Set the theme (font family, font size and line height) depending on the language\n * @param lang\n */\n setThemeForFont(lang) {\n const defaultLang = !Object.keys(Constants.Languages).includes(lang);\n const armenian = lang === 'hy_AM';\n const fontFamily = defaultLang || armenian ? Constants.Languages.default : Constants.Languages[lang];\n const lineHeight = defaultLang || armenian ? '1.2' : '1.8';\n this.theme = {\n '.text': {\n 'font-family': fontFamily,\n 'line-height': lineHeight\n }\n };\n }\n\n /**\n * Detach event listeners from the DOM element created at editor creation.\n */\n unload() {\n if (this.grabber) { // Remove event handlers to avoid multiplication (detach grabber)\n this.grabber.detach(this.domElement, this.grabberContext);\n }\n if (this.innerRenderer) {\n this.innerRenderer.detach(this.domElement, this.rendererContext);\n }\n }\n\n /**\n * Trigger the change callbacks (and by default send a change event).\n */\n forceChange() {\n triggerCallbacks(this, undefined, Constants.EventType.CHANGED);\n }\n\n /* eslint-disable class-methods-use-this */\n /**\n * Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice).\n */\n get eastereggs() {\n return eastereggs;\n }\n /* eslint-enable class-methods-use-this */\n}\n","import { utilLogger as logger } from '../configuration/LoggerConfig';\nimport * as Cdkv3RestTextRecognizer from '../recognizer/rest/v3/Cdkv3RestTextRecognizer';\nimport * as RecognizerContext from '../model/RecognizerContext';\nimport defaultConfiguration from '../configuration/DefaultConfiguration';\n\n/**\n * @typedef {Object} Stats\n * @property {Number} strokesCount=0\n * @property {Number} pointsCount=0\n * @property {Number} byteSize=0\n * @property {Number} humanSize=0\n * @property {String} humanUnit=BYTE\n */\n\n/**\n * @param {Model} model Current model\n * @return {Stats} Statistics about recognition\n */\nexport function computeStats(model) {\n const stats = { strokesCount: 0, pointsCount: 0, byteSize: 0, humanSize: 0, humanUnit: 'BYTE' };\n if (model.rawStrokes) {\n stats.strokesCount = model.rawStrokes.length;\n\n const restMessage = Cdkv3RestTextRecognizer.buildInput(RecognizerContext.createEmptyRecognizerContext({ configuration: defaultConfiguration }), model);\n stats.pointsCount = model.rawStrokes.map(stroke => stroke.x.length).reduce((a, b) => a + b, 0);\n // We start with 270 as it is the size in bytes. Make a real computation implies to recode a doRecognition\n const byteSize = restMessage.textInput.length;\n stats.byteSize = byteSize;\n if (byteSize < 270) {\n stats.humanUnit = 'BYTE';\n stats.byteSize = 0;\n stats.humanSize = 0;\n } else if (byteSize < 2048) {\n stats.humanUnit = 'BYTES';\n stats.humanSize = byteSize;\n } else if (byteSize < 1024 * 1024) {\n stats.humanUnit = 'KiB';\n stats.humanSize = (byteSize / 1024).toFixed(2);\n } else {\n stats.humanUnit = 'MiB';\n stats.humanSize = (byteSize / 1024 / 1024).toFixed(2);\n }\n }\n logger.info('Stats', stats);\n return stats;\n}\n","import * as languagesJson from './configuration/languages.json';\nimport * as languagesJsonV3 from './configuration/languagesV3.json';\nimport { editorLogger as logger } from './configuration/LoggerConfig';\nimport { Editor } from './Editor';\nimport * as DefaultConfiguration from './configuration/DefaultConfiguration';\n\n/**\n * Attach an Editor to a DOMElement\n * @param {Element} element DOM element to attach an editor\n * @param {Configuration} [configuration] Configuration to apply\n * @param {PenStyle} [penStyle] Pen style to apply\n * @param {Theme} [theme] Theme to apply\n * @param {Behaviors} [behaviors] Custom behaviors to apply\n * @return {Editor} New editor\n */\nexport function register(element, configuration, penStyle, theme, behaviors) {\n logger.debug('Registering a new editor');\n return new Editor(element, configuration, penStyle, theme, behaviors);\n}\n\n/**\n * Return the list of available recognition languages\n * @param {Configuration} [configuration] Configuration to get the languages\n * @return {JSON} A list of available languages\n */\nexport function getAvailableLanguageList(configuration) {\n const innerConfiguration = DefaultConfiguration.overrideDefaultConfiguration(configuration);\n return innerConfiguration.recognitionParams.apiVersion === 'V4' ? languagesJson : languagesJsonV3;\n}\n","import Constants from './configuration/Constants';\nimport LoggerConfig from './configuration/LoggerConfig';\nimport DefaultConfiguration from './configuration/DefaultConfiguration';\nimport DefaultPenStyle from './configuration/DefaultPenStyle';\nimport DefaultTheme from './configuration/DefaultTheme';\nimport DefaultBehaviors from './configuration/DefaultBehaviors';\nimport * as InkModel from './model/InkModel';\nimport { Editor } from './Editor';\nimport { register, getAvailableLanguageList } from './EditorFacade';\nimport * as RecognizerContext from './model/RecognizerContext';\n\nconst MyScript = {\n Constants,\n // Default instantiations\n DefaultConfiguration,\n DefaultBehaviors,\n DefaultPenStyle,\n DefaultTheme,\n // Helper functions\n register,\n getAvailableLanguageList,\n // Internals\n LoggerConfig,\n Editor,\n InkModel,\n RecognizerContext,\n};\n\nexport {\n MyScript as default,\n Constants,\n // Default instantiations\n DefaultConfiguration,\n DefaultBehaviors,\n DefaultPenStyle,\n DefaultTheme,\n // Helper functions\n register,\n getAvailableLanguageList,\n // Internals\n LoggerConfig,\n Editor,\n InkModel,\n RecognizerContext,\n};\n\n"],"names":["Constants","log","loglevel","root","definition","this","noop","undefinedType","logMethods","bindMethod","obj","methodName","method","bind","Function","prototype","call","e","apply","arguments","replaceLoggingMethods","level","loggerName","i","length","methodFactory","debug","defaultMethodFactory","console","undefined","realMethod","Logger","name","defaultLevel","factory","currentLevel","self","storageKey","getPersistedLevel","storedLevel","window","localStorage","ignore","cookie","document","location","indexOf","encodeURIComponent","exec","slice","levels","TRACE","DEBUG","INFO","WARN","ERROR","SILENT","getLevel","setLevel","persist","toUpperCase","levelNum","levelName","persistLevelIfPossible","setDefaultLevel","enableAll","disableAll","initialLevel","defaultLogger","_loggersByName","getLogger","TypeError","logger","_log","noConflict","getLoggers","module","exports","editorLogger","EDITOR","LogLevel","SMARTGUIDE","modelLogger","MODEL","grabberLogger","GRABBER","rendererLogger","RENDERER","recognizerLogger","RECOGNIZER","callbackLogger","CALLBACK","utilLogger","UTIL","value","receiver","objects","Symbol","Object","getOwnPropertySymbols","isEnumerable","propertyIsEnumerable","target","len","provider","names","j","key","toString","val","type","Boolean","String","Number","constructor","Array","isArray","RegExp","Date","isBuffer","assign","isPrimitive","isObject","extend","assignSymbols","hasOwn","typeOf","hasOwnProperty","defaultConfiguration","overrideDefaultConfiguration","configuration","confRef","currentConfiguration","recognitionParams","server","useWindowLocation","scheme","protocol","host","t","o","n","r","l","m","c","d","defineProperty","configurable","enumerable","get","__esModule","default","p","s","iterator","toJSON","error","u","split","forEach","trim","substring","replace","_trimSemiColon","toCSS","defaultPenStyle","parser","JsonCSS","penStyle","css","defaultTheme","theme","floatPrecisionArray","roundFloat","oneFloat","requestedFloatPrecision","floatPrecision","Math","round","extractPoint","event","domElement","offsetTop","offsetLeft","eventRef","changedTouches","rect","getBoundingClientRect","clientX","left","clientLeft","xyFloatPrecision","clientY","top","clientTop","now","timestampFloatPrecision","element","editor","mMaxDiffX","unfocus","getSelection","removeAllRanges","hideMenu","evt","moreMenuInDocument","querySelector","classList","contains","style","display","hideCandidates","candidatesInDocument","tagName","context","listenerOptions","pointerDownOnEditor","id","activePointerId","pointerId","trace","button","buttons","stopPropagation","pointerDown","pointerType","smartGuidePointerDown","downSmartGuidePoint","pointerMove","point","diffX","abs","x","diffY","y","max","smartGuideIds","scrollbarClasses","pointerEnteredSmartGuide","relatedTarget","includes","className","pointerExitedSmartGuide","pointerMovedWords","pointerUp","listeners","item","types","addEventListener","listener","options","removeEventListener","drawStroke","stroke","stroker","ShapeSymbols","phi","angle","returnedAngle","PI","drawArrowHead","headPoint","alpha","beta","contextReference","save","fillStyle","strokeStyle","moveTo","beginPath","lineTo","cos","sin","fill","restore","drawShapeEllipse","shapeEllipse","points","centerPoint","maxRadius","minRadius","orientation","startAngle","sweepAngle","z1","z3","z2","z4","floor","boundariesPoints","atan2","cosAlpha","sinAlpha","push","drawEllipseArc","center","beginDecoration","beginTangentAngle","endDecoration","endTangentAngle","drawLine","p1","p2","drawShapeSymbol","symbol","lineWidth","width","color","elementType","shape","candidates","selectedCandidateIndex","table","lines","line","data","ellipse","shapeLine","firstPoint","lastPoint","recognizedShape","primitives","primitive","TextSymbols","drawTextLine","textLine","label","font","textHeight","textAlign","justificationType","textBaseline","fillText","topLeftPoint","height","underlineList","underline","delta","firstCharacter","lastCharacter","MusicClefs","gap","xAnchor","yAnchor","MusicSymbols","getMusicClefElements","keys","map","clef","src","svg","img","createElement","dataset","drawMusicSymbol","drawImage","canvas","parentElement","boundingBox","staff","count","computeDistance","xArray","yArray","lastIndexPoint","distance","sqrt","pow","isNaN","computeLength","lArray","createStrokeComponent","properties","addPoint","ret","strokeReference","ratio","pressure","parseFloat","computePressure","start","end","slicedStroke","getPointByIndex","index","mergeBounds","boundsA","boundsB","min","minX","maxX","minY","maxY","getLineBounds","getEllipseBounds","getTextLineBounds","getClefBounds","getStrokeBounds","getSymbolsBounds","symbols","boundsRef","MAX_VALUE","MIN_VALUE","filter","reduce","getDefaultSymbols","RecognitionType","MUSIC","defaultStaff","v3","musicParameter","defaultClef","getBoundingBox","getDefaultMusicSymbols","createModel","getTime","clearModel","model","modelReference","currentStroke","rawStrokes","strokeGroups","lastPositions","lastSentPosition","lastReceivedPosition","lastRenderedPosition","recognizedSymbols","rawResults","convert","needRedraw","addStroke","addStrokeToGroup","strokePenStyle","lastGroup","strokes","newStrokeGroup","strokeCopy","extractPendingStrokes","position","initPendingStroke","dpi","pxWidth","StrokeComponent","appendToPendingStroke","endPendingStroke","getBorderCoordinates","modelBounds","defaultSymbols","extractStrokesFromInkRange","firstStroke","lastStroke","slicedStrokes","updateModelSentPosition","updateModelReceivedPosition","resetModelPositions","updateModelRenderedPosition","extractPendingRecognizedSymbols","cloneModel","clonedModel","JSON","parse","stringify","mergeModels","models","a","b","modelRef","detectPixelRatio","getContext","devicePixelRatio","webkitBackingStorePixelRatio","mozBackingStorePixelRatio","msBackingStorePixelRatio","oBackingStorePixelRatio","backingStorePixelRatio","getPixelRatio","createCanvas","add","appendChild","resizeContent","renderingCanvas","capturingCanvas","parentNode","clientWidth","minWidth","clientHeight","minHeight","pixelRatio","scale","drawSymbol","warn","drawModel","renderingCanvasContext","clearRect","InkModel","capturingCanvasContext","resources","removeChild","res","computeLinksPoints","radius","computeMiddlePoint","point1","point2","computeAxeAngle","begin","renderArc","arc","renderLine","linkPoints1","linkPoints2","renderQuadratic","ctrl","linkPoints3","quadraticCurveTo","nbquadratics","linkPoints","newAngle","closePath","xhtml","xlink","xml","xmlns","prefix","namespaces","space","local","fullname","namespace","ownerDocument","createElementNS","uri","namespaceURI","documentElement","none","selector","empty","matcher","matches","vendorMatches","webkitMatchesSelector","msMatchesSelector","mozMatchesSelector","oMatchesSelector","update","EnterNode","parent","datum","_next","_parent","__data__","child","insertBefore","next","querySelectorAll","keyPrefix","bindIndex","group","enter","exit","node","groupLength","dataLength","bindKey","keyValue","nodeByKeyValue","keyValues","ascending","NaN","defaultView","classArray","string","ClassList","_node","_names","getAttribute","classedAdd","list","classedRemove","remove","textRemove","textContent","htmlRemove","innerHTML","raise","nextSibling","lower","previousSibling","firstChild","constantNull","selection_cloneShallow","cloneNode","selection_cloneDeep","setAttribute","join","splice","filterEvents","mouseenter","mouseleave","filterContextListener","contextListener","related","compareDocumentPosition","event1","onRemove","typename","on","__on","capture","onAdd","wrap","dispatchEvent","params","CustomEvent","createEvent","initEvent","bubbles","cancelable","detail","Selection","groups","parents","_groups","_parents","insertAdjacentSVG","html","container","toLowerCase","lastChild","select","subgroups","subnode","subgroup","selectAll","match","size","each","enterGroup","updateGroup","previous","i0","i1","_enter","_exit","sparse","merge","selection","groups0","groups1","m0","m1","merges","group0","group1","order","sort","compare","compareNode","sortgroups","sortgroup","callback","nodes","attr","getAttributeNS","removeAttributeNS","removeAttribute","v","setAttributeNS","priority","removeProperty","setProperty","getPropertyValue","getComputedStyle","styleValue","property","classed","text","append","create","creator","insert","before","clone","deep","typenames","parseTypenames","dispatch","elementRef","fontSize","pendingRecognizedSymbols","patchUpdate","patch","updates","svgElementSelector","layer","insertAdjacentHTML","outerHTML","parentId","refId","pendingStrokes","symbolContext","parts","renderFinal","svgPath","CryptoJS","F","subtype","C","C_lib","lib","Base","overrides","mixIn","init","$super","instance","propertyName","WordArray","words","sigBytes","encoder","Hex","concat","wordArray","thisWords","thatWords","thisSigBytes","thatSigBytes","clamp","thatByte","ceil","random","nBytes","rcache","m_w","m_z","mask","result","_r","C_enc","enc","hexChars","bite","hexStr","hexStrLength","parseInt","substr","Latin1","latin1Chars","fromCharCode","latin1Str","latin1StrLength","charCodeAt","Utf8","decodeURIComponent","escape","Error","utf8Str","unescape","BufferedBlockAlgorithm","reset","_data","_nDataBytes","_append","_process","doFlush","dataWords","dataSigBytes","blockSize","blockSizeBytes","nBlocksReady","nWordsReady","_minBufferSize","nBytesReady","offset","_doProcessBlock","processedWords","C_algo","Hasher","cfg","_doReset","messageUpdate","finalize","hash","_doFinalize","_createHelper","hasher","message","_createHmacHelper","HMAC","algo","require$$0","X32WordArray","C_x64","x64","Word","high","low","toX32","x64Words","x64WordsLength","x32Words","x64Word","wordsLength","X64Word","X64WordArray","X64Word_create","K","W","SHA512","_hash","M","H","H0","H1","H2","H3","H4","H5","H6","H7","H0h","H0l","H1h","H1l","H2h","H2l","H3h","H3l","H4h","H4l","H5h","H5l","H6h","H6l","H7h","H7l","ah","al","bh","bl","ch","cl","dh","dl","eh","el","fh","fl","gh","gl","hh","hl","Wi","Wih","Wil","gamma0x","gamma0xh","gamma0xl","gamma0h","gamma0l","gamma1x","gamma1xh","gamma1xl","gamma1h","gamma1l","Wi7","Wi7h","Wi7l","Wi16","Wi16h","Wi16l","t1l","chh","chl","majh","majl","sigma0h","sigma0l","sigma1h","sigma1l","Ki","Kih","Kil","t1h","t2l","nBitsTotal","nBitsLeft","HmacSHA512","_hasher","hasherBlockSize","hasherBlockSizeBytes","oKey","_oKey","iKey","_iKey","oKeyWords","iKeyWords","innerHash","hmac","computeHmac","input","applicationKey","hmacKey","jsonInput","req","responseText","xhr","url","recognizerContext","apiVersion","mimeType","recognizerContextRef","Promise","resolve","reject","request","XMLHttpRequest","open","withCredentials","setRequestHeader","CryptoHelper","str","isBlobType","startsWith","responseType","onerror","msg","recoverable","onload","status","response","onreadystatechange","readyState","idle","send","then","post","createEmptyRecognizerContext","info","isResetRequired","updateRecognitionPositions","positions","instanceId","setRecognitionContext","recognitionContext","recognitionContexts","canReconnect","websocket","autoReconnect","currentReconnectionCount","maxRetryCount","shouldAttemptImmediateReconnect","LOST_CONNEXION_MESSAGE","CLOSE_RECOGNIZER_MESSAGE","postMessage","suffixUrl","buildMessage","NetworkInterface","recognizerContextReference","RecognizerContext","extractExports","textSegmentResult","selectedCandidateIdx","initPromise","initialized","EventType","LOADED","clear","CHANGED","EXPORTED","RENDERED","close","textRestV3Configuration","TEXT","Protocol","REST","Trigger","QUIET_PERIOD","DEMAND","buildInput","textParameter","inputUnits","components","textInput","Cdkv3CommonTextRecognizer","IDLE","resultCallback","catch","err","results","extractRecognizedSymbols","strokeList","scratchOutResults","inkRanges","scratchOutResult","erasedInkRanges","find","inkRange","component","mathRestV3Configuration","MATH","mathParameter","mathInput","Cdkv3RestRecognizerUtil","Cdkv3CommonMathRecognizer","CdkCommonUtil","getStyleFromInkRanges","extractShapeSymbols","segment","selectedCandidate","analyzerRestV3Configuration","ANALYZER","parameter","analyzerParameter","analyzerInput","extractRecognizedSymbolsFromAnalyzerResult","shapes","tables","textLines","extractSymbols","CONVERTED","shapeRestV3Configuration","SHAPE","shapeParameter","shapeInput","buildReset","segments","Cdkv3CommonShapeRecognizer","musicRestV3Configuration","musicInput","iinkRestConfiguration","DIAGRAM","RAWCONTENT","conversionState","buildData","dataConf","v4","lang","export","buildTextConf","math","buildMathConf","diagram","buildDiagramConf","recognition","buildRawContentConf","newStrokes","newGroup","DefaultPenStyle","charAt","DefaultTheme","requestedMimeTypes","callPostMessage","restConversionState","mimeTypes","openWebSocket","socket","WebSocket","websocketConfiguration","pingEnabled","pingDelay","maxPingLost","maxPingLostCount","pingLostCount","infinitePing","websocketRef","onopen","websocketCallback","onclose","onmessage","callBackParam","buildWebSocketCallback","destructuredPromise","challenge","buildHmacMessage","commonCallback","reconnect","buildUrl","destructuredInitPromise","promise","resolveParam","rejectParam","NetworkWSInterface","retry","func","sendMessage","code","reason","mathWebSocketV3Configuration","WEBSOCKET","POINTER_UP","buildMathInput","buildResetMessage","mathCallback","CdkWSRecognizerUtil","Cdkv3WSWebsocketBuilder","export_","err1","res1","textWebSocketV3Configuration","buildTextInput","textCallback","UUIDjs","getRandomInt","maxFromBits","bits","limitUI04","limitUI06","limitUI08","limitUI12","limitUI14","limitUI16","limitUI32","limitUI40","limitUI48","randomUI04","randomUI06","randomUI08","randomUI12","randomUI14","randomUI16","randomUI32","randomUI40","randomUI48","paddedString","z","fromParts","timeLow","timeMid","timeHiAndVersion","clockSeqHiAndReserved","clockSeqLow","version","hex","toURN","toBytes","ints","intPos","equals","uuid","UUID","getTimeFieldValues","time","ts","UTC","hm","mid","hi","timestamp","_create4","_create1","sequence","tick","tf","tl","thav","cshar","csl","fromTime","last","firstFromTime","lastFromTime","fromURN","strId","fromBytes","pos","octet","fromBinary","binary","new","newTS","sessionId","buildRestoreIInkSessionInput","buildNewContentPackageInput","hmacChallenge","iinkSessionId","contentPartCount","buildConfiguration","currentPartId","buildOpenContentPart","buildNewContentPart","partId","buildSetTheme","buildSetPenStyle","buildSetPenStyleClasses","penStyleClasses","canUndo","canRedo","isEmpty","possibleUndoCount","undoStackIndex","supportedImportMimeTypes","IInkWebSocketV4Configuration","NEBO","renderingParams","triggers","exportContent","buildAddStrokes","buildUndo","buildRedo","buildClear","buildConvert","state","buildZoom","buildResize","buildExport","requestedMimeType","buildImportFile","mimetype","buildImportChunk","lastChunk","buildPointerEvents","events","buildWaitForIdle","buildGetSupportedImportMimeTypes","iinkCallback","SUPPORTED_IMPORT_MIMETYPES","defaultBehaviors","PointerEventGrabber","QuadraticCanvasStroker","QuadraticSVGStroker","CanvasRenderer","SVGRenderer","Cdkv3RestTextRecognizer","Cdkv3RestMathRecognizer","Cdkv3RestAnalyzerRecognizer","Cdkv3RestShapeRecognizer","Cdkv3RestMusicRecognizer","iinkRestRecognizer","Cdkv3WSTextRecognizer","Cdkv3WSMathRecognizer","Cdkv4WSWebsocketBuilder","newContentPart","openContentPart","sendConfiguration","pointerEvents","addStrokes","undo","redo","noerr","newModel","import_","chunkSize","fileChunkSize","importFileId","blob","fileReader","FileReader","_this","readAsText","getSupportedImportMimeTypes","waitForIdle","resize","zoom","setPenStyle","setPenStyleClasses","setTheme","composed","behaviors","behavior","grabber","strokerList","getInfo","renderer","rendererList","recognizer","recognizerList","callbacks","updateUndoRedoState","undoRedoContext","undoRedoContextRef","currentPosition","stack","getModel","modelIndex","findIndex","modificationTime","undoRedoContextReference","maxSize","shift","borderCoordinates","margin","set","div","elMatches","Element","query","queryChildren","children","cls","main","thumb","rail","consuming","focus","active","scrolling","scrollingClassTimeout","addScrollingClass","clearTimeout","removeScrollingClass","setTimeout","isAlive","settings","scrollingThreshold","EventElement","handlers","prototypeAccessors","eventName","handler","unbind","this$1","unbindAll","every","defineProperties","EventManager","eventElements","initCustomEvent","eventElement","ee","once","onceHandler","processScrollDiff","axis","diff","useScrollingClass","forceFireReachEvent","fields","ref","contentHeight","containerHeight","scrollTop","up","down","reach","setScrollingClassInstantly","processScrollDiff$1","toInt","env","isWebKit","supportsTouch","DocumentTouch","supportsIePointer","navigator","msMaxTouchPoints","isChrome","test","userAgent","updateGeometry","containerWidth","contentWidth","scrollWidth","scrollHeight","scrollbarXRail","scrollbarYRail","suppressScrollX","scrollXMarginOffset","scrollbarXActive","railXWidth","railXMarginWidth","railXRatio","scrollbarXWidth","getThumbSize","scrollbarXLeft","negativeScrollAdjustment","scrollLeft","suppressScrollY","scrollYMarginOffset","scrollbarYActive","railYHeight","railYMarginHeight","railYRatio","scrollbarYHeight","scrollbarYTop","xRailOffset","isRtl","isScrollbarXUsingBottom","bottom","scrollbarXBottom","scrollbarXTop","yRailOffset","isScrollbarYUsingRight","right","scrollbarYRight","scrollbarYOuterWidth","scrollbarYLeft","scrollbarX","railBorderXWidth","scrollbarY","railBorderYWidth","updateCss","thumbSize","minScrollbarLength","maxScrollbarLength","bindMouseScrollHandler","pageY","startingScrollTop","startingMousePageY","scrollBy","mouseMoveHandler","preventDefault","mouseUpHandler","click-rail","direction","pageYOffset","pageX","pageXOffset","drag-thumb","keyboard","isDefaultPrevented","defaultPrevented","activeElement","contentDocument","shadowRoot","deltaX","deltaY","which","metaKey","altKey","shiftKey","wheelPropagation","shouldPreventDefault","wheel","mousewheelHandler","wheelDeltaX","wheelDeltaY","deltaMode","wheelDelta","getDeltaFromEvent","cursor","overflow","overflowX","overflowY","maxScrollTop","maxScrollLeft","shouldBeConsumedByChild","shouldPrevent","useBothWheelAxes","wheelSpeed","isTop","isBottom","offsetHeight","isLeft","isRight","offsetWidth","ctrlKey","onwheel","onmousewheel","touch","startOffset","startTime","speed","easingLoop","touchStart","touchMove","touchEnd","PointerEvent","MSPointerEvent","applyTouchMove","differenceX","differenceY","getTouch","targetTouches","shouldHandle","MSPOINTER_TYPE_MOUSE","clearInterval","currentOffset","currentTime","timeGap","magnitudeX","magnitudeY","scrollY","swipeEasing","setInterval","isInitialized","PerfectScrollbar","userSettings","nodeName","originalScrollLeft","blur","isNegativeScroll","railXStyle","borderLeftWidth","borderRightWidth","marginLeft","marginRight","railYStyle","styles","paddingLeft","paddingRight","outerWidth","borderTopWidth","borderBottomWidth","marginTop","marginBottom","handlerName","lastScrollTop","lastScrollLeft","onScroll","destroy","removePsClasses","selectedText","isReadOnly","hasAttribute","setSelectionRange","range","createRange","selectNodeContents","addRange","_select","_select2","_typeof","_createClass","props","descriptor","writable","Constructor","protoProps","staticProps","ClipboardAction","_classCallCheck","resolveOptions","initSelection","action","emitter","trigger","selectFake","selectTarget","isRTL","removeFake","fakeHandlerCallback","fakeHandler","fakeElem","border","padding","yPosition","copyText","succeeded","execCommand","handleResult","emit","clearSelection","_action","nodeType","_target","E","ctx","fn","off","_","evtArr","evts","liveEvents","HTMLElement","DOCUMENT_NODE_TYPE","proto","matchesSelector","useCapture","listenerFn","delegateTarget","closest","is","listenNode","nodeList","listenNodeList","delegate","body","listenSelector","_clipboardAction","_tinyEmitter","_goodListener","_clipboardAction2","_interopRequireDefault","_tinyEmitter2","_goodListener2","Clipboard","_Emitter","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","listenClick","subClass","superClass","setPrototypeOf","_inherits","defaultAction","defaultTarget","defaultText","_this2","onClick","currentTarget","clipboardAction","getAttributeValue","actions","support","queryCommandSupported","suffix","attribute","require$$1","require$$2","isInShadow","addListeners","smartGuide","elementsRef","elements","textElement","smartGuideRef","randomString","Exports","JIIX","wordToChange","candidatesElement","word","showCandidates","candidate","innerText","jiixToImport","clickCandidate","ellipsisElement","positionActions","menuElement","isMenuInDocument","convertElement","copyElement","deleteElement","showActions","createSmartGuide","smartGuideElement","textContainer","tagElement","createHTMLElements","smartGuideFadeOut","enable","duration","MutationObserver","mutations","smartGuideTimeOutId","observe","childList","subtree","attributes","editorParam","delayBetweenStrokes","lastOneDelay","origGrabber","detach","setDelay","X","idx","Y","play","actionsArray","delay","currentAction","nextDelay","lastIndexOf","Event","strokeFromGroup","rendererContext","triggerCallbacks","editorRef","UNDO","REDO","CLEAR","CONVERT","EXPORT","canClear","canConvert","canExport","notifyTimer","processDelay","manageResetState","resetFunc","resetedModel","isTriggerValid","availableTriggers","manageRecognizedModel","creationTime","isSmartGuideInDocument","visibility","loader","maxWidthTextContainer","maxWidth","perfectScrollbar","createWordSpan","span","previousLabelExport","myFragment","createDocumentFragment","lastWord","tempWords","labelWordsArray","tempLabelWordsArray","wordChangedId","getElementById","SmartGuide","recognizerCallback","WRONG_CREDENTIALS","TOO_OLD","NOT_REACHABLE","undoRedoManager","updateModel","launchExport","exportTimer","triggerDelay","Editor","resizeTimer","innerBehaviors","currentBehaviors","getBehaviorFromConfiguration","DefaultBehaviors","localTheme","stats","strokesCount","pointsCount","byteSize","humanSize","humanUnit","restMessage","toFixed","ModelStats","ink","localPenStyle","drawCurrentStroke","strokeIndex","_this3","_this4","guides","IMPORT","Blob","resizeTriggerDelay","defaultLang","Languages","armenian","fontFamily","lineHeight","grabberContext","innerRenderer","innerConfiguration","DefaultConfiguration","setThemeForFont","currentStyle","innerPenStyle","innerPenStyleClasses","innerTheme","currentTheme","innerBehavior","attach","undoRedoMaxStackSize","UndoRedoManager","initialize","innerRecognizer","_this5","renderStructure","translate","toDataURL","ImageRenderer","eastereggs","register","getAvailableLanguageList","languagesJson","languagesJsonV3","MyScript"],"mappings":"2LAIA,IAAMA,mBAEI,eACG,mBACC,oBACA,qBACC,qBACD,kBACF,cACF,YACA,aACC,eACC,oCACoB,kCACpB,iBACC,gBACF,+BAGD,YACA,aACC,cACA,iBACG,mBACD,eACH,kBACM,mCAGD,iBACL,iCAGQ,2BACD,wBACF,qBACD,mBACD,mBACC,iBACH,+BAGO,0BACF,oBACJ,yBAGA,eACD,gBACE,mBACC,sBACE,sBACF,gBACJ,kBACM,8BAGL,cACA,aACD,YACA,aACC,0BAGA,yBACA,yBACA,yBACA,yBACA,yBACA,6BACE,kCAGM,wGACI,4GACV,mEAGH,8SC3EJC,GAAMC,gBCDX,IAAUC,EAAMC,EAAND,EASTE,EATeD,EAST,WAIJ,IAAIE,EAAO,aACPC,EAAgB,YAEhBC,GACA,QACA,QACA,OACA,OACA,SAIJ,SAASC,EAAWC,EAAKC,GACrB,IAAIC,EAASF,EAAIC,GACjB,GAA2B,mBAAhBC,EAAOC,KACd,OAAOD,EAAOC,KAAKH,GAEnB,IACI,OAAOI,SAASC,UAAUF,KAAKG,KAAKJ,EAAQF,GAC9C,MAAOO,GAEL,OAAO,WACH,OAAOH,SAASC,UAAUG,MAAMA,MAAMN,GAASF,EAAKS,cA0Bp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AAc77B,SAASjP,EAAUk9B,QAAQE,+CA4CzI/8B,KAAK6Z,MAAQ7Z,KAAK6Z,MAAMrV,aAAUhD,0DAIlCxB,KAAKy4B,kBAAkB2R,mEAqDvBujB,gjFE3iCJ,SAASC,GAAS3hD,EAASpE,EAAeuC,EAAUG,EAAOgkC,YACzDltC,MAAM,4BACN,IAAIkpD,GAAOt+C,EAASpE,EAAeuC,EAAUG,EAAOgkC,GAQtD,SAASsf,GAAyBhmD,SAEoB,OADhC4kD,EAAkD5kD,GACnDG,kBAAkB0wB,WAAsBo1B,GAAgBC,OChB9EC"} \ No newline at end of file diff --git a/docs/ast/source/Editor.js.json b/docs/ast/source/Editor.js.json index 44ca8f71..ae668d52 100644 --- a/docs/ast/source/Editor.js.json +++ b/docs/ast/source/Editor.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 32219, + "end": 33073, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 1059, + "line": 1087, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 32219, + "end": 33073, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 1059, + "line": 1087, "column": 0 } }, @@ -978,52 +978,35 @@ }, "specifiers": [ { - "type": "ImportSpecifier", - "start": 849, - "end": 860, + "type": "ImportNamespaceSpecifier", + "start": 847, + "end": 862, "loc": { "start": { "line": 15, - "column": 9 + "column": 7 }, "end": { "line": 15, - "column": 20 + "column": 22 } }, - "imported": { - "type": "Identifier", - "start": 849, - "end": 860, - "loc": { - "start": { - "line": 15, - "column": 9 - }, - "end": { - "line": 15, - "column": 20 - }, - "identifierName": "inkImporter" - }, - "name": "inkImporter" - }, "local": { "type": "Identifier", - "start": 849, - "end": 860, + "start": 852, + "end": 862, "loc": { "start": { "line": 15, - "column": 9 + "column": 12 }, "end": { "line": 15, - "column": 20 + "column": 22 }, - "identifierName": "inkImporter" + "identifierName": "eastereggs" }, - "name": "inkImporter" + "name": "eastereggs" } } ], @@ -12582,14 +12565,14 @@ { "type": "FunctionDeclaration", "start": 6659, - "end": 8521, + "end": 8795, "loc": { "start": { "line": 170, "column": 0 }, "end": { - "line": 208, + "line": 213, "column": 1 } }, @@ -12702,14 +12685,14 @@ "body": { "type": "BlockStatement", "start": 6720, - "end": 8521, + "end": 8795, "loc": { "start": { "line": 170, "column": 61 }, "end": { - "line": 208, + "line": 213, "column": 1 } }, @@ -12784,14 +12767,14 @@ { "type": "VariableDeclaration", "start": 6753, - "end": 8281, + "end": 8555, "loc": { "start": { "line": 173, "column": 2 }, "end": { - "line": 200, + "line": 205, "column": 4 } }, @@ -12799,14 +12782,14 @@ { "type": "VariableDeclarator", "start": 6759, - "end": 8280, + "end": 8554, "loc": { "start": { "line": 173, "column": 8 }, "end": { - "line": 200, + "line": 205, "column": 3 } }, @@ -12830,14 +12813,14 @@ "init": { "type": "ArrowFunctionExpression", "start": 6774, - "end": 8280, + "end": 8554, "loc": { "start": { "line": 173, "column": 23 }, "end": { - "line": 200, + "line": 205, "column": 3 } }, @@ -12916,14 +12899,14 @@ "body": { "type": "BlockStatement", "start": 6798, - "end": 8280, + "end": 8554, "loc": { "start": { "line": 173, "column": 47 }, "end": { - "line": 200, + "line": 205, "column": 3 } }, @@ -12931,14 +12914,14 @@ { "type": "IfStatement", "start": 6804, - "end": 8276, + "end": 8550, "loc": { "start": { "line": 174, "column": 4 }, "end": { - "line": 199, + "line": 204, "column": 5 } }, @@ -12962,14 +12945,14 @@ "consequent": { "type": "BlockStatement", "start": 6813, - "end": 8123, + "end": 8397, "loc": { "start": { "line": 174, "column": 13 }, "end": { - "line": 197, + "line": 202, "column": 5 } }, @@ -13300,296 +13283,193 @@ { "type": "IfStatement", "start": 6982, - "end": 7664, + "end": 7938, "loc": { "start": { "line": 178, "column": 6 }, "end": { - "line": 189, + "line": 194, "column": 7 } }, "test": { "type": "LogicalExpression", - "start": 6986, - "end": 7291, + "start": 7043, + "end": 7486, "loc": { "start": { - "line": 178, - "column": 10 + "line": 180, + "column": 8 }, "end": { - "line": 183, - "column": 7 + "line": 187, + "column": 55 } }, "left": { "type": "LogicalExpression", - "start": 6986, - "end": 7066, + "start": 7043, + "end": 7380, "loc": { "start": { - "line": 178, - "column": 10 + "line": 180, + "column": 8 }, "end": { - "line": 178, - "column": 90 + "line": 185, + "column": 134 } }, "left": { - "type": "BinaryExpression", - "start": 6987, - "end": 7029, + "type": "LogicalExpression", + "start": 7043, + "end": 7123, "loc": { "start": { - "line": 178, - "column": 11 + "line": 180, + "column": 8 }, "end": { - "line": 178, - "column": 53 + "line": 180, + "column": 88 } }, "left": { - "type": "MemberExpression", - "start": 6987, - "end": 6998, + "type": "BinaryExpression", + "start": 7044, + "end": 7086, "loc": { "start": { - "line": 178, - "column": 11 + "line": 180, + "column": 9 }, "end": { - "line": 178, - "column": 22 + "line": 180, + "column": 51 } }, - "object": { - "type": "Identifier", - "start": 6987, - "end": 6990, + "left": { + "type": "MemberExpression", + "start": 7044, + "end": 7055, "loc": { "start": { - "line": 178, - "column": 11 + "line": 180, + "column": 9 }, "end": { - "line": 178, - "column": 14 - }, - "identifierName": "err" + "line": 180, + "column": 20 + } }, - "name": "err" - }, - "property": { - "type": "Identifier", - "start": 6991, - "end": 6998, - "loc": { - "start": { - "line": 178, - "column": 15 - }, - "end": { - "line": 178, - "column": 22 + "object": { + "type": "Identifier", + "start": 7044, + "end": 7047, + "loc": { + "start": { + "line": 180, + "column": 9 + }, + "end": { + "line": 180, + "column": 12 + }, + "identifierName": "err" }, - "identifierName": "message" - }, - "name": "message" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 7003, - "end": 7029, - "loc": { - "start": { - "line": 178, - "column": 27 - }, - "end": { - "line": 178, - "column": 53 - } - }, - "extra": { - "rawValue": "Invalid application key.", - "raw": "'Invalid application key.'" - }, - "value": "Invalid application key." - }, - "extra": { - "parenthesized": true, - "parenStart": 6986 - } - }, - "operator": "||", - "right": { - "type": "BinaryExpression", - "start": 7035, - "end": 7065, - "loc": { - "start": { - "line": 178, - "column": 59 - }, - "end": { - "line": 178, - "column": 89 - } - }, - "left": { - "type": "MemberExpression", - "start": 7035, - "end": 7046, - "loc": { - "start": { - "line": 178, - "column": 59 + "name": "err", + "leadingComments": null }, - "end": { - "line": 178, - "column": 70 - } - }, - "object": { - "type": "Identifier", - "start": 7035, - "end": 7038, - "loc": { - "start": { - "line": 178, - "column": 59 - }, - "end": { - "line": 178, - "column": 62 + "property": { + "type": "Identifier", + "start": 7048, + "end": 7055, + "loc": { + "start": { + "line": 180, + "column": 13 + }, + "end": { + "line": 180, + "column": 20 + }, + "identifierName": "message" }, - "identifierName": "err" + "name": "message" }, - "name": "err" + "computed": false, + "leadingComments": null }, - "property": { - "type": "Identifier", - "start": 7039, - "end": 7046, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 7060, + "end": 7086, "loc": { "start": { - "line": 178, - "column": 63 + "line": 180, + "column": 25 }, "end": { - "line": 178, - "column": 70 - }, - "identifierName": "message" + "line": 180, + "column": 51 + } }, - "name": "message" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 7051, - "end": 7065, - "loc": { - "start": { - "line": 178, - "column": 75 + "extra": { + "rawValue": "Invalid application key.", + "raw": "'Invalid application key.'" }, - "end": { - "line": 178, - "column": 89 - } + "value": "Invalid application key." }, + "leadingComments": null, "extra": { - "rawValue": "Invalid HMAC", - "raw": "'Invalid HMAC'" - }, - "value": "Invalid HMAC" - }, - "extra": { - "parenthesized": true, - "parenStart": 7034 - } - } - }, - "operator": "||", - "right": { - "type": "LogicalExpression", - "start": 7077, - "end": 7283, - "loc": { - "start": { - "line": 179, - "column": 7 - }, - "end": { - "line": 182, - "column": 131 - } - }, - "left": { - "type": "LogicalExpression", - "start": 7077, - "end": 7148, - "loc": { - "start": { - "line": 179, - "column": 7 - }, - "end": { - "line": 181, - "column": 30 + "parenthesized": true, + "parenStart": 7043 } }, - "left": { - "type": "LogicalExpression", - "start": 7077, - "end": 7114, + "operator": "||", + "right": { + "type": "BinaryExpression", + "start": 7092, + "end": 7122, "loc": { "start": { - "line": 179, - "column": 7 + "line": 180, + "column": 57 }, "end": { "line": 180, - "column": 24 + "column": 87 } }, "left": { "type": "MemberExpression", - "start": 7077, - "end": 7086, + "start": 7092, + "end": 7103, "loc": { "start": { - "line": 179, - "column": 7 + "line": 180, + "column": 57 }, "end": { - "line": 179, - "column": 16 + "line": 180, + "column": 68 } }, "object": { "type": "Identifier", - "start": 7077, - "end": 7080, + "start": 7092, + "end": 7095, "loc": { "start": { - "line": 179, - "column": 7 + "line": 180, + "column": 57 }, "end": { - "line": 179, - "column": 10 + "line": 180, + "column": 60 }, "identifierName": "err" }, @@ -13597,640 +13477,980 @@ }, "property": { "type": "Identifier", - "start": 7081, - "end": 7086, + "start": 7096, + "end": 7103, "loc": { "start": { - "line": 179, - "column": 11 + "line": 180, + "column": 61 }, "end": { - "line": 179, - "column": 16 + "line": 180, + "column": 68 }, - "identifierName": "error" + "identifierName": "message" }, - "name": "error" + "name": "message" }, "computed": false }, - "operator": "&&", + "operator": "===", "right": { - "type": "MemberExpression", - "start": 7098, - "end": 7114, + "type": "StringLiteral", + "start": 7108, + "end": 7122, "loc": { "start": { "line": 180, - "column": 8 + "column": 73 }, "end": { "line": 180, - "column": 24 + "column": 87 } }, - "object": { + "extra": { + "rawValue": "Invalid HMAC", + "raw": "'Invalid HMAC'" + }, + "value": "Invalid HMAC" + }, + "extra": { + "parenthesized": true, + "parenStart": 7091 + } + }, + "leadingComments": null + }, + "operator": "||", + "right": { + "type": "LogicalExpression", + "start": 7167, + "end": 7379, + "loc": { + "start": { + "line": 182, + "column": 9 + }, + "end": { + "line": 185, + "column": 133 + } + }, + "left": { + "type": "LogicalExpression", + "start": 7167, + "end": 7242, + "loc": { + "start": { + "line": 182, + "column": 9 + }, + "end": { + "line": 184, + "column": 32 + } + }, + "left": { + "type": "LogicalExpression", + "start": 7167, + "end": 7206, + "loc": { + "start": { + "line": 182, + "column": 9 + }, + "end": { + "line": 183, + "column": 26 + } + }, + "left": { "type": "MemberExpression", - "start": 7098, - "end": 7107, + "start": 7167, + "end": 7176, "loc": { "start": { - "line": 180, - "column": 8 + "line": 182, + "column": 9 }, "end": { - "line": 180, - "column": 17 + "line": 182, + "column": 18 } }, "object": { "type": "Identifier", - "start": 7098, - "end": 7101, + "start": 7167, + "end": 7170, "loc": { "start": { - "line": 180, - "column": 8 + "line": 182, + "column": 9 }, "end": { - "line": 180, - "column": 11 + "line": 182, + "column": 12 }, "identifierName": "err" }, - "name": "err" + "name": "err", + "leadingComments": null }, "property": { "type": "Identifier", - "start": 7102, - "end": 7107, + "start": 7171, + "end": 7176, "loc": { "start": { - "line": 180, - "column": 12 + "line": 182, + "column": 13 }, "end": { - "line": 180, - "column": 17 + "line": 182, + "column": 18 }, "identifierName": "error" }, "name": "error" }, - "computed": false + "computed": false, + "leadingComments": null }, - "property": { - "type": "Identifier", - "start": 7108, - "end": 7114, + "operator": "&&", + "right": { + "type": "MemberExpression", + "start": 7190, + "end": 7206, "loc": { "start": { - "line": 180, - "column": 18 + "line": 183, + "column": 10 }, "end": { - "line": 180, - "column": 24 + "line": 183, + "column": 26 + } + }, + "object": { + "type": "MemberExpression", + "start": 7190, + "end": 7199, + "loc": { + "start": { + "line": 183, + "column": 10 + }, + "end": { + "line": 183, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 7190, + "end": 7193, + "loc": { + "start": { + "line": 183, + "column": 10 + }, + "end": { + "line": 183, + "column": 13 + }, + "identifierName": "err" + }, + "name": "err" + }, + "property": { + "type": "Identifier", + "start": 7194, + "end": 7199, + "loc": { + "start": { + "line": 183, + "column": 14 + }, + "end": { + "line": 183, + "column": 19 + }, + "identifierName": "error" + }, + "name": "error" }, - "identifierName": "result" + "computed": false }, - "name": "result" - }, - "computed": false - } - }, - "operator": "&&", - "right": { - "type": "MemberExpression", - "start": 7126, - "end": 7148, - "loc": { - "start": { - "line": 181, - "column": 8 + "property": { + "type": "Identifier", + "start": 7200, + "end": 7206, + "loc": { + "start": { + "line": 183, + "column": 20 + }, + "end": { + "line": 183, + "column": 26 + }, + "identifierName": "result" + }, + "name": "result" + }, + "computed": false }, - "end": { - "line": 181, - "column": 30 - } + "leadingComments": null }, - "object": { + "operator": "&&", + "right": { "type": "MemberExpression", - "start": 7126, - "end": 7142, + "start": 7220, + "end": 7242, "loc": { "start": { - "line": 181, - "column": 8 + "line": 184, + "column": 10 }, "end": { - "line": 181, - "column": 24 + "line": 184, + "column": 32 } }, "object": { "type": "MemberExpression", - "start": 7126, - "end": 7135, + "start": 7220, + "end": 7236, "loc": { "start": { - "line": 181, - "column": 8 + "line": 184, + "column": 10 }, "end": { - "line": 181, - "column": 17 + "line": 184, + "column": 26 } }, "object": { - "type": "Identifier", - "start": 7126, - "end": 7129, + "type": "MemberExpression", + "start": 7220, + "end": 7229, "loc": { "start": { - "line": 181, - "column": 8 + "line": 184, + "column": 10 }, "end": { - "line": 181, - "column": 11 + "line": 184, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 7220, + "end": 7223, + "loc": { + "start": { + "line": 184, + "column": 10 + }, + "end": { + "line": 184, + "column": 13 + }, + "identifierName": "err" }, - "identifierName": "err" + "name": "err" }, - "name": "err" + "property": { + "type": "Identifier", + "start": 7224, + "end": 7229, + "loc": { + "start": { + "line": 184, + "column": 14 + }, + "end": { + "line": 184, + "column": 19 + }, + "identifierName": "error" + }, + "name": "error" + }, + "computed": false }, "property": { "type": "Identifier", - "start": 7130, - "end": 7135, + "start": 7230, + "end": 7236, "loc": { "start": { - "line": 181, - "column": 12 + "line": 184, + "column": 20 }, "end": { - "line": 181, - "column": 17 + "line": 184, + "column": 26 }, - "identifierName": "error" + "identifierName": "result" }, - "name": "error" + "name": "result" }, "computed": false }, "property": { "type": "Identifier", - "start": 7136, - "end": 7142, + "start": 7237, + "end": 7242, "loc": { "start": { - "line": 181, - "column": 18 + "line": 184, + "column": 27 }, "end": { - "line": 181, - "column": 24 + "line": 184, + "column": 32 }, - "identifierName": "result" + "identifierName": "error" }, - "name": "result" + "name": "error" }, "computed": false }, - "property": { - "type": "Identifier", - "start": 7143, - "end": 7148, - "loc": { - "start": { - "line": 181, - "column": 25 - }, - "end": { - "line": 181, - "column": 30 - }, - "identifierName": "error" - }, - "name": "error" - }, - "computed": false - } - }, - "operator": "&&", - "right": { - "type": "LogicalExpression", - "start": 7161, - "end": 7282, - "loc": { - "start": { - "line": 182, - "column": 9 - }, - "end": { - "line": 182, - "column": 130 - } + "leadingComments": null }, - "left": { - "type": "BinaryExpression", - "start": 7161, - "end": 7220, + "operator": "&&", + "right": { + "type": "LogicalExpression", + "start": 7257, + "end": 7378, "loc": { "start": { - "line": 182, - "column": 9 + "line": 185, + "column": 11 }, "end": { - "line": 182, - "column": 68 + "line": 185, + "column": 132 } }, "left": { - "type": "MemberExpression", - "start": 7161, - "end": 7183, + "type": "BinaryExpression", + "start": 7257, + "end": 7316, "loc": { "start": { - "line": 182, - "column": 9 + "line": 185, + "column": 11 }, "end": { - "line": 182, - "column": 31 + "line": 185, + "column": 70 } }, - "object": { + "left": { "type": "MemberExpression", - "start": 7161, - "end": 7177, + "start": 7257, + "end": 7279, "loc": { "start": { - "line": 182, - "column": 9 + "line": 185, + "column": 11 }, "end": { - "line": 182, - "column": 25 + "line": 185, + "column": 33 } }, "object": { "type": "MemberExpression", - "start": 7161, - "end": 7170, + "start": 7257, + "end": 7273, "loc": { "start": { - "line": 182, - "column": 9 + "line": 185, + "column": 11 }, "end": { - "line": 182, - "column": 18 + "line": 185, + "column": 27 } }, "object": { - "type": "Identifier", - "start": 7161, - "end": 7164, + "type": "MemberExpression", + "start": 7257, + "end": 7266, "loc": { "start": { - "line": 182, - "column": 9 + "line": 185, + "column": 11 }, "end": { - "line": 182, - "column": 12 + "line": 185, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 7257, + "end": 7260, + "loc": { + "start": { + "line": 185, + "column": 11 + }, + "end": { + "line": 185, + "column": 14 + }, + "identifierName": "err" }, - "identifierName": "err" + "name": "err" }, - "name": "err" + "property": { + "type": "Identifier", + "start": 7261, + "end": 7266, + "loc": { + "start": { + "line": 185, + "column": 15 + }, + "end": { + "line": 185, + "column": 20 + }, + "identifierName": "error" + }, + "name": "error" + }, + "computed": false }, "property": { "type": "Identifier", - "start": 7165, - "end": 7170, + "start": 7267, + "end": 7273, "loc": { "start": { - "line": 182, - "column": 13 + "line": 185, + "column": 21 }, "end": { - "line": 182, - "column": 18 + "line": 185, + "column": 27 }, - "identifierName": "error" + "identifierName": "result" }, - "name": "error" + "name": "result" }, "computed": false }, "property": { "type": "Identifier", - "start": 7171, - "end": 7177, + "start": 7274, + "end": 7279, "loc": { "start": { - "line": 182, - "column": 19 + "line": 185, + "column": 28 }, "end": { - "line": 182, - "column": 25 + "line": 185, + "column": 33 }, - "identifierName": "result" + "identifierName": "error" }, - "name": "result" + "name": "error" }, "computed": false }, - "property": { - "type": "Identifier", - "start": 7178, - "end": 7183, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 7284, + "end": 7316, "loc": { "start": { - "line": 182, - "column": 26 + "line": 185, + "column": 38 }, "end": { - "line": 182, - "column": 31 - }, - "identifierName": "error" + "line": 185, + "column": 70 + } }, - "name": "error" - }, - "computed": false - }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 7188, - "end": 7220, - "loc": { - "start": { - "line": 182, - "column": 36 + "extra": { + "rawValue": "InvalidApplicationKeyException", + "raw": "'InvalidApplicationKeyException'" }, - "end": { - "line": 182, - "column": 68 - } - }, - "extra": { - "rawValue": "InvalidApplicationKeyException", - "raw": "'InvalidApplicationKeyException'" - }, - "value": "InvalidApplicationKeyException" - } - }, - "operator": "||", - "right": { - "type": "BinaryExpression", - "start": 7224, - "end": 7282, - "loc": { - "start": { - "line": 182, - "column": 72 - }, - "end": { - "line": 182, - "column": 130 + "value": "InvalidApplicationKeyException" } }, - "left": { - "type": "MemberExpression", - "start": 7224, - "end": 7246, + "operator": "||", + "right": { + "type": "BinaryExpression", + "start": 7320, + "end": 7378, "loc": { "start": { - "line": 182, - "column": 72 + "line": 185, + "column": 74 }, "end": { - "line": 182, - "column": 94 + "line": 185, + "column": 132 } }, - "object": { + "left": { "type": "MemberExpression", - "start": 7224, - "end": 7240, + "start": 7320, + "end": 7342, "loc": { "start": { - "line": 182, - "column": 72 + "line": 185, + "column": 74 }, "end": { - "line": 182, - "column": 88 + "line": 185, + "column": 96 } }, "object": { "type": "MemberExpression", - "start": 7224, - "end": 7233, + "start": 7320, + "end": 7336, "loc": { "start": { - "line": 182, - "column": 72 + "line": 185, + "column": 74 }, "end": { - "line": 182, - "column": 81 + "line": 185, + "column": 90 } }, "object": { - "type": "Identifier", - "start": 7224, - "end": 7227, + "type": "MemberExpression", + "start": 7320, + "end": 7329, "loc": { "start": { - "line": 182, - "column": 72 + "line": 185, + "column": 74 }, "end": { - "line": 182, - "column": 75 + "line": 185, + "column": 83 + } + }, + "object": { + "type": "Identifier", + "start": 7320, + "end": 7323, + "loc": { + "start": { + "line": 185, + "column": 74 + }, + "end": { + "line": 185, + "column": 77 + }, + "identifierName": "err" }, - "identifierName": "err" + "name": "err" }, - "name": "err" + "property": { + "type": "Identifier", + "start": 7324, + "end": 7329, + "loc": { + "start": { + "line": 185, + "column": 78 + }, + "end": { + "line": 185, + "column": 83 + }, + "identifierName": "error" + }, + "name": "error" + }, + "computed": false }, "property": { "type": "Identifier", - "start": 7228, - "end": 7233, + "start": 7330, + "end": 7336, "loc": { "start": { - "line": 182, - "column": 76 + "line": 185, + "column": 84 }, "end": { - "line": 182, - "column": 81 + "line": 185, + "column": 90 }, - "identifierName": "error" + "identifierName": "result" }, - "name": "error" + "name": "result" }, "computed": false }, "property": { "type": "Identifier", - "start": 7234, - "end": 7240, + "start": 7337, + "end": 7342, "loc": { "start": { - "line": 182, - "column": 82 + "line": 185, + "column": 91 }, "end": { - "line": 182, - "column": 88 + "line": 185, + "column": 96 }, - "identifierName": "result" + "identifierName": "error" }, - "name": "result" + "name": "error" }, "computed": false }, - "property": { - "type": "Identifier", - "start": 7241, - "end": 7246, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 7347, + "end": 7378, "loc": { "start": { - "line": 182, - "column": 89 + "line": 185, + "column": 101 }, "end": { - "line": 182, - "column": 94 - }, - "identifierName": "error" + "line": 185, + "column": 132 + } }, - "name": "error" - }, - "computed": false + "extra": { + "rawValue": "InvalidHMACSignatureException", + "raw": "'InvalidHMACSignatureException'" + }, + "value": "InvalidHMACSignatureException" + } }, - "operator": "===", - "right": { - "type": "StringLiteral", - "start": 7251, - "end": 7282, + "extra": { + "parenthesized": true, + "parenStart": 7256 + } + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " CDK error managment", + "start": 7135, + "end": 7157, "loc": { "start": { - "line": 182, - "column": 99 + "line": 181, + "column": 8 }, "end": { - "line": 182, - "column": 130 + "line": 181, + "column": 30 } + } + } + ], + "extra": { + "parenthesized": true, + "parenStart": 7166 + } + }, + "leadingComments": null + }, + "operator": "||", + "right": { + "type": "LogicalExpression", + "start": 7440, + "end": 7485, + "loc": { + "start": { + "line": 187, + "column": 9 + }, + "end": { + "line": 187, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 7440, + "end": 7448, + "loc": { + "start": { + "line": 187, + "column": 9 + }, + "end": { + "line": 187, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 7440, + "end": 7443, + "loc": { + "start": { + "line": 187, + "column": 9 }, - "extra": { - "rawValue": "InvalidHMACSignatureException", - "raw": "'InvalidHMACSignatureException'" + "end": { + "line": 187, + "column": 12 + }, + "identifierName": "err" + }, + "name": "err", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 7444, + "end": 7448, + "loc": { + "start": { + "line": 187, + "column": 13 }, - "value": "InvalidHMACSignatureException" + "end": { + "line": 187, + "column": 17 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false, + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 7452, + "end": 7485, + "loc": { + "start": { + "line": 187, + "column": 21 + }, + "end": { + "line": 187, + "column": 54 } }, - "extra": { - "parenthesized": true, - "parenStart": 7160 + "left": { + "type": "MemberExpression", + "start": 7452, + "end": 7460, + "loc": { + "start": { + "line": 187, + "column": 21 + }, + "end": { + "line": 187, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 7452, + "end": 7455, + "loc": { + "start": { + "line": 187, + "column": 21 + }, + "end": { + "line": 187, + "column": 24 + }, + "identifierName": "err" + }, + "name": "err" + }, + "property": { + "type": "Identifier", + "start": 7456, + "end": 7460, + "loc": { + "start": { + "line": 187, + "column": 25 + }, + "end": { + "line": 187, + "column": 29 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 7465, + "end": 7485, + "loc": { + "start": { + "line": 187, + "column": 34 + }, + "end": { + "line": 187, + "column": 54 + } + }, + "extra": { + "rawValue": "access.not.granted", + "raw": "'access.not.granted'" + }, + "value": "access.not.granted" } }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " IInk error managment after refactor", + "start": 7392, + "end": 7430, + "loc": { + "start": { + "line": 186, + "column": 8 + }, + "end": { + "line": 186, + "column": 46 + } + } + } + ], "extra": { "parenthesized": true, - "parenStart": 7076 + "parenStart": 7439 } - } + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " IInk error managment before refactor", + "start": 6995, + "end": 7034, + "loc": { + "start": { + "line": 179, + "column": 8 + }, + "end": { + "line": 179, + "column": 47 + } + } + } + ] }, "consequent": { "type": "BlockStatement", - "start": 7293, - "end": 7373, + "start": 7488, + "end": 7568, "loc": { "start": { - "line": 183, - "column": 9 + "line": 187, + "column": 57 }, "end": { - "line": 185, + "line": 189, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 7303, - "end": 7365, + "start": 7498, + "end": 7560, "loc": { "start": { - "line": 184, + "line": 188, "column": 8 }, "end": { - "line": 184, + "line": 188, "column": 70 } }, "expression": { "type": "AssignmentExpression", - "start": 7303, - "end": 7364, + "start": 7498, + "end": 7559, "loc": { "start": { - "line": 184, + "line": 188, "column": 8 }, "end": { - "line": 184, + "line": 188, "column": 69 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 7303, - "end": 7328, + "start": 7498, + "end": 7523, "loc": { "start": { - "line": 184, + "line": 188, "column": 8 }, "end": { - "line": 184, + "line": 188, "column": 33 } }, "object": { "type": "MemberExpression", - "start": 7303, - "end": 7318, + "start": 7498, + "end": 7513, "loc": { "start": { - "line": 184, + "line": 188, "column": 8 }, "end": { - "line": 184, + "line": 188, "column": 23 } }, "object": { "type": "Identifier", - "start": 7303, - "end": 7312, + "start": 7498, + "end": 7507, "loc": { "start": { - "line": 184, + "line": 188, "column": 8 }, "end": { - "line": 184, + "line": 188, "column": 17 }, "identifierName": "editorRef" @@ -14239,15 +14459,15 @@ }, "property": { "type": "Identifier", - "start": 7313, - "end": 7318, + "start": 7508, + "end": 7513, "loc": { "start": { - "line": 184, + "line": 188, "column": 18 }, "end": { - "line": 184, + "line": 188, "column": 23 }, "identifierName": "error" @@ -14258,15 +14478,15 @@ }, "property": { "type": "Identifier", - "start": 7319, - "end": 7328, + "start": 7514, + "end": 7523, "loc": { "start": { - "line": 184, + "line": 188, "column": 24 }, "end": { - "line": 184, + "line": 188, "column": 33 }, "identifierName": "innerText" @@ -14277,43 +14497,43 @@ }, "right": { "type": "MemberExpression", - "start": 7331, - "end": 7364, + "start": 7526, + "end": 7559, "loc": { "start": { - "line": 184, + "line": 188, "column": 36 }, "end": { - "line": 184, + "line": 188, "column": 69 } }, "object": { "type": "MemberExpression", - "start": 7331, - "end": 7346, + "start": 7526, + "end": 7541, "loc": { "start": { - "line": 184, + "line": 188, "column": 36 }, "end": { - "line": 184, + "line": 188, "column": 51 } }, "object": { "type": "Identifier", - "start": 7331, - "end": 7340, + "start": 7526, + "end": 7535, "loc": { "start": { - "line": 184, + "line": 188, "column": 36 }, "end": { - "line": 184, + "line": 188, "column": 45 }, "identifierName": "Constants" @@ -14322,15 +14542,15 @@ }, "property": { "type": "Identifier", - "start": 7341, - "end": 7346, + "start": 7536, + "end": 7541, "loc": { "start": { - "line": 184, + "line": 188, "column": 46 }, "end": { - "line": 184, + "line": 188, "column": 51 }, "identifierName": "Error" @@ -14341,15 +14561,15 @@ }, "property": { "type": "Identifier", - "start": 7347, - "end": 7364, + "start": 7542, + "end": 7559, "loc": { "start": { - "line": 184, + "line": 188, "column": 52 }, "end": { - "line": 184, + "line": 188, "column": 69 }, "identifierName": "WRONG_CREDENTIALS" @@ -14365,187 +14585,359 @@ }, "alternate": { "type": "IfStatement", - "start": 7379, - "end": 7664, + "start": 7574, + "end": 7938, "loc": { "start": { - "line": 185, + "line": 189, "column": 13 }, "end": { - "line": 189, + "line": 194, "column": 7 } }, "test": { - "type": "BinaryExpression", - "start": 7383, - "end": 7449, + "type": "LogicalExpression", + "start": 7578, + "end": 7700, "loc": { "start": { - "line": 185, + "line": 189, "column": 17 }, "end": { - "line": 185, - "column": 83 + "line": 190, + "column": 52 } }, "left": { - "type": "MemberExpression", - "start": 7383, - "end": 7394, + "type": "BinaryExpression", + "start": 7578, + "end": 7644, "loc": { "start": { - "line": 185, + "line": 189, "column": 17 }, "end": { - "line": 185, - "column": 28 + "line": 189, + "column": 83 } }, - "object": { - "type": "Identifier", - "start": 7383, - "end": 7386, + "left": { + "type": "MemberExpression", + "start": 7578, + "end": 7589, "loc": { "start": { - "line": 185, + "line": 189, "column": 17 }, "end": { - "line": 185, - "column": 20 + "line": 189, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 7578, + "end": 7581, + "loc": { + "start": { + "line": 189, + "column": 17 + }, + "end": { + "line": 189, + "column": 20 + }, + "identifierName": "err" }, - "identifierName": "err" + "name": "err" }, - "name": "err" + "property": { + "type": "Identifier", + "start": 7582, + "end": 7589, + "loc": { + "start": { + "line": 189, + "column": 21 + }, + "end": { + "line": 189, + "column": 28 + }, + "identifierName": "message" + }, + "name": "message" + }, + "computed": false }, - "property": { - "type": "Identifier", - "start": 7387, - "end": 7394, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 7594, + "end": 7644, "loc": { "start": { - "line": 185, - "column": 21 + "line": 189, + "column": 33 }, "end": { - "line": 185, - "column": 28 - }, - "identifierName": "message" + "line": 189, + "column": 83 + } }, - "name": "message" - }, - "computed": false + "extra": { + "rawValue": "Session is too old. Max Session Duration Reached", + "raw": "'Session is too old. Max Session Duration Reached'" + }, + "value": "Session is too old. Max Session Duration Reached" + } }, - "operator": "===", + "operator": "||", "right": { - "type": "StringLiteral", - "start": 7399, - "end": 7449, + "type": "LogicalExpression", + "start": 7657, + "end": 7699, "loc": { "start": { - "line": 185, - "column": 33 + "line": 190, + "column": 9 }, "end": { - "line": 185, - "column": 83 + "line": 190, + "column": 51 } }, - "extra": { - "rawValue": "Session is too old. Max Session Duration Reached", - "raw": "'Session is too old. Max Session Duration Reached'" - }, - "value": "Session is too old. Max Session Duration Reached" - } - }, - "consequent": { - "type": "BlockStatement", - "start": 7451, - "end": 7521, - "loc": { - "start": { - "line": 185, - "column": 85 - }, - "end": { - "line": 187, - "column": 7 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 7461, - "end": 7513, + "left": { + "type": "MemberExpression", + "start": 7657, + "end": 7665, "loc": { "start": { - "line": 186, - "column": 8 + "line": 190, + "column": 9 }, "end": { - "line": 186, - "column": 60 + "line": 190, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 7657, + "end": 7660, + "loc": { + "start": { + "line": 190, + "column": 9 + }, + "end": { + "line": 190, + "column": 12 + }, + "identifierName": "err" + }, + "name": "err" + }, + "property": { + "type": "Identifier", + "start": 7661, + "end": 7665, + "loc": { + "start": { + "line": 190, + "column": 13 + }, + "end": { + "line": 190, + "column": 17 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 7669, + "end": 7699, + "loc": { + "start": { + "line": 190, + "column": 21 + }, + "end": { + "line": 190, + "column": 51 + } + }, + "left": { + "type": "MemberExpression", + "start": 7669, + "end": 7677, + "loc": { + "start": { + "line": 190, + "column": 21 + }, + "end": { + "line": 190, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 7669, + "end": 7672, + "loc": { + "start": { + "line": 190, + "column": 21 + }, + "end": { + "line": 190, + "column": 24 + }, + "identifierName": "err" + }, + "name": "err" + }, + "property": { + "type": "Identifier", + "start": 7673, + "end": 7677, + "loc": { + "start": { + "line": 190, + "column": 25 + }, + "end": { + "line": 190, + "column": 29 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 7682, + "end": 7699, + "loc": { + "start": { + "line": 190, + "column": 34 + }, + "end": { + "line": 190, + "column": 51 + } + }, + "extra": { + "rawValue": "session.too.old", + "raw": "'session.too.old'" + }, + "value": "session.too.old" + } + }, + "extra": { + "parenthesized": true, + "parenStart": 7656 + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 7702, + "end": 7772, + "loc": { + "start": { + "line": 190, + "column": 54 + }, + "end": { + "line": 192, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7712, + "end": 7764, + "loc": { + "start": { + "line": 191, + "column": 8 + }, + "end": { + "line": 191, + "column": 60 } }, "expression": { "type": "AssignmentExpression", - "start": 7461, - "end": 7512, + "start": 7712, + "end": 7763, "loc": { "start": { - "line": 186, + "line": 191, "column": 8 }, "end": { - "line": 186, + "line": 191, "column": 59 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 7461, - "end": 7486, + "start": 7712, + "end": 7737, "loc": { "start": { - "line": 186, + "line": 191, "column": 8 }, "end": { - "line": 186, + "line": 191, "column": 33 } }, "object": { "type": "MemberExpression", - "start": 7461, - "end": 7476, + "start": 7712, + "end": 7727, "loc": { "start": { - "line": 186, + "line": 191, "column": 8 }, "end": { - "line": 186, + "line": 191, "column": 23 } }, "object": { "type": "Identifier", - "start": 7461, - "end": 7470, + "start": 7712, + "end": 7721, "loc": { "start": { - "line": 186, + "line": 191, "column": 8 }, "end": { - "line": 186, + "line": 191, "column": 17 }, "identifierName": "editorRef" @@ -14554,15 +14946,15 @@ }, "property": { "type": "Identifier", - "start": 7471, - "end": 7476, + "start": 7722, + "end": 7727, "loc": { "start": { - "line": 186, + "line": 191, "column": 18 }, "end": { - "line": 186, + "line": 191, "column": 23 }, "identifierName": "error" @@ -14573,15 +14965,15 @@ }, "property": { "type": "Identifier", - "start": 7477, - "end": 7486, + "start": 7728, + "end": 7737, "loc": { "start": { - "line": 186, + "line": 191, "column": 24 }, "end": { - "line": 186, + "line": 191, "column": 33 }, "identifierName": "innerText" @@ -14592,43 +14984,43 @@ }, "right": { "type": "MemberExpression", - "start": 7489, - "end": 7512, + "start": 7740, + "end": 7763, "loc": { "start": { - "line": 186, + "line": 191, "column": 36 }, "end": { - "line": 186, + "line": 191, "column": 59 } }, "object": { "type": "MemberExpression", - "start": 7489, - "end": 7504, + "start": 7740, + "end": 7755, "loc": { "start": { - "line": 186, + "line": 191, "column": 36 }, "end": { - "line": 186, + "line": 191, "column": 51 } }, "object": { "type": "Identifier", - "start": 7489, - "end": 7498, + "start": 7740, + "end": 7749, "loc": { "start": { - "line": 186, + "line": 191, "column": 36 }, "end": { - "line": 186, + "line": 191, "column": 45 }, "identifierName": "Constants" @@ -14637,15 +15029,15 @@ }, "property": { "type": "Identifier", - "start": 7499, - "end": 7504, + "start": 7750, + "end": 7755, "loc": { "start": { - "line": 186, + "line": 191, "column": 46 }, "end": { - "line": 186, + "line": 191, "column": 51 }, "identifierName": "Error" @@ -14656,15 +15048,15 @@ }, "property": { "type": "Identifier", - "start": 7505, - "end": 7512, + "start": 7756, + "end": 7763, "loc": { "start": { - "line": 186, + "line": 191, "column": 52 }, "end": { - "line": 186, + "line": 191, "column": 59 }, "identifierName": "TOO_OLD" @@ -14680,151 +15072,257 @@ }, "alternate": { "type": "IfStatement", - "start": 7527, - "end": 7664, + "start": 7778, + "end": 7938, "loc": { "start": { - "line": 187, + "line": 192, "column": 13 }, "end": { - "line": 189, + "line": 194, "column": 7 } }, "test": { "type": "LogicalExpression", - "start": 7531, - "end": 7586, + "start": 7782, + "end": 7860, "loc": { "start": { - "line": 187, + "line": 192, "column": 17 }, "end": { - "line": 187, - "column": 72 + "line": 192, + "column": 95 } }, "left": { - "type": "MemberExpression", - "start": 7531, - "end": 7542, + "type": "LogicalExpression", + "start": 7783, + "end": 7815, "loc": { "start": { - "line": 187, - "column": 17 + "line": 192, + "column": 18 }, "end": { - "line": 187, - "column": 28 + "line": 192, + "column": 50 } }, - "object": { - "type": "Identifier", - "start": 7531, - "end": 7534, + "left": { + "type": "MemberExpression", + "start": 7783, + "end": 7794, "loc": { "start": { - "line": 187, - "column": 17 + "line": 192, + "column": 18 }, "end": { - "line": 187, - "column": 20 + "line": 192, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 7783, + "end": 7786, + "loc": { + "start": { + "line": 192, + "column": 18 + }, + "end": { + "line": 192, + "column": 21 + }, + "identifierName": "err" }, - "identifierName": "err" + "name": "err" }, - "name": "err" + "property": { + "type": "Identifier", + "start": 7787, + "end": 7794, + "loc": { + "start": { + "line": 192, + "column": 22 + }, + "end": { + "line": 192, + "column": 29 + }, + "identifierName": "message" + }, + "name": "message" + }, + "computed": false }, - "property": { - "type": "Identifier", - "start": 7535, - "end": 7542, + "operator": "||", + "right": { + "type": "BinaryExpression", + "start": 7798, + "end": 7815, "loc": { "start": { - "line": 187, - "column": 21 + "line": 192, + "column": 33 }, "end": { - "line": 187, - "column": 28 + "line": 192, + "column": 50 + } + }, + "left": { + "type": "MemberExpression", + "start": 7798, + "end": 7806, + "loc": { + "start": { + "line": 192, + "column": 33 + }, + "end": { + "line": 192, + "column": 41 + } }, - "identifierName": "message" + "object": { + "type": "Identifier", + "start": 7798, + "end": 7801, + "loc": { + "start": { + "line": 192, + "column": 33 + }, + "end": { + "line": 192, + "column": 36 + }, + "identifierName": "err" + }, + "name": "err" + }, + "property": { + "type": "Identifier", + "start": 7802, + "end": 7806, + "loc": { + "start": { + "line": 192, + "column": 37 + }, + "end": { + "line": 192, + "column": 41 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false }, - "name": "message" + "operator": "===", + "right": { + "type": "NumericLiteral", + "start": 7811, + "end": 7815, + "loc": { + "start": { + "line": 192, + "column": 46 + }, + "end": { + "line": 192, + "column": 50 + } + }, + "extra": { + "rawValue": 1006, + "raw": "1006" + }, + "value": 1006 + } }, - "computed": false + "extra": { + "parenthesized": true, + "parenStart": 7782 + } }, "operator": "&&", "right": { "type": "BinaryExpression", - "start": 7546, - "end": 7586, + "start": 7820, + "end": 7860, "loc": { "start": { - "line": 187, - "column": 32 + "line": 192, + "column": 55 }, "end": { - "line": 187, - "column": 72 + "line": 192, + "column": 95 } }, "left": { "type": "MemberExpression", - "start": 7546, - "end": 7575, + "start": 7820, + "end": 7849, "loc": { "start": { - "line": 187, - "column": 32 + "line": 192, + "column": 55 }, "end": { - "line": 187, - "column": 61 + "line": 192, + "column": 84 } }, "object": { "type": "MemberExpression", - "start": 7546, - "end": 7567, + "start": 7820, + "end": 7841, "loc": { "start": { - "line": 187, - "column": 32 + "line": 192, + "column": 55 }, "end": { - "line": 187, - "column": 53 + "line": 192, + "column": 76 } }, "object": { "type": "MemberExpression", - "start": 7546, - "end": 7561, + "start": 7820, + "end": 7835, "loc": { "start": { - "line": 187, - "column": 32 + "line": 192, + "column": 55 }, "end": { - "line": 187, - "column": 47 + "line": 192, + "column": 70 } }, "object": { "type": "Identifier", - "start": 7546, - "end": 7555, + "start": 7820, + "end": 7829, "loc": { "start": { - "line": 187, - "column": 32 + "line": 192, + "column": 55 }, "end": { - "line": 187, - "column": 41 + "line": 192, + "column": 64 }, "identifierName": "editorRef" }, @@ -14832,16 +15330,16 @@ }, "property": { "type": "Identifier", - "start": 7556, - "end": 7561, + "start": 7830, + "end": 7835, "loc": { "start": { - "line": 187, - "column": 42 + "line": 192, + "column": 65 }, "end": { - "line": 187, - "column": 47 + "line": 192, + "column": 70 }, "identifierName": "error" }, @@ -14851,16 +15349,16 @@ }, "property": { "type": "Identifier", - "start": 7562, - "end": 7567, + "start": 7836, + "end": 7841, "loc": { "start": { - "line": 187, - "column": 48 + "line": 192, + "column": 71 }, "end": { - "line": 187, - "column": 53 + "line": 192, + "column": 76 }, "identifierName": "style" }, @@ -14870,16 +15368,16 @@ }, "property": { "type": "Identifier", - "start": 7568, - "end": 7575, + "start": 7842, + "end": 7849, "loc": { "start": { - "line": 187, - "column": 54 + "line": 192, + "column": 77 }, "end": { - "line": 187, - "column": 61 + "line": 192, + "column": 84 }, "identifierName": "display" }, @@ -14890,16 +15388,16 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 7580, - "end": 7586, + "start": 7854, + "end": 7860, "loc": { "start": { - "line": 187, - "column": 66 + "line": 192, + "column": 89 }, "end": { - "line": 187, - "column": 72 + "line": 192, + "column": 95 } }, "extra": { @@ -14912,87 +15410,87 @@ }, "consequent": { "type": "BlockStatement", - "start": 7588, - "end": 7664, + "start": 7862, + "end": 7938, "loc": { "start": { - "line": 187, - "column": 74 + "line": 192, + "column": 97 }, "end": { - "line": 189, + "line": 194, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 7598, - "end": 7656, + "start": 7872, + "end": 7930, "loc": { "start": { - "line": 188, + "line": 193, "column": 8 }, "end": { - "line": 188, + "line": 193, "column": 66 } }, "expression": { "type": "AssignmentExpression", - "start": 7598, - "end": 7655, + "start": 7872, + "end": 7929, "loc": { "start": { - "line": 188, + "line": 193, "column": 8 }, "end": { - "line": 188, + "line": 193, "column": 65 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 7598, - "end": 7623, + "start": 7872, + "end": 7897, "loc": { "start": { - "line": 188, + "line": 193, "column": 8 }, "end": { - "line": 188, + "line": 193, "column": 33 } }, "object": { "type": "MemberExpression", - "start": 7598, - "end": 7613, + "start": 7872, + "end": 7887, "loc": { "start": { - "line": 188, + "line": 193, "column": 8 }, "end": { - "line": 188, + "line": 193, "column": 23 } }, "object": { "type": "Identifier", - "start": 7598, - "end": 7607, + "start": 7872, + "end": 7881, "loc": { "start": { - "line": 188, + "line": 193, "column": 8 }, "end": { - "line": 188, + "line": 193, "column": 17 }, "identifierName": "editorRef" @@ -15001,15 +15499,15 @@ }, "property": { "type": "Identifier", - "start": 7608, - "end": 7613, + "start": 7882, + "end": 7887, "loc": { "start": { - "line": 188, + "line": 193, "column": 18 }, "end": { - "line": 188, + "line": 193, "column": 23 }, "identifierName": "error" @@ -15020,15 +15518,15 @@ }, "property": { "type": "Identifier", - "start": 7614, - "end": 7623, + "start": 7888, + "end": 7897, "loc": { "start": { - "line": 188, + "line": 193, "column": 24 }, "end": { - "line": 188, + "line": 193, "column": 33 }, "identifierName": "innerText" @@ -15039,43 +15537,43 @@ }, "right": { "type": "MemberExpression", - "start": 7626, - "end": 7655, + "start": 7900, + "end": 7929, "loc": { "start": { - "line": 188, + "line": 193, "column": 36 }, "end": { - "line": 188, + "line": 193, "column": 65 } }, "object": { "type": "MemberExpression", - "start": 7626, - "end": 7641, + "start": 7900, + "end": 7915, "loc": { "start": { - "line": 188, + "line": 193, "column": 36 }, "end": { - "line": 188, + "line": 193, "column": 51 } }, "object": { "type": "Identifier", - "start": 7626, - "end": 7635, + "start": 7900, + "end": 7909, "loc": { "start": { - "line": 188, + "line": 193, "column": 36 }, "end": { - "line": 188, + "line": 193, "column": 45 }, "identifierName": "Constants" @@ -15084,15 +15582,15 @@ }, "property": { "type": "Identifier", - "start": 7636, - "end": 7641, + "start": 7910, + "end": 7915, "loc": { "start": { - "line": 188, + "line": 193, "column": 46 }, "end": { - "line": 188, + "line": 193, "column": 51 }, "identifierName": "Error" @@ -15103,15 +15601,15 @@ }, "property": { "type": "Identifier", - "start": 7642, - "end": 7655, + "start": 7916, + "end": 7929, "loc": { "start": { - "line": 188, + "line": 193, "column": 52 }, "end": { - "line": 188, + "line": 193, "column": 65 }, "identifierName": "NOT_REACHABLE" @@ -15131,113 +15629,113 @@ }, { "type": "IfStatement", - "start": 7671, - "end": 8117, + "start": 7945, + "end": 8391, "loc": { "start": { - "line": 190, + "line": 195, "column": 6 }, "end": { - "line": 196, + "line": 201, "column": 7 } }, "test": { "type": "LogicalExpression", - "start": 7675, - "end": 7848, + "start": 7949, + "end": 8122, "loc": { "start": { - "line": 190, + "line": 195, "column": 10 }, "end": { - "line": 190, + "line": 195, "column": 183 } }, "left": { "type": "LogicalExpression", - "start": 7676, - "end": 7787, + "start": 7950, + "end": 8061, "loc": { "start": { - "line": 190, + "line": 195, "column": 11 }, "end": { - "line": 190, + "line": 195, "column": 122 } }, "left": { "type": "LogicalExpression", - "start": 7676, - "end": 7750, + "start": 7950, + "end": 8024, "loc": { "start": { - "line": 190, + "line": 195, "column": 11 }, "end": { - "line": 190, + "line": 195, "column": 85 } }, "left": { "type": "BinaryExpression", - "start": 7676, - "end": 7729, + "start": 7950, + "end": 8003, "loc": { "start": { - "line": 190, + "line": 195, "column": 11 }, "end": { - "line": 190, + "line": 195, "column": 64 } }, "left": { "type": "MemberExpression", - "start": 7676, - "end": 7701, + "start": 7950, + "end": 7975, "loc": { "start": { - "line": 190, + "line": 195, "column": 11 }, "end": { - "line": 190, + "line": 195, "column": 36 } }, "object": { "type": "MemberExpression", - "start": 7676, - "end": 7691, + "start": 7950, + "end": 7965, "loc": { "start": { - "line": 190, + "line": 195, "column": 11 }, "end": { - "line": 190, + "line": 195, "column": 26 } }, "object": { "type": "Identifier", - "start": 7676, - "end": 7685, + "start": 7950, + "end": 7959, "loc": { "start": { - "line": 190, + "line": 195, "column": 11 }, "end": { - "line": 190, + "line": 195, "column": 20 }, "identifierName": "editorRef" @@ -15246,15 +15744,15 @@ }, "property": { "type": "Identifier", - "start": 7686, - "end": 7691, + "start": 7960, + "end": 7965, "loc": { "start": { - "line": 190, + "line": 195, "column": 21 }, "end": { - "line": 190, + "line": 195, "column": 26 }, "identifierName": "error" @@ -15265,15 +15763,15 @@ }, "property": { "type": "Identifier", - "start": 7692, - "end": 7701, + "start": 7966, + "end": 7975, "loc": { "start": { - "line": 190, + "line": 195, "column": 27 }, "end": { - "line": 190, + "line": 195, "column": 36 }, "identifierName": "innerText" @@ -15285,43 +15783,43 @@ "operator": "===", "right": { "type": "MemberExpression", - "start": 7706, - "end": 7729, + "start": 7980, + "end": 8003, "loc": { "start": { - "line": 190, + "line": 195, "column": 41 }, "end": { - "line": 190, + "line": 195, "column": 64 } }, "object": { "type": "MemberExpression", - "start": 7706, - "end": 7721, + "start": 7980, + "end": 7995, "loc": { "start": { - "line": 190, + "line": 195, "column": 41 }, "end": { - "line": 190, + "line": 195, "column": 56 } }, "object": { "type": "Identifier", - "start": 7706, - "end": 7715, + "start": 7980, + "end": 7989, "loc": { "start": { - "line": 190, + "line": 195, "column": 41 }, "end": { - "line": 190, + "line": 195, "column": 50 }, "identifierName": "Constants" @@ -15330,15 +15828,15 @@ }, "property": { "type": "Identifier", - "start": 7716, - "end": 7721, + "start": 7990, + "end": 7995, "loc": { "start": { - "line": 190, + "line": 195, "column": 51 }, "end": { - "line": 190, + "line": 195, "column": 56 }, "identifierName": "Error" @@ -15349,15 +15847,15 @@ }, "property": { "type": "Identifier", - "start": 7722, - "end": 7729, + "start": 7996, + "end": 8003, "loc": { "start": { - "line": 190, + "line": 195, "column": 57 }, "end": { - "line": 190, + "line": 195, "column": 64 }, "identifierName": "TOO_OLD" @@ -15370,43 +15868,43 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 7733, - "end": 7750, + "start": 8007, + "end": 8024, "loc": { "start": { - "line": 190, + "line": 195, "column": 68 }, "end": { - "line": 190, + "line": 195, "column": 85 } }, "left": { "type": "MemberExpression", - "start": 7733, - "end": 7741, + "start": 8007, + "end": 8015, "loc": { "start": { - "line": 190, + "line": 195, "column": 68 }, "end": { - "line": 190, + "line": 195, "column": 76 } }, "object": { "type": "Identifier", - "start": 7733, - "end": 7736, + "start": 8007, + "end": 8010, "loc": { "start": { - "line": 190, + "line": 195, "column": 68 }, "end": { - "line": 190, + "line": 195, "column": 71 }, "identifierName": "err" @@ -15415,15 +15913,15 @@ }, "property": { "type": "Identifier", - "start": 7737, - "end": 7741, + "start": 8011, + "end": 8015, "loc": { "start": { - "line": 190, + "line": 195, "column": 72 }, "end": { - "line": 190, + "line": 195, "column": 76 }, "identifierName": "code" @@ -15435,66 +15933,66 @@ "operator": "===", "right": { "type": "NumericLiteral", - "start": 7746, - "end": 7750, + "start": 8020, + "end": 8024, "loc": { "start": { - "line": 190, + "line": 195, "column": 81 }, "end": { - "line": 190, + "line": 195, "column": 85 } }, "extra": { - "rawValue": 1006, - "raw": "1006" + "rawValue": 1000, + "raw": "1000" }, - "value": 1006 + "value": 1000 } } }, "operator": "||", "right": { "type": "BinaryExpression", - "start": 7754, - "end": 7787, + "start": 8028, + "end": 8061, "loc": { "start": { - "line": 190, + "line": 195, "column": 89 }, "end": { - "line": 190, + "line": 195, "column": 122 } }, "left": { "type": "MemberExpression", - "start": 7754, - "end": 7764, + "start": 8028, + "end": 8038, "loc": { "start": { - "line": 190, + "line": 195, "column": 89 }, "end": { - "line": 190, + "line": 195, "column": 99 } }, "object": { "type": "Identifier", - "start": 7754, - "end": 7757, + "start": 8028, + "end": 8031, "loc": { "start": { - "line": 190, + "line": 195, "column": 89 }, "end": { - "line": 190, + "line": 195, "column": 92 }, "identifierName": "err" @@ -15503,15 +16001,15 @@ }, "property": { "type": "Identifier", - "start": 7758, - "end": 7764, + "start": 8032, + "end": 8038, "loc": { "start": { - "line": 190, + "line": 195, "column": 93 }, "end": { - "line": 190, + "line": 195, "column": 99 }, "identifierName": "reason" @@ -15523,15 +16021,15 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 7769, - "end": 7787, + "start": 8043, + "end": 8061, "loc": { "start": { - "line": 190, + "line": 195, "column": 104 }, "end": { - "line": 190, + "line": 195, "column": 122 } }, @@ -15544,49 +16042,49 @@ }, "extra": { "parenthesized": true, - "parenStart": 7675 + "parenStart": 7949 } }, "operator": "&&", "right": { "type": "CallExpression", - "start": 7792, - "end": 7848, + "start": 8066, + "end": 8122, "loc": { "start": { - "line": 190, + "line": 195, "column": 127 }, "end": { - "line": 190, + "line": 195, "column": 183 } }, "callee": { "type": "MemberExpression", - "start": 7792, - "end": 7822, + "start": 8066, + "end": 8096, "loc": { "start": { - "line": 190, + "line": 195, "column": 127 }, "end": { - "line": 190, + "line": 195, "column": 157 } }, "object": { "type": "Identifier", - "start": 7792, - "end": 7809, + "start": 8066, + "end": 8083, "loc": { "start": { - "line": 190, + "line": 195, "column": 127 }, "end": { - "line": 190, + "line": 195, "column": 144 }, "identifierName": "RecognizerContext" @@ -15595,15 +16093,15 @@ }, "property": { "type": "Identifier", - "start": 7810, - "end": 7822, + "start": 8084, + "end": 8096, "loc": { "start": { - "line": 190, + "line": 195, "column": 145 }, "end": { - "line": 190, + "line": 195, "column": 157 }, "identifierName": "canReconnect" @@ -15615,29 +16113,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 7823, - "end": 7847, + "start": 8097, + "end": 8121, "loc": { "start": { - "line": 190, + "line": 195, "column": 158 }, "end": { - "line": 190, + "line": 195, "column": 182 } }, "object": { "type": "Identifier", - "start": 7823, - "end": 7829, + "start": 8097, + "end": 8103, "loc": { "start": { - "line": 190, + "line": 195, "column": 158 }, "end": { - "line": 190, + "line": 195, "column": 164 }, "identifierName": "editor" @@ -15646,15 +16144,15 @@ }, "property": { "type": "Identifier", - "start": 7830, - "end": 7847, + "start": 8104, + "end": 8121, "loc": { "start": { - "line": 190, + "line": 195, "column": 165 }, "end": { - "line": 190, + "line": 195, "column": 182 }, "identifierName": "recognizerContext" @@ -15668,72 +16166,72 @@ }, "consequent": { "type": "BlockStatement", - "start": 7850, - "end": 7975, + "start": 8124, + "end": 8249, "loc": { "start": { - "line": 190, + "line": 195, "column": 185 }, "end": { - "line": 193, + "line": 198, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 7860, - "end": 7919, + "start": 8134, + "end": 8193, "loc": { "start": { - "line": 191, + "line": 196, "column": 8 }, "end": { - "line": 191, + "line": 196, "column": 67 } }, "expression": { "type": "CallExpression", - "start": 7860, - "end": 7918, + "start": 8134, + "end": 8192, "loc": { "start": { - "line": 191, + "line": 196, "column": 8 }, "end": { - "line": 191, + "line": 196, "column": 66 } }, "callee": { "type": "MemberExpression", - "start": 7860, - "end": 7871, + "start": 8134, + "end": 8145, "loc": { "start": { - "line": 191, + "line": 196, "column": 8 }, "end": { - "line": 191, + "line": 196, "column": 19 } }, "object": { "type": "Identifier", - "start": 7860, - "end": 7866, + "start": 8134, + "end": 8140, "loc": { "start": { - "line": 191, + "line": 196, "column": 8 }, "end": { - "line": 191, + "line": 196, "column": 14 }, "identifierName": "logger" @@ -15742,15 +16240,15 @@ }, "property": { "type": "Identifier", - "start": 7867, - "end": 7871, + "start": 8141, + "end": 8145, "loc": { "start": { - "line": 191, + "line": 196, "column": 15 }, "end": { - "line": 191, + "line": 196, "column": 19 }, "identifierName": "info" @@ -15762,15 +16260,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 7872, - "end": 7899, + "start": 8146, + "end": 8173, "loc": { "start": { - "line": 191, + "line": 196, "column": 20 }, "end": { - "line": 191, + "line": 196, "column": 47 } }, @@ -15782,43 +16280,43 @@ }, { "type": "LogicalExpression", - "start": 7901, - "end": 7917, + "start": 8175, + "end": 8191, "loc": { "start": { - "line": 191, + "line": 196, "column": 49 }, "end": { - "line": 191, + "line": 196, "column": 65 } }, "left": { "type": "MemberExpression", - "start": 7901, - "end": 7910, + "start": 8175, + "end": 8184, "loc": { "start": { - "line": 191, + "line": 196, "column": 49 }, "end": { - "line": 191, + "line": 196, "column": 58 } }, "object": { "type": "Identifier", - "start": 7901, - "end": 7904, + "start": 8175, + "end": 8178, "loc": { "start": { - "line": 191, + "line": 196, "column": 49 }, "end": { - "line": 191, + "line": 196, "column": 52 }, "identifierName": "err" @@ -15827,15 +16325,15 @@ }, "property": { "type": "Identifier", - "start": 7905, - "end": 7910, + "start": 8179, + "end": 8184, "loc": { "start": { - "line": 191, + "line": 196, "column": 53 }, "end": { - "line": 191, + "line": 196, "column": 58 }, "identifierName": "stack" @@ -15847,15 +16345,15 @@ "operator": "||", "right": { "type": "Identifier", - "start": 7914, - "end": 7917, + "start": 8188, + "end": 8191, "loc": { "start": { - "line": 191, + "line": 196, "column": 62 }, "end": { - "line": 191, + "line": 196, "column": 65 }, "identifierName": "err" @@ -15868,86 +16366,86 @@ }, { "type": "ExpressionStatement", - "start": 7928, - "end": 7967, + "start": 8202, + "end": 8241, "loc": { "start": { - "line": 192, + "line": 197, "column": 8 }, "end": { - "line": 192, + "line": 197, "column": 47 } }, "expression": { "type": "AssignmentExpression", - "start": 7928, - "end": 7966, + "start": 8202, + "end": 8240, "loc": { "start": { - "line": 192, + "line": 197, "column": 8 }, "end": { - "line": 192, + "line": 197, "column": 46 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 7928, - "end": 7957, + "start": 8202, + "end": 8231, "loc": { "start": { - "line": 192, + "line": 197, "column": 8 }, "end": { - "line": 192, + "line": 197, "column": 37 } }, "object": { "type": "MemberExpression", - "start": 7928, - "end": 7949, + "start": 8202, + "end": 8223, "loc": { "start": { - "line": 192, + "line": 197, "column": 8 }, "end": { - "line": 192, + "line": 197, "column": 29 } }, "object": { "type": "MemberExpression", - "start": 7928, - "end": 7943, + "start": 8202, + "end": 8217, "loc": { "start": { - "line": 192, + "line": 197, "column": 8 }, "end": { - "line": 192, + "line": 197, "column": 23 } }, "object": { "type": "Identifier", - "start": 7928, - "end": 7937, + "start": 8202, + "end": 8211, "loc": { "start": { - "line": 192, + "line": 197, "column": 8 }, "end": { - "line": 192, + "line": 197, "column": 17 }, "identifierName": "editorRef" @@ -15956,15 +16454,15 @@ }, "property": { "type": "Identifier", - "start": 7938, - "end": 7943, + "start": 8212, + "end": 8217, "loc": { "start": { - "line": 192, + "line": 197, "column": 18 }, "end": { - "line": 192, + "line": 197, "column": 23 }, "identifierName": "error" @@ -15975,15 +16473,15 @@ }, "property": { "type": "Identifier", - "start": 7944, - "end": 7949, + "start": 8218, + "end": 8223, "loc": { "start": { - "line": 192, + "line": 197, "column": 24 }, "end": { - "line": 192, + "line": 197, "column": 29 }, "identifierName": "style" @@ -15994,15 +16492,15 @@ }, "property": { "type": "Identifier", - "start": 7950, - "end": 7957, + "start": 8224, + "end": 8231, "loc": { "start": { - "line": 192, + "line": 197, "column": 30 }, "end": { - "line": 192, + "line": 197, "column": 37 }, "identifierName": "display" @@ -16013,15 +16511,15 @@ }, "right": { "type": "StringLiteral", - "start": 7960, - "end": 7966, + "start": 8234, + "end": 8240, "loc": { "start": { - "line": 192, + "line": 197, "column": 40 }, "end": { - "line": 192, + "line": 197, "column": 46 } }, @@ -16038,101 +16536,101 @@ }, "alternate": { "type": "BlockStatement", - "start": 7981, - "end": 8117, + "start": 8255, + "end": 8391, "loc": { "start": { - "line": 193, + "line": 198, "column": 13 }, "end": { - "line": 196, + "line": 201, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 7991, - "end": 8033, + "start": 8265, + "end": 8307, "loc": { "start": { - "line": 194, + "line": 199, "column": 8 }, "end": { - "line": 194, + "line": 199, "column": 50 } }, "expression": { "type": "AssignmentExpression", - "start": 7991, - "end": 8032, + "start": 8265, + "end": 8306, "loc": { "start": { - "line": 194, + "line": 199, "column": 8 }, "end": { - "line": 194, + "line": 199, "column": 49 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 7991, - "end": 8020, + "start": 8265, + "end": 8294, "loc": { "start": { - "line": 194, + "line": 199, "column": 8 }, "end": { - "line": 194, + "line": 199, "column": 37 } }, "object": { "type": "MemberExpression", - "start": 7991, - "end": 8012, + "start": 8265, + "end": 8286, "loc": { "start": { - "line": 194, + "line": 199, "column": 8 }, "end": { - "line": 194, + "line": 199, "column": 29 } }, "object": { "type": "MemberExpression", - "start": 7991, - "end": 8006, + "start": 8265, + "end": 8280, "loc": { "start": { - "line": 194, + "line": 199, "column": 8 }, "end": { - "line": 194, + "line": 199, "column": 23 } }, "object": { "type": "Identifier", - "start": 7991, - "end": 8000, + "start": 8265, + "end": 8274, "loc": { "start": { - "line": 194, + "line": 199, "column": 8 }, "end": { - "line": 194, + "line": 199, "column": 17 }, "identifierName": "editorRef" @@ -16141,15 +16639,15 @@ }, "property": { "type": "Identifier", - "start": 8001, - "end": 8006, + "start": 8275, + "end": 8280, "loc": { "start": { - "line": 194, + "line": 199, "column": 18 }, "end": { - "line": 194, + "line": 199, "column": 23 }, "identifierName": "error" @@ -16160,15 +16658,15 @@ }, "property": { "type": "Identifier", - "start": 8007, - "end": 8012, + "start": 8281, + "end": 8286, "loc": { "start": { - "line": 194, + "line": 199, "column": 24 }, "end": { - "line": 194, + "line": 199, "column": 29 }, "identifierName": "style" @@ -16179,15 +16677,15 @@ }, "property": { "type": "Identifier", - "start": 8013, - "end": 8020, + "start": 8287, + "end": 8294, "loc": { "start": { - "line": 194, + "line": 199, "column": 30 }, "end": { - "line": 194, + "line": 199, "column": 37 }, "identifierName": "display" @@ -16198,15 +16696,15 @@ }, "right": { "type": "StringLiteral", - "start": 8023, - "end": 8032, + "start": 8297, + "end": 8306, "loc": { "start": { - "line": 194, + "line": 199, "column": 40 }, "end": { - "line": 194, + "line": 199, "column": 49 } }, @@ -16220,43 +16718,43 @@ }, { "type": "ExpressionStatement", - "start": 8042, - "end": 8109, + "start": 8316, + "end": 8383, "loc": { "start": { - "line": 195, + "line": 200, "column": 8 }, "end": { - "line": 195, + "line": 200, "column": 75 } }, "expression": { "type": "CallExpression", - "start": 8042, - "end": 8108, + "start": 8316, + "end": 8382, "loc": { "start": { - "line": 195, + "line": 200, "column": 8 }, "end": { - "line": 195, + "line": 200, "column": 74 } }, "callee": { "type": "Identifier", - "start": 8042, - "end": 8058, + "start": 8316, + "end": 8332, "loc": { "start": { - "line": 195, + "line": 200, "column": 8 }, "end": { - "line": 195, + "line": 200, "column": 24 }, "identifierName": "triggerCallbacks" @@ -16266,15 +16764,15 @@ "arguments": [ { "type": "Identifier", - "start": 8059, - "end": 8065, + "start": 8333, + "end": 8339, "loc": { "start": { - "line": 195, + "line": 200, "column": 25 }, "end": { - "line": 195, + "line": 200, "column": 31 }, "identifierName": "editor" @@ -16283,15 +16781,15 @@ }, { "type": "Identifier", - "start": 8067, - "end": 8070, + "start": 8341, + "end": 8344, "loc": { "start": { - "line": 195, + "line": 200, "column": 33 }, "end": { - "line": 195, + "line": 200, "column": 36 }, "identifierName": "err" @@ -16300,43 +16798,43 @@ }, { "type": "MemberExpression", - "start": 8072, - "end": 8097, + "start": 8346, + "end": 8371, "loc": { "start": { - "line": 195, + "line": 200, "column": 38 }, "end": { - "line": 195, + "line": 200, "column": 63 } }, "object": { "type": "MemberExpression", - "start": 8072, - "end": 8091, + "start": 8346, + "end": 8365, "loc": { "start": { - "line": 195, + "line": 200, "column": 38 }, "end": { - "line": 195, + "line": 200, "column": 57 } }, "object": { "type": "Identifier", - "start": 8072, - "end": 8081, + "start": 8346, + "end": 8355, "loc": { "start": { - "line": 195, + "line": 200, "column": 38 }, "end": { - "line": 195, + "line": 200, "column": 47 }, "identifierName": "Constants" @@ -16345,15 +16843,15 @@ }, "property": { "type": "Identifier", - "start": 8082, - "end": 8091, + "start": 8356, + "end": 8365, "loc": { "start": { - "line": 195, + "line": 200, "column": 48 }, "end": { - "line": 195, + "line": 200, "column": 57 }, "identifierName": "EventType" @@ -16364,15 +16862,15 @@ }, "property": { "type": "Identifier", - "start": 8092, - "end": 8097, + "start": 8366, + "end": 8371, "loc": { "start": { - "line": 195, + "line": 200, "column": 58 }, "end": { - "line": 195, + "line": 200, "column": 63 }, "identifierName": "ERROR" @@ -16383,29 +16881,29 @@ }, { "type": "SpreadElement", - "start": 8099, - "end": 8107, + "start": 8373, + "end": 8381, "loc": { "start": { - "line": 195, + "line": 200, "column": 65 }, "end": { - "line": 195, + "line": 200, "column": 73 } }, "argument": { "type": "Identifier", - "start": 8102, - "end": 8107, + "start": 8376, + "end": 8381, "loc": { "start": { - "line": 195, + "line": 200, "column": 68 }, "end": { - "line": 195, + "line": 200, "column": 73 }, "identifierName": "types" @@ -16425,58 +16923,58 @@ }, "alternate": { "type": "BlockStatement", - "start": 8129, - "end": 8276, + "start": 8403, + "end": 8550, "loc": { "start": { - "line": 197, + "line": 202, "column": 11 }, "end": { - "line": 199, + "line": 204, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 8137, - "end": 8243, + "start": 8411, + "end": 8517, "loc": { "start": { - "line": 198, + "line": 203, "column": 6 }, "end": { - "line": 198, + "line": 203, "column": 112 } }, "expression": { "type": "CallExpression", - "start": 8137, - "end": 8242, + "start": 8411, + "end": 8516, "loc": { "start": { - "line": 198, + "line": 203, "column": 6 }, "end": { - "line": 198, + "line": 203, "column": 111 } }, "callee": { "type": "Identifier", - "start": 8137, - "end": 8158, + "start": 8411, + "end": 8432, "loc": { "start": { - "line": 198, + "line": 203, "column": 6 }, "end": { - "line": 198, + "line": 203, "column": 27 }, "identifierName": "manageRecognizedModel" @@ -16486,15 +16984,15 @@ "arguments": [ { "type": "Identifier", - "start": 8159, - "end": 8168, + "start": 8433, + "end": 8442, "loc": { "start": { - "line": 198, + "line": 203, "column": 28 }, "end": { - "line": 198, + "line": 203, "column": 37 }, "identifierName": "editorRef" @@ -16503,15 +17001,15 @@ }, { "type": "Identifier", - "start": 8170, - "end": 8173, + "start": 8444, + "end": 8447, "loc": { "start": { - "line": 198, + "line": 203, "column": 39 }, "end": { - "line": 198, + "line": 203, "column": 42 }, "identifierName": "res" @@ -16520,86 +17018,86 @@ }, { "type": "SpreadElement", - "start": 8175, - "end": 8241, + "start": 8449, + "end": 8515, "loc": { "start": { - "line": 198, + "line": 203, "column": 44 }, "end": { - "line": 198, + "line": 203, "column": 110 } }, "argument": { "type": "CallExpression", - "start": 8178, - "end": 8241, + "start": 8452, + "end": 8515, "loc": { "start": { - "line": 198, + "line": 203, "column": 47 }, "end": { - "line": 198, + "line": 203, "column": 110 } }, "callee": { "type": "MemberExpression", - "start": 8178, - "end": 8206, + "start": 8452, + "end": 8480, "loc": { "start": { - "line": 198, + "line": 203, "column": 47 }, "end": { - "line": 198, + "line": 203, "column": 75 } }, "object": { "type": "ArrayExpression", - "start": 8178, - "end": 8199, + "start": 8452, + "end": 8473, "loc": { "start": { - "line": 198, + "line": 203, "column": 47 }, "end": { - "line": 198, + "line": 203, "column": 68 } }, "elements": [ { "type": "SpreadElement", - "start": 8179, - "end": 8188, + "start": 8453, + "end": 8462, "loc": { "start": { - "line": 198, + "line": 203, "column": 48 }, "end": { - "line": 198, + "line": 203, "column": 57 } }, "argument": { "type": "Identifier", - "start": 8182, - "end": 8188, + "start": 8456, + "end": 8462, "loc": { "start": { - "line": 198, + "line": 203, "column": 51 }, "end": { - "line": 198, + "line": 203, "column": 57 }, "identifierName": "events" @@ -16609,29 +17107,29 @@ }, { "type": "SpreadElement", - "start": 8190, - "end": 8198, + "start": 8464, + "end": 8472, "loc": { "start": { - "line": 198, + "line": 203, "column": 59 }, "end": { - "line": 198, + "line": 203, "column": 67 } }, "argument": { "type": "Identifier", - "start": 8193, - "end": 8198, + "start": 8467, + "end": 8472, "loc": { "start": { - "line": 198, + "line": 203, "column": 62 }, "end": { - "line": 198, + "line": 203, "column": 67 }, "identifierName": "types" @@ -16643,15 +17141,15 @@ }, "property": { "type": "Identifier", - "start": 8200, - "end": 8206, + "start": 8474, + "end": 8480, "loc": { "start": { - "line": 198, + "line": 203, "column": 69 }, "end": { - "line": 198, + "line": 203, "column": 75 }, "identifierName": "filter" @@ -16663,15 +17161,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 8207, - "end": 8240, + "start": 8481, + "end": 8514, "loc": { "start": { - "line": 198, + "line": 203, "column": 76 }, "end": { - "line": 198, + "line": 203, "column": 109 } }, @@ -16682,15 +17180,15 @@ "params": [ { "type": "Identifier", - "start": 8208, - "end": 8210, + "start": 8482, + "end": 8484, "loc": { "start": { - "line": 198, + "line": 203, "column": 77 }, "end": { - "line": 198, + "line": 203, "column": 79 }, "identifierName": "el" @@ -16699,15 +17197,15 @@ }, { "type": "Identifier", - "start": 8212, - "end": 8213, + "start": 8486, + "end": 8487, "loc": { "start": { - "line": 198, + "line": 203, "column": 81 }, "end": { - "line": 198, + "line": 203, "column": 82 }, "identifierName": "i" @@ -16716,15 +17214,15 @@ }, { "type": "Identifier", - "start": 8215, - "end": 8216, + "start": 8489, + "end": 8490, "loc": { "start": { - "line": 198, + "line": 203, "column": 84 }, "end": { - "line": 198, + "line": 203, "column": 85 }, "identifierName": "a" @@ -16734,29 +17232,29 @@ ], "body": { "type": "BinaryExpression", - "start": 8221, - "end": 8240, + "start": 8495, + "end": 8514, "loc": { "start": { - "line": 198, + "line": 203, "column": 90 }, "end": { - "line": 198, + "line": 203, "column": 109 } }, "left": { "type": "Identifier", - "start": 8221, - "end": 8222, + "start": 8495, + "end": 8496, "loc": { "start": { - "line": 198, + "line": 203, "column": 90 }, "end": { - "line": 198, + "line": 203, "column": 91 }, "identifierName": "i" @@ -16766,43 +17264,43 @@ "operator": "===", "right": { "type": "CallExpression", - "start": 8227, - "end": 8240, + "start": 8501, + "end": 8514, "loc": { "start": { - "line": 198, + "line": 203, "column": 96 }, "end": { - "line": 198, + "line": 203, "column": 109 } }, "callee": { "type": "MemberExpression", - "start": 8227, - "end": 8236, + "start": 8501, + "end": 8510, "loc": { "start": { - "line": 198, + "line": 203, "column": 96 }, "end": { - "line": 198, + "line": 203, "column": 105 } }, "object": { "type": "Identifier", - "start": 8227, - "end": 8228, + "start": 8501, + "end": 8502, "loc": { "start": { - "line": 198, + "line": 203, "column": 96 }, "end": { - "line": 198, + "line": 203, "column": 97 }, "identifierName": "a" @@ -16811,15 +17309,15 @@ }, "property": { "type": "Identifier", - "start": 8229, - "end": 8236, + "start": 8503, + "end": 8510, "loc": { "start": { - "line": 198, + "line": 203, "column": 98 }, "end": { - "line": 198, + "line": 203, "column": 105 }, "identifierName": "indexOf" @@ -16831,15 +17329,15 @@ "arguments": [ { "type": "Identifier", - "start": 8237, - "end": 8239, + "start": 8511, + "end": 8513, "loc": { "start": { - "line": 198, + "line": 203, "column": 106 }, "end": { - "line": 198, + "line": 203, "column": 108 }, "identifierName": "el" @@ -16859,15 +17357,15 @@ { "type": "CommentLine", "value": " Remove duplicate events", - "start": 8244, - "end": 8270, + "start": 8518, + "end": 8544, "loc": { "start": { - "line": 198, + "line": 203, "column": 113 }, "end": { - "line": 198, + "line": 203, "column": 139 } } @@ -16888,57 +17386,57 @@ }, { "type": "ExpressionStatement", - "start": 8285, - "end": 8322, + "start": 8559, + "end": 8596, "loc": { "start": { - "line": 202, + "line": 207, "column": 2 }, "end": { - "line": 202, + "line": 207, "column": 39 } }, "expression": { "type": "CallExpression", - "start": 8285, - "end": 8321, + "start": 8559, + "end": 8595, "loc": { "start": { - "line": 202, + "line": 207, "column": 2 }, "end": { - "line": 202, + "line": 207, "column": 38 } }, "callee": { "type": "MemberExpression", - "start": 8285, - "end": 8297, + "start": 8559, + "end": 8571, "loc": { "start": { - "line": 202, + "line": 207, "column": 2 }, "end": { - "line": 202, + "line": 207, "column": 14 } }, "object": { "type": "Identifier", - "start": 8285, - "end": 8291, + "start": 8559, + "end": 8565, "loc": { "start": { - "line": 202, + "line": 207, "column": 2 }, "end": { - "line": 202, + "line": 207, "column": 8 }, "identifierName": "logger" @@ -16947,15 +17445,15 @@ }, "property": { "type": "Identifier", - "start": 8292, - "end": 8297, + "start": 8566, + "end": 8571, "loc": { "start": { - "line": 202, + "line": 207, "column": 9 }, "end": { - "line": 202, + "line": 207, "column": 14 }, "identifierName": "debug" @@ -16967,15 +17465,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 8298, - "end": 8320, + "start": 8572, + "end": 8594, "loc": { "start": { - "line": 202, + "line": 207, "column": 15 }, "end": { - "line": 202, + "line": 207, "column": 37 } }, @@ -16990,71 +17488,71 @@ }, { "type": "IfStatement", - "start": 8325, - "end": 8519, + "start": 8599, + "end": 8793, "loc": { "start": { - "line": 203, + "line": 208, "column": 2 }, "end": { - "line": 207, + "line": 212, "column": 3 } }, "test": { "type": "LogicalExpression", - "start": 8329, - "end": 8373, + "start": 8603, + "end": 8647, "loc": { "start": { - "line": 203, + "line": 208, "column": 6 }, "end": { - "line": 203, + "line": 208, "column": 50 } }, "left": { "type": "MemberExpression", - "start": 8329, - "end": 8363, + "start": 8603, + "end": 8637, "loc": { "start": { - "line": 203, + "line": 208, "column": 6 }, "end": { - "line": 203, + "line": 208, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 8329, - "end": 8351, + "start": 8603, + "end": 8625, "loc": { "start": { - "line": 203, + "line": 208, "column": 6 }, "end": { - "line": 203, + "line": 208, "column": 28 } }, "object": { "type": "Identifier", - "start": 8329, - "end": 8335, + "start": 8603, + "end": 8609, "loc": { "start": { - "line": 203, + "line": 208, "column": 6 }, "end": { - "line": 203, + "line": 208, "column": 12 }, "identifierName": "editor" @@ -17063,15 +17561,15 @@ }, "property": { "type": "Identifier", - "start": 8336, - "end": 8351, + "start": 8610, + "end": 8625, "loc": { "start": { - "line": 203, + "line": 208, "column": 13 }, "end": { - "line": 203, + "line": 208, "column": 28 }, "identifierName": "undoRedoManager" @@ -17082,15 +17580,15 @@ }, "property": { "type": "Identifier", - "start": 8352, - "end": 8363, + "start": 8626, + "end": 8637, "loc": { "start": { - "line": 203, + "line": 208, "column": 29 }, "end": { - "line": 203, + "line": 208, "column": 40 }, "identifierName": "updateModel" @@ -17102,15 +17600,15 @@ "operator": "&&", "right": { "type": "UnaryExpression", - "start": 8367, - "end": 8373, + "start": 8641, + "end": 8647, "loc": { "start": { - "line": 203, + "line": 208, "column": 44 }, "end": { - "line": 203, + "line": 208, "column": 50 } }, @@ -17118,15 +17616,15 @@ "prefix": true, "argument": { "type": "Identifier", - "start": 8368, - "end": 8373, + "start": 8642, + "end": 8647, "loc": { "start": { - "line": 203, + "line": 208, "column": 45 }, "end": { - "line": 203, + "line": 208, "column": 50 }, "identifierName": "error" @@ -17140,86 +17638,86 @@ }, "consequent": { "type": "BlockStatement", - "start": 8375, - "end": 8465, + "start": 8649, + "end": 8739, "loc": { "start": { - "line": 203, + "line": 208, "column": 52 }, "end": { - "line": 205, + "line": 210, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 8381, - "end": 8461, + "start": 8655, + "end": 8735, "loc": { "start": { - "line": 204, + "line": 209, "column": 4 }, "end": { - "line": 204, + "line": 209, "column": 84 } }, "expression": { "type": "CallExpression", - "start": 8381, - "end": 8460, + "start": 8655, + "end": 8734, "loc": { "start": { - "line": 204, + "line": 209, "column": 4 }, "end": { - "line": 204, + "line": 209, "column": 83 } }, "callee": { "type": "MemberExpression", - "start": 8381, - "end": 8415, + "start": 8655, + "end": 8689, "loc": { "start": { - "line": 204, + "line": 209, "column": 4 }, "end": { - "line": 204, + "line": 209, "column": 38 } }, "object": { "type": "MemberExpression", - "start": 8381, - "end": 8403, + "start": 8655, + "end": 8677, "loc": { "start": { - "line": 204, + "line": 209, "column": 4 }, "end": { - "line": 204, + "line": 209, "column": 26 } }, "object": { "type": "Identifier", - "start": 8381, - "end": 8387, + "start": 8655, + "end": 8661, "loc": { "start": { - "line": 204, + "line": 209, "column": 4 }, "end": { - "line": 204, + "line": 209, "column": 10 }, "identifierName": "editor" @@ -17228,15 +17726,15 @@ }, "property": { "type": "Identifier", - "start": 8388, - "end": 8403, + "start": 8662, + "end": 8677, "loc": { "start": { - "line": 204, + "line": 209, "column": 11 }, "end": { - "line": 204, + "line": 209, "column": 26 }, "identifierName": "undoRedoManager" @@ -17247,15 +17745,15 @@ }, "property": { "type": "Identifier", - "start": 8404, - "end": 8415, + "start": 8678, + "end": 8689, "loc": { "start": { - "line": 204, + "line": 209, "column": 27 }, "end": { - "line": 204, + "line": 209, "column": 38 }, "identifierName": "updateModel" @@ -17267,29 +17765,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 8416, - "end": 8438, + "start": 8690, + "end": 8712, "loc": { "start": { - "line": 204, + "line": 209, "column": 39 }, "end": { - "line": 204, + "line": 209, "column": 61 } }, "object": { "type": "Identifier", - "start": 8416, - "end": 8422, + "start": 8690, + "end": 8696, "loc": { "start": { - "line": 204, + "line": 209, "column": 39 }, "end": { - "line": 204, + "line": 209, "column": 45 }, "identifierName": "editor" @@ -17298,15 +17796,15 @@ }, "property": { "type": "Identifier", - "start": 8423, - "end": 8438, + "start": 8697, + "end": 8712, "loc": { "start": { - "line": 204, + "line": 209, "column": 46 }, "end": { - "line": 204, + "line": 209, "column": 61 }, "identifierName": "undoRedoContext" @@ -17317,15 +17815,15 @@ }, { "type": "Identifier", - "start": 8440, - "end": 8445, + "start": 8714, + "end": 8719, "loc": { "start": { - "line": 204, + "line": 209, "column": 63 }, "end": { - "line": 204, + "line": 209, "column": 68 }, "identifierName": "model" @@ -17334,15 +17832,15 @@ }, { "type": "Identifier", - "start": 8447, - "end": 8459, + "start": 8721, + "end": 8733, "loc": { "start": { - "line": 204, + "line": 209, "column": 70 }, "end": { - "line": 204, + "line": 209, "column": 82 }, "identifierName": "handleResult" @@ -17357,58 +17855,58 @@ }, "alternate": { "type": "BlockStatement", - "start": 8471, - "end": 8519, + "start": 8745, + "end": 8793, "loc": { "start": { - "line": 205, + "line": 210, "column": 9 }, "end": { - "line": 207, + "line": 212, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 8477, - "end": 8515, + "start": 8751, + "end": 8789, "loc": { "start": { - "line": 206, + "line": 211, "column": 4 }, "end": { - "line": 206, + "line": 211, "column": 42 } }, "expression": { "type": "CallExpression", - "start": 8477, - "end": 8514, + "start": 8751, + "end": 8788, "loc": { "start": { - "line": 206, + "line": 211, "column": 4 }, "end": { - "line": 206, + "line": 211, "column": 41 } }, "callee": { "type": "Identifier", - "start": 8477, - "end": 8489, + "start": 8751, + "end": 8763, "loc": { "start": { - "line": 206, + "line": 211, "column": 4 }, "end": { - "line": 206, + "line": 211, "column": 16 }, "identifierName": "handleResult" @@ -17418,15 +17916,15 @@ "arguments": [ { "type": "Identifier", - "start": 8490, - "end": 8495, + "start": 8764, + "end": 8769, "loc": { "start": { - "line": 206, + "line": 211, "column": 17 }, "end": { - "line": 206, + "line": 211, "column": 22 }, "identifierName": "error" @@ -17435,15 +17933,15 @@ }, { "type": "Identifier", - "start": 8497, - "end": 8502, + "start": 8771, + "end": 8776, "loc": { "start": { - "line": 206, + "line": 211, "column": 24 }, "end": { - "line": 206, + "line": 211, "column": 29 }, "identifierName": "model" @@ -17452,29 +17950,29 @@ }, { "type": "SpreadElement", - "start": 8504, - "end": 8513, + "start": 8778, + "end": 8787, "loc": { "start": { - "line": 206, + "line": 211, "column": 31 }, "end": { - "line": 206, + "line": 211, "column": 40 } }, "argument": { "type": "Identifier", - "start": 8507, - "end": 8513, + "start": 8781, + "end": 8787, "loc": { "start": { - "line": 206, + "line": 211, "column": 34 }, "end": { - "line": 206, + "line": 211, "column": 40 }, "identifierName": "events" @@ -17515,15 +18013,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [trigger]\n ", - "start": 8523, - "end": 8685, + "start": 8797, + "end": 8959, "loc": { "start": { - "line": 210, + "line": 215, "column": 0 }, "end": { - "line": 215, + "line": 220, "column": 3 } } @@ -17532,29 +18030,29 @@ }, { "type": "FunctionDeclaration", - "start": 8686, - "end": 9266, + "start": 8960, + "end": 9540, "loc": { "start": { - "line": 216, + "line": 221, "column": 0 }, "end": { - "line": 228, + "line": 233, "column": 1 } }, "id": { "type": "Identifier", - "start": 8695, - "end": 8705, + "start": 8969, + "end": 8979, "loc": { "start": { - "line": 216, + "line": 221, "column": 9 }, "end": { - "line": 216, + "line": 221, "column": 19 }, "identifierName": "addStrokes" @@ -17568,15 +18066,15 @@ "params": [ { "type": "Identifier", - "start": 8706, - "end": 8712, + "start": 8980, + "end": 8986, "loc": { "start": { - "line": 216, + "line": 221, "column": 20 }, "end": { - "line": 216, + "line": 221, "column": 26 }, "identifierName": "editor" @@ -17585,15 +18083,15 @@ }, { "type": "Identifier", - "start": 8714, - "end": 8719, + "start": 8988, + "end": 8993, "loc": { "start": { - "line": 216, + "line": 221, "column": 28 }, "end": { - "line": 216, + "line": 221, "column": 33 }, "identifierName": "model" @@ -17602,29 +18100,29 @@ }, { "type": "AssignmentPattern", - "start": 8721, - "end": 8771, + "start": 8995, + "end": 9045, "loc": { "start": { - "line": 216, + "line": 221, "column": 35 }, "end": { - "line": 216, + "line": 221, "column": 85 } }, "left": { "type": "Identifier", - "start": 8721, - "end": 8728, + "start": 8995, + "end": 9002, "loc": { "start": { - "line": 216, + "line": 221, "column": 35 }, "end": { - "line": 216, + "line": 221, "column": 42 }, "identifierName": "trigger" @@ -17633,57 +18131,57 @@ }, "right": { "type": "MemberExpression", - "start": 8731, - "end": 8771, + "start": 9005, + "end": 9045, "loc": { "start": { - "line": 216, + "line": 221, "column": 45 }, "end": { - "line": 216, + "line": 221, "column": 85 } }, "object": { "type": "MemberExpression", - "start": 8731, - "end": 8760, + "start": 9005, + "end": 9034, "loc": { "start": { - "line": 216, + "line": 221, "column": 45 }, "end": { - "line": 216, + "line": 221, "column": 74 } }, "object": { "type": "MemberExpression", - "start": 8731, - "end": 8751, + "start": 9005, + "end": 9025, "loc": { "start": { - "line": 216, + "line": 221, "column": 45 }, "end": { - "line": 216, + "line": 221, "column": 65 } }, "object": { "type": "Identifier", - "start": 8731, - "end": 8737, + "start": 9005, + "end": 9011, "loc": { "start": { - "line": 216, + "line": 221, "column": 45 }, "end": { - "line": 216, + "line": 221, "column": 51 }, "identifierName": "editor" @@ -17692,15 +18190,15 @@ }, "property": { "type": "Identifier", - "start": 8738, - "end": 8751, + "start": 9012, + "end": 9025, "loc": { "start": { - "line": 216, + "line": 221, "column": 52 }, "end": { - "line": 216, + "line": 221, "column": 65 }, "identifierName": "configuration" @@ -17711,15 +18209,15 @@ }, "property": { "type": "Identifier", - "start": 8752, - "end": 8760, + "start": 9026, + "end": 9034, "loc": { "start": { - "line": 216, + "line": 221, "column": 66 }, "end": { - "line": 216, + "line": 221, "column": 74 }, "identifierName": "triggers" @@ -17730,15 +18228,15 @@ }, "property": { "type": "Identifier", - "start": 8761, - "end": 8771, + "start": 9035, + "end": 9045, "loc": { "start": { - "line": 216, + "line": 221, "column": 75 }, "end": { - "line": 216, + "line": 221, "column": 85 }, "identifierName": "addStrokes" @@ -17751,72 +18249,72 @@ ], "body": { "type": "BlockStatement", - "start": 8773, - "end": 9266, + "start": 9047, + "end": 9540, "loc": { "start": { - "line": 216, + "line": 221, "column": 87 }, "end": { - "line": 228, + "line": 233, "column": 1 } }, "body": [ { "type": "IfStatement", - "start": 8777, - "end": 9264, + "start": 9051, + "end": 9538, "loc": { "start": { - "line": 217, + "line": 222, "column": 2 }, "end": { - "line": 227, + "line": 232, "column": 3 } }, "test": { "type": "LogicalExpression", - "start": 8781, - "end": 8830, + "start": 9055, + "end": 9104, "loc": { "start": { - "line": 217, + "line": 222, "column": 6 }, "end": { - "line": 217, + "line": 222, "column": 55 } }, "left": { "type": "MemberExpression", - "start": 8781, - "end": 8798, + "start": 9055, + "end": 9072, "loc": { "start": { - "line": 217, + "line": 222, "column": 6 }, "end": { - "line": 217, + "line": 222, "column": 23 } }, "object": { "type": "Identifier", - "start": 8781, - "end": 8787, + "start": 9055, + "end": 9061, "loc": { "start": { - "line": 217, + "line": 222, "column": 6 }, "end": { - "line": 217, + "line": 222, "column": 12 }, "identifierName": "editor" @@ -17825,15 +18323,15 @@ }, "property": { "type": "Identifier", - "start": 8788, - "end": 8798, + "start": 9062, + "end": 9072, "loc": { "start": { - "line": 217, + "line": 222, "column": 13 }, "end": { - "line": 217, + "line": 222, "column": 23 }, "identifierName": "recognizer" @@ -17845,43 +18343,43 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 8802, - "end": 8830, + "start": 9076, + "end": 9104, "loc": { "start": { - "line": 217, + "line": 222, "column": 27 }, "end": { - "line": 217, + "line": 222, "column": 55 } }, "object": { "type": "MemberExpression", - "start": 8802, - "end": 8819, + "start": 9076, + "end": 9093, "loc": { "start": { - "line": 217, + "line": 222, "column": 27 }, "end": { - "line": 217, + "line": 222, "column": 44 } }, "object": { "type": "Identifier", - "start": 8802, - "end": 8808, + "start": 9076, + "end": 9082, "loc": { "start": { - "line": 217, + "line": 222, "column": 27 }, "end": { - "line": 217, + "line": 222, "column": 33 }, "identifierName": "editor" @@ -17890,15 +18388,15 @@ }, "property": { "type": "Identifier", - "start": 8809, - "end": 8819, + "start": 9083, + "end": 9093, "loc": { "start": { - "line": 217, + "line": 222, "column": 34 }, "end": { - "line": 217, + "line": 222, "column": 44 }, "identifierName": "recognizer" @@ -17909,15 +18407,15 @@ }, "property": { "type": "Identifier", - "start": 8820, - "end": 8830, + "start": 9094, + "end": 9104, "loc": { "start": { - "line": 217, + "line": 222, "column": 45 }, "end": { - "line": 217, + "line": 222, "column": 55 }, "identifierName": "addStrokes" @@ -17929,100 +18427,100 @@ }, "consequent": { "type": "BlockStatement", - "start": 8832, - "end": 9264, + "start": 9106, + "end": 9538, "loc": { "start": { - "line": 217, + "line": 222, "column": 57 }, "end": { - "line": 227, + "line": 232, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 8838, - "end": 9260, + "start": 9112, + "end": 9534, "loc": { "start": { - "line": 218, + "line": 223, "column": 4 }, "end": { - "line": 226, + "line": 231, "column": 9 } }, "expression": { "type": "CallExpression", - "start": 8838, - "end": 9259, + "start": 9112, + "end": 9533, "loc": { "start": { - "line": 218, + "line": 223, "column": 4 }, "end": { - "line": 226, + "line": 231, "column": 8 } }, "callee": { "type": "MemberExpression", - "start": 8838, - "end": 8886, + "start": 9112, + "end": 9160, "loc": { "start": { - "line": 218, + "line": 223, "column": 4 }, "end": { - "line": 219, + "line": 224, "column": 11 } }, "object": { "type": "MemberExpression", - "start": 8838, - "end": 8874, + "start": 9112, + "end": 9148, "loc": { "start": { - "line": 218, + "line": 223, "column": 4 }, "end": { - "line": 218, + "line": 223, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 8838, - "end": 8862, + "start": 9112, + "end": 9136, "loc": { "start": { - "line": 218, + "line": 223, "column": 4 }, "end": { - "line": 218, + "line": 223, "column": 28 } }, "object": { "type": "Identifier", - "start": 8838, - "end": 8844, + "start": 9112, + "end": 9118, "loc": { "start": { - "line": 218, + "line": 223, "column": 4 }, "end": { - "line": 218, + "line": 223, "column": 10 }, "identifierName": "editor" @@ -18031,15 +18529,15 @@ }, "property": { "type": "Identifier", - "start": 8845, - "end": 8862, + "start": 9119, + "end": 9136, "loc": { "start": { - "line": 218, + "line": 223, "column": 11 }, "end": { - "line": 218, + "line": 223, "column": 28 }, "identifierName": "recognizerContext" @@ -18050,15 +18548,15 @@ }, "property": { "type": "Identifier", - "start": 8863, - "end": 8874, + "start": 9137, + "end": 9148, "loc": { "start": { - "line": 218, + "line": 223, "column": 29 }, "end": { - "line": 218, + "line": 223, "column": 40 }, "identifierName": "initPromise" @@ -18069,15 +18567,15 @@ }, "property": { "type": "Identifier", - "start": 8882, - "end": 8886, + "start": 9156, + "end": 9160, "loc": { "start": { - "line": 219, + "line": 224, "column": 7 }, "end": { - "line": 219, + "line": 224, "column": 11 }, "identifierName": "then" @@ -18089,15 +18587,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 8887, - "end": 9258, + "start": 9161, + "end": 9532, "loc": { "start": { - "line": 219, + "line": 224, "column": 12 }, "end": { - "line": 226, + "line": 231, "column": 7 } }, @@ -18108,58 +18606,58 @@ "params": [], "body": { "type": "BlockStatement", - "start": 8893, - "end": 9258, + "start": 9167, + "end": 9532, "loc": { "start": { - "line": 219, + "line": 224, "column": 18 }, "end": { - "line": 226, + "line": 231, "column": 7 } }, "body": [ { "type": "IfStatement", - "start": 8973, - "end": 9250, + "start": 9247, + "end": 9524, "loc": { "start": { - "line": 221, + "line": 226, "column": 8 }, "end": { - "line": 225, + "line": 230, "column": 9 } }, "test": { "type": "CallExpression", - "start": 8977, - "end": 9022, + "start": 9251, + "end": 9296, "loc": { "start": { - "line": 221, + "line": 226, "column": 12 }, "end": { - "line": 221, + "line": 226, "column": 57 } }, "callee": { "type": "Identifier", - "start": 8977, - "end": 8991, + "start": 9251, + "end": 9265, "loc": { "start": { - "line": 221, + "line": 226, "column": 12 }, "end": { - "line": 221, + "line": 226, "column": 26 }, "identifierName": "isTriggerValid" @@ -18170,15 +18668,15 @@ "arguments": [ { "type": "Identifier", - "start": 8992, - "end": 8998, + "start": 9266, + "end": 9272, "loc": { "start": { - "line": 221, + "line": 226, "column": 27 }, "end": { - "line": 221, + "line": 226, "column": 33 }, "identifierName": "editor" @@ -18187,15 +18685,15 @@ }, { "type": "StringLiteral", - "start": 9000, - "end": 9012, + "start": 9274, + "end": 9286, "loc": { "start": { - "line": 221, + "line": 226, "column": 35 }, "end": { - "line": 221, + "line": 226, "column": 47 } }, @@ -18207,15 +18705,15 @@ }, { "type": "Identifier", - "start": 9014, - "end": 9021, + "start": 9288, + "end": 9295, "loc": { "start": { - "line": 221, + "line": 226, "column": 49 }, "end": { - "line": 221, + "line": 226, "column": 56 }, "identifierName": "trigger" @@ -18227,58 +18725,58 @@ }, "consequent": { "type": "BlockStatement", - "start": 9024, - "end": 9250, + "start": 9298, + "end": 9524, "loc": { "start": { - "line": 221, + "line": 226, "column": 59 }, "end": { - "line": 225, + "line": 230, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 9036, - "end": 9240, + "start": 9310, + "end": 9514, "loc": { "start": { - "line": 222, + "line": 227, "column": 10 }, "end": { - "line": 224, + "line": 229, "column": 13 } }, "expression": { "type": "CallExpression", - "start": 9036, - "end": 9239, + "start": 9310, + "end": 9513, "loc": { "start": { - "line": 222, + "line": 227, "column": 10 }, "end": { - "line": 224, + "line": 229, "column": 12 } }, "callee": { "type": "Identifier", - "start": 9036, - "end": 9052, + "start": 9310, + "end": 9326, "loc": { "start": { - "line": 222, + "line": 227, "column": 10 }, "end": { - "line": 222, + "line": 227, "column": 26 }, "identifierName": "manageResetState" @@ -18288,43 +18786,43 @@ "arguments": [ { "type": "MemberExpression", - "start": 9053, - "end": 9076, + "start": 9327, + "end": 9350, "loc": { "start": { - "line": 222, + "line": 227, "column": 27 }, "end": { - "line": 222, + "line": 227, "column": 50 } }, "object": { "type": "MemberExpression", - "start": 9053, - "end": 9070, + "start": 9327, + "end": 9344, "loc": { "start": { - "line": 222, + "line": 227, "column": 27 }, "end": { - "line": 222, + "line": 227, "column": 44 } }, "object": { "type": "Identifier", - "start": 9053, - "end": 9059, + "start": 9327, + "end": 9333, "loc": { "start": { - "line": 222, + "line": 227, "column": 27 }, "end": { - "line": 222, + "line": 227, "column": 33 }, "identifierName": "editor" @@ -18333,15 +18831,15 @@ }, "property": { "type": "Identifier", - "start": 9060, - "end": 9070, + "start": 9334, + "end": 9344, "loc": { "start": { - "line": 222, + "line": 227, "column": 34 }, "end": { - "line": 222, + "line": 227, "column": 44 }, "identifierName": "recognizer" @@ -18352,15 +18850,15 @@ }, "property": { "type": "Identifier", - "start": 9071, - "end": 9076, + "start": 9345, + "end": 9350, "loc": { "start": { - "line": 222, + "line": 227, "column": 45 }, "end": { - "line": 222, + "line": 227, "column": 50 }, "identifierName": "reset" @@ -18371,43 +18869,43 @@ }, { "type": "MemberExpression", - "start": 9078, - "end": 9106, + "start": 9352, + "end": 9380, "loc": { "start": { - "line": 222, + "line": 227, "column": 52 }, "end": { - "line": 222, + "line": 227, "column": 80 } }, "object": { "type": "MemberExpression", - "start": 9078, - "end": 9095, + "start": 9352, + "end": 9369, "loc": { "start": { - "line": 222, + "line": 227, "column": 52 }, "end": { - "line": 222, + "line": 227, "column": 69 } }, "object": { "type": "Identifier", - "start": 9078, - "end": 9084, + "start": 9352, + "end": 9358, "loc": { "start": { - "line": 222, + "line": 227, "column": 52 }, "end": { - "line": 222, + "line": 227, "column": 58 }, "identifierName": "editor" @@ -18416,15 +18914,15 @@ }, "property": { "type": "Identifier", - "start": 9085, - "end": 9095, + "start": 9359, + "end": 9369, "loc": { "start": { - "line": 222, + "line": 227, "column": 59 }, "end": { - "line": 222, + "line": 227, "column": 69 }, "identifierName": "recognizer" @@ -18435,15 +18933,15 @@ }, "property": { "type": "Identifier", - "start": 9096, - "end": 9106, + "start": 9370, + "end": 9380, "loc": { "start": { - "line": 222, + "line": 227, "column": 70 }, "end": { - "line": 222, + "line": 227, "column": 80 }, "identifierName": "addStrokes" @@ -18454,29 +18952,29 @@ }, { "type": "MemberExpression", - "start": 9108, - "end": 9132, + "start": 9382, + "end": 9406, "loc": { "start": { - "line": 222, + "line": 227, "column": 82 }, "end": { - "line": 222, + "line": 227, "column": 106 } }, "object": { "type": "Identifier", - "start": 9108, - "end": 9114, + "start": 9382, + "end": 9388, "loc": { "start": { - "line": 222, + "line": 227, "column": 82 }, "end": { - "line": 222, + "line": 227, "column": 88 }, "identifierName": "editor" @@ -18485,15 +18983,15 @@ }, "property": { "type": "Identifier", - "start": 9115, - "end": 9132, + "start": 9389, + "end": 9406, "loc": { "start": { - "line": 222, + "line": 227, "column": 89 }, "end": { - "line": 222, + "line": 227, "column": 106 }, "identifierName": "recognizerContext" @@ -18504,15 +19002,15 @@ }, { "type": "Identifier", - "start": 9134, - "end": 9139, + "start": 9408, + "end": 9413, "loc": { "start": { - "line": 222, + "line": 227, "column": 108 }, "end": { - "line": 222, + "line": 227, "column": 113 }, "identifierName": "model" @@ -18521,15 +19019,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 9141, - "end": 9238, + "start": 9415, + "end": 9512, "loc": { "start": { - "line": 222, + "line": 227, "column": 115 }, "end": { - "line": 224, + "line": 229, "column": 11 } }, @@ -18540,15 +19038,15 @@ "params": [ { "type": "Identifier", - "start": 9142, - "end": 9145, + "start": 9416, + "end": 9419, "loc": { "start": { - "line": 222, + "line": 227, "column": 116 }, "end": { - "line": 222, + "line": 227, "column": 119 }, "identifierName": "err" @@ -18557,15 +19055,15 @@ }, { "type": "Identifier", - "start": 9147, - "end": 9150, + "start": 9421, + "end": 9424, "loc": { "start": { - "line": 222, + "line": 227, "column": 121 }, "end": { - "line": 222, + "line": 227, "column": 124 }, "identifierName": "res" @@ -18574,29 +19072,29 @@ }, { "type": "RestElement", - "start": 9152, - "end": 9160, + "start": 9426, + "end": 9434, "loc": { "start": { - "line": 222, + "line": 227, "column": 126 }, "end": { - "line": 222, + "line": 227, "column": 134 } }, "argument": { "type": "Identifier", - "start": 9155, - "end": 9160, + "start": 9429, + "end": 9434, "loc": { "start": { - "line": 222, + "line": 227, "column": 129 }, "end": { - "line": 222, + "line": 227, "column": 134 }, "identifierName": "types" @@ -18607,58 +19105,58 @@ ], "body": { "type": "BlockStatement", - "start": 9165, - "end": 9238, + "start": 9439, + "end": 9512, "loc": { "start": { - "line": 222, + "line": 227, "column": 139 }, "end": { - "line": 224, + "line": 229, "column": 11 } }, "body": [ { "type": "ExpressionStatement", - "start": 9179, - "end": 9226, + "start": 9453, + "end": 9500, "loc": { "start": { - "line": 223, + "line": 228, "column": 12 }, "end": { - "line": 223, + "line": 228, "column": 59 } }, "expression": { "type": "CallExpression", - "start": 9179, - "end": 9225, + "start": 9453, + "end": 9499, "loc": { "start": { - "line": 223, + "line": 228, "column": 12 }, "end": { - "line": 223, + "line": 228, "column": 58 } }, "callee": { "type": "Identifier", - "start": 9179, - "end": 9197, + "start": 9453, + "end": 9471, "loc": { "start": { - "line": 223, + "line": 228, "column": 12 }, "end": { - "line": 223, + "line": 228, "column": 30 }, "identifierName": "recognizerCallback" @@ -18668,15 +19166,15 @@ "arguments": [ { "type": "Identifier", - "start": 9198, - "end": 9204, + "start": 9472, + "end": 9478, "loc": { "start": { - "line": 223, + "line": 228, "column": 31 }, "end": { - "line": 223, + "line": 228, "column": 37 }, "identifierName": "editor" @@ -18685,15 +19183,15 @@ }, { "type": "Identifier", - "start": 9206, - "end": 9209, + "start": 9480, + "end": 9483, "loc": { "start": { - "line": 223, + "line": 228, "column": 39 }, "end": { - "line": 223, + "line": 228, "column": 42 }, "identifierName": "err" @@ -18702,15 +19200,15 @@ }, { "type": "Identifier", - "start": 9211, - "end": 9214, + "start": 9485, + "end": 9488, "loc": { "start": { - "line": 223, + "line": 228, "column": 44 }, "end": { - "line": 223, + "line": 228, "column": 47 }, "identifierName": "res" @@ -18719,29 +19217,29 @@ }, { "type": "SpreadElement", - "start": 9216, - "end": 9224, + "start": 9490, + "end": 9498, "loc": { "start": { - "line": 223, + "line": 228, "column": 49 }, "end": { - "line": 223, + "line": 228, "column": 57 } }, "argument": { "type": "Identifier", - "start": 9219, - "end": 9224, + "start": 9493, + "end": 9498, "loc": { "start": { - "line": 223, + "line": 228, "column": 52 }, "end": { - "line": 223, + "line": 228, "column": 57 }, "identifierName": "types" @@ -18767,15 +19265,15 @@ { "type": "CommentLine", "value": " Firing addStrokes only if recognizer is configure to do it", - "start": 8903, - "end": 8964, + "start": 9177, + "end": 9238, "loc": { "start": { - "line": 220, + "line": 225, "column": 8 }, "end": { - "line": 220, + "line": 225, "column": 69 } } @@ -18802,15 +19300,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [trigger]\n ", - "start": 8523, - "end": 8685, + "start": 8797, + "end": 8959, "loc": { "start": { - "line": 210, + "line": 215, "column": 0 }, "end": { - "line": 215, + "line": 220, "column": 3 } } @@ -18820,15 +19318,15 @@ { "type": "CommentBlock", "value": "*\n * Launch smartguide.\n * @param {Editor} editor\n * @param {Object} exports\n ", - "start": 9268, - "end": 9350, + "start": 9542, + "end": 9624, "loc": { "start": { - "line": 230, + "line": 235, "column": 0 }, "end": { - "line": 234, + "line": 239, "column": 3 } } @@ -18837,29 +19335,29 @@ }, { "type": "FunctionDeclaration", - "start": 9351, - "end": 9507, + "start": 9625, + "end": 9781, "loc": { "start": { - "line": 235, + "line": 240, "column": 0 }, "end": { - "line": 238, + "line": 243, "column": 1 } }, "id": { "type": "Identifier", - "start": 9360, - "end": 9376, + "start": 9634, + "end": 9650, "loc": { "start": { - "line": 235, + "line": 240, "column": 9 }, "end": { - "line": 235, + "line": 240, "column": 25 }, "identifierName": "launchSmartGuide" @@ -18873,15 +19371,15 @@ "params": [ { "type": "Identifier", - "start": 9377, - "end": 9383, + "start": 9651, + "end": 9657, "loc": { "start": { - "line": 235, + "line": 240, "column": 26 }, "end": { - "line": 235, + "line": 240, "column": 32 }, "identifierName": "editor" @@ -18890,15 +19388,15 @@ }, { "type": "Identifier", - "start": 9385, - "end": 9392, + "start": 9659, + "end": 9666, "loc": { "start": { - "line": 235, + "line": 240, "column": 34 }, "end": { - "line": 235, + "line": 240, "column": 41 }, "identifierName": "exports" @@ -18908,59 +19406,59 @@ ], "body": { "type": "BlockStatement", - "start": 9394, - "end": 9507, + "start": 9668, + "end": 9781, "loc": { "start": { - "line": 235, + "line": 240, "column": 43 }, "end": { - "line": 238, + "line": 243, "column": 1 } }, "body": [ { "type": "VariableDeclaration", - "start": 9398, - "end": 9423, + "start": 9672, + "end": 9697, "loc": { "start": { - "line": 236, + "line": 241, "column": 2 }, "end": { - "line": 236, + "line": 241, "column": 27 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 9404, - "end": 9422, + "start": 9678, + "end": 9696, "loc": { "start": { - "line": 236, + "line": 241, "column": 8 }, "end": { - "line": 236, + "line": 241, "column": 26 } }, "id": { "type": "Identifier", - "start": 9404, - "end": 9413, + "start": 9678, + "end": 9687, "loc": { "start": { - "line": 236, + "line": 241, "column": 8 }, "end": { - "line": 236, + "line": 241, "column": 17 }, "identifierName": "editorRef" @@ -18969,15 +19467,15 @@ }, "init": { "type": "Identifier", - "start": 9416, - "end": 9422, + "start": 9690, + "end": 9696, "loc": { "start": { - "line": 236, + "line": 241, "column": 20 }, "end": { - "line": 236, + "line": 241, "column": 26 }, "identifierName": "editor" @@ -18990,58 +19488,58 @@ }, { "type": "ExpressionStatement", - "start": 9426, - "end": 9505, + "start": 9700, + "end": 9779, "loc": { "start": { - "line": 237, + "line": 242, "column": 2 }, "end": { - "line": 237, + "line": 242, "column": 81 } }, "expression": { "type": "AssignmentExpression", - "start": 9426, - "end": 9504, + "start": 9700, + "end": 9778, "loc": { "start": { - "line": 237, + "line": 242, "column": 2 }, "end": { - "line": 237, + "line": 242, "column": 80 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 9426, - "end": 9446, + "start": 9700, + "end": 9720, "loc": { "start": { - "line": 237, + "line": 242, "column": 2 }, "end": { - "line": 237, + "line": 242, "column": 22 } }, "object": { "type": "Identifier", - "start": 9426, - "end": 9435, + "start": 9700, + "end": 9709, "loc": { "start": { - "line": 237, + "line": 242, "column": 2 }, "end": { - "line": 237, + "line": 242, "column": 11 }, "identifierName": "editorRef" @@ -19050,15 +19548,15 @@ }, "property": { "type": "Identifier", - "start": 9436, - "end": 9446, + "start": 9710, + "end": 9720, "loc": { "start": { - "line": 237, + "line": 242, "column": 12 }, "end": { - "line": 237, + "line": 242, "column": 22 }, "identifierName": "smartGuide" @@ -19069,43 +19567,43 @@ }, "right": { "type": "CallExpression", - "start": 9449, - "end": 9504, + "start": 9723, + "end": 9778, "loc": { "start": { - "line": 237, + "line": 242, "column": 25 }, "end": { - "line": 237, + "line": 242, "column": 80 } }, "callee": { "type": "MemberExpression", - "start": 9449, - "end": 9476, + "start": 9723, + "end": 9750, "loc": { "start": { - "line": 237, + "line": 242, "column": 25 }, "end": { - "line": 237, + "line": 242, "column": 52 } }, "object": { "type": "Identifier", - "start": 9449, - "end": 9459, + "start": 9723, + "end": 9733, "loc": { "start": { - "line": 237, + "line": 242, "column": 25 }, "end": { - "line": 237, + "line": 242, "column": 35 }, "identifierName": "SmartGuide" @@ -19114,15 +19612,15 @@ }, "property": { "type": "Identifier", - "start": 9460, - "end": 9476, + "start": 9734, + "end": 9750, "loc": { "start": { - "line": 237, + "line": 242, "column": 36 }, "end": { - "line": 237, + "line": 242, "column": 52 }, "identifierName": "launchSmartGuide" @@ -19134,29 +19632,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 9477, - "end": 9494, + "start": 9751, + "end": 9768, "loc": { "start": { - "line": 237, + "line": 242, "column": 53 }, "end": { - "line": 237, + "line": 242, "column": 70 } }, "object": { "type": "Identifier", - "start": 9477, - "end": 9483, + "start": 9751, + "end": 9757, "loc": { "start": { - "line": 237, + "line": 242, "column": 53 }, "end": { - "line": 237, + "line": 242, "column": 59 }, "identifierName": "editor" @@ -19165,15 +19663,15 @@ }, "property": { "type": "Identifier", - "start": 9484, - "end": 9494, + "start": 9758, + "end": 9768, "loc": { "start": { - "line": 237, + "line": 242, "column": 60 }, "end": { - "line": 237, + "line": 242, "column": 70 }, "identifierName": "smartGuide" @@ -19184,15 +19682,15 @@ }, { "type": "Identifier", - "start": 9496, - "end": 9503, + "start": 9770, + "end": 9777, "loc": { "start": { - "line": 237, + "line": 242, "column": 72 }, "end": { - "line": 237, + "line": 242, "column": 79 }, "identifierName": "exports" @@ -19211,15 +19709,15 @@ { "type": "CommentBlock", "value": "*\n * Launch smartguide.\n * @param {Editor} editor\n * @param {Object} exports\n ", - "start": 9268, - "end": 9350, + "start": 9542, + "end": 9624, "loc": { "start": { - "line": 230, + "line": 235, "column": 0 }, "end": { - "line": 234, + "line": 239, "column": 3 } } @@ -19229,15 +19727,15 @@ { "type": "CommentBlock", "value": "*\n * Launch ink import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {PointerEvents} events\n ", - "start": 9509, - "end": 9621, + "start": 9783, + "end": 9895, "loc": { "start": { - "line": 240, + "line": 245, "column": 0 }, "end": { - "line": 245, + "line": 250, "column": 3 } } @@ -19246,29 +19744,29 @@ }, { "type": "FunctionDeclaration", - "start": 9622, - "end": 9991, + "start": 9896, + "end": 10265, "loc": { "start": { - "line": 246, + "line": 251, "column": 0 }, "end": { - "line": 255, + "line": 260, "column": 1 } }, "id": { "type": "Identifier", - "start": 9631, - "end": 9650, + "start": 9905, + "end": 9924, "loc": { "start": { - "line": 246, + "line": 251, "column": 9 }, "end": { - "line": 246, + "line": 251, "column": 28 }, "identifierName": "launchPointerEvents" @@ -19282,15 +19780,15 @@ "params": [ { "type": "Identifier", - "start": 9651, - "end": 9657, + "start": 9925, + "end": 9931, "loc": { "start": { - "line": 246, + "line": 251, "column": 29 }, "end": { - "line": 246, + "line": 251, "column": 35 }, "identifierName": "editor" @@ -19299,15 +19797,15 @@ }, { "type": "Identifier", - "start": 9659, - "end": 9664, + "start": 9933, + "end": 9938, "loc": { "start": { - "line": 246, + "line": 251, "column": 37 }, "end": { - "line": 246, + "line": 251, "column": 42 }, "identifierName": "model" @@ -19316,15 +19814,15 @@ }, { "type": "Identifier", - "start": 9666, - "end": 9672, + "start": 9940, + "end": 9946, "loc": { "start": { - "line": 246, + "line": 251, "column": 44 }, "end": { - "line": 246, + "line": 251, "column": 50 }, "identifierName": "events" @@ -19334,72 +19832,72 @@ ], "body": { "type": "BlockStatement", - "start": 9674, - "end": 9991, + "start": 9948, + "end": 10265, "loc": { "start": { - "line": 246, + "line": 251, "column": 52 }, "end": { - "line": 255, + "line": 260, "column": 1 } }, "body": [ { "type": "IfStatement", - "start": 9678, - "end": 9989, + "start": 9952, + "end": 10263, "loc": { "start": { - "line": 247, + "line": 252, "column": 2 }, "end": { - "line": 254, + "line": 259, "column": 3 } }, "test": { "type": "LogicalExpression", - "start": 9682, - "end": 9734, + "start": 9956, + "end": 10008, "loc": { "start": { - "line": 247, + "line": 252, "column": 6 }, "end": { - "line": 247, + "line": 252, "column": 58 } }, "left": { "type": "MemberExpression", - "start": 9682, - "end": 9699, + "start": 9956, + "end": 9973, "loc": { "start": { - "line": 247, + "line": 252, "column": 6 }, "end": { - "line": 247, + "line": 252, "column": 23 } }, "object": { "type": "Identifier", - "start": 9682, - "end": 9688, + "start": 9956, + "end": 9962, "loc": { "start": { - "line": 247, + "line": 252, "column": 6 }, "end": { - "line": 247, + "line": 252, "column": 12 }, "identifierName": "editor" @@ -19408,15 +19906,15 @@ }, "property": { "type": "Identifier", - "start": 9689, - "end": 9699, + "start": 9963, + "end": 9973, "loc": { "start": { - "line": 247, + "line": 252, "column": 13 }, "end": { - "line": 247, + "line": 252, "column": 23 }, "identifierName": "recognizer" @@ -19428,43 +19926,43 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 9703, - "end": 9734, + "start": 9977, + "end": 10008, "loc": { "start": { - "line": 247, + "line": 252, "column": 27 }, "end": { - "line": 247, + "line": 252, "column": 58 } }, "object": { "type": "MemberExpression", - "start": 9703, - "end": 9720, + "start": 9977, + "end": 9994, "loc": { "start": { - "line": 247, + "line": 252, "column": 27 }, "end": { - "line": 247, + "line": 252, "column": 44 } }, "object": { "type": "Identifier", - "start": 9703, - "end": 9709, + "start": 9977, + "end": 9983, "loc": { "start": { - "line": 247, + "line": 252, "column": 27 }, "end": { - "line": 247, + "line": 252, "column": 33 }, "identifierName": "editor" @@ -19473,15 +19971,15 @@ }, "property": { "type": "Identifier", - "start": 9710, - "end": 9720, + "start": 9984, + "end": 9994, "loc": { "start": { - "line": 247, + "line": 252, "column": 34 }, "end": { - "line": 247, + "line": 252, "column": 44 }, "identifierName": "recognizer" @@ -19492,15 +19990,15 @@ }, "property": { "type": "Identifier", - "start": 9721, - "end": 9734, + "start": 9995, + "end": 10008, "loc": { "start": { - "line": 247, + "line": 252, "column": 45 }, "end": { - "line": 247, + "line": 252, "column": 58 }, "identifierName": "pointerEvents" @@ -19512,100 +20010,100 @@ }, "consequent": { "type": "BlockStatement", - "start": 9736, - "end": 9989, + "start": 10010, + "end": 10263, "loc": { "start": { - "line": 247, + "line": 252, "column": 60 }, "end": { - "line": 254, + "line": 259, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 9742, - "end": 9985, + "start": 10016, + "end": 10259, "loc": { "start": { - "line": 248, + "line": 253, "column": 4 }, "end": { - "line": 253, + "line": 258, "column": 9 } }, "expression": { "type": "CallExpression", - "start": 9742, - "end": 9984, + "start": 10016, + "end": 10258, "loc": { "start": { - "line": 248, + "line": 253, "column": 4 }, "end": { - "line": 253, + "line": 258, "column": 8 } }, "callee": { "type": "MemberExpression", - "start": 9742, - "end": 9790, + "start": 10016, + "end": 10064, "loc": { "start": { - "line": 248, + "line": 253, "column": 4 }, "end": { - "line": 249, + "line": 254, "column": 11 } }, "object": { "type": "MemberExpression", - "start": 9742, - "end": 9778, + "start": 10016, + "end": 10052, "loc": { "start": { - "line": 248, + "line": 253, "column": 4 }, "end": { - "line": 248, + "line": 253, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 9742, - "end": 9766, + "start": 10016, + "end": 10040, "loc": { "start": { - "line": 248, + "line": 253, "column": 4 }, "end": { - "line": 248, + "line": 253, "column": 28 } }, "object": { "type": "Identifier", - "start": 9742, - "end": 9748, + "start": 10016, + "end": 10022, "loc": { "start": { - "line": 248, + "line": 253, "column": 4 }, "end": { - "line": 248, + "line": 253, "column": 10 }, "identifierName": "editor" @@ -19614,15 +20112,15 @@ }, "property": { "type": "Identifier", - "start": 9749, - "end": 9766, + "start": 10023, + "end": 10040, "loc": { "start": { - "line": 248, + "line": 253, "column": 11 }, "end": { - "line": 248, + "line": 253, "column": 28 }, "identifierName": "recognizerContext" @@ -19633,15 +20131,15 @@ }, "property": { "type": "Identifier", - "start": 9767, - "end": 9778, + "start": 10041, + "end": 10052, "loc": { "start": { - "line": 248, + "line": 253, "column": 29 }, "end": { - "line": 248, + "line": 253, "column": 40 }, "identifierName": "initPromise" @@ -19652,15 +20150,15 @@ }, "property": { "type": "Identifier", - "start": 9786, - "end": 9790, + "start": 10060, + "end": 10064, "loc": { "start": { - "line": 249, + "line": 254, "column": 7 }, "end": { - "line": 249, + "line": 254, "column": 11 }, "identifierName": "then" @@ -19672,15 +20170,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 9791, - "end": 9983, + "start": 10065, + "end": 10257, "loc": { "start": { - "line": 249, + "line": 254, "column": 12 }, "end": { - "line": 253, + "line": 258, "column": 7 } }, @@ -19691,86 +20189,86 @@ "params": [], "body": { "type": "BlockStatement", - "start": 9797, - "end": 9983, + "start": 10071, + "end": 10257, "loc": { "start": { - "line": 249, + "line": 254, "column": 18 }, "end": { - "line": 253, + "line": 258, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 9807, - "end": 9975, + "start": 10081, + "end": 10249, "loc": { "start": { - "line": 250, + "line": 255, "column": 8 }, "end": { - "line": 252, + "line": 257, "column": 11 } }, "expression": { "type": "CallExpression", - "start": 9807, - "end": 9974, + "start": 10081, + "end": 10248, "loc": { "start": { - "line": 250, + "line": 255, "column": 8 }, "end": { - "line": 252, + "line": 257, "column": 10 } }, "callee": { "type": "MemberExpression", - "start": 9807, - "end": 9838, + "start": 10081, + "end": 10112, "loc": { "start": { - "line": 250, + "line": 255, "column": 8 }, "end": { - "line": 250, + "line": 255, "column": 39 } }, "object": { "type": "MemberExpression", - "start": 9807, - "end": 9824, + "start": 10081, + "end": 10098, "loc": { "start": { - "line": 250, + "line": 255, "column": 8 }, "end": { - "line": 250, + "line": 255, "column": 25 } }, "object": { "type": "Identifier", - "start": 9807, - "end": 9813, + "start": 10081, + "end": 10087, "loc": { "start": { - "line": 250, + "line": 255, "column": 8 }, "end": { - "line": 250, + "line": 255, "column": 14 }, "identifierName": "editor" @@ -19779,15 +20277,15 @@ }, "property": { "type": "Identifier", - "start": 9814, - "end": 9824, + "start": 10088, + "end": 10098, "loc": { "start": { - "line": 250, + "line": 255, "column": 15 }, "end": { - "line": 250, + "line": 255, "column": 25 }, "identifierName": "recognizer" @@ -19798,15 +20296,15 @@ }, "property": { "type": "Identifier", - "start": 9825, - "end": 9838, + "start": 10099, + "end": 10112, "loc": { "start": { - "line": 250, + "line": 255, "column": 26 }, "end": { - "line": 250, + "line": 255, "column": 39 }, "identifierName": "pointerEvents" @@ -19818,29 +20316,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 9839, - "end": 9863, + "start": 10113, + "end": 10137, "loc": { "start": { - "line": 250, + "line": 255, "column": 40 }, "end": { - "line": 250, + "line": 255, "column": 64 } }, "object": { "type": "Identifier", - "start": 9839, - "end": 9845, + "start": 10113, + "end": 10119, "loc": { "start": { - "line": 250, + "line": 255, "column": 40 }, "end": { - "line": 250, + "line": 255, "column": 46 }, "identifierName": "editor" @@ -19849,15 +20347,15 @@ }, "property": { "type": "Identifier", - "start": 9846, - "end": 9863, + "start": 10120, + "end": 10137, "loc": { "start": { - "line": 250, + "line": 255, "column": 47 }, "end": { - "line": 250, + "line": 255, "column": 64 }, "identifierName": "recognizerContext" @@ -19868,15 +20366,15 @@ }, { "type": "Identifier", - "start": 9865, - "end": 9870, + "start": 10139, + "end": 10144, "loc": { "start": { - "line": 250, + "line": 255, "column": 66 }, "end": { - "line": 250, + "line": 255, "column": 71 }, "identifierName": "model" @@ -19885,15 +20383,15 @@ }, { "type": "Identifier", - "start": 9872, - "end": 9878, + "start": 10146, + "end": 10152, "loc": { "start": { - "line": 250, + "line": 255, "column": 73 }, "end": { - "line": 250, + "line": 255, "column": 79 }, "identifierName": "events" @@ -19902,15 +20400,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 9880, - "end": 9973, + "start": 10154, + "end": 10247, "loc": { "start": { - "line": 250, + "line": 255, "column": 81 }, "end": { - "line": 252, + "line": 257, "column": 9 } }, @@ -19921,15 +20419,15 @@ "params": [ { "type": "Identifier", - "start": 9881, - "end": 9884, + "start": 10155, + "end": 10158, "loc": { "start": { - "line": 250, + "line": 255, "column": 82 }, "end": { - "line": 250, + "line": 255, "column": 85 }, "identifierName": "err" @@ -19938,15 +20436,15 @@ }, { "type": "Identifier", - "start": 9886, - "end": 9889, + "start": 10160, + "end": 10163, "loc": { "start": { - "line": 250, + "line": 255, "column": 87 }, "end": { - "line": 250, + "line": 255, "column": 90 }, "identifierName": "res" @@ -19955,29 +20453,29 @@ }, { "type": "RestElement", - "start": 9891, - "end": 9899, + "start": 10165, + "end": 10173, "loc": { "start": { - "line": 250, + "line": 255, "column": 92 }, "end": { - "line": 250, + "line": 255, "column": 100 } }, "argument": { "type": "Identifier", - "start": 9894, - "end": 9899, + "start": 10168, + "end": 10173, "loc": { "start": { - "line": 250, + "line": 255, "column": 95 }, "end": { - "line": 250, + "line": 255, "column": 100 }, "identifierName": "types" @@ -19988,58 +20486,58 @@ ], "body": { "type": "BlockStatement", - "start": 9904, - "end": 9973, + "start": 10178, + "end": 10247, "loc": { "start": { - "line": 250, + "line": 255, "column": 105 }, "end": { - "line": 252, + "line": 257, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 9916, - "end": 9963, + "start": 10190, + "end": 10237, "loc": { "start": { - "line": 251, + "line": 256, "column": 10 }, "end": { - "line": 251, + "line": 256, "column": 57 } }, "expression": { "type": "CallExpression", - "start": 9916, - "end": 9962, + "start": 10190, + "end": 10236, "loc": { "start": { - "line": 251, + "line": 256, "column": 10 }, "end": { - "line": 251, + "line": 256, "column": 56 } }, "callee": { "type": "Identifier", - "start": 9916, - "end": 9934, + "start": 10190, + "end": 10208, "loc": { "start": { - "line": 251, + "line": 256, "column": 10 }, "end": { - "line": 251, + "line": 256, "column": 28 }, "identifierName": "recognizerCallback" @@ -20049,15 +20547,15 @@ "arguments": [ { "type": "Identifier", - "start": 9935, - "end": 9941, + "start": 10209, + "end": 10215, "loc": { "start": { - "line": 251, + "line": 256, "column": 29 }, "end": { - "line": 251, + "line": 256, "column": 35 }, "identifierName": "editor" @@ -20066,15 +20564,15 @@ }, { "type": "Identifier", - "start": 9943, - "end": 9946, + "start": 10217, + "end": 10220, "loc": { "start": { - "line": 251, + "line": 256, "column": 37 }, "end": { - "line": 251, + "line": 256, "column": 40 }, "identifierName": "err" @@ -20083,15 +20581,15 @@ }, { "type": "Identifier", - "start": 9948, - "end": 9951, + "start": 10222, + "end": 10225, "loc": { "start": { - "line": 251, + "line": 256, "column": 42 }, "end": { - "line": 251, + "line": 256, "column": 45 }, "identifierName": "res" @@ -20100,29 +20598,29 @@ }, { "type": "SpreadElement", - "start": 9953, - "end": 9961, + "start": 10227, + "end": 10235, "loc": { "start": { - "line": 251, + "line": 256, "column": 47 }, "end": { - "line": 251, + "line": 256, "column": 55 } }, "argument": { "type": "Identifier", - "start": 9956, - "end": 9961, + "start": 10230, + "end": 10235, "loc": { "start": { - "line": 251, + "line": 256, "column": 50 }, "end": { - "line": 251, + "line": 256, "column": 55 }, "identifierName": "types" @@ -20160,15 +20658,15 @@ { "type": "CommentBlock", "value": "*\n * Launch ink import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {PointerEvents} events\n ", - "start": 9509, - "end": 9621, + "start": 9783, + "end": 9895, "loc": { "start": { - "line": 240, + "line": 245, "column": 0 }, "end": { - "line": 245, + "line": 250, "column": 3 } } @@ -20178,15 +20676,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [requestedMimeTypes]\n * @param {String} [trigger]\n ", - "start": 9993, - "end": 10195, + "start": 10267, + "end": 10469, "loc": { "start": { - "line": 257, + "line": 262, "column": 0 }, "end": { - "line": 263, + "line": 268, "column": 3 } } @@ -20195,29 +20693,29 @@ }, { "type": "FunctionDeclaration", - "start": 10196, - "end": 11065, + "start": 10470, + "end": 11339, "loc": { "start": { - "line": 264, + "line": 269, "column": 0 }, "end": { - "line": 280, + "line": 285, "column": 1 } }, "id": { "type": "Identifier", - "start": 10205, - "end": 10217, + "start": 10479, + "end": 10491, "loc": { "start": { - "line": 264, + "line": 269, "column": 9 }, "end": { - "line": 264, + "line": 269, "column": 21 }, "identifierName": "launchExport" @@ -20231,15 +20729,15 @@ "params": [ { "type": "Identifier", - "start": 10218, - "end": 10224, + "start": 10492, + "end": 10498, "loc": { "start": { - "line": 264, + "line": 269, "column": 22 }, "end": { - "line": 264, + "line": 269, "column": 28 }, "identifierName": "editor" @@ -20248,15 +20746,15 @@ }, { "type": "Identifier", - "start": 10226, - "end": 10231, + "start": 10500, + "end": 10505, "loc": { "start": { - "line": 264, + "line": 269, "column": 30 }, "end": { - "line": 264, + "line": 269, "column": 35 }, "identifierName": "model" @@ -20265,15 +20763,15 @@ }, { "type": "Identifier", - "start": 10233, - "end": 10251, + "start": 10507, + "end": 10525, "loc": { "start": { - "line": 264, + "line": 269, "column": 37 }, "end": { - "line": 264, + "line": 269, "column": 55 }, "identifierName": "requestedMimeTypes" @@ -20282,29 +20780,29 @@ }, { "type": "AssignmentPattern", - "start": 10253, - "end": 10306, + "start": 10527, + "end": 10580, "loc": { "start": { - "line": 264, + "line": 269, "column": 57 }, "end": { - "line": 264, + "line": 269, "column": 110 } }, "left": { "type": "Identifier", - "start": 10253, - "end": 10260, + "start": 10527, + "end": 10534, "loc": { "start": { - "line": 264, + "line": 269, "column": 57 }, "end": { - "line": 264, + "line": 269, "column": 64 }, "identifierName": "trigger" @@ -20313,57 +20811,57 @@ }, "right": { "type": "MemberExpression", - "start": 10263, - "end": 10306, + "start": 10537, + "end": 10580, "loc": { "start": { - "line": 264, + "line": 269, "column": 67 }, "end": { - "line": 264, + "line": 269, "column": 110 } }, "object": { "type": "MemberExpression", - "start": 10263, - "end": 10292, + "start": 10537, + "end": 10566, "loc": { "start": { - "line": 264, + "line": 269, "column": 67 }, "end": { - "line": 264, + "line": 269, "column": 96 } }, "object": { "type": "MemberExpression", - "start": 10263, - "end": 10283, + "start": 10537, + "end": 10557, "loc": { "start": { - "line": 264, + "line": 269, "column": 67 }, "end": { - "line": 264, + "line": 269, "column": 87 } }, "object": { "type": "Identifier", - "start": 10263, - "end": 10269, + "start": 10537, + "end": 10543, "loc": { "start": { - "line": 264, + "line": 269, "column": 67 }, "end": { - "line": 264, + "line": 269, "column": 73 }, "identifierName": "editor" @@ -20372,15 +20870,15 @@ }, "property": { "type": "Identifier", - "start": 10270, - "end": 10283, + "start": 10544, + "end": 10557, "loc": { "start": { - "line": 264, + "line": 269, "column": 74 }, "end": { - "line": 264, + "line": 269, "column": 87 }, "identifierName": "configuration" @@ -20391,15 +20889,15 @@ }, "property": { "type": "Identifier", - "start": 10284, - "end": 10292, + "start": 10558, + "end": 10566, "loc": { "start": { - "line": 264, + "line": 269, "column": 88 }, "end": { - "line": 264, + "line": 269, "column": 96 }, "identifierName": "triggers" @@ -20410,15 +20908,15 @@ }, "property": { "type": "Identifier", - "start": 10293, - "end": 10306, + "start": 10567, + "end": 10580, "loc": { "start": { - "line": 264, + "line": 269, "column": 97 }, "end": { - "line": 264, + "line": 269, "column": 110 }, "identifierName": "exportContent" @@ -20431,72 +20929,72 @@ ], "body": { "type": "BlockStatement", - "start": 10308, - "end": 11065, + "start": 10582, + "end": 11339, "loc": { "start": { - "line": 264, + "line": 269, "column": 112 }, "end": { - "line": 280, + "line": 285, "column": 1 } }, "body": [ { "type": "IfStatement", - "start": 10312, - "end": 11063, + "start": 10586, + "end": 11337, "loc": { "start": { - "line": 265, + "line": 270, "column": 2 }, "end": { - "line": 279, + "line": 284, "column": 3 } }, "test": { "type": "LogicalExpression", - "start": 10316, - "end": 10362, + "start": 10590, + "end": 10636, "loc": { "start": { - "line": 265, + "line": 270, "column": 6 }, "end": { - "line": 265, + "line": 270, "column": 52 } }, "left": { "type": "MemberExpression", - "start": 10316, - "end": 10333, + "start": 10590, + "end": 10607, "loc": { "start": { - "line": 265, + "line": 270, "column": 6 }, "end": { - "line": 265, + "line": 270, "column": 23 } }, "object": { "type": "Identifier", - "start": 10316, - "end": 10322, + "start": 10590, + "end": 10596, "loc": { "start": { - "line": 265, + "line": 270, "column": 6 }, "end": { - "line": 265, + "line": 270, "column": 12 }, "identifierName": "editor" @@ -20505,15 +21003,15 @@ }, "property": { "type": "Identifier", - "start": 10323, - "end": 10333, + "start": 10597, + "end": 10607, "loc": { "start": { - "line": 265, + "line": 270, "column": 13 }, "end": { - "line": 265, + "line": 270, "column": 23 }, "identifierName": "recognizer" @@ -20525,43 +21023,43 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 10337, - "end": 10362, + "start": 10611, + "end": 10636, "loc": { "start": { - "line": 265, + "line": 270, "column": 27 }, "end": { - "line": 265, + "line": 270, "column": 52 } }, "object": { "type": "MemberExpression", - "start": 10337, - "end": 10354, + "start": 10611, + "end": 10628, "loc": { "start": { - "line": 265, + "line": 270, "column": 27 }, "end": { - "line": 265, + "line": 270, "column": 44 } }, "object": { "type": "Identifier", - "start": 10337, - "end": 10343, + "start": 10611, + "end": 10617, "loc": { "start": { - "line": 265, + "line": 270, "column": 27 }, "end": { - "line": 265, + "line": 270, "column": 33 }, "identifierName": "editor" @@ -20570,15 +21068,15 @@ }, "property": { "type": "Identifier", - "start": 10344, - "end": 10354, + "start": 10618, + "end": 10628, "loc": { "start": { - "line": 265, + "line": 270, "column": 34 }, "end": { - "line": 265, + "line": 270, "column": 44 }, "identifierName": "recognizer" @@ -20589,15 +21087,15 @@ }, "property": { "type": "Identifier", - "start": 10355, - "end": 10362, + "start": 10629, + "end": 10636, "loc": { "start": { - "line": 265, + "line": 270, "column": 45 }, "end": { - "line": 265, + "line": 270, "column": 52 }, "identifierName": "export_" @@ -20609,100 +21107,100 @@ }, "consequent": { "type": "BlockStatement", - "start": 10364, - "end": 11063, + "start": 10638, + "end": 11337, "loc": { "start": { - "line": 265, + "line": 270, "column": 54 }, "end": { - "line": 279, + "line": 284, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 10370, - "end": 11059, + "start": 10644, + "end": 11333, "loc": { "start": { - "line": 266, + "line": 271, "column": 4 }, "end": { - "line": 278, + "line": 283, "column": 9 } }, "expression": { "type": "CallExpression", - "start": 10370, - "end": 11058, + "start": 10644, + "end": 11332, "loc": { "start": { - "line": 266, + "line": 271, "column": 4 }, "end": { - "line": 278, + "line": 283, "column": 8 } }, "callee": { "type": "MemberExpression", - "start": 10370, - "end": 10418, + "start": 10644, + "end": 10692, "loc": { "start": { - "line": 266, + "line": 271, "column": 4 }, "end": { - "line": 267, + "line": 272, "column": 11 } }, "object": { "type": "MemberExpression", - "start": 10370, - "end": 10406, + "start": 10644, + "end": 10680, "loc": { "start": { - "line": 266, + "line": 271, "column": 4 }, "end": { - "line": 266, + "line": 271, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 10370, - "end": 10394, + "start": 10644, + "end": 10668, "loc": { "start": { - "line": 266, + "line": 271, "column": 4 }, "end": { - "line": 266, + "line": 271, "column": 28 } }, "object": { "type": "Identifier", - "start": 10370, - "end": 10376, + "start": 10644, + "end": 10650, "loc": { "start": { - "line": 266, + "line": 271, "column": 4 }, "end": { - "line": 266, + "line": 271, "column": 10 }, "identifierName": "editor" @@ -20711,15 +21209,15 @@ }, "property": { "type": "Identifier", - "start": 10377, - "end": 10394, + "start": 10651, + "end": 10668, "loc": { "start": { - "line": 266, + "line": 271, "column": 11 }, "end": { - "line": 266, + "line": 271, "column": 28 }, "identifierName": "recognizerContext" @@ -20730,15 +21228,15 @@ }, "property": { "type": "Identifier", - "start": 10395, - "end": 10406, + "start": 10669, + "end": 10680, "loc": { "start": { - "line": 266, + "line": 271, "column": 29 }, "end": { - "line": 266, + "line": 271, "column": 40 }, "identifierName": "initPromise" @@ -20749,15 +21247,15 @@ }, "property": { "type": "Identifier", - "start": 10414, - "end": 10418, + "start": 10688, + "end": 10692, "loc": { "start": { - "line": 267, + "line": 272, "column": 7 }, "end": { - "line": 267, + "line": 272, "column": 11 }, "identifierName": "then" @@ -20769,15 +21267,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 10419, - "end": 11057, + "start": 10693, + "end": 11331, "loc": { "start": { - "line": 267, + "line": 272, "column": 12 }, "end": { - "line": 278, + "line": 283, "column": 7 } }, @@ -20788,58 +21286,58 @@ "params": [], "body": { "type": "BlockStatement", - "start": 10425, - "end": 11057, + "start": 10699, + "end": 11331, "loc": { "start": { - "line": 267, + "line": 272, "column": 18 }, "end": { - "line": 278, + "line": 283, "column": 7 } }, "body": [ { "type": "IfStatement", - "start": 10501, - "end": 11049, + "start": 10775, + "end": 11323, "loc": { "start": { - "line": 269, + "line": 274, "column": 8 }, "end": { - "line": 277, + "line": 282, "column": 9 } }, "test": { "type": "CallExpression", - "start": 10505, - "end": 10553, + "start": 10779, + "end": 10827, "loc": { "start": { - "line": 269, + "line": 274, "column": 12 }, "end": { - "line": 269, + "line": 274, "column": 60 } }, "callee": { "type": "Identifier", - "start": 10505, - "end": 10519, + "start": 10779, + "end": 10793, "loc": { "start": { - "line": 269, + "line": 274, "column": 12 }, "end": { - "line": 269, + "line": 274, "column": 26 }, "identifierName": "isTriggerValid" @@ -20850,15 +21348,15 @@ "arguments": [ { "type": "Identifier", - "start": 10520, - "end": 10526, + "start": 10794, + "end": 10800, "loc": { "start": { - "line": 269, + "line": 274, "column": 27 }, "end": { - "line": 269, + "line": 274, "column": 33 }, "identifierName": "editor" @@ -20867,15 +21365,15 @@ }, { "type": "StringLiteral", - "start": 10528, - "end": 10543, + "start": 10802, + "end": 10817, "loc": { "start": { - "line": 269, + "line": 274, "column": 35 }, "end": { - "line": 269, + "line": 274, "column": 50 } }, @@ -20887,15 +21385,15 @@ }, { "type": "Identifier", - "start": 10545, - "end": 10552, + "start": 10819, + "end": 10826, "loc": { "start": { - "line": 269, + "line": 274, "column": 52 }, "end": { - "line": 269, + "line": 274, "column": 59 }, "identifierName": "trigger" @@ -20907,59 +21405,59 @@ }, "consequent": { "type": "BlockStatement", - "start": 10555, - "end": 11049, + "start": 10829, + "end": 11323, "loc": { "start": { - "line": 269, + "line": 274, "column": 62 }, "end": { - "line": 277, + "line": 282, "column": 9 } }, "body": [ { "type": "VariableDeclaration", - "start": 10567, - "end": 10592, + "start": 10841, + "end": 10866, "loc": { "start": { - "line": 270, + "line": 275, "column": 10 }, "end": { - "line": 270, + "line": 275, "column": 35 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 10573, - "end": 10591, + "start": 10847, + "end": 10865, "loc": { "start": { - "line": 270, + "line": 275, "column": 16 }, "end": { - "line": 270, + "line": 275, "column": 34 } }, "id": { "type": "Identifier", - "start": 10573, - "end": 10582, + "start": 10847, + "end": 10856, "loc": { "start": { - "line": 270, + "line": 275, "column": 16 }, "end": { - "line": 270, + "line": 275, "column": 25 }, "identifierName": "editorRef" @@ -20968,15 +21466,15 @@ }, "init": { "type": "Identifier", - "start": 10585, - "end": 10591, + "start": 10859, + "end": 10865, "loc": { "start": { - "line": 270, + "line": 275, "column": 28 }, "end": { - "line": 270, + "line": 275, "column": 34 }, "identifierName": "editor" @@ -20989,57 +21487,57 @@ }, { "type": "ExpressionStatement", - "start": 10603, - "end": 10643, + "start": 10877, + "end": 10917, "loc": { "start": { - "line": 271, + "line": 276, "column": 10 }, "end": { - "line": 271, + "line": 276, "column": 50 } }, "expression": { "type": "CallExpression", - "start": 10603, - "end": 10642, + "start": 10877, + "end": 10916, "loc": { "start": { - "line": 271, + "line": 276, "column": 10 }, "end": { - "line": 271, + "line": 276, "column": 49 } }, "callee": { "type": "MemberExpression", - "start": 10603, - "end": 10622, + "start": 10877, + "end": 10896, "loc": { "start": { - "line": 271, + "line": 276, "column": 10 }, "end": { - "line": 271, + "line": 276, "column": 29 } }, "object": { "type": "Identifier", - "start": 10603, - "end": 10609, + "start": 10877, + "end": 10883, "loc": { "start": { - "line": 271, + "line": 276, "column": 10 }, "end": { - "line": 271, + "line": 276, "column": 16 }, "identifierName": "window" @@ -21048,15 +21546,15 @@ }, "property": { "type": "Identifier", - "start": 10610, - "end": 10622, + "start": 10884, + "end": 10896, "loc": { "start": { - "line": 271, + "line": 276, "column": 17 }, "end": { - "line": 271, + "line": 276, "column": 29 }, "identifierName": "clearTimeout" @@ -21068,29 +21566,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 10623, - "end": 10641, + "start": 10897, + "end": 10915, "loc": { "start": { - "line": 271, + "line": 276, "column": 30 }, "end": { - "line": 271, + "line": 276, "column": 48 } }, "object": { "type": "Identifier", - "start": 10623, - "end": 10629, + "start": 10897, + "end": 10903, "loc": { "start": { - "line": 271, + "line": 276, "column": 30 }, "end": { - "line": 271, + "line": 276, "column": 36 }, "identifierName": "editor" @@ -21099,15 +21597,15 @@ }, "property": { "type": "Identifier", - "start": 10630, - "end": 10641, + "start": 10904, + "end": 10915, "loc": { "start": { - "line": 271, + "line": 276, "column": 37 }, "end": { - "line": 271, + "line": 276, "column": 48 }, "identifierName": "exportTimer" @@ -21121,58 +21619,58 @@ }, { "type": "ExpressionStatement", - "start": 10654, - "end": 11039, + "start": 10928, + "end": 11313, "loc": { "start": { - "line": 272, + "line": 277, "column": 10 }, "end": { - "line": 276, + "line": 281, "column": 97 } }, "expression": { "type": "AssignmentExpression", - "start": 10654, - "end": 11038, + "start": 10928, + "end": 11312, "loc": { "start": { - "line": 272, + "line": 277, "column": 10 }, "end": { - "line": 276, + "line": 281, "column": 96 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 10654, - "end": 10675, + "start": 10928, + "end": 10949, "loc": { "start": { - "line": 272, + "line": 277, "column": 10 }, "end": { - "line": 272, + "line": 277, "column": 31 } }, "object": { "type": "Identifier", - "start": 10654, - "end": 10663, + "start": 10928, + "end": 10937, "loc": { "start": { - "line": 272, + "line": 277, "column": 10 }, "end": { - "line": 272, + "line": 277, "column": 19 }, "identifierName": "editorRef" @@ -21181,15 +21679,15 @@ }, "property": { "type": "Identifier", - "start": 10664, - "end": 10675, + "start": 10938, + "end": 10949, "loc": { "start": { - "line": 272, + "line": 277, "column": 20 }, "end": { - "line": 272, + "line": 277, "column": 31 }, "identifierName": "exportTimer" @@ -21200,43 +21698,43 @@ }, "right": { "type": "CallExpression", - "start": 10678, - "end": 11038, + "start": 10952, + "end": 11312, "loc": { "start": { - "line": 272, + "line": 277, "column": 34 }, "end": { - "line": 276, + "line": 281, "column": 96 } }, "callee": { "type": "MemberExpression", - "start": 10678, - "end": 10695, + "start": 10952, + "end": 10969, "loc": { "start": { - "line": 272, + "line": 277, "column": 34 }, "end": { - "line": 272, + "line": 277, "column": 51 } }, "object": { "type": "Identifier", - "start": 10678, - "end": 10684, + "start": 10952, + "end": 10958, "loc": { "start": { - "line": 272, + "line": 277, "column": 34 }, "end": { - "line": 272, + "line": 277, "column": 40 }, "identifierName": "window" @@ -21245,15 +21743,15 @@ }, "property": { "type": "Identifier", - "start": 10685, - "end": 10695, + "start": 10959, + "end": 10969, "loc": { "start": { - "line": 272, + "line": 277, "column": 41 }, "end": { - "line": 272, + "line": 277, "column": 51 }, "identifierName": "setTimeout" @@ -21265,15 +21763,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 10696, - "end": 10953, + "start": 10970, + "end": 11227, "loc": { "start": { - "line": 272, + "line": 277, "column": 52 }, "end": { - "line": 276, + "line": 281, "column": 11 } }, @@ -21284,58 +21782,58 @@ "params": [], "body": { "type": "BlockStatement", - "start": 10702, - "end": 10953, + "start": 10976, + "end": 11227, "loc": { "start": { - "line": 272, + "line": 277, "column": 58 }, "end": { - "line": 276, + "line": 281, "column": 11 } }, "body": [ { "type": "ExpressionStatement", - "start": 10716, - "end": 10941, + "start": 10990, + "end": 11215, "loc": { "start": { - "line": 273, + "line": 278, "column": 12 }, "end": { - "line": 275, + "line": 280, "column": 35 } }, "expression": { "type": "CallExpression", - "start": 10716, - "end": 10940, + "start": 10990, + "end": 11214, "loc": { "start": { - "line": 273, + "line": 278, "column": 12 }, "end": { - "line": 275, + "line": 280, "column": 34 } }, "callee": { "type": "Identifier", - "start": 10716, - "end": 10732, + "start": 10990, + "end": 11006, "loc": { "start": { - "line": 273, + "line": 278, "column": 12 }, "end": { - "line": 273, + "line": 278, "column": 28 }, "identifierName": "manageResetState" @@ -21345,43 +21843,43 @@ "arguments": [ { "type": "MemberExpression", - "start": 10733, - "end": 10756, + "start": 11007, + "end": 11030, "loc": { "start": { - "line": 273, + "line": 278, "column": 29 }, "end": { - "line": 273, + "line": 278, "column": 52 } }, "object": { "type": "MemberExpression", - "start": 10733, - "end": 10750, + "start": 11007, + "end": 11024, "loc": { "start": { - "line": 273, + "line": 278, "column": 29 }, "end": { - "line": 273, + "line": 278, "column": 46 } }, "object": { "type": "Identifier", - "start": 10733, - "end": 10739, + "start": 11007, + "end": 11013, "loc": { "start": { - "line": 273, + "line": 278, "column": 29 }, "end": { - "line": 273, + "line": 278, "column": 35 }, "identifierName": "editor" @@ -21390,15 +21888,15 @@ }, "property": { "type": "Identifier", - "start": 10740, - "end": 10750, + "start": 11014, + "end": 11024, "loc": { "start": { - "line": 273, + "line": 278, "column": 36 }, "end": { - "line": 273, + "line": 278, "column": 46 }, "identifierName": "recognizer" @@ -21409,15 +21907,15 @@ }, "property": { "type": "Identifier", - "start": 10751, - "end": 10756, + "start": 11025, + "end": 11030, "loc": { "start": { - "line": 273, + "line": 278, "column": 47 }, "end": { - "line": 273, + "line": 278, "column": 52 }, "identifierName": "reset" @@ -21428,43 +21926,43 @@ }, { "type": "MemberExpression", - "start": 10758, - "end": 10783, + "start": 11032, + "end": 11057, "loc": { "start": { - "line": 273, + "line": 278, "column": 54 }, "end": { - "line": 273, + "line": 278, "column": 79 } }, "object": { "type": "MemberExpression", - "start": 10758, - "end": 10775, + "start": 11032, + "end": 11049, "loc": { "start": { - "line": 273, + "line": 278, "column": 54 }, "end": { - "line": 273, + "line": 278, "column": 71 } }, "object": { "type": "Identifier", - "start": 10758, - "end": 10764, + "start": 11032, + "end": 11038, "loc": { "start": { - "line": 273, + "line": 278, "column": 54 }, "end": { - "line": 273, + "line": 278, "column": 60 }, "identifierName": "editor" @@ -21473,15 +21971,15 @@ }, "property": { "type": "Identifier", - "start": 10765, - "end": 10775, + "start": 11039, + "end": 11049, "loc": { "start": { - "line": 273, + "line": 278, "column": 61 }, "end": { - "line": 273, + "line": 278, "column": 71 }, "identifierName": "recognizer" @@ -21492,15 +21990,15 @@ }, "property": { "type": "Identifier", - "start": 10776, - "end": 10783, + "start": 11050, + "end": 11057, "loc": { "start": { - "line": 273, + "line": 278, "column": 72 }, "end": { - "line": 273, + "line": 278, "column": 79 }, "identifierName": "export_" @@ -21511,29 +22009,29 @@ }, { "type": "MemberExpression", - "start": 10785, - "end": 10809, + "start": 11059, + "end": 11083, "loc": { "start": { - "line": 273, + "line": 278, "column": 81 }, "end": { - "line": 273, + "line": 278, "column": 105 } }, "object": { "type": "Identifier", - "start": 10785, - "end": 10791, + "start": 11059, + "end": 11065, "loc": { "start": { - "line": 273, + "line": 278, "column": 81 }, "end": { - "line": 273, + "line": 278, "column": 87 }, "identifierName": "editor" @@ -21542,15 +22040,15 @@ }, "property": { "type": "Identifier", - "start": 10792, - "end": 10809, + "start": 11066, + "end": 11083, "loc": { "start": { - "line": 273, + "line": 278, "column": 88 }, "end": { - "line": 273, + "line": 278, "column": 105 }, "identifierName": "recognizerContext" @@ -21561,15 +22059,15 @@ }, { "type": "Identifier", - "start": 10811, - "end": 10816, + "start": 11085, + "end": 11090, "loc": { "start": { - "line": 273, + "line": 278, "column": 107 }, "end": { - "line": 273, + "line": 278, "column": 112 }, "identifierName": "model" @@ -21578,15 +22076,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 10818, - "end": 10919, + "start": 11092, + "end": 11193, "loc": { "start": { - "line": 273, + "line": 278, "column": 114 }, "end": { - "line": 275, + "line": 280, "column": 13 } }, @@ -21597,15 +22095,15 @@ "params": [ { "type": "Identifier", - "start": 10819, - "end": 10822, + "start": 11093, + "end": 11096, "loc": { "start": { - "line": 273, + "line": 278, "column": 115 }, "end": { - "line": 273, + "line": 278, "column": 118 }, "identifierName": "err" @@ -21614,15 +22112,15 @@ }, { "type": "Identifier", - "start": 10824, - "end": 10827, + "start": 11098, + "end": 11101, "loc": { "start": { - "line": 273, + "line": 278, "column": 120 }, "end": { - "line": 273, + "line": 278, "column": 123 }, "identifierName": "res" @@ -21631,29 +22129,29 @@ }, { "type": "RestElement", - "start": 10829, - "end": 10837, + "start": 11103, + "end": 11111, "loc": { "start": { - "line": 273, + "line": 278, "column": 125 }, "end": { - "line": 273, + "line": 278, "column": 133 } }, "argument": { "type": "Identifier", - "start": 10832, - "end": 10837, + "start": 11106, + "end": 11111, "loc": { "start": { - "line": 273, + "line": 278, "column": 128 }, "end": { - "line": 273, + "line": 278, "column": 133 }, "identifierName": "types" @@ -21664,58 +22162,58 @@ ], "body": { "type": "BlockStatement", - "start": 10842, - "end": 10919, + "start": 11116, + "end": 11193, "loc": { "start": { - "line": 273, + "line": 278, "column": 138 }, "end": { - "line": 275, + "line": 280, "column": 13 } }, "body": [ { "type": "ExpressionStatement", - "start": 10858, - "end": 10905, + "start": 11132, + "end": 11179, "loc": { "start": { - "line": 274, + "line": 279, "column": 14 }, "end": { - "line": 274, + "line": 279, "column": 61 } }, "expression": { "type": "CallExpression", - "start": 10858, - "end": 10904, + "start": 11132, + "end": 11178, "loc": { "start": { - "line": 274, + "line": 279, "column": 14 }, "end": { - "line": 274, + "line": 279, "column": 60 } }, "callee": { "type": "Identifier", - "start": 10858, - "end": 10876, + "start": 11132, + "end": 11150, "loc": { "start": { - "line": 274, + "line": 279, "column": 14 }, "end": { - "line": 274, + "line": 279, "column": 32 }, "identifierName": "recognizerCallback" @@ -21725,15 +22223,15 @@ "arguments": [ { "type": "Identifier", - "start": 10877, - "end": 10883, + "start": 11151, + "end": 11157, "loc": { "start": { - "line": 274, + "line": 279, "column": 33 }, "end": { - "line": 274, + "line": 279, "column": 39 }, "identifierName": "editor" @@ -21742,15 +22240,15 @@ }, { "type": "Identifier", - "start": 10885, - "end": 10888, + "start": 11159, + "end": 11162, "loc": { "start": { - "line": 274, + "line": 279, "column": 41 }, "end": { - "line": 274, + "line": 279, "column": 44 }, "identifierName": "err" @@ -21759,15 +22257,15 @@ }, { "type": "Identifier", - "start": 10890, - "end": 10893, + "start": 11164, + "end": 11167, "loc": { "start": { - "line": 274, + "line": 279, "column": 46 }, "end": { - "line": 274, + "line": 279, "column": 49 }, "identifierName": "res" @@ -21776,29 +22274,29 @@ }, { "type": "SpreadElement", - "start": 10895, - "end": 10903, + "start": 11169, + "end": 11177, "loc": { "start": { - "line": 274, + "line": 279, "column": 51 }, "end": { - "line": 274, + "line": 279, "column": 59 } }, "argument": { "type": "Identifier", - "start": 10898, - "end": 10903, + "start": 11172, + "end": 11177, "loc": { "start": { - "line": 274, + "line": 279, "column": 54 }, "end": { - "line": 274, + "line": 279, "column": 59 }, "identifierName": "types" @@ -21815,15 +22313,15 @@ }, { "type": "Identifier", - "start": 10921, - "end": 10939, + "start": 11195, + "end": 11213, "loc": { "start": { - "line": 275, + "line": 280, "column": 15 }, "end": { - "line": 275, + "line": 280, "column": 33 }, "identifierName": "requestedMimeTypes" @@ -21839,43 +22337,43 @@ }, { "type": "ConditionalExpression", - "start": 10955, - "end": 11037, + "start": 11229, + "end": 11311, "loc": { "start": { - "line": 276, + "line": 281, "column": 13 }, "end": { - "line": 276, + "line": 281, "column": 95 } }, "test": { "type": "BinaryExpression", - "start": 10955, - "end": 10997, + "start": 11229, + "end": 11271, "loc": { "start": { - "line": 276, + "line": 281, "column": 13 }, "end": { - "line": 276, + "line": 281, "column": 55 } }, "left": { "type": "Identifier", - "start": 10955, - "end": 10962, + "start": 11229, + "end": 11236, "loc": { "start": { - "line": 276, + "line": 281, "column": 13 }, "end": { - "line": 276, + "line": 281, "column": 20 }, "identifierName": "trigger" @@ -21885,43 +22383,43 @@ "operator": "===", "right": { "type": "MemberExpression", - "start": 10967, - "end": 10997, + "start": 11241, + "end": 11271, "loc": { "start": { - "line": 276, + "line": 281, "column": 25 }, "end": { - "line": 276, + "line": 281, "column": 55 } }, "object": { "type": "MemberExpression", - "start": 10967, - "end": 10984, + "start": 11241, + "end": 11258, "loc": { "start": { - "line": 276, + "line": 281, "column": 25 }, "end": { - "line": 276, + "line": 281, "column": 42 } }, "object": { "type": "Identifier", - "start": 10967, - "end": 10976, + "start": 11241, + "end": 11250, "loc": { "start": { - "line": 276, + "line": 281, "column": 25 }, "end": { - "line": 276, + "line": 281, "column": 34 }, "identifierName": "Constants" @@ -21930,15 +22428,15 @@ }, "property": { "type": "Identifier", - "start": 10977, - "end": 10984, + "start": 11251, + "end": 11258, "loc": { "start": { - "line": 276, + "line": 281, "column": 35 }, "end": { - "line": 276, + "line": 281, "column": 42 }, "identifierName": "Trigger" @@ -21949,15 +22447,15 @@ }, "property": { "type": "Identifier", - "start": 10985, - "end": 10997, + "start": 11259, + "end": 11271, "loc": { "start": { - "line": 276, + "line": 281, "column": 43 }, "end": { - "line": 276, + "line": 281, "column": 55 }, "identifierName": "QUIET_PERIOD" @@ -21969,43 +22467,43 @@ }, "consequent": { "type": "MemberExpression", - "start": 11000, - "end": 11033, + "start": 11274, + "end": 11307, "loc": { "start": { - "line": 276, + "line": 281, "column": 58 }, "end": { - "line": 276, + "line": 281, "column": 91 } }, "object": { "type": "MemberExpression", - "start": 11000, - "end": 11020, + "start": 11274, + "end": 11294, "loc": { "start": { - "line": 276, + "line": 281, "column": 58 }, "end": { - "line": 276, + "line": 281, "column": 78 } }, "object": { "type": "Identifier", - "start": 11000, - "end": 11006, + "start": 11274, + "end": 11280, "loc": { "start": { - "line": 276, + "line": 281, "column": 58 }, "end": { - "line": 276, + "line": 281, "column": 64 }, "identifierName": "editor" @@ -22014,15 +22512,15 @@ }, "property": { "type": "Identifier", - "start": 11007, - "end": 11020, + "start": 11281, + "end": 11294, "loc": { "start": { - "line": 276, + "line": 281, "column": 65 }, "end": { - "line": 276, + "line": 281, "column": 78 }, "identifierName": "configuration" @@ -22033,15 +22531,15 @@ }, "property": { "type": "Identifier", - "start": 11021, - "end": 11033, + "start": 11295, + "end": 11307, "loc": { "start": { - "line": 276, + "line": 281, "column": 79 }, "end": { - "line": 276, + "line": 281, "column": 91 }, "identifierName": "triggerDelay" @@ -22052,15 +22550,15 @@ }, "alternate": { "type": "NumericLiteral", - "start": 11036, - "end": 11037, + "start": 11310, + "end": 11311, "loc": { "start": { - "line": 276, + "line": 281, "column": 94 }, "end": { - "line": 276, + "line": 281, "column": 95 } }, @@ -22083,15 +22581,15 @@ { "type": "CommentLine", "value": " Firing export only if recognizer is configure to do it", - "start": 10435, - "end": 10492, + "start": 10709, + "end": 10766, "loc": { "start": { - "line": 268, + "line": 273, "column": 8 }, "end": { - "line": 268, + "line": 273, "column": 65 } } @@ -22118,15 +22616,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [requestedMimeTypes]\n * @param {String} [trigger]\n ", - "start": 9993, - "end": 10195, + "start": 10267, + "end": 10469, "loc": { "start": { - "line": 257, + "line": 262, "column": 0 }, "end": { - "line": 263, + "line": 268, "column": 3 } } @@ -22136,15 +22634,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {Blob} data\n ", - "start": 11067, - "end": 11168, + "start": 11341, + "end": 11442, "loc": { "start": { - "line": 282, + "line": 287, "column": 0 }, "end": { - "line": 287, + "line": 292, "column": 3 } } @@ -22153,29 +22651,29 @@ }, { "type": "FunctionDeclaration", - "start": 11169, - "end": 11515, + "start": 11443, + "end": 11789, "loc": { "start": { - "line": 288, + "line": 293, "column": 0 }, "end": { - "line": 297, + "line": 302, "column": 1 } }, "id": { "type": "Identifier", - "start": 11178, - "end": 11190, + "start": 11452, + "end": 11464, "loc": { "start": { - "line": 288, + "line": 293, "column": 9 }, "end": { - "line": 288, + "line": 293, "column": 21 }, "identifierName": "launchImport" @@ -22189,15 +22687,15 @@ "params": [ { "type": "Identifier", - "start": 11191, - "end": 11197, + "start": 11465, + "end": 11471, "loc": { "start": { - "line": 288, + "line": 293, "column": 22 }, "end": { - "line": 288, + "line": 293, "column": 28 }, "identifierName": "editor" @@ -22206,15 +22704,15 @@ }, { "type": "Identifier", - "start": 11199, - "end": 11204, + "start": 11473, + "end": 11478, "loc": { "start": { - "line": 288, + "line": 293, "column": 30 }, "end": { - "line": 288, + "line": 293, "column": 35 }, "identifierName": "model" @@ -22223,15 +22721,15 @@ }, { "type": "Identifier", - "start": 11206, - "end": 11210, + "start": 11480, + "end": 11484, "loc": { "start": { - "line": 288, + "line": 293, "column": 37 }, "end": { - "line": 288, + "line": 293, "column": 41 }, "identifierName": "data" @@ -22241,72 +22739,72 @@ ], "body": { "type": "BlockStatement", - "start": 11212, - "end": 11515, + "start": 11486, + "end": 11789, "loc": { "start": { - "line": 288, + "line": 293, "column": 43 }, "end": { - "line": 297, + "line": 302, "column": 1 } }, "body": [ { "type": "IfStatement", - "start": 11216, - "end": 11513, + "start": 11490, + "end": 11787, "loc": { "start": { - "line": 289, + "line": 294, "column": 2 }, "end": { - "line": 296, + "line": 301, "column": 3 } }, "test": { "type": "LogicalExpression", - "start": 11220, - "end": 11266, + "start": 11494, + "end": 11540, "loc": { "start": { - "line": 289, + "line": 294, "column": 6 }, "end": { - "line": 289, + "line": 294, "column": 52 } }, "left": { "type": "MemberExpression", - "start": 11220, - "end": 11237, + "start": 11494, + "end": 11511, "loc": { "start": { - "line": 289, + "line": 294, "column": 6 }, "end": { - "line": 289, + "line": 294, "column": 23 } }, "object": { "type": "Identifier", - "start": 11220, - "end": 11226, + "start": 11494, + "end": 11500, "loc": { "start": { - "line": 289, + "line": 294, "column": 6 }, "end": { - "line": 289, + "line": 294, "column": 12 }, "identifierName": "editor" @@ -22315,15 +22813,15 @@ }, "property": { "type": "Identifier", - "start": 11227, - "end": 11237, + "start": 11501, + "end": 11511, "loc": { "start": { - "line": 289, + "line": 294, "column": 13 }, "end": { - "line": 289, + "line": 294, "column": 23 }, "identifierName": "recognizer" @@ -22335,43 +22833,43 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 11241, - "end": 11266, + "start": 11515, + "end": 11540, "loc": { "start": { - "line": 289, + "line": 294, "column": 27 }, "end": { - "line": 289, + "line": 294, "column": 52 } }, "object": { "type": "MemberExpression", - "start": 11241, - "end": 11258, + "start": 11515, + "end": 11532, "loc": { "start": { - "line": 289, + "line": 294, "column": 27 }, "end": { - "line": 289, + "line": 294, "column": 44 } }, "object": { "type": "Identifier", - "start": 11241, - "end": 11247, + "start": 11515, + "end": 11521, "loc": { "start": { - "line": 289, + "line": 294, "column": 27 }, "end": { - "line": 289, + "line": 294, "column": 33 }, "identifierName": "editor" @@ -22380,15 +22878,15 @@ }, "property": { "type": "Identifier", - "start": 11248, - "end": 11258, + "start": 11522, + "end": 11532, "loc": { "start": { - "line": 289, + "line": 294, "column": 34 }, "end": { - "line": 289, + "line": 294, "column": 44 }, "identifierName": "recognizer" @@ -22399,15 +22897,15 @@ }, "property": { "type": "Identifier", - "start": 11259, - "end": 11266, + "start": 11533, + "end": 11540, "loc": { "start": { - "line": 289, + "line": 294, "column": 45 }, "end": { - "line": 289, + "line": 294, "column": 52 }, "identifierName": "import_" @@ -22419,100 +22917,100 @@ }, "consequent": { "type": "BlockStatement", - "start": 11268, - "end": 11513, + "start": 11542, + "end": 11787, "loc": { "start": { - "line": 289, + "line": 294, "column": 54 }, "end": { - "line": 296, + "line": 301, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 11274, - "end": 11509, + "start": 11548, + "end": 11783, "loc": { "start": { - "line": 290, + "line": 295, "column": 4 }, "end": { - "line": 295, + "line": 300, "column": 9 } }, "expression": { "type": "CallExpression", - "start": 11274, - "end": 11508, + "start": 11548, + "end": 11782, "loc": { "start": { - "line": 290, + "line": 295, "column": 4 }, "end": { - "line": 295, + "line": 300, "column": 8 } }, "callee": { "type": "MemberExpression", - "start": 11274, - "end": 11322, + "start": 11548, + "end": 11596, "loc": { "start": { - "line": 290, + "line": 295, "column": 4 }, "end": { - "line": 291, + "line": 296, "column": 11 } }, "object": { "type": "MemberExpression", - "start": 11274, - "end": 11310, + "start": 11548, + "end": 11584, "loc": { "start": { - "line": 290, + "line": 295, "column": 4 }, "end": { - "line": 290, + "line": 295, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 11274, - "end": 11298, + "start": 11548, + "end": 11572, "loc": { "start": { - "line": 290, + "line": 295, "column": 4 }, "end": { - "line": 290, + "line": 295, "column": 28 } }, "object": { "type": "Identifier", - "start": 11274, - "end": 11280, + "start": 11548, + "end": 11554, "loc": { "start": { - "line": 290, + "line": 295, "column": 4 }, "end": { - "line": 290, + "line": 295, "column": 10 }, "identifierName": "editor" @@ -22521,15 +23019,15 @@ }, "property": { "type": "Identifier", - "start": 11281, - "end": 11298, + "start": 11555, + "end": 11572, "loc": { "start": { - "line": 290, + "line": 295, "column": 11 }, "end": { - "line": 290, + "line": 295, "column": 28 }, "identifierName": "recognizerContext" @@ -22540,15 +23038,15 @@ }, "property": { "type": "Identifier", - "start": 11299, - "end": 11310, + "start": 11573, + "end": 11584, "loc": { "start": { - "line": 290, + "line": 295, "column": 29 }, "end": { - "line": 290, + "line": 295, "column": 40 }, "identifierName": "initPromise" @@ -22559,15 +23057,15 @@ }, "property": { "type": "Identifier", - "start": 11318, - "end": 11322, + "start": 11592, + "end": 11596, "loc": { "start": { - "line": 291, + "line": 296, "column": 7 }, "end": { - "line": 291, + "line": 296, "column": 11 }, "identifierName": "then" @@ -22579,15 +23077,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 11323, - "end": 11507, + "start": 11597, + "end": 11781, "loc": { "start": { - "line": 291, + "line": 296, "column": 12 }, "end": { - "line": 295, + "line": 300, "column": 7 } }, @@ -22598,86 +23096,86 @@ "params": [], "body": { "type": "BlockStatement", - "start": 11329, - "end": 11507, + "start": 11603, + "end": 11781, "loc": { "start": { - "line": 291, + "line": 296, "column": 18 }, "end": { - "line": 295, + "line": 300, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 11339, - "end": 11499, + "start": 11613, + "end": 11773, "loc": { "start": { - "line": 292, + "line": 297, "column": 8 }, "end": { - "line": 294, + "line": 299, "column": 11 } }, "expression": { "type": "CallExpression", - "start": 11339, - "end": 11498, + "start": 11613, + "end": 11772, "loc": { "start": { - "line": 292, + "line": 297, "column": 8 }, "end": { - "line": 294, + "line": 299, "column": 10 } }, "callee": { "type": "MemberExpression", - "start": 11339, - "end": 11364, + "start": 11613, + "end": 11638, "loc": { "start": { - "line": 292, + "line": 297, "column": 8 }, "end": { - "line": 292, + "line": 297, "column": 33 } }, "object": { "type": "MemberExpression", - "start": 11339, - "end": 11356, + "start": 11613, + "end": 11630, "loc": { "start": { - "line": 292, + "line": 297, "column": 8 }, "end": { - "line": 292, + "line": 297, "column": 25 } }, "object": { "type": "Identifier", - "start": 11339, - "end": 11345, + "start": 11613, + "end": 11619, "loc": { "start": { - "line": 292, + "line": 297, "column": 8 }, "end": { - "line": 292, + "line": 297, "column": 14 }, "identifierName": "editor" @@ -22686,15 +23184,15 @@ }, "property": { "type": "Identifier", - "start": 11346, - "end": 11356, + "start": 11620, + "end": 11630, "loc": { "start": { - "line": 292, + "line": 297, "column": 15 }, "end": { - "line": 292, + "line": 297, "column": 25 }, "identifierName": "recognizer" @@ -22705,15 +23203,15 @@ }, "property": { "type": "Identifier", - "start": 11357, - "end": 11364, + "start": 11631, + "end": 11638, "loc": { "start": { - "line": 292, + "line": 297, "column": 26 }, "end": { - "line": 292, + "line": 297, "column": 33 }, "identifierName": "import_" @@ -22725,29 +23223,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 11365, - "end": 11389, + "start": 11639, + "end": 11663, "loc": { "start": { - "line": 292, + "line": 297, "column": 34 }, "end": { - "line": 292, + "line": 297, "column": 58 } }, "object": { "type": "Identifier", - "start": 11365, - "end": 11371, + "start": 11639, + "end": 11645, "loc": { "start": { - "line": 292, + "line": 297, "column": 34 }, "end": { - "line": 292, + "line": 297, "column": 40 }, "identifierName": "editor" @@ -22756,15 +23254,15 @@ }, "property": { "type": "Identifier", - "start": 11372, - "end": 11389, + "start": 11646, + "end": 11663, "loc": { "start": { - "line": 292, + "line": 297, "column": 41 }, "end": { - "line": 292, + "line": 297, "column": 58 }, "identifierName": "recognizerContext" @@ -22775,15 +23273,15 @@ }, { "type": "Identifier", - "start": 11391, - "end": 11396, + "start": 11665, + "end": 11670, "loc": { "start": { - "line": 292, + "line": 297, "column": 60 }, "end": { - "line": 292, + "line": 297, "column": 65 }, "identifierName": "model" @@ -22792,15 +23290,15 @@ }, { "type": "Identifier", - "start": 11398, - "end": 11402, + "start": 11672, + "end": 11676, "loc": { "start": { - "line": 292, + "line": 297, "column": 67 }, "end": { - "line": 292, + "line": 297, "column": 71 }, "identifierName": "data" @@ -22809,15 +23307,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 11404, - "end": 11497, + "start": 11678, + "end": 11771, "loc": { "start": { - "line": 292, + "line": 297, "column": 73 }, "end": { - "line": 294, + "line": 299, "column": 9 } }, @@ -22828,15 +23326,15 @@ "params": [ { "type": "Identifier", - "start": 11405, - "end": 11408, + "start": 11679, + "end": 11682, "loc": { "start": { - "line": 292, + "line": 297, "column": 74 }, "end": { - "line": 292, + "line": 297, "column": 77 }, "identifierName": "err" @@ -22845,15 +23343,15 @@ }, { "type": "Identifier", - "start": 11410, - "end": 11413, + "start": 11684, + "end": 11687, "loc": { "start": { - "line": 292, + "line": 297, "column": 79 }, "end": { - "line": 292, + "line": 297, "column": 82 }, "identifierName": "res" @@ -22862,29 +23360,29 @@ }, { "type": "RestElement", - "start": 11415, - "end": 11423, + "start": 11689, + "end": 11697, "loc": { "start": { - "line": 292, + "line": 297, "column": 84 }, "end": { - "line": 292, + "line": 297, "column": 92 } }, "argument": { "type": "Identifier", - "start": 11418, - "end": 11423, + "start": 11692, + "end": 11697, "loc": { "start": { - "line": 292, + "line": 297, "column": 87 }, "end": { - "line": 292, + "line": 297, "column": 92 }, "identifierName": "types" @@ -22895,58 +23393,58 @@ ], "body": { "type": "BlockStatement", - "start": 11428, - "end": 11497, + "start": 11702, + "end": 11771, "loc": { "start": { - "line": 292, + "line": 297, "column": 97 }, "end": { - "line": 294, + "line": 299, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 11440, - "end": 11487, + "start": 11714, + "end": 11761, "loc": { "start": { - "line": 293, + "line": 298, "column": 10 }, "end": { - "line": 293, + "line": 298, "column": 57 } }, "expression": { "type": "CallExpression", - "start": 11440, - "end": 11486, + "start": 11714, + "end": 11760, "loc": { "start": { - "line": 293, + "line": 298, "column": 10 }, "end": { - "line": 293, + "line": 298, "column": 56 } }, "callee": { "type": "Identifier", - "start": 11440, - "end": 11458, + "start": 11714, + "end": 11732, "loc": { "start": { - "line": 293, + "line": 298, "column": 10 }, "end": { - "line": 293, + "line": 298, "column": 28 }, "identifierName": "recognizerCallback" @@ -22956,15 +23454,15 @@ "arguments": [ { "type": "Identifier", - "start": 11459, - "end": 11465, + "start": 11733, + "end": 11739, "loc": { "start": { - "line": 293, + "line": 298, "column": 29 }, "end": { - "line": 293, + "line": 298, "column": 35 }, "identifierName": "editor" @@ -22973,15 +23471,15 @@ }, { "type": "Identifier", - "start": 11467, - "end": 11470, + "start": 11741, + "end": 11744, "loc": { "start": { - "line": 293, + "line": 298, "column": 37 }, "end": { - "line": 293, + "line": 298, "column": 40 }, "identifierName": "err" @@ -22990,15 +23488,15 @@ }, { "type": "Identifier", - "start": 11472, - "end": 11475, + "start": 11746, + "end": 11749, "loc": { "start": { - "line": 293, + "line": 298, "column": 42 }, "end": { - "line": 293, + "line": 298, "column": 45 }, "identifierName": "res" @@ -23007,29 +23505,29 @@ }, { "type": "SpreadElement", - "start": 11477, - "end": 11485, + "start": 11751, + "end": 11759, "loc": { "start": { - "line": 293, + "line": 298, "column": 47 }, "end": { - "line": 293, + "line": 298, "column": 55 } }, "argument": { "type": "Identifier", - "start": 11480, - "end": 11485, + "start": 11754, + "end": 11759, "loc": { "start": { - "line": 293, + "line": 298, "column": 50 }, "end": { - "line": 293, + "line": 298, "column": 55 }, "identifierName": "types" @@ -23066,15 +23564,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {Blob} data\n ", - "start": 11067, - "end": 11168, + "start": 11341, + "end": 11442, "loc": { "start": { - "line": 282, + "line": 287, "column": 0 }, "end": { - "line": 287, + "line": 292, "column": 3 } } @@ -23083,29 +23581,29 @@ }, { "type": "FunctionDeclaration", - "start": 11517, - "end": 11912, + "start": 11791, + "end": 12186, "loc": { "start": { - "line": 299, + "line": 304, "column": 0 }, "end": { - "line": 308, + "line": 313, "column": 1 } }, "id": { "type": "Identifier", - "start": 11526, - "end": 11559, + "start": 11800, + "end": 11833, "loc": { "start": { - "line": 299, + "line": 304, "column": 9 }, "end": { - "line": 299, + "line": 304, "column": 42 }, "identifierName": "launchGetSupportedImportMimeTypes" @@ -23118,15 +23616,15 @@ "params": [ { "type": "Identifier", - "start": 11560, - "end": 11566, + "start": 11834, + "end": 11840, "loc": { "start": { - "line": 299, + "line": 304, "column": 43 }, "end": { - "line": 299, + "line": 304, "column": 49 }, "identifierName": "editor" @@ -23135,15 +23633,15 @@ }, { "type": "Identifier", - "start": 11568, - "end": 11573, + "start": 11842, + "end": 11847, "loc": { "start": { - "line": 299, + "line": 304, "column": 51 }, "end": { - "line": 299, + "line": 304, "column": 56 }, "identifierName": "model" @@ -23153,72 +23651,72 @@ ], "body": { "type": "BlockStatement", - "start": 11575, - "end": 11912, + "start": 11849, + "end": 12186, "loc": { "start": { - "line": 299, + "line": 304, "column": 58 }, "end": { - "line": 308, + "line": 313, "column": 1 } }, "body": [ { "type": "IfStatement", - "start": 11579, - "end": 11910, + "start": 11853, + "end": 12184, "loc": { "start": { - "line": 300, + "line": 305, "column": 2 }, "end": { - "line": 307, + "line": 312, "column": 3 } }, "test": { "type": "LogicalExpression", - "start": 11583, - "end": 11649, + "start": 11857, + "end": 11923, "loc": { "start": { - "line": 300, + "line": 305, "column": 6 }, "end": { - "line": 300, + "line": 305, "column": 72 } }, "left": { "type": "MemberExpression", - "start": 11583, - "end": 11600, + "start": 11857, + "end": 11874, "loc": { "start": { - "line": 300, + "line": 305, "column": 6 }, "end": { - "line": 300, + "line": 305, "column": 23 } }, "object": { "type": "Identifier", - "start": 11583, - "end": 11589, + "start": 11857, + "end": 11863, "loc": { "start": { - "line": 300, + "line": 305, "column": 6 }, "end": { - "line": 300, + "line": 305, "column": 12 }, "identifierName": "editor" @@ -23227,15 +23725,15 @@ }, "property": { "type": "Identifier", - "start": 11590, - "end": 11600, + "start": 11864, + "end": 11874, "loc": { "start": { - "line": 300, + "line": 305, "column": 13 }, "end": { - "line": 300, + "line": 305, "column": 23 }, "identifierName": "recognizer" @@ -23247,43 +23745,43 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 11604, - "end": 11649, + "start": 11878, + "end": 11923, "loc": { "start": { - "line": 300, + "line": 305, "column": 27 }, "end": { - "line": 300, + "line": 305, "column": 72 } }, "object": { "type": "MemberExpression", - "start": 11604, - "end": 11621, + "start": 11878, + "end": 11895, "loc": { "start": { - "line": 300, + "line": 305, "column": 27 }, "end": { - "line": 300, + "line": 305, "column": 44 } }, "object": { "type": "Identifier", - "start": 11604, - "end": 11610, + "start": 11878, + "end": 11884, "loc": { "start": { - "line": 300, + "line": 305, "column": 27 }, "end": { - "line": 300, + "line": 305, "column": 33 }, "identifierName": "editor" @@ -23292,15 +23790,15 @@ }, "property": { "type": "Identifier", - "start": 11611, - "end": 11621, + "start": 11885, + "end": 11895, "loc": { "start": { - "line": 300, + "line": 305, "column": 34 }, "end": { - "line": 300, + "line": 305, "column": 44 }, "identifierName": "recognizer" @@ -23311,15 +23809,15 @@ }, "property": { "type": "Identifier", - "start": 11622, - "end": 11649, + "start": 11896, + "end": 11923, "loc": { "start": { - "line": 300, + "line": 305, "column": 45 }, "end": { - "line": 300, + "line": 305, "column": 72 }, "identifierName": "getSupportedImportMimeTypes" @@ -23331,100 +23829,100 @@ }, "consequent": { "type": "BlockStatement", - "start": 11651, - "end": 11910, + "start": 11925, + "end": 12184, "loc": { "start": { - "line": 300, + "line": 305, "column": 74 }, "end": { - "line": 307, + "line": 312, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 11657, - "end": 11906, + "start": 11931, + "end": 12180, "loc": { "start": { - "line": 301, + "line": 306, "column": 4 }, "end": { - "line": 306, + "line": 311, "column": 9 } }, "expression": { "type": "CallExpression", - "start": 11657, - "end": 11905, + "start": 11931, + "end": 12179, "loc": { "start": { - "line": 301, + "line": 306, "column": 4 }, "end": { - "line": 306, + "line": 311, "column": 8 } }, "callee": { "type": "MemberExpression", - "start": 11657, - "end": 11705, + "start": 11931, + "end": 11979, "loc": { "start": { - "line": 301, + "line": 306, "column": 4 }, "end": { - "line": 302, + "line": 307, "column": 11 } }, "object": { "type": "MemberExpression", - "start": 11657, - "end": 11693, + "start": 11931, + "end": 11967, "loc": { "start": { - "line": 301, + "line": 306, "column": 4 }, "end": { - "line": 301, + "line": 306, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 11657, - "end": 11681, + "start": 11931, + "end": 11955, "loc": { "start": { - "line": 301, + "line": 306, "column": 4 }, "end": { - "line": 301, + "line": 306, "column": 28 } }, "object": { "type": "Identifier", - "start": 11657, - "end": 11663, + "start": 11931, + "end": 11937, "loc": { "start": { - "line": 301, + "line": 306, "column": 4 }, "end": { - "line": 301, + "line": 306, "column": 10 }, "identifierName": "editor" @@ -23433,15 +23931,15 @@ }, "property": { "type": "Identifier", - "start": 11664, - "end": 11681, + "start": 11938, + "end": 11955, "loc": { "start": { - "line": 301, + "line": 306, "column": 11 }, "end": { - "line": 301, + "line": 306, "column": 28 }, "identifierName": "recognizerContext" @@ -23452,15 +23950,15 @@ }, "property": { "type": "Identifier", - "start": 11682, - "end": 11693, + "start": 11956, + "end": 11967, "loc": { "start": { - "line": 301, + "line": 306, "column": 29 }, "end": { - "line": 301, + "line": 306, "column": 40 }, "identifierName": "initPromise" @@ -23471,15 +23969,15 @@ }, "property": { "type": "Identifier", - "start": 11701, - "end": 11705, + "start": 11975, + "end": 11979, "loc": { "start": { - "line": 302, + "line": 307, "column": 7 }, "end": { - "line": 302, + "line": 307, "column": 11 }, "identifierName": "then" @@ -23491,15 +23989,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 11706, - "end": 11904, + "start": 11980, + "end": 12178, "loc": { "start": { - "line": 302, + "line": 307, "column": 12 }, "end": { - "line": 306, + "line": 311, "column": 7 } }, @@ -23510,86 +24008,86 @@ "params": [], "body": { "type": "BlockStatement", - "start": 11712, - "end": 11904, + "start": 11986, + "end": 12178, "loc": { "start": { - "line": 302, + "line": 307, "column": 18 }, "end": { - "line": 306, + "line": 311, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 11722, - "end": 11896, + "start": 11996, + "end": 12170, "loc": { "start": { - "line": 303, + "line": 308, "column": 8 }, "end": { - "line": 305, + "line": 310, "column": 11 } }, "expression": { "type": "CallExpression", - "start": 11722, - "end": 11895, + "start": 11996, + "end": 12169, "loc": { "start": { - "line": 303, + "line": 308, "column": 8 }, "end": { - "line": 305, + "line": 310, "column": 10 } }, "callee": { "type": "MemberExpression", - "start": 11722, - "end": 11767, + "start": 11996, + "end": 12041, "loc": { "start": { - "line": 303, + "line": 308, "column": 8 }, "end": { - "line": 303, + "line": 308, "column": 53 } }, "object": { "type": "MemberExpression", - "start": 11722, - "end": 11739, + "start": 11996, + "end": 12013, "loc": { "start": { - "line": 303, + "line": 308, "column": 8 }, "end": { - "line": 303, + "line": 308, "column": 25 } }, "object": { "type": "Identifier", - "start": 11722, - "end": 11728, + "start": 11996, + "end": 12002, "loc": { "start": { - "line": 303, + "line": 308, "column": 8 }, "end": { - "line": 303, + "line": 308, "column": 14 }, "identifierName": "editor" @@ -23598,15 +24096,15 @@ }, "property": { "type": "Identifier", - "start": 11729, - "end": 11739, + "start": 12003, + "end": 12013, "loc": { "start": { - "line": 303, + "line": 308, "column": 15 }, "end": { - "line": 303, + "line": 308, "column": 25 }, "identifierName": "recognizer" @@ -23617,15 +24115,15 @@ }, "property": { "type": "Identifier", - "start": 11740, - "end": 11767, + "start": 12014, + "end": 12041, "loc": { "start": { - "line": 303, + "line": 308, "column": 26 }, "end": { - "line": 303, + "line": 308, "column": 53 }, "identifierName": "getSupportedImportMimeTypes" @@ -23637,29 +24135,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 11768, - "end": 11792, + "start": 12042, + "end": 12066, "loc": { "start": { - "line": 303, + "line": 308, "column": 54 }, "end": { - "line": 303, + "line": 308, "column": 78 } }, "object": { "type": "Identifier", - "start": 11768, - "end": 11774, + "start": 12042, + "end": 12048, "loc": { "start": { - "line": 303, + "line": 308, "column": 54 }, "end": { - "line": 303, + "line": 308, "column": 60 }, "identifierName": "editor" @@ -23668,15 +24166,15 @@ }, "property": { "type": "Identifier", - "start": 11775, - "end": 11792, + "start": 12049, + "end": 12066, "loc": { "start": { - "line": 303, + "line": 308, "column": 61 }, "end": { - "line": 303, + "line": 308, "column": 78 }, "identifierName": "recognizerContext" @@ -23687,15 +24185,15 @@ }, { "type": "Identifier", - "start": 11794, - "end": 11799, + "start": 12068, + "end": 12073, "loc": { "start": { - "line": 303, + "line": 308, "column": 80 }, "end": { - "line": 303, + "line": 308, "column": 85 }, "identifierName": "model" @@ -23704,15 +24202,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 11801, - "end": 11894, + "start": 12075, + "end": 12168, "loc": { "start": { - "line": 303, + "line": 308, "column": 87 }, "end": { - "line": 305, + "line": 310, "column": 9 } }, @@ -23723,15 +24221,15 @@ "params": [ { "type": "Identifier", - "start": 11802, - "end": 11805, + "start": 12076, + "end": 12079, "loc": { "start": { - "line": 303, + "line": 308, "column": 88 }, "end": { - "line": 303, + "line": 308, "column": 91 }, "identifierName": "err" @@ -23740,15 +24238,15 @@ }, { "type": "Identifier", - "start": 11807, - "end": 11810, + "start": 12081, + "end": 12084, "loc": { "start": { - "line": 303, + "line": 308, "column": 93 }, "end": { - "line": 303, + "line": 308, "column": 96 }, "identifierName": "res" @@ -23757,29 +24255,29 @@ }, { "type": "RestElement", - "start": 11812, - "end": 11820, + "start": 12086, + "end": 12094, "loc": { "start": { - "line": 303, + "line": 308, "column": 98 }, "end": { - "line": 303, + "line": 308, "column": 106 } }, "argument": { "type": "Identifier", - "start": 11815, - "end": 11820, + "start": 12089, + "end": 12094, "loc": { "start": { - "line": 303, + "line": 308, "column": 101 }, "end": { - "line": 303, + "line": 308, "column": 106 }, "identifierName": "types" @@ -23790,58 +24288,58 @@ ], "body": { "type": "BlockStatement", - "start": 11825, - "end": 11894, + "start": 12099, + "end": 12168, "loc": { "start": { - "line": 303, + "line": 308, "column": 111 }, "end": { - "line": 305, + "line": 310, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 11837, - "end": 11884, + "start": 12111, + "end": 12158, "loc": { "start": { - "line": 304, + "line": 309, "column": 10 }, "end": { - "line": 304, + "line": 309, "column": 57 } }, "expression": { "type": "CallExpression", - "start": 11837, - "end": 11883, + "start": 12111, + "end": 12157, "loc": { "start": { - "line": 304, + "line": 309, "column": 10 }, "end": { - "line": 304, + "line": 309, "column": 56 } }, "callee": { "type": "Identifier", - "start": 11837, - "end": 11855, + "start": 12111, + "end": 12129, "loc": { "start": { - "line": 304, + "line": 309, "column": 10 }, "end": { - "line": 304, + "line": 309, "column": 28 }, "identifierName": "recognizerCallback" @@ -23851,15 +24349,15 @@ "arguments": [ { "type": "Identifier", - "start": 11856, - "end": 11862, + "start": 12130, + "end": 12136, "loc": { "start": { - "line": 304, + "line": 309, "column": 29 }, "end": { - "line": 304, + "line": 309, "column": 35 }, "identifierName": "editor" @@ -23868,15 +24366,15 @@ }, { "type": "Identifier", - "start": 11864, - "end": 11867, + "start": 12138, + "end": 12141, "loc": { "start": { - "line": 304, + "line": 309, "column": 37 }, "end": { - "line": 304, + "line": 309, "column": 40 }, "identifierName": "err" @@ -23885,15 +24383,15 @@ }, { "type": "Identifier", - "start": 11869, - "end": 11872, + "start": 12143, + "end": 12146, "loc": { "start": { - "line": 304, + "line": 309, "column": 42 }, "end": { - "line": 304, + "line": 309, "column": 45 }, "identifierName": "res" @@ -23902,29 +24400,29 @@ }, { "type": "SpreadElement", - "start": 11874, - "end": 11882, + "start": 12148, + "end": 12156, "loc": { "start": { - "line": 304, + "line": 309, "column": 47 }, "end": { - "line": 304, + "line": 309, "column": 55 } }, "argument": { "type": "Identifier", - "start": 11877, - "end": 11882, + "start": 12151, + "end": 12156, "loc": { "start": { - "line": 304, + "line": 309, "column": 50 }, "end": { - "line": 304, + "line": 309, "column": 55 }, "identifierName": "types" @@ -23962,15 +24460,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the convert with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} conversionState\n ", - "start": 11914, - "end": 12078, + "start": 12188, + "end": 12352, "loc": { "start": { - "line": 310, + "line": 315, "column": 0 }, "end": { - "line": 315, + "line": 320, "column": 3 } } @@ -23979,29 +24477,29 @@ }, { "type": "FunctionDeclaration", - "start": 12079, - "end": 12448, + "start": 12353, + "end": 12722, "loc": { "start": { - "line": 316, + "line": 321, "column": 0 }, "end": { - "line": 325, + "line": 330, "column": 1 } }, "id": { "type": "Identifier", - "start": 12088, - "end": 12101, + "start": 12362, + "end": 12375, "loc": { "start": { - "line": 316, + "line": 321, "column": 9 }, "end": { - "line": 316, + "line": 321, "column": 22 }, "identifierName": "launchConvert" @@ -24015,15 +24513,15 @@ "params": [ { "type": "Identifier", - "start": 12102, - "end": 12108, + "start": 12376, + "end": 12382, "loc": { "start": { - "line": 316, + "line": 321, "column": 23 }, "end": { - "line": 316, + "line": 321, "column": 29 }, "identifierName": "editor" @@ -24032,15 +24530,15 @@ }, { "type": "Identifier", - "start": 12110, - "end": 12115, + "start": 12384, + "end": 12389, "loc": { "start": { - "line": 316, + "line": 321, "column": 31 }, "end": { - "line": 316, + "line": 321, "column": 36 }, "identifierName": "model" @@ -24049,15 +24547,15 @@ }, { "type": "Identifier", - "start": 12117, - "end": 12132, + "start": 12391, + "end": 12406, "loc": { "start": { - "line": 316, + "line": 321, "column": 38 }, "end": { - "line": 316, + "line": 321, "column": 53 }, "identifierName": "conversionState" @@ -24067,72 +24565,72 @@ ], "body": { "type": "BlockStatement", - "start": 12134, - "end": 12448, + "start": 12408, + "end": 12722, "loc": { "start": { - "line": 316, + "line": 321, "column": 55 }, "end": { - "line": 325, + "line": 330, "column": 1 } }, "body": [ { "type": "IfStatement", - "start": 12138, - "end": 12446, + "start": 12412, + "end": 12720, "loc": { "start": { - "line": 317, + "line": 322, "column": 2 }, "end": { - "line": 324, + "line": 329, "column": 3 } }, "test": { "type": "LogicalExpression", - "start": 12142, - "end": 12188, + "start": 12416, + "end": 12462, "loc": { "start": { - "line": 317, + "line": 322, "column": 6 }, "end": { - "line": 317, + "line": 322, "column": 52 } }, "left": { "type": "MemberExpression", - "start": 12142, - "end": 12159, + "start": 12416, + "end": 12433, "loc": { "start": { - "line": 317, + "line": 322, "column": 6 }, "end": { - "line": 317, + "line": 322, "column": 23 } }, "object": { "type": "Identifier", - "start": 12142, - "end": 12148, + "start": 12416, + "end": 12422, "loc": { "start": { - "line": 317, + "line": 322, "column": 6 }, "end": { - "line": 317, + "line": 322, "column": 12 }, "identifierName": "editor" @@ -24141,15 +24639,15 @@ }, "property": { "type": "Identifier", - "start": 12149, - "end": 12159, + "start": 12423, + "end": 12433, "loc": { "start": { - "line": 317, + "line": 322, "column": 13 }, "end": { - "line": 317, + "line": 322, "column": 23 }, "identifierName": "recognizer" @@ -24161,43 +24659,43 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 12163, - "end": 12188, + "start": 12437, + "end": 12462, "loc": { "start": { - "line": 317, + "line": 322, "column": 27 }, "end": { - "line": 317, + "line": 322, "column": 52 } }, "object": { "type": "MemberExpression", - "start": 12163, - "end": 12180, + "start": 12437, + "end": 12454, "loc": { "start": { - "line": 317, + "line": 322, "column": 27 }, "end": { - "line": 317, + "line": 322, "column": 44 } }, "object": { "type": "Identifier", - "start": 12163, - "end": 12169, + "start": 12437, + "end": 12443, "loc": { "start": { - "line": 317, + "line": 322, "column": 27 }, "end": { - "line": 317, + "line": 322, "column": 33 }, "identifierName": "editor" @@ -24206,15 +24704,15 @@ }, "property": { "type": "Identifier", - "start": 12170, - "end": 12180, + "start": 12444, + "end": 12454, "loc": { "start": { - "line": 317, + "line": 322, "column": 34 }, "end": { - "line": 317, + "line": 322, "column": 44 }, "identifierName": "recognizer" @@ -24225,15 +24723,15 @@ }, "property": { "type": "Identifier", - "start": 12181, - "end": 12188, + "start": 12455, + "end": 12462, "loc": { "start": { - "line": 317, + "line": 322, "column": 45 }, "end": { - "line": 317, + "line": 322, "column": 52 }, "identifierName": "convert" @@ -24245,100 +24743,100 @@ }, "consequent": { "type": "BlockStatement", - "start": 12190, - "end": 12446, + "start": 12464, + "end": 12720, "loc": { "start": { - "line": 317, + "line": 322, "column": 54 }, "end": { - "line": 324, + "line": 329, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 12196, - "end": 12442, + "start": 12470, + "end": 12716, "loc": { "start": { - "line": 318, + "line": 323, "column": 4 }, "end": { - "line": 323, + "line": 328, "column": 9 } }, "expression": { "type": "CallExpression", - "start": 12196, - "end": 12441, + "start": 12470, + "end": 12715, "loc": { "start": { - "line": 318, + "line": 323, "column": 4 }, "end": { - "line": 323, + "line": 328, "column": 8 } }, "callee": { "type": "MemberExpression", - "start": 12196, - "end": 12244, + "start": 12470, + "end": 12518, "loc": { "start": { - "line": 318, + "line": 323, "column": 4 }, "end": { - "line": 319, + "line": 324, "column": 11 } }, "object": { "type": "MemberExpression", - "start": 12196, - "end": 12232, + "start": 12470, + "end": 12506, "loc": { "start": { - "line": 318, + "line": 323, "column": 4 }, "end": { - "line": 318, + "line": 323, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 12196, - "end": 12220, + "start": 12470, + "end": 12494, "loc": { "start": { - "line": 318, + "line": 323, "column": 4 }, "end": { - "line": 318, + "line": 323, "column": 28 } }, "object": { "type": "Identifier", - "start": 12196, - "end": 12202, + "start": 12470, + "end": 12476, "loc": { "start": { - "line": 318, + "line": 323, "column": 4 }, "end": { - "line": 318, + "line": 323, "column": 10 }, "identifierName": "editor" @@ -24347,15 +24845,15 @@ }, "property": { "type": "Identifier", - "start": 12203, - "end": 12220, + "start": 12477, + "end": 12494, "loc": { "start": { - "line": 318, + "line": 323, "column": 11 }, "end": { - "line": 318, + "line": 323, "column": 28 }, "identifierName": "recognizerContext" @@ -24366,15 +24864,15 @@ }, "property": { "type": "Identifier", - "start": 12221, - "end": 12232, + "start": 12495, + "end": 12506, "loc": { "start": { - "line": 318, + "line": 323, "column": 29 }, "end": { - "line": 318, + "line": 323, "column": 40 }, "identifierName": "initPromise" @@ -24385,15 +24883,15 @@ }, "property": { "type": "Identifier", - "start": 12240, - "end": 12244, + "start": 12514, + "end": 12518, "loc": { "start": { - "line": 319, + "line": 324, "column": 7 }, "end": { - "line": 319, + "line": 324, "column": 11 }, "identifierName": "then" @@ -24405,15 +24903,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 12245, - "end": 12440, + "start": 12519, + "end": 12714, "loc": { "start": { - "line": 319, + "line": 324, "column": 12 }, "end": { - "line": 323, + "line": 328, "column": 7 } }, @@ -24424,86 +24922,86 @@ "params": [], "body": { "type": "BlockStatement", - "start": 12251, - "end": 12440, + "start": 12525, + "end": 12714, "loc": { "start": { - "line": 319, + "line": 324, "column": 18 }, "end": { - "line": 323, + "line": 328, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 12261, - "end": 12432, + "start": 12535, + "end": 12706, "loc": { "start": { - "line": 320, + "line": 325, "column": 8 }, "end": { - "line": 322, + "line": 327, "column": 28 } }, "expression": { "type": "CallExpression", - "start": 12261, - "end": 12431, + "start": 12535, + "end": 12705, "loc": { "start": { - "line": 320, + "line": 325, "column": 8 }, "end": { - "line": 322, + "line": 327, "column": 27 } }, "callee": { "type": "MemberExpression", - "start": 12261, - "end": 12286, + "start": 12535, + "end": 12560, "loc": { "start": { - "line": 320, + "line": 325, "column": 8 }, "end": { - "line": 320, + "line": 325, "column": 33 } }, "object": { "type": "MemberExpression", - "start": 12261, - "end": 12278, + "start": 12535, + "end": 12552, "loc": { "start": { - "line": 320, + "line": 325, "column": 8 }, "end": { - "line": 320, + "line": 325, "column": 25 } }, "object": { "type": "Identifier", - "start": 12261, - "end": 12267, + "start": 12535, + "end": 12541, "loc": { "start": { - "line": 320, + "line": 325, "column": 8 }, "end": { - "line": 320, + "line": 325, "column": 14 }, "identifierName": "editor" @@ -24512,15 +25010,15 @@ }, "property": { "type": "Identifier", - "start": 12268, - "end": 12278, + "start": 12542, + "end": 12552, "loc": { "start": { - "line": 320, + "line": 325, "column": 15 }, "end": { - "line": 320, + "line": 325, "column": 25 }, "identifierName": "recognizer" @@ -24531,15 +25029,15 @@ }, "property": { "type": "Identifier", - "start": 12279, - "end": 12286, + "start": 12553, + "end": 12560, "loc": { "start": { - "line": 320, + "line": 325, "column": 26 }, "end": { - "line": 320, + "line": 325, "column": 33 }, "identifierName": "convert" @@ -24551,29 +25049,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 12287, - "end": 12311, + "start": 12561, + "end": 12585, "loc": { "start": { - "line": 320, + "line": 325, "column": 34 }, "end": { - "line": 320, + "line": 325, "column": 58 } }, "object": { "type": "Identifier", - "start": 12287, - "end": 12293, + "start": 12561, + "end": 12567, "loc": { "start": { - "line": 320, + "line": 325, "column": 34 }, "end": { - "line": 320, + "line": 325, "column": 40 }, "identifierName": "editor" @@ -24582,15 +25080,15 @@ }, "property": { "type": "Identifier", - "start": 12294, - "end": 12311, + "start": 12568, + "end": 12585, "loc": { "start": { - "line": 320, + "line": 325, "column": 41 }, "end": { - "line": 320, + "line": 325, "column": 58 }, "identifierName": "recognizerContext" @@ -24601,15 +25099,15 @@ }, { "type": "Identifier", - "start": 12313, - "end": 12318, + "start": 12587, + "end": 12592, "loc": { "start": { - "line": 320, + "line": 325, "column": 60 }, "end": { - "line": 320, + "line": 325, "column": 65 }, "identifierName": "model" @@ -24618,15 +25116,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 12320, - "end": 12413, + "start": 12594, + "end": 12687, "loc": { "start": { - "line": 320, + "line": 325, "column": 67 }, "end": { - "line": 322, + "line": 327, "column": 9 } }, @@ -24637,15 +25135,15 @@ "params": [ { "type": "Identifier", - "start": 12321, - "end": 12324, + "start": 12595, + "end": 12598, "loc": { "start": { - "line": 320, + "line": 325, "column": 68 }, "end": { - "line": 320, + "line": 325, "column": 71 }, "identifierName": "err" @@ -24654,15 +25152,15 @@ }, { "type": "Identifier", - "start": 12326, - "end": 12329, + "start": 12600, + "end": 12603, "loc": { "start": { - "line": 320, + "line": 325, "column": 73 }, "end": { - "line": 320, + "line": 325, "column": 76 }, "identifierName": "res" @@ -24671,29 +25169,29 @@ }, { "type": "RestElement", - "start": 12331, - "end": 12339, + "start": 12605, + "end": 12613, "loc": { "start": { - "line": 320, + "line": 325, "column": 78 }, "end": { - "line": 320, + "line": 325, "column": 86 } }, "argument": { "type": "Identifier", - "start": 12334, - "end": 12339, + "start": 12608, + "end": 12613, "loc": { "start": { - "line": 320, + "line": 325, "column": 81 }, "end": { - "line": 320, + "line": 325, "column": 86 }, "identifierName": "types" @@ -24704,58 +25202,58 @@ ], "body": { "type": "BlockStatement", - "start": 12344, - "end": 12413, + "start": 12618, + "end": 12687, "loc": { "start": { - "line": 320, + "line": 325, "column": 91 }, "end": { - "line": 322, + "line": 327, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 12356, - "end": 12403, + "start": 12630, + "end": 12677, "loc": { "start": { - "line": 321, + "line": 326, "column": 10 }, "end": { - "line": 321, + "line": 326, "column": 57 } }, "expression": { "type": "CallExpression", - "start": 12356, - "end": 12402, + "start": 12630, + "end": 12676, "loc": { "start": { - "line": 321, + "line": 326, "column": 10 }, "end": { - "line": 321, + "line": 326, "column": 56 } }, "callee": { "type": "Identifier", - "start": 12356, - "end": 12374, + "start": 12630, + "end": 12648, "loc": { "start": { - "line": 321, + "line": 326, "column": 10 }, "end": { - "line": 321, + "line": 326, "column": 28 }, "identifierName": "recognizerCallback" @@ -24765,15 +25263,15 @@ "arguments": [ { "type": "Identifier", - "start": 12375, - "end": 12381, + "start": 12649, + "end": 12655, "loc": { "start": { - "line": 321, + "line": 326, "column": 29 }, "end": { - "line": 321, + "line": 326, "column": 35 }, "identifierName": "editor" @@ -24782,15 +25280,15 @@ }, { "type": "Identifier", - "start": 12383, - "end": 12386, + "start": 12657, + "end": 12660, "loc": { "start": { - "line": 321, + "line": 326, "column": 37 }, "end": { - "line": 321, + "line": 326, "column": 40 }, "identifierName": "err" @@ -24799,15 +25297,15 @@ }, { "type": "Identifier", - "start": 12388, - "end": 12391, + "start": 12662, + "end": 12665, "loc": { "start": { - "line": 321, + "line": 326, "column": 42 }, "end": { - "line": 321, + "line": 326, "column": 45 }, "identifierName": "res" @@ -24816,29 +25314,29 @@ }, { "type": "SpreadElement", - "start": 12393, - "end": 12401, + "start": 12667, + "end": 12675, "loc": { "start": { - "line": 321, + "line": 326, "column": 47 }, "end": { - "line": 321, + "line": 326, "column": 55 } }, "argument": { "type": "Identifier", - "start": 12396, - "end": 12401, + "start": 12670, + "end": 12675, "loc": { "start": { - "line": 321, + "line": 326, "column": 50 }, "end": { - "line": 321, + "line": 326, "column": 55 }, "identifierName": "types" @@ -24855,15 +25353,15 @@ }, { "type": "Identifier", - "start": 12415, - "end": 12430, + "start": 12689, + "end": 12704, "loc": { "start": { - "line": 322, + "line": 327, "column": 11 }, "end": { - "line": 322, + "line": 327, "column": 26 }, "identifierName": "conversionState" @@ -24892,15 +25390,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the convert with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} conversionState\n ", - "start": 11914, - "end": 12078, + "start": 12188, + "end": 12352, "loc": { "start": { - "line": 310, + "line": 315, "column": 0 }, "end": { - "line": 315, + "line": 320, "column": 3 } } @@ -24909,29 +25407,29 @@ }, { "type": "FunctionDeclaration", - "start": 12450, - "end": 12804, + "start": 12724, + "end": 13078, "loc": { "start": { - "line": 327, + "line": 332, "column": 0 }, "end": { - "line": 336, + "line": 341, "column": 1 } }, "id": { "type": "Identifier", - "start": 12459, - "end": 12471, + "start": 12733, + "end": 12745, "loc": { "start": { - "line": 327, + "line": 332, "column": 9 }, "end": { - "line": 327, + "line": 332, "column": 21 }, "identifierName": "launchConfig" @@ -24944,15 +25442,15 @@ "params": [ { "type": "Identifier", - "start": 12472, - "end": 12478, + "start": 12746, + "end": 12752, "loc": { "start": { - "line": 327, + "line": 332, "column": 22 }, "end": { - "line": 327, + "line": 332, "column": 28 }, "identifierName": "editor" @@ -24961,15 +25459,15 @@ }, { "type": "Identifier", - "start": 12480, - "end": 12485, + "start": 12754, + "end": 12759, "loc": { "start": { - "line": 327, + "line": 332, "column": 30 }, "end": { - "line": 327, + "line": 332, "column": 35 }, "identifierName": "model" @@ -24979,72 +25477,72 @@ ], "body": { "type": "BlockStatement", - "start": 12487, - "end": 12804, + "start": 12761, + "end": 13078, "loc": { "start": { - "line": 327, + "line": 332, "column": 37 }, "end": { - "line": 336, + "line": 341, "column": 1 } }, "body": [ { "type": "IfStatement", - "start": 12491, - "end": 12802, + "start": 12765, + "end": 13076, "loc": { "start": { - "line": 328, + "line": 333, "column": 2 }, "end": { - "line": 335, + "line": 340, "column": 3 } }, "test": { "type": "LogicalExpression", - "start": 12495, - "end": 12551, + "start": 12769, + "end": 12825, "loc": { "start": { - "line": 328, + "line": 333, "column": 6 }, "end": { - "line": 328, + "line": 333, "column": 62 } }, "left": { "type": "MemberExpression", - "start": 12495, - "end": 12512, + "start": 12769, + "end": 12786, "loc": { "start": { - "line": 328, + "line": 333, "column": 6 }, "end": { - "line": 328, + "line": 333, "column": 23 } }, "object": { "type": "Identifier", - "start": 12495, - "end": 12501, + "start": 12769, + "end": 12775, "loc": { "start": { - "line": 328, + "line": 333, "column": 6 }, "end": { - "line": 328, + "line": 333, "column": 12 }, "identifierName": "editor" @@ -25053,15 +25551,15 @@ }, "property": { "type": "Identifier", - "start": 12502, - "end": 12512, + "start": 12776, + "end": 12786, "loc": { "start": { - "line": 328, + "line": 333, "column": 13 }, "end": { - "line": 328, + "line": 333, "column": 23 }, "identifierName": "recognizer" @@ -25073,43 +25571,43 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 12516, - "end": 12551, + "start": 12790, + "end": 12825, "loc": { "start": { - "line": 328, + "line": 333, "column": 27 }, "end": { - "line": 328, + "line": 333, "column": 62 } }, "object": { "type": "MemberExpression", - "start": 12516, - "end": 12533, + "start": 12790, + "end": 12807, "loc": { "start": { - "line": 328, + "line": 333, "column": 27 }, "end": { - "line": 328, + "line": 333, "column": 44 } }, "object": { "type": "Identifier", - "start": 12516, - "end": 12522, + "start": 12790, + "end": 12796, "loc": { "start": { - "line": 328, + "line": 333, "column": 27 }, "end": { - "line": 328, + "line": 333, "column": 33 }, "identifierName": "editor" @@ -25118,15 +25616,15 @@ }, "property": { "type": "Identifier", - "start": 12523, - "end": 12533, + "start": 12797, + "end": 12807, "loc": { "start": { - "line": 328, + "line": 333, "column": 34 }, "end": { - "line": 328, + "line": 333, "column": 44 }, "identifierName": "recognizer" @@ -25137,15 +25635,15 @@ }, "property": { "type": "Identifier", - "start": 12534, - "end": 12551, + "start": 12808, + "end": 12825, "loc": { "start": { - "line": 328, + "line": 333, "column": 45 }, "end": { - "line": 328, + "line": 333, "column": 62 }, "identifierName": "sendConfiguration" @@ -25157,100 +25655,100 @@ }, "consequent": { "type": "BlockStatement", - "start": 12553, - "end": 12802, + "start": 12827, + "end": 13076, "loc": { "start": { - "line": 328, + "line": 333, "column": 64 }, "end": { - "line": 335, + "line": 340, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 12559, - "end": 12798, + "start": 12833, + "end": 13072, "loc": { "start": { - "line": 329, + "line": 334, "column": 4 }, "end": { - "line": 334, + "line": 339, "column": 9 } }, "expression": { "type": "CallExpression", - "start": 12559, - "end": 12797, + "start": 12833, + "end": 13071, "loc": { "start": { - "line": 329, + "line": 334, "column": 4 }, "end": { - "line": 334, + "line": 339, "column": 8 } }, "callee": { "type": "MemberExpression", - "start": 12559, - "end": 12607, + "start": 12833, + "end": 12881, "loc": { "start": { - "line": 329, + "line": 334, "column": 4 }, "end": { - "line": 330, + "line": 335, "column": 11 } }, "object": { "type": "MemberExpression", - "start": 12559, - "end": 12595, + "start": 12833, + "end": 12869, "loc": { "start": { - "line": 329, + "line": 334, "column": 4 }, "end": { - "line": 329, + "line": 334, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 12559, - "end": 12583, + "start": 12833, + "end": 12857, "loc": { "start": { - "line": 329, + "line": 334, "column": 4 }, "end": { - "line": 329, + "line": 334, "column": 28 } }, "object": { "type": "Identifier", - "start": 12559, - "end": 12565, + "start": 12833, + "end": 12839, "loc": { "start": { - "line": 329, + "line": 334, "column": 4 }, "end": { - "line": 329, + "line": 334, "column": 10 }, "identifierName": "editor" @@ -25259,15 +25757,15 @@ }, "property": { "type": "Identifier", - "start": 12566, - "end": 12583, + "start": 12840, + "end": 12857, "loc": { "start": { - "line": 329, + "line": 334, "column": 11 }, "end": { - "line": 329, + "line": 334, "column": 28 }, "identifierName": "recognizerContext" @@ -25278,15 +25776,15 @@ }, "property": { "type": "Identifier", - "start": 12584, - "end": 12595, + "start": 12858, + "end": 12869, "loc": { "start": { - "line": 329, + "line": 334, "column": 29 }, "end": { - "line": 329, + "line": 334, "column": 40 }, "identifierName": "initPromise" @@ -25297,15 +25795,15 @@ }, "property": { "type": "Identifier", - "start": 12603, - "end": 12607, + "start": 12877, + "end": 12881, "loc": { "start": { - "line": 330, + "line": 335, "column": 7 }, "end": { - "line": 330, + "line": 335, "column": 11 }, "identifierName": "then" @@ -25317,15 +25815,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 12608, - "end": 12796, + "start": 12882, + "end": 13070, "loc": { "start": { - "line": 330, + "line": 335, "column": 12 }, "end": { - "line": 334, + "line": 339, "column": 7 } }, @@ -25336,86 +25834,86 @@ "params": [], "body": { "type": "BlockStatement", - "start": 12614, - "end": 12796, + "start": 12888, + "end": 13070, "loc": { "start": { - "line": 330, + "line": 335, "column": 18 }, "end": { - "line": 334, + "line": 339, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 12624, - "end": 12788, + "start": 12898, + "end": 13062, "loc": { "start": { - "line": 331, + "line": 336, "column": 8 }, "end": { - "line": 333, + "line": 338, "column": 11 } }, "expression": { "type": "CallExpression", - "start": 12624, - "end": 12787, + "start": 12898, + "end": 13061, "loc": { "start": { - "line": 331, + "line": 336, "column": 8 }, "end": { - "line": 333, + "line": 338, "column": 10 } }, "callee": { "type": "MemberExpression", - "start": 12624, - "end": 12659, + "start": 12898, + "end": 12933, "loc": { "start": { - "line": 331, + "line": 336, "column": 8 }, "end": { - "line": 331, + "line": 336, "column": 43 } }, "object": { "type": "MemberExpression", - "start": 12624, - "end": 12641, + "start": 12898, + "end": 12915, "loc": { "start": { - "line": 331, + "line": 336, "column": 8 }, "end": { - "line": 331, + "line": 336, "column": 25 } }, "object": { "type": "Identifier", - "start": 12624, - "end": 12630, + "start": 12898, + "end": 12904, "loc": { "start": { - "line": 331, + "line": 336, "column": 8 }, "end": { - "line": 331, + "line": 336, "column": 14 }, "identifierName": "editor" @@ -25424,15 +25922,15 @@ }, "property": { "type": "Identifier", - "start": 12631, - "end": 12641, + "start": 12905, + "end": 12915, "loc": { "start": { - "line": 331, + "line": 336, "column": 15 }, "end": { - "line": 331, + "line": 336, "column": 25 }, "identifierName": "recognizer" @@ -25443,15 +25941,15 @@ }, "property": { "type": "Identifier", - "start": 12642, - "end": 12659, + "start": 12916, + "end": 12933, "loc": { "start": { - "line": 331, + "line": 336, "column": 26 }, "end": { - "line": 331, + "line": 336, "column": 43 }, "identifierName": "sendConfiguration" @@ -25463,29 +25961,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 12660, - "end": 12684, + "start": 12934, + "end": 12958, "loc": { "start": { - "line": 331, + "line": 336, "column": 44 }, "end": { - "line": 331, + "line": 336, "column": 68 } }, "object": { "type": "Identifier", - "start": 12660, - "end": 12666, + "start": 12934, + "end": 12940, "loc": { "start": { - "line": 331, + "line": 336, "column": 44 }, "end": { - "line": 331, + "line": 336, "column": 50 }, "identifierName": "editor" @@ -25494,15 +25992,15 @@ }, "property": { "type": "Identifier", - "start": 12667, - "end": 12684, + "start": 12941, + "end": 12958, "loc": { "start": { - "line": 331, + "line": 336, "column": 51 }, "end": { - "line": 331, + "line": 336, "column": 68 }, "identifierName": "recognizerContext" @@ -25513,15 +26011,15 @@ }, { "type": "Identifier", - "start": 12686, - "end": 12691, + "start": 12960, + "end": 12965, "loc": { "start": { - "line": 331, + "line": 336, "column": 70 }, "end": { - "line": 331, + "line": 336, "column": 75 }, "identifierName": "model" @@ -25530,15 +26028,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 12693, - "end": 12786, + "start": 12967, + "end": 13060, "loc": { "start": { - "line": 331, + "line": 336, "column": 77 }, "end": { - "line": 333, + "line": 338, "column": 9 } }, @@ -25549,15 +26047,15 @@ "params": [ { "type": "Identifier", - "start": 12694, - "end": 12697, + "start": 12968, + "end": 12971, "loc": { "start": { - "line": 331, + "line": 336, "column": 78 }, "end": { - "line": 331, + "line": 336, "column": 81 }, "identifierName": "err" @@ -25566,15 +26064,15 @@ }, { "type": "Identifier", - "start": 12699, - "end": 12702, + "start": 12973, + "end": 12976, "loc": { "start": { - "line": 331, + "line": 336, "column": 83 }, "end": { - "line": 331, + "line": 336, "column": 86 }, "identifierName": "res" @@ -25583,29 +26081,29 @@ }, { "type": "RestElement", - "start": 12704, - "end": 12712, + "start": 12978, + "end": 12986, "loc": { "start": { - "line": 331, + "line": 336, "column": 88 }, "end": { - "line": 331, + "line": 336, "column": 96 } }, "argument": { "type": "Identifier", - "start": 12707, - "end": 12712, + "start": 12981, + "end": 12986, "loc": { "start": { - "line": 331, + "line": 336, "column": 91 }, "end": { - "line": 331, + "line": 336, "column": 96 }, "identifierName": "types" @@ -25616,58 +26114,58 @@ ], "body": { "type": "BlockStatement", - "start": 12717, - "end": 12786, + "start": 12991, + "end": 13060, "loc": { "start": { - "line": 331, + "line": 336, "column": 101 }, "end": { - "line": 333, + "line": 338, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 12729, - "end": 12776, + "start": 13003, + "end": 13050, "loc": { "start": { - "line": 332, + "line": 337, "column": 10 }, "end": { - "line": 332, + "line": 337, "column": 57 } }, "expression": { "type": "CallExpression", - "start": 12729, - "end": 12775, + "start": 13003, + "end": 13049, "loc": { "start": { - "line": 332, + "line": 337, "column": 10 }, "end": { - "line": 332, + "line": 337, "column": 56 } }, "callee": { "type": "Identifier", - "start": 12729, - "end": 12747, + "start": 13003, + "end": 13021, "loc": { "start": { - "line": 332, + "line": 337, "column": 10 }, "end": { - "line": 332, + "line": 337, "column": 28 }, "identifierName": "recognizerCallback" @@ -25677,15 +26175,15 @@ "arguments": [ { "type": "Identifier", - "start": 12748, - "end": 12754, + "start": 13022, + "end": 13028, "loc": { "start": { - "line": 332, + "line": 337, "column": 29 }, "end": { - "line": 332, + "line": 337, "column": 35 }, "identifierName": "editor" @@ -25694,15 +26192,15 @@ }, { "type": "Identifier", - "start": 12756, - "end": 12759, + "start": 13030, + "end": 13033, "loc": { "start": { - "line": 332, + "line": 337, "column": 37 }, "end": { - "line": 332, + "line": 337, "column": 40 }, "identifierName": "err" @@ -25711,15 +26209,15 @@ }, { "type": "Identifier", - "start": 12761, - "end": 12764, + "start": 13035, + "end": 13038, "loc": { "start": { - "line": 332, + "line": 337, "column": 42 }, "end": { - "line": 332, + "line": 337, "column": 45 }, "identifierName": "res" @@ -25728,29 +26226,29 @@ }, { "type": "SpreadElement", - "start": 12766, - "end": 12774, + "start": 13040, + "end": 13048, "loc": { "start": { - "line": 332, + "line": 337, "column": 47 }, "end": { - "line": 332, + "line": 337, "column": 55 } }, "argument": { "type": "Identifier", - "start": 12769, - "end": 12774, + "start": 13043, + "end": 13048, "loc": { "start": { - "line": 332, + "line": 337, "column": 50 }, "end": { - "line": 332, + "line": 337, "column": 55 }, "identifierName": "types" @@ -25788,15 +26286,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the resize.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 12806, - "end": 12885, + "start": 13080, + "end": 13159, "loc": { "start": { - "line": 338, + "line": 343, "column": 0 }, "end": { - "line": 342, + "line": 347, "column": 3 } } @@ -25805,29 +26303,29 @@ }, { "type": "FunctionDeclaration", - "start": 12886, - "end": 13479, + "start": 13160, + "end": 13753, "loc": { "start": { - "line": 343, + "line": 348, "column": 0 }, "end": { - "line": 357, + "line": 362, "column": 1 } }, "id": { "type": "Identifier", - "start": 12895, - "end": 12907, + "start": 13169, + "end": 13181, "loc": { "start": { - "line": 343, + "line": 348, "column": 9 }, "end": { - "line": 343, + "line": 348, "column": 21 }, "identifierName": "launchResize" @@ -25841,15 +26339,15 @@ "params": [ { "type": "Identifier", - "start": 12908, - "end": 12914, + "start": 13182, + "end": 13188, "loc": { "start": { - "line": 343, + "line": 348, "column": 22 }, "end": { - "line": 343, + "line": 348, "column": 28 }, "identifierName": "editor" @@ -25858,15 +26356,15 @@ }, { "type": "Identifier", - "start": 12916, - "end": 12921, + "start": 13190, + "end": 13195, "loc": { "start": { - "line": 343, + "line": 348, "column": 30 }, "end": { - "line": 343, + "line": 348, "column": 35 }, "identifierName": "model" @@ -25876,72 +26374,72 @@ ], "body": { "type": "BlockStatement", - "start": 12923, - "end": 13479, + "start": 13197, + "end": 13753, "loc": { "start": { - "line": 343, + "line": 348, "column": 37 }, "end": { - "line": 357, + "line": 362, "column": 1 } }, "body": [ { "type": "IfStatement", - "start": 12927, - "end": 13477, + "start": 13201, + "end": 13751, "loc": { "start": { - "line": 344, + "line": 349, "column": 2 }, "end": { - "line": 356, + "line": 361, "column": 3 } }, "test": { "type": "LogicalExpression", - "start": 12931, - "end": 12976, + "start": 13205, + "end": 13250, "loc": { "start": { - "line": 344, + "line": 349, "column": 6 }, "end": { - "line": 344, + "line": 349, "column": 51 } }, "left": { "type": "MemberExpression", - "start": 12931, - "end": 12948, + "start": 13205, + "end": 13222, "loc": { "start": { - "line": 344, + "line": 349, "column": 6 }, "end": { - "line": 344, + "line": 349, "column": 23 } }, "object": { "type": "Identifier", - "start": 12931, - "end": 12937, + "start": 13205, + "end": 13211, "loc": { "start": { - "line": 344, + "line": 349, "column": 6 }, "end": { - "line": 344, + "line": 349, "column": 12 }, "identifierName": "editor" @@ -25950,15 +26448,15 @@ }, "property": { "type": "Identifier", - "start": 12938, - "end": 12948, + "start": 13212, + "end": 13222, "loc": { "start": { - "line": 344, + "line": 349, "column": 13 }, "end": { - "line": 344, + "line": 349, "column": 23 }, "identifierName": "recognizer" @@ -25970,43 +26468,43 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 12952, - "end": 12976, + "start": 13226, + "end": 13250, "loc": { "start": { - "line": 344, + "line": 349, "column": 27 }, "end": { - "line": 344, + "line": 349, "column": 51 } }, "object": { "type": "MemberExpression", - "start": 12952, - "end": 12969, + "start": 13226, + "end": 13243, "loc": { "start": { - "line": 344, + "line": 349, "column": 27 }, "end": { - "line": 344, + "line": 349, "column": 44 } }, "object": { "type": "Identifier", - "start": 12952, - "end": 12958, + "start": 13226, + "end": 13232, "loc": { "start": { - "line": 344, + "line": 349, "column": 27 }, "end": { - "line": 344, + "line": 349, "column": 33 }, "identifierName": "editor" @@ -26015,15 +26513,15 @@ }, "property": { "type": "Identifier", - "start": 12959, - "end": 12969, + "start": 13233, + "end": 13243, "loc": { "start": { - "line": 344, + "line": 349, "column": 34 }, "end": { - "line": 344, + "line": 349, "column": 44 }, "identifierName": "recognizer" @@ -26034,15 +26532,15 @@ }, "property": { "type": "Identifier", - "start": 12970, - "end": 12976, + "start": 13244, + "end": 13250, "loc": { "start": { - "line": 344, + "line": 349, "column": 45 }, "end": { - "line": 344, + "line": 349, "column": 51 }, "identifierName": "resize" @@ -26054,100 +26552,100 @@ }, "consequent": { "type": "BlockStatement", - "start": 12978, - "end": 13477, + "start": 13252, + "end": 13751, "loc": { "start": { - "line": 344, + "line": 349, "column": 53 }, "end": { - "line": 356, + "line": 361, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 12984, - "end": 13431, + "start": 13258, + "end": 13705, "loc": { "start": { - "line": 345, + "line": 350, "column": 4 }, "end": { - "line": 354, + "line": 359, "column": 9 } }, "expression": { "type": "CallExpression", - "start": 12984, - "end": 13430, + "start": 13258, + "end": 13704, "loc": { "start": { - "line": 345, + "line": 350, "column": 4 }, "end": { - "line": 354, + "line": 359, "column": 8 } }, "callee": { "type": "MemberExpression", - "start": 12984, - "end": 13032, + "start": 13258, + "end": 13306, "loc": { "start": { - "line": 345, + "line": 350, "column": 4 }, "end": { - "line": 346, + "line": 351, "column": 11 } }, "object": { "type": "MemberExpression", - "start": 12984, - "end": 13020, + "start": 13258, + "end": 13294, "loc": { "start": { - "line": 345, + "line": 350, "column": 4 }, "end": { - "line": 345, + "line": 350, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 12984, - "end": 13008, + "start": 13258, + "end": 13282, "loc": { "start": { - "line": 345, + "line": 350, "column": 4 }, "end": { - "line": 345, + "line": 350, "column": 28 } }, "object": { "type": "Identifier", - "start": 12984, - "end": 12990, + "start": 13258, + "end": 13264, "loc": { "start": { - "line": 345, + "line": 350, "column": 4 }, "end": { - "line": 345, + "line": 350, "column": 10 }, "identifierName": "editor" @@ -26156,15 +26654,15 @@ }, "property": { "type": "Identifier", - "start": 12991, - "end": 13008, + "start": 13265, + "end": 13282, "loc": { "start": { - "line": 345, + "line": 350, "column": 11 }, "end": { - "line": 345, + "line": 350, "column": 28 }, "identifierName": "recognizerContext" @@ -26175,15 +26673,15 @@ }, "property": { "type": "Identifier", - "start": 13009, - "end": 13020, + "start": 13283, + "end": 13294, "loc": { "start": { - "line": 345, + "line": 350, "column": 29 }, "end": { - "line": 345, + "line": 350, "column": 40 }, "identifierName": "initPromise" @@ -26194,15 +26692,15 @@ }, "property": { "type": "Identifier", - "start": 13028, - "end": 13032, + "start": 13302, + "end": 13306, "loc": { "start": { - "line": 346, + "line": 351, "column": 7 }, "end": { - "line": 346, + "line": 351, "column": 11 }, "identifierName": "then" @@ -26214,15 +26712,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 13033, - "end": 13429, + "start": 13307, + "end": 13703, "loc": { "start": { - "line": 346, + "line": 351, "column": 12 }, "end": { - "line": 354, + "line": 359, "column": 7 } }, @@ -26233,59 +26731,59 @@ "params": [], "body": { "type": "BlockStatement", - "start": 13039, - "end": 13429, + "start": 13313, + "end": 13703, "loc": { "start": { - "line": 346, + "line": 351, "column": 18 }, "end": { - "line": 354, + "line": 359, "column": 7 } }, "body": [ { "type": "VariableDeclaration", - "start": 13049, - "end": 13074, + "start": 13323, + "end": 13348, "loc": { "start": { - "line": 347, + "line": 352, "column": 8 }, "end": { - "line": 347, + "line": 352, "column": 33 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 13055, - "end": 13073, + "start": 13329, + "end": 13347, "loc": { "start": { - "line": 347, + "line": 352, "column": 14 }, "end": { - "line": 347, + "line": 352, "column": 32 } }, "id": { "type": "Identifier", - "start": 13055, - "end": 13064, + "start": 13329, + "end": 13338, "loc": { "start": { - "line": 347, + "line": 352, "column": 14 }, "end": { - "line": 347, + "line": 352, "column": 23 }, "identifierName": "editorRef" @@ -26294,15 +26792,15 @@ }, "init": { "type": "Identifier", - "start": 13067, - "end": 13073, + "start": 13341, + "end": 13347, "loc": { "start": { - "line": 347, + "line": 352, "column": 26 }, "end": { - "line": 347, + "line": 352, "column": 32 }, "identifierName": "editor" @@ -26315,57 +26813,57 @@ }, { "type": "ExpressionStatement", - "start": 13083, - "end": 13123, + "start": 13357, + "end": 13397, "loc": { "start": { - "line": 348, + "line": 353, "column": 8 }, "end": { - "line": 348, + "line": 353, "column": 48 } }, "expression": { "type": "CallExpression", - "start": 13083, - "end": 13122, + "start": 13357, + "end": 13396, "loc": { "start": { - "line": 348, + "line": 353, "column": 8 }, "end": { - "line": 348, + "line": 353, "column": 47 } }, "callee": { "type": "MemberExpression", - "start": 13083, - "end": 13102, + "start": 13357, + "end": 13376, "loc": { "start": { - "line": 348, + "line": 353, "column": 8 }, "end": { - "line": 348, + "line": 353, "column": 27 } }, "object": { "type": "Identifier", - "start": 13083, - "end": 13089, + "start": 13357, + "end": 13363, "loc": { "start": { - "line": 348, + "line": 353, "column": 8 }, "end": { - "line": 348, + "line": 353, "column": 14 }, "identifierName": "window" @@ -26374,15 +26872,15 @@ }, "property": { "type": "Identifier", - "start": 13090, - "end": 13102, + "start": 13364, + "end": 13376, "loc": { "start": { - "line": 348, + "line": 353, "column": 15 }, "end": { - "line": 348, + "line": 353, "column": 27 }, "identifierName": "clearTimeout" @@ -26394,29 +26892,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 13103, - "end": 13121, + "start": 13377, + "end": 13395, "loc": { "start": { - "line": 348, + "line": 353, "column": 28 }, "end": { - "line": 348, + "line": 353, "column": 46 } }, "object": { "type": "Identifier", - "start": 13103, - "end": 13109, + "start": 13377, + "end": 13383, "loc": { "start": { - "line": 348, + "line": 353, "column": 28 }, "end": { - "line": 348, + "line": 353, "column": 34 }, "identifierName": "editor" @@ -26425,15 +26923,15 @@ }, "property": { "type": "Identifier", - "start": 13110, - "end": 13121, + "start": 13384, + "end": 13395, "loc": { "start": { - "line": 348, + "line": 353, "column": 35 }, "end": { - "line": 348, + "line": 353, "column": 46 }, "identifierName": "resizeTimer" @@ -26447,58 +26945,58 @@ }, { "type": "ExpressionStatement", - "start": 13132, - "end": 13421, + "start": 13406, + "end": 13695, "loc": { "start": { - "line": 349, + "line": 354, "column": 8 }, "end": { - "line": 353, + "line": 358, "column": 52 } }, "expression": { "type": "AssignmentExpression", - "start": 13132, - "end": 13420, + "start": 13406, + "end": 13694, "loc": { "start": { - "line": 349, + "line": 354, "column": 8 }, "end": { - "line": 353, + "line": 358, "column": 51 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 13132, - "end": 13153, + "start": 13406, + "end": 13427, "loc": { "start": { - "line": 349, + "line": 354, "column": 8 }, "end": { - "line": 349, + "line": 354, "column": 29 } }, "object": { "type": "Identifier", - "start": 13132, - "end": 13141, + "start": 13406, + "end": 13415, "loc": { "start": { - "line": 349, + "line": 354, "column": 8 }, "end": { - "line": 349, + "line": 354, "column": 17 }, "identifierName": "editorRef" @@ -26507,15 +27005,15 @@ }, "property": { "type": "Identifier", - "start": 13142, - "end": 13153, + "start": 13416, + "end": 13427, "loc": { "start": { - "line": 349, + "line": 354, "column": 18 }, "end": { - "line": 349, + "line": 354, "column": 29 }, "identifierName": "resizeTimer" @@ -26526,43 +27024,43 @@ }, "right": { "type": "CallExpression", - "start": 13156, - "end": 13420, + "start": 13430, + "end": 13694, "loc": { "start": { - "line": 349, + "line": 354, "column": 32 }, "end": { - "line": 353, + "line": 358, "column": 51 } }, "callee": { "type": "MemberExpression", - "start": 13156, - "end": 13173, + "start": 13430, + "end": 13447, "loc": { "start": { - "line": 349, + "line": 354, "column": 32 }, "end": { - "line": 349, + "line": 354, "column": 49 } }, "object": { "type": "Identifier", - "start": 13156, - "end": 13162, + "start": 13430, + "end": 13436, "loc": { "start": { - "line": 349, + "line": 354, "column": 32 }, "end": { - "line": 349, + "line": 354, "column": 38 }, "identifierName": "window" @@ -26571,15 +27069,15 @@ }, "property": { "type": "Identifier", - "start": 13163, - "end": 13173, + "start": 13437, + "end": 13447, "loc": { "start": { - "line": 349, + "line": 354, "column": 39 }, "end": { - "line": 349, + "line": 354, "column": 49 }, "identifierName": "setTimeout" @@ -26591,15 +27089,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 13174, - "end": 13378, + "start": 13448, + "end": 13652, "loc": { "start": { - "line": 349, + "line": 354, "column": 50 }, "end": { - "line": 353, + "line": 358, "column": 9 } }, @@ -26610,86 +27108,86 @@ "params": [], "body": { "type": "BlockStatement", - "start": 13180, - "end": 13378, + "start": 13454, + "end": 13652, "loc": { "start": { - "line": 349, + "line": 354, "column": 56 }, "end": { - "line": 353, + "line": 358, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 13192, - "end": 13368, + "start": 13466, + "end": 13642, "loc": { "start": { - "line": 350, + "line": 355, "column": 10 }, "end": { - "line": 352, - "column": 13 + "line": 357, + "column": 32 } }, "expression": { "type": "CallExpression", - "start": 13192, - "end": 13367, + "start": 13466, + "end": 13641, "loc": { "start": { - "line": 350, + "line": 355, "column": 10 }, "end": { - "line": 352, - "column": 12 + "line": 357, + "column": 31 } }, "callee": { "type": "MemberExpression", - "start": 13192, - "end": 13216, + "start": 13466, + "end": 13490, "loc": { "start": { - "line": 350, + "line": 355, "column": 10 }, "end": { - "line": 350, + "line": 355, "column": 34 } }, "object": { "type": "MemberExpression", - "start": 13192, - "end": 13209, + "start": 13466, + "end": 13483, "loc": { "start": { - "line": 350, + "line": 355, "column": 10 }, "end": { - "line": 350, + "line": 355, "column": 27 } }, "object": { "type": "Identifier", - "start": 13192, - "end": 13198, + "start": 13466, + "end": 13472, "loc": { "start": { - "line": 350, + "line": 355, "column": 10 }, "end": { - "line": 350, + "line": 355, "column": 16 }, "identifierName": "editor" @@ -26698,15 +27196,15 @@ }, "property": { "type": "Identifier", - "start": 13199, - "end": 13209, + "start": 13473, + "end": 13483, "loc": { "start": { - "line": 350, + "line": 355, "column": 17 }, "end": { - "line": 350, + "line": 355, "column": 27 }, "identifierName": "recognizer" @@ -26717,15 +27215,15 @@ }, "property": { "type": "Identifier", - "start": 13210, - "end": 13216, + "start": 13484, + "end": 13490, "loc": { "start": { - "line": 350, + "line": 355, "column": 28 }, "end": { - "line": 350, + "line": 355, "column": 34 }, "identifierName": "resize" @@ -26737,29 +27235,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 13217, - "end": 13241, + "start": 13491, + "end": 13515, "loc": { "start": { - "line": 350, + "line": 355, "column": 35 }, "end": { - "line": 350, + "line": 355, "column": 59 } }, "object": { "type": "Identifier", - "start": 13217, - "end": 13223, + "start": 13491, + "end": 13497, "loc": { "start": { - "line": 350, + "line": 355, "column": 35 }, "end": { - "line": 350, + "line": 355, "column": 41 }, "identifierName": "editor" @@ -26768,15 +27266,15 @@ }, "property": { "type": "Identifier", - "start": 13224, - "end": 13241, + "start": 13498, + "end": 13515, "loc": { "start": { - "line": 350, + "line": 355, "column": 42 }, "end": { - "line": 350, + "line": 355, "column": 59 }, "identifierName": "recognizerContext" @@ -26787,82 +27285,32 @@ }, { "type": "Identifier", - "start": 13243, - "end": 13248, + "start": 13517, + "end": 13522, "loc": { "start": { - "line": 350, + "line": 355, "column": 61 }, "end": { - "line": 350, + "line": 355, "column": 66 }, "identifierName": "model" }, "name": "model" }, - { - "type": "MemberExpression", - "start": 13250, - "end": 13267, - "loc": { - "start": { - "line": 350, - "column": 68 - }, - "end": { - "line": 350, - "column": 85 - } - }, - "object": { - "type": "Identifier", - "start": 13250, - "end": 13256, - "loc": { - "start": { - "line": 350, - "column": 68 - }, - "end": { - "line": 350, - "column": 74 - }, - "identifierName": "editor" - }, - "name": "editor" - }, - "property": { - "type": "Identifier", - "start": 13257, - "end": 13267, - "loc": { - "start": { - "line": 350, - "column": 75 - }, - "end": { - "line": 350, - "column": 85 - }, - "identifierName": "domElement" - }, - "name": "domElement" - }, - "computed": false - }, { "type": "ArrowFunctionExpression", - "start": 13269, - "end": 13366, + "start": 13524, + "end": 13621, "loc": { "start": { - "line": 350, - "column": 87 + "line": 355, + "column": 68 }, "end": { - "line": 352, + "line": 357, "column": 11 } }, @@ -26873,16 +27321,16 @@ "params": [ { "type": "Identifier", - "start": 13270, - "end": 13273, + "start": 13525, + "end": 13528, "loc": { "start": { - "line": 350, - "column": 88 + "line": 355, + "column": 69 }, "end": { - "line": 350, - "column": 91 + "line": 355, + "column": 72 }, "identifierName": "err" }, @@ -26890,16 +27338,16 @@ }, { "type": "Identifier", - "start": 13275, - "end": 13278, + "start": 13530, + "end": 13533, "loc": { "start": { - "line": 350, - "column": 93 + "line": 355, + "column": 74 }, "end": { - "line": 350, - "column": 96 + "line": 355, + "column": 77 }, "identifierName": "res" }, @@ -26907,30 +27355,30 @@ }, { "type": "RestElement", - "start": 13280, - "end": 13288, + "start": 13535, + "end": 13543, "loc": { "start": { - "line": 350, - "column": 98 + "line": 355, + "column": 79 }, "end": { - "line": 350, - "column": 106 + "line": 355, + "column": 87 } }, "argument": { "type": "Identifier", - "start": 13283, - "end": 13288, + "start": 13538, + "end": 13543, "loc": { "start": { - "line": 350, - "column": 101 + "line": 355, + "column": 82 }, "end": { - "line": 350, - "column": 106 + "line": 355, + "column": 87 }, "identifierName": "types" }, @@ -26940,58 +27388,58 @@ ], "body": { "type": "BlockStatement", - "start": 13293, - "end": 13366, + "start": 13548, + "end": 13621, "loc": { "start": { - "line": 350, - "column": 111 + "line": 355, + "column": 92 }, "end": { - "line": 352, + "line": 357, "column": 11 } }, "body": [ { "type": "ExpressionStatement", - "start": 13307, - "end": 13354, + "start": 13562, + "end": 13609, "loc": { "start": { - "line": 351, + "line": 356, "column": 12 }, "end": { - "line": 351, + "line": 356, "column": 59 } }, "expression": { "type": "CallExpression", - "start": 13307, - "end": 13353, + "start": 13562, + "end": 13608, "loc": { "start": { - "line": 351, + "line": 356, "column": 12 }, "end": { - "line": 351, + "line": 356, "column": 58 } }, "callee": { "type": "Identifier", - "start": 13307, - "end": 13325, + "start": 13562, + "end": 13580, "loc": { "start": { - "line": 351, + "line": 356, "column": 12 }, "end": { - "line": 351, + "line": 356, "column": 30 }, "identifierName": "recognizerCallback" @@ -27001,15 +27449,15 @@ "arguments": [ { "type": "Identifier", - "start": 13326, - "end": 13332, + "start": 13581, + "end": 13587, "loc": { "start": { - "line": 351, + "line": 356, "column": 31 }, "end": { - "line": 351, + "line": 356, "column": 37 }, "identifierName": "editor" @@ -27018,15 +27466,15 @@ }, { "type": "Identifier", - "start": 13334, - "end": 13337, + "start": 13589, + "end": 13592, "loc": { "start": { - "line": 351, + "line": 356, "column": 39 }, "end": { - "line": 351, + "line": 356, "column": 42 }, "identifierName": "err" @@ -27035,15 +27483,15 @@ }, { "type": "Identifier", - "start": 13339, - "end": 13342, + "start": 13594, + "end": 13597, "loc": { "start": { - "line": 351, + "line": 356, "column": 44 }, "end": { - "line": 351, + "line": 356, "column": 47 }, "identifierName": "res" @@ -27052,29 +27500,29 @@ }, { "type": "SpreadElement", - "start": 13344, - "end": 13352, + "start": 13599, + "end": 13607, "loc": { "start": { - "line": 351, + "line": 356, "column": 49 }, "end": { - "line": 351, + "line": 356, "column": 57 } }, "argument": { "type": "Identifier", - "start": 13347, - "end": 13352, + "start": 13602, + "end": 13607, "loc": { "start": { - "line": 351, + "line": 356, "column": 52 }, "end": { - "line": 351, + "line": 356, "column": 57 }, "identifierName": "types" @@ -27088,6 +27536,56 @@ ], "directives": [] } + }, + { + "type": "MemberExpression", + "start": 13623, + "end": 13640, + "loc": { + "start": { + "line": 357, + "column": 13 + }, + "end": { + "line": 357, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 13623, + "end": 13629, + "loc": { + "start": { + "line": 357, + "column": 13 + }, + "end": { + "line": 357, + "column": 19 + }, + "identifierName": "editor" + }, + "name": "editor" + }, + "property": { + "type": "Identifier", + "start": 13630, + "end": 13640, + "loc": { + "start": { + "line": 357, + "column": 20 + }, + "end": { + "line": 357, + "column": 30 + }, + "identifierName": "domElement" + }, + "name": "domElement" + }, + "computed": false } ] } @@ -27098,43 +27596,43 @@ }, { "type": "MemberExpression", - "start": 13380, - "end": 13419, + "start": 13654, + "end": 13693, "loc": { "start": { - "line": 353, + "line": 358, "column": 11 }, "end": { - "line": 353, + "line": 358, "column": 50 } }, "object": { "type": "MemberExpression", - "start": 13380, - "end": 13400, + "start": 13654, + "end": 13674, "loc": { "start": { - "line": 353, + "line": 358, "column": 11 }, "end": { - "line": 353, + "line": 358, "column": 31 } }, "object": { "type": "Identifier", - "start": 13380, - "end": 13386, + "start": 13654, + "end": 13660, "loc": { "start": { - "line": 353, + "line": 358, "column": 11 }, "end": { - "line": 353, + "line": 358, "column": 17 }, "identifierName": "editor" @@ -27143,15 +27641,15 @@ }, "property": { "type": "Identifier", - "start": 13387, - "end": 13400, + "start": 13661, + "end": 13674, "loc": { "start": { - "line": 353, + "line": 358, "column": 18 }, "end": { - "line": 353, + "line": 358, "column": 31 }, "identifierName": "configuration" @@ -27162,15 +27660,15 @@ }, "property": { "type": "Identifier", - "start": 13401, - "end": 13419, + "start": 13675, + "end": 13693, "loc": { "start": { - "line": 353, + "line": 358, "column": 32 }, "end": { - "line": 353, + "line": 358, "column": 50 }, "identifierName": "resizeTriggerDelay" @@ -27192,57 +27690,57 @@ }, { "type": "ExpressionStatement", - "start": 13436, - "end": 13473, + "start": 13710, + "end": 13747, "loc": { "start": { - "line": 355, + "line": 360, "column": 4 }, "end": { - "line": 355, + "line": 360, "column": 41 } }, "expression": { "type": "CallExpression", - "start": 13436, - "end": 13472, + "start": 13710, + "end": 13746, "loc": { "start": { - "line": 355, + "line": 360, "column": 4 }, "end": { - "line": 355, + "line": 360, "column": 40 } }, "callee": { "type": "MemberExpression", - "start": 13436, - "end": 13453, + "start": 13710, + "end": 13727, "loc": { "start": { - "line": 355, + "line": 360, "column": 4 }, "end": { - "line": 355, + "line": 360, "column": 21 } }, "object": { "type": "Identifier", - "start": 13436, - "end": 13446, + "start": 13710, + "end": 13720, "loc": { "start": { - "line": 355, + "line": 360, "column": 4 }, "end": { - "line": 355, + "line": 360, "column": 14 }, "identifierName": "SmartGuide" @@ -27251,15 +27749,15 @@ }, "property": { "type": "Identifier", - "start": 13447, - "end": 13453, + "start": 13721, + "end": 13727, "loc": { "start": { - "line": 355, + "line": 360, "column": 15 }, "end": { - "line": 355, + "line": 360, "column": 21 }, "identifierName": "resize" @@ -27271,29 +27769,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 13454, - "end": 13471, + "start": 13728, + "end": 13745, "loc": { "start": { - "line": 355, + "line": 360, "column": 22 }, "end": { - "line": 355, + "line": 360, "column": 39 } }, "object": { "type": "Identifier", - "start": 13454, - "end": 13460, + "start": 13728, + "end": 13734, "loc": { "start": { - "line": 355, + "line": 360, "column": 22 }, "end": { - "line": 355, + "line": 360, "column": 28 }, "identifierName": "editor" @@ -27302,15 +27800,15 @@ }, "property": { "type": "Identifier", - "start": 13461, - "end": 13471, + "start": 13735, + "end": 13745, "loc": { "start": { - "line": 355, + "line": 360, "column": 29 }, "end": { - "line": 355, + "line": 360, "column": 39 }, "identifierName": "smartGuide" @@ -27335,15 +27833,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the resize.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 12806, - "end": 12885, + "start": 13080, + "end": 13159, "loc": { "start": { - "line": 338, + "line": 343, "column": 0 }, "end": { - "line": 342, + "line": 347, "column": 3 } } @@ -27353,15 +27851,15 @@ { "type": "CommentBlock", "value": "*\n * Launch wait for idle\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 13481, - "end": 13562, + "start": 13755, + "end": 13836, "loc": { "start": { - "line": 359, + "line": 364, "column": 0 }, "end": { - "line": 363, + "line": 368, "column": 3 } } @@ -27370,29 +27868,29 @@ }, { "type": "FunctionDeclaration", - "start": 13563, - "end": 13910, + "start": 13837, + "end": 14184, "loc": { "start": { - "line": 364, + "line": 369, "column": 0 }, "end": { - "line": 373, + "line": 378, "column": 1 } }, "id": { "type": "Identifier", - "start": 13572, - "end": 13589, + "start": 13846, + "end": 13863, "loc": { "start": { - "line": 364, + "line": 369, "column": 9 }, "end": { - "line": 364, + "line": 369, "column": 26 }, "identifierName": "launchWaitForIdle" @@ -27406,15 +27904,15 @@ "params": [ { "type": "Identifier", - "start": 13590, - "end": 13596, + "start": 13864, + "end": 13870, "loc": { "start": { - "line": 364, + "line": 369, "column": 27 }, "end": { - "line": 364, + "line": 369, "column": 33 }, "identifierName": "editor" @@ -27423,15 +27921,15 @@ }, { "type": "Identifier", - "start": 13598, - "end": 13603, + "start": 13872, + "end": 13877, "loc": { "start": { - "line": 364, + "line": 369, "column": 35 }, "end": { - "line": 364, + "line": 369, "column": 40 }, "identifierName": "model" @@ -27441,72 +27939,72 @@ ], "body": { "type": "BlockStatement", - "start": 13605, - "end": 13910, + "start": 13879, + "end": 14184, "loc": { "start": { - "line": 364, + "line": 369, "column": 42 }, "end": { - "line": 373, + "line": 378, "column": 1 } }, "body": [ { "type": "IfStatement", - "start": 13609, - "end": 13908, + "start": 13883, + "end": 14182, "loc": { "start": { - "line": 365, + "line": 370, "column": 2 }, "end": { - "line": 372, + "line": 377, "column": 3 } }, "test": { "type": "LogicalExpression", - "start": 13613, - "end": 13663, + "start": 13887, + "end": 13937, "loc": { "start": { - "line": 365, + "line": 370, "column": 6 }, "end": { - "line": 365, + "line": 370, "column": 56 } }, "left": { "type": "MemberExpression", - "start": 13613, - "end": 13630, + "start": 13887, + "end": 13904, "loc": { "start": { - "line": 365, + "line": 370, "column": 6 }, "end": { - "line": 365, + "line": 370, "column": 23 } }, "object": { "type": "Identifier", - "start": 13613, - "end": 13619, + "start": 13887, + "end": 13893, "loc": { "start": { - "line": 365, + "line": 370, "column": 6 }, "end": { - "line": 365, + "line": 370, "column": 12 }, "identifierName": "editor" @@ -27515,15 +28013,15 @@ }, "property": { "type": "Identifier", - "start": 13620, - "end": 13630, + "start": 13894, + "end": 13904, "loc": { "start": { - "line": 365, + "line": 370, "column": 13 }, "end": { - "line": 365, + "line": 370, "column": 23 }, "identifierName": "recognizer" @@ -27535,43 +28033,43 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 13634, - "end": 13663, + "start": 13908, + "end": 13937, "loc": { "start": { - "line": 365, + "line": 370, "column": 27 }, "end": { - "line": 365, + "line": 370, "column": 56 } }, "object": { "type": "MemberExpression", - "start": 13634, - "end": 13651, + "start": 13908, + "end": 13925, "loc": { "start": { - "line": 365, + "line": 370, "column": 27 }, "end": { - "line": 365, + "line": 370, "column": 44 } }, "object": { "type": "Identifier", - "start": 13634, - "end": 13640, + "start": 13908, + "end": 13914, "loc": { "start": { - "line": 365, + "line": 370, "column": 27 }, "end": { - "line": 365, + "line": 370, "column": 33 }, "identifierName": "editor" @@ -27580,15 +28078,15 @@ }, "property": { "type": "Identifier", - "start": 13641, - "end": 13651, + "start": 13915, + "end": 13925, "loc": { "start": { - "line": 365, + "line": 370, "column": 34 }, "end": { - "line": 365, + "line": 370, "column": 44 }, "identifierName": "recognizer" @@ -27599,15 +28097,15 @@ }, "property": { "type": "Identifier", - "start": 13652, - "end": 13663, + "start": 13926, + "end": 13937, "loc": { "start": { - "line": 365, + "line": 370, "column": 45 }, "end": { - "line": 365, + "line": 370, "column": 56 }, "identifierName": "waitForIdle" @@ -27619,100 +28117,100 @@ }, "consequent": { "type": "BlockStatement", - "start": 13665, - "end": 13908, + "start": 13939, + "end": 14182, "loc": { "start": { - "line": 365, + "line": 370, "column": 58 }, "end": { - "line": 372, + "line": 377, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 13671, - "end": 13904, + "start": 13945, + "end": 14178, "loc": { "start": { - "line": 366, + "line": 371, "column": 4 }, "end": { - "line": 371, + "line": 376, "column": 9 } }, "expression": { "type": "CallExpression", - "start": 13671, - "end": 13903, + "start": 13945, + "end": 14177, "loc": { "start": { - "line": 366, + "line": 371, "column": 4 }, "end": { - "line": 371, + "line": 376, "column": 8 } }, "callee": { "type": "MemberExpression", - "start": 13671, - "end": 13719, + "start": 13945, + "end": 13993, "loc": { "start": { - "line": 366, + "line": 371, "column": 4 }, "end": { - "line": 367, + "line": 372, "column": 11 } }, "object": { "type": "MemberExpression", - "start": 13671, - "end": 13707, + "start": 13945, + "end": 13981, "loc": { "start": { - "line": 366, + "line": 371, "column": 4 }, "end": { - "line": 366, + "line": 371, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 13671, - "end": 13695, + "start": 13945, + "end": 13969, "loc": { "start": { - "line": 366, + "line": 371, "column": 4 }, "end": { - "line": 366, + "line": 371, "column": 28 } }, "object": { "type": "Identifier", - "start": 13671, - "end": 13677, + "start": 13945, + "end": 13951, "loc": { "start": { - "line": 366, + "line": 371, "column": 4 }, "end": { - "line": 366, + "line": 371, "column": 10 }, "identifierName": "editor" @@ -27721,15 +28219,15 @@ }, "property": { "type": "Identifier", - "start": 13678, - "end": 13695, + "start": 13952, + "end": 13969, "loc": { "start": { - "line": 366, + "line": 371, "column": 11 }, "end": { - "line": 366, + "line": 371, "column": 28 }, "identifierName": "recognizerContext" @@ -27740,15 +28238,15 @@ }, "property": { "type": "Identifier", - "start": 13696, - "end": 13707, + "start": 13970, + "end": 13981, "loc": { "start": { - "line": 366, + "line": 371, "column": 29 }, "end": { - "line": 366, + "line": 371, "column": 40 }, "identifierName": "initPromise" @@ -27759,15 +28257,15 @@ }, "property": { "type": "Identifier", - "start": 13715, - "end": 13719, + "start": 13989, + "end": 13993, "loc": { "start": { - "line": 367, + "line": 372, "column": 7 }, "end": { - "line": 367, + "line": 372, "column": 11 }, "identifierName": "then" @@ -27779,15 +28277,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 13720, - "end": 13902, + "start": 13994, + "end": 14176, "loc": { "start": { - "line": 367, + "line": 372, "column": 12 }, "end": { - "line": 371, + "line": 376, "column": 7 } }, @@ -27798,86 +28296,86 @@ "params": [], "body": { "type": "BlockStatement", - "start": 13726, - "end": 13902, + "start": 14000, + "end": 14176, "loc": { "start": { - "line": 367, + "line": 372, "column": 18 }, "end": { - "line": 371, + "line": 376, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 13736, - "end": 13894, + "start": 14010, + "end": 14168, "loc": { "start": { - "line": 368, + "line": 373, "column": 8 }, "end": { - "line": 370, + "line": 375, "column": 11 } }, "expression": { "type": "CallExpression", - "start": 13736, - "end": 13893, + "start": 14010, + "end": 14167, "loc": { "start": { - "line": 368, + "line": 373, "column": 8 }, "end": { - "line": 370, + "line": 375, "column": 10 } }, "callee": { "type": "MemberExpression", - "start": 13736, - "end": 13765, + "start": 14010, + "end": 14039, "loc": { "start": { - "line": 368, + "line": 373, "column": 8 }, "end": { - "line": 368, + "line": 373, "column": 37 } }, "object": { "type": "MemberExpression", - "start": 13736, - "end": 13753, + "start": 14010, + "end": 14027, "loc": { "start": { - "line": 368, + "line": 373, "column": 8 }, "end": { - "line": 368, + "line": 373, "column": 25 } }, "object": { "type": "Identifier", - "start": 13736, - "end": 13742, + "start": 14010, + "end": 14016, "loc": { "start": { - "line": 368, + "line": 373, "column": 8 }, "end": { - "line": 368, + "line": 373, "column": 14 }, "identifierName": "editor" @@ -27886,15 +28384,15 @@ }, "property": { "type": "Identifier", - "start": 13743, - "end": 13753, + "start": 14017, + "end": 14027, "loc": { "start": { - "line": 368, + "line": 373, "column": 15 }, "end": { - "line": 368, + "line": 373, "column": 25 }, "identifierName": "recognizer" @@ -27905,15 +28403,15 @@ }, "property": { "type": "Identifier", - "start": 13754, - "end": 13765, + "start": 14028, + "end": 14039, "loc": { "start": { - "line": 368, + "line": 373, "column": 26 }, "end": { - "line": 368, + "line": 373, "column": 37 }, "identifierName": "waitForIdle" @@ -27925,29 +28423,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 13766, - "end": 13790, + "start": 14040, + "end": 14064, "loc": { "start": { - "line": 368, + "line": 373, "column": 38 }, "end": { - "line": 368, + "line": 373, "column": 62 } }, "object": { "type": "Identifier", - "start": 13766, - "end": 13772, + "start": 14040, + "end": 14046, "loc": { "start": { - "line": 368, + "line": 373, "column": 38 }, "end": { - "line": 368, + "line": 373, "column": 44 }, "identifierName": "editor" @@ -27956,15 +28454,15 @@ }, "property": { "type": "Identifier", - "start": 13773, - "end": 13790, + "start": 14047, + "end": 14064, "loc": { "start": { - "line": 368, + "line": 373, "column": 45 }, "end": { - "line": 368, + "line": 373, "column": 62 }, "identifierName": "recognizerContext" @@ -27975,15 +28473,15 @@ }, { "type": "Identifier", - "start": 13792, - "end": 13797, + "start": 14066, + "end": 14071, "loc": { "start": { - "line": 368, + "line": 373, "column": 64 }, "end": { - "line": 368, + "line": 373, "column": 69 }, "identifierName": "model" @@ -27992,15 +28490,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 13799, - "end": 13892, + "start": 14073, + "end": 14166, "loc": { "start": { - "line": 368, + "line": 373, "column": 71 }, "end": { - "line": 370, + "line": 375, "column": 9 } }, @@ -28011,15 +28509,15 @@ "params": [ { "type": "Identifier", - "start": 13800, - "end": 13803, + "start": 14074, + "end": 14077, "loc": { "start": { - "line": 368, + "line": 373, "column": 72 }, "end": { - "line": 368, + "line": 373, "column": 75 }, "identifierName": "err" @@ -28028,15 +28526,15 @@ }, { "type": "Identifier", - "start": 13805, - "end": 13808, + "start": 14079, + "end": 14082, "loc": { "start": { - "line": 368, + "line": 373, "column": 77 }, "end": { - "line": 368, + "line": 373, "column": 80 }, "identifierName": "res" @@ -28045,29 +28543,29 @@ }, { "type": "RestElement", - "start": 13810, - "end": 13818, + "start": 14084, + "end": 14092, "loc": { "start": { - "line": 368, + "line": 373, "column": 82 }, "end": { - "line": 368, + "line": 373, "column": 90 } }, "argument": { "type": "Identifier", - "start": 13813, - "end": 13818, + "start": 14087, + "end": 14092, "loc": { "start": { - "line": 368, + "line": 373, "column": 85 }, "end": { - "line": 368, + "line": 373, "column": 90 }, "identifierName": "types" @@ -28078,58 +28576,58 @@ ], "body": { "type": "BlockStatement", - "start": 13823, - "end": 13892, + "start": 14097, + "end": 14166, "loc": { "start": { - "line": 368, + "line": 373, "column": 95 }, "end": { - "line": 370, + "line": 375, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 13835, - "end": 13882, + "start": 14109, + "end": 14156, "loc": { "start": { - "line": 369, + "line": 374, "column": 10 }, "end": { - "line": 369, + "line": 374, "column": 57 } }, "expression": { "type": "CallExpression", - "start": 13835, - "end": 13881, + "start": 14109, + "end": 14155, "loc": { "start": { - "line": 369, + "line": 374, "column": 10 }, "end": { - "line": 369, + "line": 374, "column": 56 } }, "callee": { "type": "Identifier", - "start": 13835, - "end": 13853, + "start": 14109, + "end": 14127, "loc": { "start": { - "line": 369, + "line": 374, "column": 10 }, "end": { - "line": 369, + "line": 374, "column": 28 }, "identifierName": "recognizerCallback" @@ -28139,15 +28637,15 @@ "arguments": [ { "type": "Identifier", - "start": 13854, - "end": 13860, + "start": 14128, + "end": 14134, "loc": { "start": { - "line": 369, + "line": 374, "column": 29 }, "end": { - "line": 369, + "line": 374, "column": 35 }, "identifierName": "editor" @@ -28156,15 +28654,15 @@ }, { "type": "Identifier", - "start": 13862, - "end": 13865, + "start": 14136, + "end": 14139, "loc": { "start": { - "line": 369, + "line": 374, "column": 37 }, "end": { - "line": 369, + "line": 374, "column": 40 }, "identifierName": "err" @@ -28173,15 +28671,15 @@ }, { "type": "Identifier", - "start": 13867, - "end": 13870, + "start": 14141, + "end": 14144, "loc": { "start": { - "line": 369, + "line": 374, "column": 42 }, "end": { - "line": 369, + "line": 374, "column": 45 }, "identifierName": "res" @@ -28190,29 +28688,29 @@ }, { "type": "SpreadElement", - "start": 13872, - "end": 13880, + "start": 14146, + "end": 14154, "loc": { "start": { - "line": 369, + "line": 374, "column": 47 }, "end": { - "line": 369, + "line": 374, "column": 55 } }, "argument": { "type": "Identifier", - "start": 13875, - "end": 13880, + "start": 14149, + "end": 14154, "loc": { "start": { - "line": 369, + "line": 374, "column": 50 }, "end": { - "line": 369, + "line": 374, "column": 55 }, "identifierName": "types" @@ -28250,15 +28748,15 @@ { "type": "CommentBlock", "value": "*\n * Launch wait for idle\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 13481, - "end": 13562, + "start": 13755, + "end": 13836, "loc": { "start": { - "line": 359, + "line": 364, "column": 0 }, "end": { - "line": 363, + "line": 368, "column": 3 } } @@ -28268,15 +28766,15 @@ { "type": "CommentBlock", "value": "*\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 13912, - "end": 13987, + "start": 14186, + "end": 14261, "loc": { "start": { - "line": 375, + "line": 380, "column": 0 }, "end": { - "line": 379, + "line": 384, "column": 3 } } @@ -28285,29 +28783,29 @@ }, { "type": "FunctionDeclaration", - "start": 13988, - "end": 14346, + "start": 14262, + "end": 14620, "loc": { "start": { - "line": 380, + "line": 385, "column": 0 }, "end": { - "line": 389, + "line": 394, "column": 1 } }, "id": { "type": "Identifier", - "start": 13997, - "end": 14008, + "start": 14271, + "end": 14282, "loc": { "start": { - "line": 380, + "line": 385, "column": 9 }, "end": { - "line": 380, + "line": 385, "column": 20 }, "identifierName": "setPenStyle" @@ -28321,15 +28819,15 @@ "params": [ { "type": "Identifier", - "start": 14009, - "end": 14015, + "start": 14283, + "end": 14289, "loc": { "start": { - "line": 380, + "line": 385, "column": 21 }, "end": { - "line": 380, + "line": 385, "column": 27 }, "identifierName": "editor" @@ -28338,15 +28836,15 @@ }, { "type": "Identifier", - "start": 14017, - "end": 14022, + "start": 14291, + "end": 14296, "loc": { "start": { - "line": 380, + "line": 385, "column": 29 }, "end": { - "line": 380, + "line": 385, "column": 34 }, "identifierName": "model" @@ -28356,72 +28854,72 @@ ], "body": { "type": "BlockStatement", - "start": 14024, - "end": 14346, + "start": 14298, + "end": 14620, "loc": { "start": { - "line": 380, + "line": 385, "column": 36 }, "end": { - "line": 389, + "line": 394, "column": 1 } }, "body": [ { "type": "IfStatement", - "start": 14028, - "end": 14344, + "start": 14302, + "end": 14618, "loc": { "start": { - "line": 381, + "line": 386, "column": 2 }, "end": { - "line": 388, + "line": 393, "column": 3 } }, "test": { "type": "LogicalExpression", - "start": 14032, - "end": 14082, + "start": 14306, + "end": 14356, "loc": { "start": { - "line": 381, + "line": 386, "column": 6 }, "end": { - "line": 381, + "line": 386, "column": 56 } }, "left": { "type": "MemberExpression", - "start": 14032, - "end": 14049, + "start": 14306, + "end": 14323, "loc": { "start": { - "line": 381, + "line": 386, "column": 6 }, "end": { - "line": 381, + "line": 386, "column": 23 } }, "object": { "type": "Identifier", - "start": 14032, - "end": 14038, + "start": 14306, + "end": 14312, "loc": { "start": { - "line": 381, + "line": 386, "column": 6 }, "end": { - "line": 381, + "line": 386, "column": 12 }, "identifierName": "editor" @@ -28430,15 +28928,15 @@ }, "property": { "type": "Identifier", - "start": 14039, - "end": 14049, + "start": 14313, + "end": 14323, "loc": { "start": { - "line": 381, + "line": 386, "column": 13 }, "end": { - "line": 381, + "line": 386, "column": 23 }, "identifierName": "recognizer" @@ -28450,43 +28948,43 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 14053, - "end": 14082, + "start": 14327, + "end": 14356, "loc": { "start": { - "line": 381, + "line": 386, "column": 27 }, "end": { - "line": 381, + "line": 386, "column": 56 } }, "object": { "type": "MemberExpression", - "start": 14053, - "end": 14070, + "start": 14327, + "end": 14344, "loc": { "start": { - "line": 381, + "line": 386, "column": 27 }, "end": { - "line": 381, + "line": 386, "column": 44 } }, "object": { "type": "Identifier", - "start": 14053, - "end": 14059, + "start": 14327, + "end": 14333, "loc": { "start": { - "line": 381, + "line": 386, "column": 27 }, "end": { - "line": 381, + "line": 386, "column": 33 }, "identifierName": "editor" @@ -28495,15 +28993,15 @@ }, "property": { "type": "Identifier", - "start": 14060, - "end": 14070, + "start": 14334, + "end": 14344, "loc": { "start": { - "line": 381, + "line": 386, "column": 34 }, "end": { - "line": 381, + "line": 386, "column": 44 }, "identifierName": "recognizer" @@ -28514,15 +29012,15 @@ }, "property": { "type": "Identifier", - "start": 14071, - "end": 14082, + "start": 14345, + "end": 14356, "loc": { "start": { - "line": 381, + "line": 386, "column": 45 }, "end": { - "line": 381, + "line": 386, "column": 56 }, "identifierName": "setPenStyle" @@ -28534,100 +29032,100 @@ }, "consequent": { "type": "BlockStatement", - "start": 14084, - "end": 14344, + "start": 14358, + "end": 14618, "loc": { "start": { - "line": 381, + "line": 386, "column": 58 }, "end": { - "line": 388, + "line": 393, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 14090, - "end": 14340, + "start": 14364, + "end": 14614, "loc": { "start": { - "line": 382, + "line": 387, "column": 4 }, "end": { - "line": 387, + "line": 392, "column": 9 } }, "expression": { "type": "CallExpression", - "start": 14090, - "end": 14339, + "start": 14364, + "end": 14613, "loc": { "start": { - "line": 382, + "line": 387, "column": 4 }, "end": { - "line": 387, + "line": 392, "column": 8 } }, "callee": { "type": "MemberExpression", - "start": 14090, - "end": 14138, + "start": 14364, + "end": 14412, "loc": { "start": { - "line": 382, + "line": 387, "column": 4 }, "end": { - "line": 383, + "line": 388, "column": 11 } }, "object": { "type": "MemberExpression", - "start": 14090, - "end": 14126, + "start": 14364, + "end": 14400, "loc": { "start": { - "line": 382, + "line": 387, "column": 4 }, "end": { - "line": 382, + "line": 387, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 14090, - "end": 14114, + "start": 14364, + "end": 14388, "loc": { "start": { - "line": 382, + "line": 387, "column": 4 }, "end": { - "line": 382, + "line": 387, "column": 28 } }, "object": { "type": "Identifier", - "start": 14090, - "end": 14096, + "start": 14364, + "end": 14370, "loc": { "start": { - "line": 382, + "line": 387, "column": 4 }, "end": { - "line": 382, + "line": 387, "column": 10 }, "identifierName": "editor" @@ -28636,15 +29134,15 @@ }, "property": { "type": "Identifier", - "start": 14097, - "end": 14114, + "start": 14371, + "end": 14388, "loc": { "start": { - "line": 382, + "line": 387, "column": 11 }, "end": { - "line": 382, + "line": 387, "column": 28 }, "identifierName": "recognizerContext" @@ -28655,15 +29153,15 @@ }, "property": { "type": "Identifier", - "start": 14115, - "end": 14126, + "start": 14389, + "end": 14400, "loc": { "start": { - "line": 382, + "line": 387, "column": 29 }, "end": { - "line": 382, + "line": 387, "column": 40 }, "identifierName": "initPromise" @@ -28674,15 +29172,15 @@ }, "property": { "type": "Identifier", - "start": 14134, - "end": 14138, + "start": 14408, + "end": 14412, "loc": { "start": { - "line": 383, + "line": 388, "column": 7 }, "end": { - "line": 383, + "line": 388, "column": 11 }, "identifierName": "then" @@ -28694,15 +29192,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 14139, - "end": 14338, + "start": 14413, + "end": 14612, "loc": { "start": { - "line": 383, + "line": 388, "column": 12 }, "end": { - "line": 387, + "line": 392, "column": 7 } }, @@ -28713,86 +29211,86 @@ "params": [], "body": { "type": "BlockStatement", - "start": 14145, - "end": 14338, + "start": 14419, + "end": 14612, "loc": { "start": { - "line": 383, + "line": 388, "column": 18 }, "end": { - "line": 387, + "line": 392, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 14155, - "end": 14330, + "start": 14429, + "end": 14604, "loc": { "start": { - "line": 384, + "line": 389, "column": 8 }, "end": { - "line": 386, + "line": 391, "column": 11 } }, "expression": { "type": "CallExpression", - "start": 14155, - "end": 14329, + "start": 14429, + "end": 14603, "loc": { "start": { - "line": 384, + "line": 389, "column": 8 }, "end": { - "line": 386, + "line": 391, "column": 10 } }, "callee": { "type": "MemberExpression", - "start": 14155, - "end": 14184, + "start": 14429, + "end": 14458, "loc": { "start": { - "line": 384, + "line": 389, "column": 8 }, "end": { - "line": 384, + "line": 389, "column": 37 } }, "object": { "type": "MemberExpression", - "start": 14155, - "end": 14172, + "start": 14429, + "end": 14446, "loc": { "start": { - "line": 384, + "line": 389, "column": 8 }, "end": { - "line": 384, + "line": 389, "column": 25 } }, "object": { "type": "Identifier", - "start": 14155, - "end": 14161, + "start": 14429, + "end": 14435, "loc": { "start": { - "line": 384, + "line": 389, "column": 8 }, "end": { - "line": 384, + "line": 389, "column": 14 }, "identifierName": "editor" @@ -28801,15 +29299,15 @@ }, "property": { "type": "Identifier", - "start": 14162, - "end": 14172, + "start": 14436, + "end": 14446, "loc": { "start": { - "line": 384, + "line": 389, "column": 15 }, "end": { - "line": 384, + "line": 389, "column": 25 }, "identifierName": "recognizer" @@ -28820,15 +29318,15 @@ }, "property": { "type": "Identifier", - "start": 14173, - "end": 14184, + "start": 14447, + "end": 14458, "loc": { "start": { - "line": 384, + "line": 389, "column": 26 }, "end": { - "line": 384, + "line": 389, "column": 37 }, "identifierName": "setPenStyle" @@ -28840,29 +29338,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 14185, - "end": 14209, + "start": 14459, + "end": 14483, "loc": { "start": { - "line": 384, + "line": 389, "column": 38 }, "end": { - "line": 384, + "line": 389, "column": 62 } }, "object": { "type": "Identifier", - "start": 14185, - "end": 14191, + "start": 14459, + "end": 14465, "loc": { "start": { - "line": 384, + "line": 389, "column": 38 }, "end": { - "line": 384, + "line": 389, "column": 44 }, "identifierName": "editor" @@ -28871,15 +29369,15 @@ }, "property": { "type": "Identifier", - "start": 14192, - "end": 14209, + "start": 14466, + "end": 14483, "loc": { "start": { - "line": 384, + "line": 389, "column": 45 }, "end": { - "line": 384, + "line": 389, "column": 62 }, "identifierName": "recognizerContext" @@ -28890,15 +29388,15 @@ }, { "type": "Identifier", - "start": 14211, - "end": 14216, + "start": 14485, + "end": 14490, "loc": { "start": { - "line": 384, + "line": 389, "column": 64 }, "end": { - "line": 384, + "line": 389, "column": 69 }, "identifierName": "model" @@ -28907,29 +29405,29 @@ }, { "type": "MemberExpression", - "start": 14218, - "end": 14233, + "start": 14492, + "end": 14507, "loc": { "start": { - "line": 384, + "line": 389, "column": 71 }, "end": { - "line": 384, + "line": 389, "column": 86 } }, "object": { "type": "Identifier", - "start": 14218, - "end": 14224, + "start": 14492, + "end": 14498, "loc": { "start": { - "line": 384, + "line": 389, "column": 71 }, "end": { - "line": 384, + "line": 389, "column": 77 }, "identifierName": "editor" @@ -28938,15 +29436,15 @@ }, "property": { "type": "Identifier", - "start": 14225, - "end": 14233, + "start": 14499, + "end": 14507, "loc": { "start": { - "line": 384, + "line": 389, "column": 78 }, "end": { - "line": 384, + "line": 389, "column": 86 }, "identifierName": "penStyle" @@ -28957,15 +29455,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 14235, - "end": 14328, + "start": 14509, + "end": 14602, "loc": { "start": { - "line": 384, + "line": 389, "column": 88 }, "end": { - "line": 386, + "line": 391, "column": 9 } }, @@ -28976,15 +29474,15 @@ "params": [ { "type": "Identifier", - "start": 14236, - "end": 14239, + "start": 14510, + "end": 14513, "loc": { "start": { - "line": 384, + "line": 389, "column": 89 }, "end": { - "line": 384, + "line": 389, "column": 92 }, "identifierName": "err" @@ -28993,15 +29491,15 @@ }, { "type": "Identifier", - "start": 14241, - "end": 14244, + "start": 14515, + "end": 14518, "loc": { "start": { - "line": 384, + "line": 389, "column": 94 }, "end": { - "line": 384, + "line": 389, "column": 97 }, "identifierName": "res" @@ -29010,29 +29508,29 @@ }, { "type": "RestElement", - "start": 14246, - "end": 14254, + "start": 14520, + "end": 14528, "loc": { "start": { - "line": 384, + "line": 389, "column": 99 }, "end": { - "line": 384, + "line": 389, "column": 107 } }, "argument": { "type": "Identifier", - "start": 14249, - "end": 14254, + "start": 14523, + "end": 14528, "loc": { "start": { - "line": 384, + "line": 389, "column": 102 }, "end": { - "line": 384, + "line": 389, "column": 107 }, "identifierName": "types" @@ -29043,58 +29541,58 @@ ], "body": { "type": "BlockStatement", - "start": 14259, - "end": 14328, + "start": 14533, + "end": 14602, "loc": { "start": { - "line": 384, + "line": 389, "column": 112 }, "end": { - "line": 386, + "line": 391, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 14271, - "end": 14318, + "start": 14545, + "end": 14592, "loc": { "start": { - "line": 385, + "line": 390, "column": 10 }, "end": { - "line": 385, + "line": 390, "column": 57 } }, "expression": { "type": "CallExpression", - "start": 14271, - "end": 14317, + "start": 14545, + "end": 14591, "loc": { "start": { - "line": 385, + "line": 390, "column": 10 }, "end": { - "line": 385, + "line": 390, "column": 56 } }, "callee": { "type": "Identifier", - "start": 14271, - "end": 14289, + "start": 14545, + "end": 14563, "loc": { "start": { - "line": 385, + "line": 390, "column": 10 }, "end": { - "line": 385, + "line": 390, "column": 28 }, "identifierName": "recognizerCallback" @@ -29104,15 +29602,15 @@ "arguments": [ { "type": "Identifier", - "start": 14290, - "end": 14296, + "start": 14564, + "end": 14570, "loc": { "start": { - "line": 385, + "line": 390, "column": 29 }, "end": { - "line": 385, + "line": 390, "column": 35 }, "identifierName": "editor" @@ -29121,15 +29619,15 @@ }, { "type": "Identifier", - "start": 14298, - "end": 14301, + "start": 14572, + "end": 14575, "loc": { "start": { - "line": 385, + "line": 390, "column": 37 }, "end": { - "line": 385, + "line": 390, "column": 40 }, "identifierName": "err" @@ -29138,15 +29636,15 @@ }, { "type": "Identifier", - "start": 14303, - "end": 14306, + "start": 14577, + "end": 14580, "loc": { "start": { - "line": 385, + "line": 390, "column": 42 }, "end": { - "line": 385, + "line": 390, "column": 45 }, "identifierName": "res" @@ -29155,29 +29653,29 @@ }, { "type": "SpreadElement", - "start": 14308, - "end": 14316, + "start": 14582, + "end": 14590, "loc": { "start": { - "line": 385, + "line": 390, "column": 47 }, "end": { - "line": 385, + "line": 390, "column": 55 } }, "argument": { "type": "Identifier", - "start": 14311, - "end": 14316, + "start": 14585, + "end": 14590, "loc": { "start": { - "line": 385, + "line": 390, "column": 50 }, "end": { - "line": 385, + "line": 390, "column": 55 }, "identifierName": "types" @@ -29215,15 +29713,15 @@ { "type": "CommentBlock", "value": "*\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 13912, - "end": 13987, + "start": 14186, + "end": 14261, "loc": { "start": { - "line": 375, + "line": 380, "column": 0 }, "end": { - "line": 379, + "line": 384, "column": 3 } } @@ -29233,15 +29731,15 @@ { "type": "CommentBlock", "value": "*\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 14348, - "end": 14423, + "start": 14622, + "end": 14697, "loc": { "start": { - "line": 391, + "line": 396, "column": 0 }, "end": { - "line": 395, + "line": 400, "column": 3 } } @@ -29250,29 +29748,29 @@ }, { "type": "FunctionDeclaration", - "start": 14424, - "end": 14810, + "start": 14698, + "end": 15084, "loc": { "start": { - "line": 396, + "line": 401, "column": 0 }, "end": { - "line": 405, + "line": 410, "column": 1 } }, "id": { "type": "Identifier", - "start": 14433, - "end": 14451, + "start": 14707, + "end": 14725, "loc": { "start": { - "line": 396, + "line": 401, "column": 9 }, "end": { - "line": 396, + "line": 401, "column": 27 }, "identifierName": "setPenStyleClasses" @@ -29286,15 +29784,15 @@ "params": [ { "type": "Identifier", - "start": 14452, - "end": 14458, + "start": 14726, + "end": 14732, "loc": { "start": { - "line": 396, + "line": 401, "column": 28 }, "end": { - "line": 396, + "line": 401, "column": 34 }, "identifierName": "editor" @@ -29303,15 +29801,15 @@ }, { "type": "Identifier", - "start": 14460, - "end": 14465, + "start": 14734, + "end": 14739, "loc": { "start": { - "line": 396, + "line": 401, "column": 36 }, "end": { - "line": 396, + "line": 401, "column": 41 }, "identifierName": "model" @@ -29321,72 +29819,72 @@ ], "body": { "type": "BlockStatement", - "start": 14467, - "end": 14810, + "start": 14741, + "end": 15084, "loc": { "start": { - "line": 396, + "line": 401, "column": 43 }, "end": { - "line": 405, + "line": 410, "column": 1 } }, "body": [ { "type": "IfStatement", - "start": 14471, - "end": 14808, + "start": 14745, + "end": 15082, "loc": { "start": { - "line": 397, + "line": 402, "column": 2 }, "end": { - "line": 404, + "line": 409, "column": 3 } }, "test": { "type": "LogicalExpression", - "start": 14475, - "end": 14532, + "start": 14749, + "end": 14806, "loc": { "start": { - "line": 397, + "line": 402, "column": 6 }, "end": { - "line": 397, + "line": 402, "column": 63 } }, "left": { "type": "MemberExpression", - "start": 14475, - "end": 14492, + "start": 14749, + "end": 14766, "loc": { "start": { - "line": 397, + "line": 402, "column": 6 }, "end": { - "line": 397, + "line": 402, "column": 23 } }, "object": { "type": "Identifier", - "start": 14475, - "end": 14481, + "start": 14749, + "end": 14755, "loc": { "start": { - "line": 397, + "line": 402, "column": 6 }, "end": { - "line": 397, + "line": 402, "column": 12 }, "identifierName": "editor" @@ -29395,15 +29893,15 @@ }, "property": { "type": "Identifier", - "start": 14482, - "end": 14492, + "start": 14756, + "end": 14766, "loc": { "start": { - "line": 397, + "line": 402, "column": 13 }, "end": { - "line": 397, + "line": 402, "column": 23 }, "identifierName": "recognizer" @@ -29415,43 +29913,43 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 14496, - "end": 14532, + "start": 14770, + "end": 14806, "loc": { "start": { - "line": 397, + "line": 402, "column": 27 }, "end": { - "line": 397, + "line": 402, "column": 63 } }, "object": { "type": "MemberExpression", - "start": 14496, - "end": 14513, + "start": 14770, + "end": 14787, "loc": { "start": { - "line": 397, + "line": 402, "column": 27 }, "end": { - "line": 397, + "line": 402, "column": 44 } }, "object": { "type": "Identifier", - "start": 14496, - "end": 14502, + "start": 14770, + "end": 14776, "loc": { "start": { - "line": 397, + "line": 402, "column": 27 }, "end": { - "line": 397, + "line": 402, "column": 33 }, "identifierName": "editor" @@ -29460,15 +29958,15 @@ }, "property": { "type": "Identifier", - "start": 14503, - "end": 14513, + "start": 14777, + "end": 14787, "loc": { "start": { - "line": 397, + "line": 402, "column": 34 }, "end": { - "line": 397, + "line": 402, "column": 44 }, "identifierName": "recognizer" @@ -29479,15 +29977,15 @@ }, "property": { "type": "Identifier", - "start": 14514, - "end": 14532, + "start": 14788, + "end": 14806, "loc": { "start": { - "line": 397, + "line": 402, "column": 45 }, "end": { - "line": 397, + "line": 402, "column": 63 }, "identifierName": "setPenStyleClasses" @@ -29499,100 +29997,100 @@ }, "consequent": { "type": "BlockStatement", - "start": 14534, - "end": 14808, + "start": 14808, + "end": 15082, "loc": { "start": { - "line": 397, + "line": 402, "column": 65 }, "end": { - "line": 404, + "line": 409, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 14540, - "end": 14804, + "start": 14814, + "end": 15078, "loc": { "start": { - "line": 398, + "line": 403, "column": 4 }, "end": { - "line": 403, + "line": 408, "column": 9 } }, "expression": { "type": "CallExpression", - "start": 14540, - "end": 14803, + "start": 14814, + "end": 15077, "loc": { "start": { - "line": 398, + "line": 403, "column": 4 }, "end": { - "line": 403, + "line": 408, "column": 8 } }, "callee": { "type": "MemberExpression", - "start": 14540, - "end": 14588, + "start": 14814, + "end": 14862, "loc": { "start": { - "line": 398, + "line": 403, "column": 4 }, "end": { - "line": 399, + "line": 404, "column": 11 } }, "object": { "type": "MemberExpression", - "start": 14540, - "end": 14576, + "start": 14814, + "end": 14850, "loc": { "start": { - "line": 398, + "line": 403, "column": 4 }, "end": { - "line": 398, + "line": 403, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 14540, - "end": 14564, + "start": 14814, + "end": 14838, "loc": { "start": { - "line": 398, + "line": 403, "column": 4 }, "end": { - "line": 398, + "line": 403, "column": 28 } }, "object": { "type": "Identifier", - "start": 14540, - "end": 14546, + "start": 14814, + "end": 14820, "loc": { "start": { - "line": 398, + "line": 403, "column": 4 }, "end": { - "line": 398, + "line": 403, "column": 10 }, "identifierName": "editor" @@ -29601,15 +30099,15 @@ }, "property": { "type": "Identifier", - "start": 14547, - "end": 14564, + "start": 14821, + "end": 14838, "loc": { "start": { - "line": 398, + "line": 403, "column": 11 }, "end": { - "line": 398, + "line": 403, "column": 28 }, "identifierName": "recognizerContext" @@ -29620,15 +30118,15 @@ }, "property": { "type": "Identifier", - "start": 14565, - "end": 14576, + "start": 14839, + "end": 14850, "loc": { "start": { - "line": 398, + "line": 403, "column": 29 }, "end": { - "line": 398, + "line": 403, "column": 40 }, "identifierName": "initPromise" @@ -29639,15 +30137,15 @@ }, "property": { "type": "Identifier", - "start": 14584, - "end": 14588, + "start": 14858, + "end": 14862, "loc": { "start": { - "line": 399, + "line": 404, "column": 7 }, "end": { - "line": 399, + "line": 404, "column": 11 }, "identifierName": "then" @@ -29659,15 +30157,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 14589, - "end": 14802, + "start": 14863, + "end": 15076, "loc": { "start": { - "line": 399, + "line": 404, "column": 12 }, "end": { - "line": 403, + "line": 408, "column": 7 } }, @@ -29678,86 +30176,86 @@ "params": [], "body": { "type": "BlockStatement", - "start": 14595, - "end": 14802, + "start": 14869, + "end": 15076, "loc": { "start": { - "line": 399, + "line": 404, "column": 18 }, "end": { - "line": 403, + "line": 408, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 14605, - "end": 14794, + "start": 14879, + "end": 15068, "loc": { "start": { - "line": 400, + "line": 405, "column": 8 }, "end": { - "line": 402, + "line": 407, "column": 11 } }, "expression": { "type": "CallExpression", - "start": 14605, - "end": 14793, + "start": 14879, + "end": 15067, "loc": { "start": { - "line": 400, + "line": 405, "column": 8 }, "end": { - "line": 402, + "line": 407, "column": 10 } }, "callee": { "type": "MemberExpression", - "start": 14605, - "end": 14641, + "start": 14879, + "end": 14915, "loc": { "start": { - "line": 400, + "line": 405, "column": 8 }, "end": { - "line": 400, + "line": 405, "column": 44 } }, "object": { "type": "MemberExpression", - "start": 14605, - "end": 14622, + "start": 14879, + "end": 14896, "loc": { "start": { - "line": 400, + "line": 405, "column": 8 }, "end": { - "line": 400, + "line": 405, "column": 25 } }, "object": { "type": "Identifier", - "start": 14605, - "end": 14611, + "start": 14879, + "end": 14885, "loc": { "start": { - "line": 400, + "line": 405, "column": 8 }, "end": { - "line": 400, + "line": 405, "column": 14 }, "identifierName": "editor" @@ -29766,15 +30264,15 @@ }, "property": { "type": "Identifier", - "start": 14612, - "end": 14622, + "start": 14886, + "end": 14896, "loc": { "start": { - "line": 400, + "line": 405, "column": 15 }, "end": { - "line": 400, + "line": 405, "column": 25 }, "identifierName": "recognizer" @@ -29785,15 +30283,15 @@ }, "property": { "type": "Identifier", - "start": 14623, - "end": 14641, + "start": 14897, + "end": 14915, "loc": { "start": { - "line": 400, + "line": 405, "column": 26 }, "end": { - "line": 400, + "line": 405, "column": 44 }, "identifierName": "setPenStyleClasses" @@ -29805,29 +30303,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 14642, - "end": 14666, + "start": 14916, + "end": 14940, "loc": { "start": { - "line": 400, + "line": 405, "column": 45 }, "end": { - "line": 400, + "line": 405, "column": 69 } }, "object": { "type": "Identifier", - "start": 14642, - "end": 14648, + "start": 14916, + "end": 14922, "loc": { "start": { - "line": 400, + "line": 405, "column": 45 }, "end": { - "line": 400, + "line": 405, "column": 51 }, "identifierName": "editor" @@ -29836,15 +30334,15 @@ }, "property": { "type": "Identifier", - "start": 14649, - "end": 14666, + "start": 14923, + "end": 14940, "loc": { "start": { - "line": 400, + "line": 405, "column": 52 }, "end": { - "line": 400, + "line": 405, "column": 69 }, "identifierName": "recognizerContext" @@ -29855,15 +30353,15 @@ }, { "type": "Identifier", - "start": 14668, - "end": 14673, + "start": 14942, + "end": 14947, "loc": { "start": { - "line": 400, + "line": 405, "column": 71 }, "end": { - "line": 400, + "line": 405, "column": 76 }, "identifierName": "model" @@ -29872,29 +30370,29 @@ }, { "type": "MemberExpression", - "start": 14675, - "end": 14697, + "start": 14949, + "end": 14971, "loc": { "start": { - "line": 400, + "line": 405, "column": 78 }, "end": { - "line": 400, + "line": 405, "column": 100 } }, "object": { "type": "Identifier", - "start": 14675, - "end": 14681, + "start": 14949, + "end": 14955, "loc": { "start": { - "line": 400, + "line": 405, "column": 78 }, "end": { - "line": 400, + "line": 405, "column": 84 }, "identifierName": "editor" @@ -29903,15 +30401,15 @@ }, "property": { "type": "Identifier", - "start": 14682, - "end": 14697, + "start": 14956, + "end": 14971, "loc": { "start": { - "line": 400, + "line": 405, "column": 85 }, "end": { - "line": 400, + "line": 405, "column": 100 }, "identifierName": "penStyleClasses" @@ -29922,15 +30420,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 14699, - "end": 14792, + "start": 14973, + "end": 15066, "loc": { "start": { - "line": 400, + "line": 405, "column": 102 }, "end": { - "line": 402, + "line": 407, "column": 9 } }, @@ -29941,15 +30439,15 @@ "params": [ { "type": "Identifier", - "start": 14700, - "end": 14703, + "start": 14974, + "end": 14977, "loc": { "start": { - "line": 400, + "line": 405, "column": 103 }, "end": { - "line": 400, + "line": 405, "column": 106 }, "identifierName": "err" @@ -29958,15 +30456,15 @@ }, { "type": "Identifier", - "start": 14705, - "end": 14708, + "start": 14979, + "end": 14982, "loc": { "start": { - "line": 400, + "line": 405, "column": 108 }, "end": { - "line": 400, + "line": 405, "column": 111 }, "identifierName": "res" @@ -29975,29 +30473,29 @@ }, { "type": "RestElement", - "start": 14710, - "end": 14718, + "start": 14984, + "end": 14992, "loc": { "start": { - "line": 400, + "line": 405, "column": 113 }, "end": { - "line": 400, + "line": 405, "column": 121 } }, "argument": { "type": "Identifier", - "start": 14713, - "end": 14718, + "start": 14987, + "end": 14992, "loc": { "start": { - "line": 400, + "line": 405, "column": 116 }, "end": { - "line": 400, + "line": 405, "column": 121 }, "identifierName": "types" @@ -30008,58 +30506,58 @@ ], "body": { "type": "BlockStatement", - "start": 14723, - "end": 14792, + "start": 14997, + "end": 15066, "loc": { "start": { - "line": 400, + "line": 405, "column": 126 }, "end": { - "line": 402, + "line": 407, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 14735, - "end": 14782, + "start": 15009, + "end": 15056, "loc": { "start": { - "line": 401, + "line": 406, "column": 10 }, "end": { - "line": 401, + "line": 406, "column": 57 } }, "expression": { "type": "CallExpression", - "start": 14735, - "end": 14781, + "start": 15009, + "end": 15055, "loc": { "start": { - "line": 401, + "line": 406, "column": 10 }, "end": { - "line": 401, + "line": 406, "column": 56 } }, "callee": { "type": "Identifier", - "start": 14735, - "end": 14753, + "start": 15009, + "end": 15027, "loc": { "start": { - "line": 401, + "line": 406, "column": 10 }, "end": { - "line": 401, + "line": 406, "column": 28 }, "identifierName": "recognizerCallback" @@ -30069,15 +30567,15 @@ "arguments": [ { "type": "Identifier", - "start": 14754, - "end": 14760, + "start": 15028, + "end": 15034, "loc": { "start": { - "line": 401, + "line": 406, "column": 29 }, "end": { - "line": 401, + "line": 406, "column": 35 }, "identifierName": "editor" @@ -30086,15 +30584,15 @@ }, { "type": "Identifier", - "start": 14762, - "end": 14765, + "start": 15036, + "end": 15039, "loc": { "start": { - "line": 401, + "line": 406, "column": 37 }, "end": { - "line": 401, + "line": 406, "column": 40 }, "identifierName": "err" @@ -30103,15 +30601,15 @@ }, { "type": "Identifier", - "start": 14767, - "end": 14770, + "start": 15041, + "end": 15044, "loc": { "start": { - "line": 401, + "line": 406, "column": 42 }, "end": { - "line": 401, + "line": 406, "column": 45 }, "identifierName": "res" @@ -30120,29 +30618,29 @@ }, { "type": "SpreadElement", - "start": 14772, - "end": 14780, + "start": 15046, + "end": 15054, "loc": { "start": { - "line": 401, + "line": 406, "column": 47 }, "end": { - "line": 401, + "line": 406, "column": 55 } }, "argument": { "type": "Identifier", - "start": 14775, - "end": 14780, + "start": 15049, + "end": 15054, "loc": { "start": { - "line": 401, + "line": 406, "column": 50 }, "end": { - "line": 401, + "line": 406, "column": 55 }, "identifierName": "types" @@ -30180,15 +30678,15 @@ { "type": "CommentBlock", "value": "*\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 14348, - "end": 14423, + "start": 14622, + "end": 14697, "loc": { "start": { - "line": 391, + "line": 396, "column": 0 }, "end": { - "line": 395, + "line": 400, "column": 3 } } @@ -30198,15 +30696,15 @@ { "type": "CommentBlock", "value": "*\n * Set theme.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 14812, - "end": 14883, + "start": 15086, + "end": 15157, "loc": { "start": { - "line": 407, + "line": 412, "column": 0 }, "end": { - "line": 411, + "line": 416, "column": 3 } } @@ -30215,29 +30713,29 @@ }, { "type": "FunctionDeclaration", - "start": 14884, - "end": 15230, + "start": 15158, + "end": 15504, "loc": { "start": { - "line": 412, + "line": 417, "column": 0 }, "end": { - "line": 421, + "line": 426, "column": 1 } }, "id": { "type": "Identifier", - "start": 14893, - "end": 14901, + "start": 15167, + "end": 15175, "loc": { "start": { - "line": 412, + "line": 417, "column": 9 }, "end": { - "line": 412, + "line": 417, "column": 17 }, "identifierName": "setTheme" @@ -30251,15 +30749,15 @@ "params": [ { "type": "Identifier", - "start": 14902, - "end": 14908, + "start": 15176, + "end": 15182, "loc": { "start": { - "line": 412, + "line": 417, "column": 18 }, "end": { - "line": 412, + "line": 417, "column": 24 }, "identifierName": "editor" @@ -30268,15 +30766,15 @@ }, { "type": "Identifier", - "start": 14910, - "end": 14915, + "start": 15184, + "end": 15189, "loc": { "start": { - "line": 412, + "line": 417, "column": 26 }, "end": { - "line": 412, + "line": 417, "column": 31 }, "identifierName": "model" @@ -30286,72 +30784,72 @@ ], "body": { "type": "BlockStatement", - "start": 14917, - "end": 15230, + "start": 15191, + "end": 15504, "loc": { "start": { - "line": 412, + "line": 417, "column": 33 }, "end": { - "line": 421, + "line": 426, "column": 1 } }, "body": [ { "type": "IfStatement", - "start": 14921, - "end": 15228, + "start": 15195, + "end": 15502, "loc": { "start": { - "line": 413, + "line": 418, "column": 2 }, "end": { - "line": 420, + "line": 425, "column": 3 } }, "test": { "type": "LogicalExpression", - "start": 14925, - "end": 14972, + "start": 15199, + "end": 15246, "loc": { "start": { - "line": 413, + "line": 418, "column": 6 }, "end": { - "line": 413, + "line": 418, "column": 53 } }, "left": { "type": "MemberExpression", - "start": 14925, - "end": 14942, + "start": 15199, + "end": 15216, "loc": { "start": { - "line": 413, + "line": 418, "column": 6 }, "end": { - "line": 413, + "line": 418, "column": 23 } }, "object": { "type": "Identifier", - "start": 14925, - "end": 14931, + "start": 15199, + "end": 15205, "loc": { "start": { - "line": 413, + "line": 418, "column": 6 }, "end": { - "line": 413, + "line": 418, "column": 12 }, "identifierName": "editor" @@ -30360,15 +30858,15 @@ }, "property": { "type": "Identifier", - "start": 14932, - "end": 14942, + "start": 15206, + "end": 15216, "loc": { "start": { - "line": 413, + "line": 418, "column": 13 }, "end": { - "line": 413, + "line": 418, "column": 23 }, "identifierName": "recognizer" @@ -30380,43 +30878,43 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 14946, - "end": 14972, + "start": 15220, + "end": 15246, "loc": { "start": { - "line": 413, + "line": 418, "column": 27 }, "end": { - "line": 413, + "line": 418, "column": 53 } }, "object": { "type": "MemberExpression", - "start": 14946, - "end": 14963, + "start": 15220, + "end": 15237, "loc": { "start": { - "line": 413, + "line": 418, "column": 27 }, "end": { - "line": 413, + "line": 418, "column": 44 } }, "object": { "type": "Identifier", - "start": 14946, - "end": 14952, + "start": 15220, + "end": 15226, "loc": { "start": { - "line": 413, + "line": 418, "column": 27 }, "end": { - "line": 413, + "line": 418, "column": 33 }, "identifierName": "editor" @@ -30425,15 +30923,15 @@ }, "property": { "type": "Identifier", - "start": 14953, - "end": 14963, + "start": 15227, + "end": 15237, "loc": { "start": { - "line": 413, + "line": 418, "column": 34 }, "end": { - "line": 413, + "line": 418, "column": 44 }, "identifierName": "recognizer" @@ -30444,15 +30942,15 @@ }, "property": { "type": "Identifier", - "start": 14964, - "end": 14972, + "start": 15238, + "end": 15246, "loc": { "start": { - "line": 413, + "line": 418, "column": 45 }, "end": { - "line": 413, + "line": 418, "column": 53 }, "identifierName": "setTheme" @@ -30464,100 +30962,100 @@ }, "consequent": { "type": "BlockStatement", - "start": 14974, - "end": 15228, + "start": 15248, + "end": 15502, "loc": { "start": { - "line": 413, + "line": 418, "column": 55 }, "end": { - "line": 420, + "line": 425, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 14980, - "end": 15224, + "start": 15254, + "end": 15498, "loc": { "start": { - "line": 414, + "line": 419, "column": 4 }, "end": { - "line": 419, + "line": 424, "column": 9 } }, "expression": { "type": "CallExpression", - "start": 14980, - "end": 15223, + "start": 15254, + "end": 15497, "loc": { "start": { - "line": 414, + "line": 419, "column": 4 }, "end": { - "line": 419, + "line": 424, "column": 8 } }, "callee": { "type": "MemberExpression", - "start": 14980, - "end": 15028, + "start": 15254, + "end": 15302, "loc": { "start": { - "line": 414, + "line": 419, "column": 4 }, "end": { - "line": 415, + "line": 420, "column": 11 } }, "object": { "type": "MemberExpression", - "start": 14980, - "end": 15016, + "start": 15254, + "end": 15290, "loc": { "start": { - "line": 414, + "line": 419, "column": 4 }, "end": { - "line": 414, + "line": 419, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 14980, - "end": 15004, + "start": 15254, + "end": 15278, "loc": { "start": { - "line": 414, + "line": 419, "column": 4 }, "end": { - "line": 414, + "line": 419, "column": 28 } }, "object": { "type": "Identifier", - "start": 14980, - "end": 14986, + "start": 15254, + "end": 15260, "loc": { "start": { - "line": 414, + "line": 419, "column": 4 }, "end": { - "line": 414, + "line": 419, "column": 10 }, "identifierName": "editor" @@ -30566,15 +31064,15 @@ }, "property": { "type": "Identifier", - "start": 14987, - "end": 15004, + "start": 15261, + "end": 15278, "loc": { "start": { - "line": 414, + "line": 419, "column": 11 }, "end": { - "line": 414, + "line": 419, "column": 28 }, "identifierName": "recognizerContext" @@ -30585,15 +31083,15 @@ }, "property": { "type": "Identifier", - "start": 15005, - "end": 15016, + "start": 15279, + "end": 15290, "loc": { "start": { - "line": 414, + "line": 419, "column": 29 }, "end": { - "line": 414, + "line": 419, "column": 40 }, "identifierName": "initPromise" @@ -30604,15 +31102,15 @@ }, "property": { "type": "Identifier", - "start": 15024, - "end": 15028, + "start": 15298, + "end": 15302, "loc": { "start": { - "line": 415, + "line": 420, "column": 7 }, "end": { - "line": 415, + "line": 420, "column": 11 }, "identifierName": "then" @@ -30624,15 +31122,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 15029, - "end": 15222, + "start": 15303, + "end": 15496, "loc": { "start": { - "line": 415, + "line": 420, "column": 12 }, "end": { - "line": 419, + "line": 424, "column": 7 } }, @@ -30643,86 +31141,86 @@ "params": [], "body": { "type": "BlockStatement", - "start": 15035, - "end": 15222, + "start": 15309, + "end": 15496, "loc": { "start": { - "line": 415, + "line": 420, "column": 18 }, "end": { - "line": 419, + "line": 424, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 15045, - "end": 15214, + "start": 15319, + "end": 15488, "loc": { "start": { - "line": 416, + "line": 421, "column": 8 }, "end": { - "line": 418, + "line": 423, "column": 11 } }, "expression": { "type": "CallExpression", - "start": 15045, - "end": 15213, + "start": 15319, + "end": 15487, "loc": { "start": { - "line": 416, + "line": 421, "column": 8 }, "end": { - "line": 418, + "line": 423, "column": 10 } }, "callee": { "type": "MemberExpression", - "start": 15045, - "end": 15071, + "start": 15319, + "end": 15345, "loc": { "start": { - "line": 416, + "line": 421, "column": 8 }, "end": { - "line": 416, + "line": 421, "column": 34 } }, "object": { "type": "MemberExpression", - "start": 15045, - "end": 15062, + "start": 15319, + "end": 15336, "loc": { "start": { - "line": 416, + "line": 421, "column": 8 }, "end": { - "line": 416, + "line": 421, "column": 25 } }, "object": { "type": "Identifier", - "start": 15045, - "end": 15051, + "start": 15319, + "end": 15325, "loc": { "start": { - "line": 416, + "line": 421, "column": 8 }, "end": { - "line": 416, + "line": 421, "column": 14 }, "identifierName": "editor" @@ -30731,15 +31229,15 @@ }, "property": { "type": "Identifier", - "start": 15052, - "end": 15062, + "start": 15326, + "end": 15336, "loc": { "start": { - "line": 416, + "line": 421, "column": 15 }, "end": { - "line": 416, + "line": 421, "column": 25 }, "identifierName": "recognizer" @@ -30750,15 +31248,15 @@ }, "property": { "type": "Identifier", - "start": 15063, - "end": 15071, + "start": 15337, + "end": 15345, "loc": { "start": { - "line": 416, + "line": 421, "column": 26 }, "end": { - "line": 416, + "line": 421, "column": 34 }, "identifierName": "setTheme" @@ -30770,29 +31268,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 15072, - "end": 15096, + "start": 15346, + "end": 15370, "loc": { "start": { - "line": 416, + "line": 421, "column": 35 }, "end": { - "line": 416, + "line": 421, "column": 59 } }, "object": { "type": "Identifier", - "start": 15072, - "end": 15078, + "start": 15346, + "end": 15352, "loc": { "start": { - "line": 416, + "line": 421, "column": 35 }, "end": { - "line": 416, + "line": 421, "column": 41 }, "identifierName": "editor" @@ -30801,15 +31299,15 @@ }, "property": { "type": "Identifier", - "start": 15079, - "end": 15096, + "start": 15353, + "end": 15370, "loc": { "start": { - "line": 416, + "line": 421, "column": 42 }, "end": { - "line": 416, + "line": 421, "column": 59 }, "identifierName": "recognizerContext" @@ -30820,15 +31318,15 @@ }, { "type": "Identifier", - "start": 15098, - "end": 15103, + "start": 15372, + "end": 15377, "loc": { "start": { - "line": 416, + "line": 421, "column": 61 }, "end": { - "line": 416, + "line": 421, "column": 66 }, "identifierName": "model" @@ -30837,29 +31335,29 @@ }, { "type": "MemberExpression", - "start": 15105, - "end": 15117, + "start": 15379, + "end": 15391, "loc": { "start": { - "line": 416, + "line": 421, "column": 68 }, "end": { - "line": 416, + "line": 421, "column": 80 } }, "object": { "type": "Identifier", - "start": 15105, - "end": 15111, + "start": 15379, + "end": 15385, "loc": { "start": { - "line": 416, + "line": 421, "column": 68 }, "end": { - "line": 416, + "line": 421, "column": 74 }, "identifierName": "editor" @@ -30868,15 +31366,15 @@ }, "property": { "type": "Identifier", - "start": 15112, - "end": 15117, + "start": 15386, + "end": 15391, "loc": { "start": { - "line": 416, + "line": 421, "column": 75 }, "end": { - "line": 416, + "line": 421, "column": 80 }, "identifierName": "theme" @@ -30887,15 +31385,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 15119, - "end": 15212, + "start": 15393, + "end": 15486, "loc": { "start": { - "line": 416, + "line": 421, "column": 82 }, "end": { - "line": 418, + "line": 423, "column": 9 } }, @@ -30906,15 +31404,15 @@ "params": [ { "type": "Identifier", - "start": 15120, - "end": 15123, + "start": 15394, + "end": 15397, "loc": { "start": { - "line": 416, + "line": 421, "column": 83 }, "end": { - "line": 416, + "line": 421, "column": 86 }, "identifierName": "err" @@ -30923,15 +31421,15 @@ }, { "type": "Identifier", - "start": 15125, - "end": 15128, + "start": 15399, + "end": 15402, "loc": { "start": { - "line": 416, + "line": 421, "column": 88 }, "end": { - "line": 416, + "line": 421, "column": 91 }, "identifierName": "res" @@ -30940,29 +31438,29 @@ }, { "type": "RestElement", - "start": 15130, - "end": 15138, + "start": 15404, + "end": 15412, "loc": { "start": { - "line": 416, + "line": 421, "column": 93 }, "end": { - "line": 416, + "line": 421, "column": 101 } }, "argument": { "type": "Identifier", - "start": 15133, - "end": 15138, + "start": 15407, + "end": 15412, "loc": { "start": { - "line": 416, + "line": 421, "column": 96 }, "end": { - "line": 416, + "line": 421, "column": 101 }, "identifierName": "types" @@ -30973,58 +31471,58 @@ ], "body": { "type": "BlockStatement", - "start": 15143, - "end": 15212, + "start": 15417, + "end": 15486, "loc": { "start": { - "line": 416, + "line": 421, "column": 106 }, "end": { - "line": 418, + "line": 423, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 15155, - "end": 15202, + "start": 15429, + "end": 15476, "loc": { "start": { - "line": 417, + "line": 422, "column": 10 }, "end": { - "line": 417, + "line": 422, "column": 57 } }, "expression": { "type": "CallExpression", - "start": 15155, - "end": 15201, + "start": 15429, + "end": 15475, "loc": { "start": { - "line": 417, + "line": 422, "column": 10 }, "end": { - "line": 417, + "line": 422, "column": 56 } }, "callee": { "type": "Identifier", - "start": 15155, - "end": 15173, + "start": 15429, + "end": 15447, "loc": { "start": { - "line": 417, + "line": 422, "column": 10 }, "end": { - "line": 417, + "line": 422, "column": 28 }, "identifierName": "recognizerCallback" @@ -31034,15 +31532,15 @@ "arguments": [ { "type": "Identifier", - "start": 15174, - "end": 15180, + "start": 15448, + "end": 15454, "loc": { "start": { - "line": 417, + "line": 422, "column": 29 }, "end": { - "line": 417, + "line": 422, "column": 35 }, "identifierName": "editor" @@ -31051,15 +31549,15 @@ }, { "type": "Identifier", - "start": 15182, - "end": 15185, + "start": 15456, + "end": 15459, "loc": { "start": { - "line": 417, + "line": 422, "column": 37 }, "end": { - "line": 417, + "line": 422, "column": 40 }, "identifierName": "err" @@ -31068,15 +31566,15 @@ }, { "type": "Identifier", - "start": 15187, - "end": 15190, + "start": 15461, + "end": 15464, "loc": { "start": { - "line": 417, + "line": 422, "column": 42 }, "end": { - "line": 417, + "line": 422, "column": 45 }, "identifierName": "res" @@ -31085,29 +31583,29 @@ }, { "type": "SpreadElement", - "start": 15192, - "end": 15200, + "start": 15466, + "end": 15474, "loc": { "start": { - "line": 417, + "line": 422, "column": 47 }, "end": { - "line": 417, + "line": 422, "column": 55 } }, "argument": { "type": "Identifier", - "start": 15195, - "end": 15200, + "start": 15469, + "end": 15474, "loc": { "start": { - "line": 417, + "line": 422, "column": 50 }, "end": { - "line": 417, + "line": 422, "column": 55 }, "identifierName": "types" @@ -31145,15 +31643,15 @@ { "type": "CommentBlock", "value": "*\n * Set theme.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 14812, - "end": 14883, + "start": 15086, + "end": 15157, "loc": { "start": { - "line": 407, + "line": 412, "column": 0 }, "end": { - "line": 411, + "line": 416, "column": 3 } } @@ -31163,15 +31661,15 @@ { "type": "CommentBlock", "value": "*\n * Editor\n ", - "start": 15232, - "end": 15249, + "start": 15506, + "end": 15523, "loc": { "start": { - "line": 423, + "line": 428, "column": 0 }, "end": { - "line": 425, + "line": 430, "column": 3 } } @@ -31180,15 +31678,15 @@ }, { "type": "ExportNamedDeclaration", - "start": 15250, - "end": 32218, + "start": 15524, + "end": 33072, "loc": { "start": { - "line": 426, + "line": 431, "column": 0 }, "end": { - "line": 1058, + "line": 1086, "column": 1 } }, @@ -31196,29 +31694,29 @@ "source": null, "declaration": { "type": "ClassDeclaration", - "start": 15257, - "end": 32218, + "start": 15531, + "end": 33072, "loc": { "start": { - "line": 426, + "line": 431, "column": 7 }, "end": { - "line": 1058, + "line": 1086, "column": 1 } }, "id": { "type": "Identifier", - "start": 15263, - "end": 15269, + "start": 15537, + "end": 15543, "loc": { "start": { - "line": 426, + "line": 431, "column": 13 }, "end": { - "line": 426, + "line": 431, "column": 19 }, "identifierName": "Editor" @@ -31229,30 +31727,30 @@ "superClass": null, "body": { "type": "ClassBody", - "start": 15270, - "end": 32218, + "start": 15544, + "end": 33072, "loc": { "start": { - "line": 426, + "line": 431, "column": 20 }, "end": { - "line": 1058, + "line": 1086, "column": 1 } }, "body": [ { "type": "ClassMethod", - "start": 15585, - "end": 16965, + "start": 15859, + "end": 17239, "loc": { "start": { - "line": 434, + "line": 439, "column": 2 }, "end": { - "line": 490, + "line": 495, "column": 3 } }, @@ -31260,15 +31758,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 15585, - "end": 15596, + "start": 15859, + "end": 15870, "loc": { "start": { - "line": 434, + "line": 439, "column": 2 }, "end": { - "line": 434, + "line": 439, "column": 13 }, "identifierName": "constructor" @@ -31284,15 +31782,15 @@ "params": [ { "type": "Identifier", - "start": 15597, - "end": 15604, + "start": 15871, + "end": 15878, "loc": { "start": { - "line": 434, + "line": 439, "column": 14 }, "end": { - "line": 434, + "line": 439, "column": 21 }, "identifierName": "element" @@ -31301,15 +31799,15 @@ }, { "type": "Identifier", - "start": 15606, - "end": 15619, + "start": 15880, + "end": 15893, "loc": { "start": { - "line": 434, + "line": 439, "column": 23 }, "end": { - "line": 434, + "line": 439, "column": 36 }, "identifierName": "configuration" @@ -31318,15 +31816,15 @@ }, { "type": "Identifier", - "start": 15621, - "end": 15629, + "start": 15895, + "end": 15903, "loc": { "start": { - "line": 434, + "line": 439, "column": 38 }, "end": { - "line": 434, + "line": 439, "column": 46 }, "identifierName": "penStyle" @@ -31335,15 +31833,15 @@ }, { "type": "Identifier", - "start": 15631, - "end": 15636, + "start": 15905, + "end": 15910, "loc": { "start": { - "line": 434, + "line": 439, "column": 48 }, "end": { - "line": 434, + "line": 439, "column": 53 }, "identifierName": "theme" @@ -31352,15 +31850,15 @@ }, { "type": "Identifier", - "start": 15638, - "end": 15647, + "start": 15912, + "end": 15921, "loc": { "start": { - "line": 434, + "line": 439, "column": 55 }, "end": { - "line": 434, + "line": 439, "column": 64 }, "identifierName": "behaviors" @@ -31370,73 +31868,73 @@ ], "body": { "type": "BlockStatement", - "start": 15649, - "end": 16965, + "start": 15923, + "end": 17239, "loc": { "start": { - "line": 434, + "line": 439, "column": 66 }, "end": { - "line": 490, + "line": 495, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 15736, - "end": 15762, + "start": 16010, + "end": 16036, "loc": { "start": { - "line": 439, + "line": 444, "column": 4 }, "end": { - "line": 439, + "line": 444, "column": 30 } }, "expression": { "type": "AssignmentExpression", - "start": 15736, - "end": 15761, + "start": 16010, + "end": 16035, "loc": { "start": { - "line": 439, + "line": 444, "column": 4 }, "end": { - "line": 439, + "line": 444, "column": 29 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 15736, - "end": 15751, + "start": 16010, + "end": 16025, "loc": { "start": { - "line": 439, + "line": 444, "column": 4 }, "end": { - "line": 439, + "line": 444, "column": 19 } }, "object": { "type": "ThisExpression", - "start": 15736, - "end": 15740, + "start": 16010, + "end": 16014, "loc": { "start": { - "line": 439, + "line": 444, "column": 4 }, "end": { - "line": 439, + "line": 444, "column": 8 } }, @@ -31444,15 +31942,15 @@ }, "property": { "type": "Identifier", - "start": 15741, - "end": 15751, + "start": 16015, + "end": 16025, "loc": { "start": { - "line": 439, + "line": 444, "column": 9 }, "end": { - "line": 439, + "line": 444, "column": 19 }, "identifierName": "domElement" @@ -31464,15 +31962,15 @@ }, "right": { "type": "Identifier", - "start": 15754, - "end": 15761, + "start": 16028, + "end": 16035, "loc": { "start": { - "line": 439, + "line": 444, "column": 22 }, "end": { - "line": 439, + "line": 444, "column": 29 }, "identifierName": "element" @@ -31485,15 +31983,15 @@ { "type": "CommentBlock", "value": "*\n * Inner reference to the DOM Element\n * @type {Element}\n ", - "start": 15655, - "end": 15731, + "start": 15929, + "end": 16005, "loc": { "start": { - "line": 435, + "line": 440, "column": 4 }, "end": { - "line": 438, + "line": 443, "column": 7 } } @@ -31502,100 +32000,100 @@ }, { "type": "ExpressionStatement", - "start": 15767, - "end": 15810, + "start": 16041, + "end": 16084, "loc": { "start": { - "line": 440, + "line": 445, "column": 4 }, "end": { - "line": 440, + "line": 445, "column": 47 } }, "expression": { "type": "CallExpression", - "start": 15767, - "end": 15809, + "start": 16041, + "end": 16083, "loc": { "start": { - "line": 440, + "line": 445, "column": 4 }, "end": { - "line": 440, + "line": 445, "column": 46 } }, "callee": { "type": "MemberExpression", - "start": 15767, - "end": 15796, + "start": 16041, + "end": 16070, "loc": { "start": { - "line": 440, + "line": 445, "column": 4 }, "end": { - "line": 440, + "line": 445, "column": 33 } }, "object": { "type": "MemberExpression", - "start": 15767, - "end": 15792, + "start": 16041, + "end": 16066, "loc": { "start": { - "line": 440, + "line": 445, "column": 4 }, "end": { - "line": 440, + "line": 445, "column": 29 } }, "object": { "type": "MemberExpression", - "start": 15767, - "end": 15782, + "start": 16041, + "end": 16056, "loc": { "start": { - "line": 440, + "line": 445, "column": 4 }, "end": { - "line": 440, + "line": 445, "column": 19 } }, "object": { "type": "ThisExpression", - "start": 15767, - "end": 15771, + "start": 16041, + "end": 16045, "loc": { "start": { - "line": 440, + "line": 445, "column": 4 }, "end": { - "line": 440, + "line": 445, "column": 8 } } }, "property": { "type": "Identifier", - "start": 15772, - "end": 15782, + "start": 16046, + "end": 16056, "loc": { "start": { - "line": 440, + "line": 445, "column": 9 }, "end": { - "line": 440, + "line": 445, "column": 19 }, "identifierName": "domElement" @@ -31606,15 +32104,15 @@ }, "property": { "type": "Identifier", - "start": 15783, - "end": 15792, + "start": 16057, + "end": 16066, "loc": { "start": { - "line": 440, + "line": 445, "column": 20 }, "end": { - "line": 440, + "line": 445, "column": 29 }, "identifierName": "classList" @@ -31625,15 +32123,15 @@ }, "property": { "type": "Identifier", - "start": 15793, - "end": 15796, + "start": 16067, + "end": 16070, "loc": { "start": { - "line": 440, + "line": 445, "column": 30 }, "end": { - "line": 440, + "line": 445, "column": 33 }, "identifierName": "add" @@ -31645,15 +32143,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 15797, - "end": 15808, + "start": 16071, + "end": 16082, "loc": { "start": { - "line": 440, + "line": 445, "column": 34 }, "end": { - "line": 440, + "line": 445, "column": 45 } }, @@ -31669,15 +32167,15 @@ { "type": "CommentLine", "value": " eslint-disable-next-line no-undef", - "start": 15816, - "end": 15852, + "start": 16090, + "end": 16126, "loc": { "start": { - "line": 442, + "line": 447, "column": 4 }, "end": { - "line": 442, + "line": 447, "column": 40 } } @@ -31686,58 +32184,58 @@ }, { "type": "ExpressionStatement", - "start": 15857, - "end": 15901, + "start": 16131, + "end": 16175, "loc": { "start": { - "line": 443, + "line": 448, "column": 4 }, "end": { - "line": 443, + "line": 448, "column": 48 } }, "expression": { "type": "AssignmentExpression", - "start": 15857, - "end": 15900, + "start": 16131, + "end": 16174, "loc": { "start": { - "line": 443, + "line": 448, "column": 4 }, "end": { - "line": 443, + "line": 448, "column": 47 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 15857, - "end": 15868, + "start": 16131, + "end": 16142, "loc": { "start": { - "line": 443, + "line": 448, "column": 4 }, "end": { - "line": 443, + "line": 448, "column": 15 } }, "object": { "type": "ThisExpression", - "start": 15857, - "end": 15861, + "start": 16131, + "end": 16135, "loc": { "start": { - "line": 443, + "line": 448, "column": 4 }, "end": { - "line": 443, + "line": 448, "column": 8 } }, @@ -31745,15 +32243,15 @@ }, "property": { "type": "Identifier", - "start": 15862, - "end": 15868, + "start": 16136, + "end": 16142, "loc": { "start": { - "line": 443, + "line": 448, "column": 9 }, "end": { - "line": 443, + "line": 448, "column": 15 }, "identifierName": "loader" @@ -31765,43 +32263,43 @@ }, "right": { "type": "CallExpression", - "start": 15871, - "end": 15900, + "start": 16145, + "end": 16174, "loc": { "start": { - "line": 443, + "line": 448, "column": 18 }, "end": { - "line": 443, + "line": 448, "column": 47 } }, "callee": { "type": "MemberExpression", - "start": 15871, - "end": 15893, + "start": 16145, + "end": 16167, "loc": { "start": { - "line": 443, + "line": 448, "column": 18 }, "end": { - "line": 443, + "line": 448, "column": 40 } }, "object": { "type": "Identifier", - "start": 15871, - "end": 15879, + "start": 16145, + "end": 16153, "loc": { "start": { - "line": 443, + "line": 448, "column": 18 }, "end": { - "line": 443, + "line": 448, "column": 26 }, "identifierName": "document" @@ -31810,15 +32308,15 @@ }, "property": { "type": "Identifier", - "start": 15880, - "end": 15893, + "start": 16154, + "end": 16167, "loc": { "start": { - "line": 443, + "line": 448, "column": 27 }, "end": { - "line": 443, + "line": 448, "column": 40 }, "identifierName": "createElement" @@ -31830,15 +32328,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 15894, - "end": 15899, + "start": 16168, + "end": 16173, "loc": { "start": { - "line": 443, + "line": 448, "column": 41 }, "end": { - "line": 443, + "line": 448, "column": 46 } }, @@ -31856,15 +32354,15 @@ { "type": "CommentLine", "value": " eslint-disable-next-line no-undef", - "start": 15816, - "end": 15852, + "start": 16090, + "end": 16126, "loc": { "start": { - "line": 442, + "line": 447, "column": 4 }, "end": { - "line": 442, + "line": 447, "column": 40 } } @@ -31873,100 +32371,100 @@ }, { "type": "ExpressionStatement", - "start": 15906, - "end": 15942, + "start": 16180, + "end": 16216, "loc": { "start": { - "line": 444, + "line": 449, "column": 4 }, "end": { - "line": 444, + "line": 449, "column": 40 } }, "expression": { "type": "CallExpression", - "start": 15906, - "end": 15941, + "start": 16180, + "end": 16215, "loc": { "start": { - "line": 444, + "line": 449, "column": 4 }, "end": { - "line": 444, + "line": 449, "column": 39 } }, "callee": { "type": "MemberExpression", - "start": 15906, - "end": 15931, + "start": 16180, + "end": 16205, "loc": { "start": { - "line": 444, + "line": 449, "column": 4 }, "end": { - "line": 444, + "line": 449, "column": 29 } }, "object": { "type": "MemberExpression", - "start": 15906, - "end": 15927, + "start": 16180, + "end": 16201, "loc": { "start": { - "line": 444, + "line": 449, "column": 4 }, "end": { - "line": 444, + "line": 449, "column": 25 } }, "object": { "type": "MemberExpression", - "start": 15906, - "end": 15917, + "start": 16180, + "end": 16191, "loc": { "start": { - "line": 444, + "line": 449, "column": 4 }, "end": { - "line": 444, + "line": 449, "column": 15 } }, "object": { "type": "ThisExpression", - "start": 15906, - "end": 15910, + "start": 16180, + "end": 16184, "loc": { "start": { - "line": 444, + "line": 449, "column": 4 }, "end": { - "line": 444, + "line": 449, "column": 8 } } }, "property": { "type": "Identifier", - "start": 15911, - "end": 15917, + "start": 16185, + "end": 16191, "loc": { "start": { - "line": 444, + "line": 449, "column": 9 }, "end": { - "line": 444, + "line": 449, "column": 15 }, "identifierName": "loader" @@ -31977,15 +32475,15 @@ }, "property": { "type": "Identifier", - "start": 15918, - "end": 15927, + "start": 16192, + "end": 16201, "loc": { "start": { - "line": 444, + "line": 449, "column": 16 }, "end": { - "line": 444, + "line": 449, "column": 25 }, "identifierName": "classList" @@ -31996,15 +32494,15 @@ }, "property": { "type": "Identifier", - "start": 15928, - "end": 15931, + "start": 16202, + "end": 16205, "loc": { "start": { - "line": 444, + "line": 449, "column": 26 }, "end": { - "line": 444, + "line": 449, "column": 29 }, "identifierName": "add" @@ -32016,15 +32514,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 15932, - "end": 15940, + "start": 16206, + "end": 16214, "loc": { "start": { - "line": 444, + "line": 449, "column": 30 }, "end": { - "line": 444, + "line": 449, "column": 38 } }, @@ -32039,73 +32537,73 @@ }, { "type": "ExpressionStatement", - "start": 15947, - "end": 16002, + "start": 16221, + "end": 16276, "loc": { "start": { - "line": 445, + "line": 450, "column": 4 }, "end": { - "line": 445, + "line": 450, "column": 59 } }, "expression": { "type": "AssignmentExpression", - "start": 15947, - "end": 16001, + "start": 16221, + "end": 16275, "loc": { "start": { - "line": 445, + "line": 450, "column": 4 }, "end": { - "line": 445, + "line": 450, "column": 58 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 15947, - "end": 15958, + "start": 16221, + "end": 16232, "loc": { "start": { - "line": 445, + "line": 450, "column": 4 }, "end": { - "line": 445, + "line": 450, "column": 15 } }, "object": { "type": "ThisExpression", - "start": 15947, - "end": 15951, + "start": 16221, + "end": 16225, "loc": { "start": { - "line": 445, + "line": 450, "column": 4 }, "end": { - "line": 445, + "line": 450, "column": 8 } } }, "property": { "type": "Identifier", - "start": 15952, - "end": 15958, + "start": 16226, + "end": 16232, "loc": { "start": { - "line": 445, + "line": 450, "column": 9 }, "end": { - "line": 445, + "line": 450, "column": 15 }, "identifierName": "loader" @@ -32116,72 +32614,72 @@ }, "right": { "type": "CallExpression", - "start": 15961, - "end": 16001, + "start": 16235, + "end": 16275, "loc": { "start": { - "line": 445, + "line": 450, "column": 18 }, "end": { - "line": 445, + "line": 450, "column": 58 } }, "callee": { "type": "MemberExpression", - "start": 15961, - "end": 15988, + "start": 16235, + "end": 16262, "loc": { "start": { - "line": 445, + "line": 450, "column": 18 }, "end": { - "line": 445, + "line": 450, "column": 45 } }, "object": { "type": "MemberExpression", - "start": 15961, - "end": 15976, + "start": 16235, + "end": 16250, "loc": { "start": { - "line": 445, + "line": 450, "column": 18 }, "end": { - "line": 445, + "line": 450, "column": 33 } }, "object": { "type": "ThisExpression", - "start": 15961, - "end": 15965, + "start": 16235, + "end": 16239, "loc": { "start": { - "line": 445, + "line": 450, "column": 18 }, "end": { - "line": 445, + "line": 450, "column": 22 } } }, "property": { "type": "Identifier", - "start": 15966, - "end": 15976, + "start": 16240, + "end": 16250, "loc": { "start": { - "line": 445, + "line": 450, "column": 23 }, "end": { - "line": 445, + "line": 450, "column": 33 }, "identifierName": "domElement" @@ -32192,15 +32690,15 @@ }, "property": { "type": "Identifier", - "start": 15977, - "end": 15988, + "start": 16251, + "end": 16262, "loc": { "start": { - "line": 445, + "line": 450, "column": 34 }, "end": { - "line": 445, + "line": 450, "column": 45 }, "identifierName": "appendChild" @@ -32212,44 +32710,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 15989, - "end": 16000, + "start": 16263, + "end": 16274, "loc": { "start": { - "line": 445, + "line": 450, "column": 46 }, "end": { - "line": 445, + "line": 450, "column": 57 } }, "object": { "type": "ThisExpression", - "start": 15989, - "end": 15993, + "start": 16263, + "end": 16267, "loc": { "start": { - "line": 445, + "line": 450, "column": 46 }, "end": { - "line": 445, + "line": 450, "column": 50 } } }, "property": { "type": "Identifier", - "start": 15994, - "end": 16000, + "start": 16268, + "end": 16274, "loc": { "start": { - "line": 445, + "line": 450, "column": 51 }, "end": { - "line": 445, + "line": 450, "column": 57 }, "identifierName": "loader" @@ -32265,15 +32763,15 @@ { "type": "CommentLine", "value": " eslint-disable-next-line no-undef", - "start": 16008, - "end": 16044, + "start": 16282, + "end": 16318, "loc": { "start": { - "line": 447, + "line": 452, "column": 4 }, "end": { - "line": 447, + "line": 452, "column": 40 } } @@ -32282,58 +32780,58 @@ }, { "type": "ExpressionStatement", - "start": 16049, - "end": 16092, + "start": 16323, + "end": 16366, "loc": { "start": { - "line": 448, + "line": 453, "column": 4 }, "end": { - "line": 448, + "line": 453, "column": 47 } }, "expression": { "type": "AssignmentExpression", - "start": 16049, - "end": 16091, + "start": 16323, + "end": 16365, "loc": { "start": { - "line": 448, + "line": 453, "column": 4 }, "end": { - "line": 448, + "line": 453, "column": 46 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 16049, - "end": 16059, + "start": 16323, + "end": 16333, "loc": { "start": { - "line": 448, + "line": 453, "column": 4 }, "end": { - "line": 448, + "line": 453, "column": 14 } }, "object": { "type": "ThisExpression", - "start": 16049, - "end": 16053, + "start": 16323, + "end": 16327, "loc": { "start": { - "line": 448, + "line": 453, "column": 4 }, "end": { - "line": 448, + "line": 453, "column": 8 } }, @@ -32341,15 +32839,15 @@ }, "property": { "type": "Identifier", - "start": 16054, - "end": 16059, + "start": 16328, + "end": 16333, "loc": { "start": { - "line": 448, + "line": 453, "column": 9 }, "end": { - "line": 448, + "line": 453, "column": 14 }, "identifierName": "error" @@ -32361,43 +32859,43 @@ }, "right": { "type": "CallExpression", - "start": 16062, - "end": 16091, + "start": 16336, + "end": 16365, "loc": { "start": { - "line": 448, + "line": 453, "column": 17 }, "end": { - "line": 448, + "line": 453, "column": 46 } }, "callee": { "type": "MemberExpression", - "start": 16062, - "end": 16084, + "start": 16336, + "end": 16358, "loc": { "start": { - "line": 448, + "line": 453, "column": 17 }, "end": { - "line": 448, + "line": 453, "column": 39 } }, "object": { "type": "Identifier", - "start": 16062, - "end": 16070, + "start": 16336, + "end": 16344, "loc": { "start": { - "line": 448, + "line": 453, "column": 17 }, "end": { - "line": 448, + "line": 453, "column": 25 }, "identifierName": "document" @@ -32406,15 +32904,15 @@ }, "property": { "type": "Identifier", - "start": 16071, - "end": 16084, + "start": 16345, + "end": 16358, "loc": { "start": { - "line": 448, + "line": 453, "column": 26 }, "end": { - "line": 448, + "line": 453, "column": 39 }, "identifierName": "createElement" @@ -32426,15 +32924,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 16085, - "end": 16090, + "start": 16359, + "end": 16364, "loc": { "start": { - "line": 448, + "line": 453, "column": 40 }, "end": { - "line": 448, + "line": 453, "column": 45 } }, @@ -32452,15 +32950,15 @@ { "type": "CommentLine", "value": " eslint-disable-next-line no-undef", - "start": 16008, - "end": 16044, + "start": 16282, + "end": 16318, "loc": { "start": { - "line": 447, + "line": 452, "column": 4 }, "end": { - "line": 447, + "line": 452, "column": 40 } } @@ -32469,100 +32967,100 @@ }, { "type": "ExpressionStatement", - "start": 16097, - "end": 16135, + "start": 16371, + "end": 16409, "loc": { "start": { - "line": 449, + "line": 454, "column": 4 }, "end": { - "line": 449, + "line": 454, "column": 42 } }, "expression": { "type": "CallExpression", - "start": 16097, - "end": 16134, + "start": 16371, + "end": 16408, "loc": { "start": { - "line": 449, + "line": 454, "column": 4 }, "end": { - "line": 449, + "line": 454, "column": 41 } }, "callee": { "type": "MemberExpression", - "start": 16097, - "end": 16121, + "start": 16371, + "end": 16395, "loc": { "start": { - "line": 449, + "line": 454, "column": 4 }, "end": { - "line": 449, + "line": 454, "column": 28 } }, "object": { "type": "MemberExpression", - "start": 16097, - "end": 16117, + "start": 16371, + "end": 16391, "loc": { "start": { - "line": 449, + "line": 454, "column": 4 }, "end": { - "line": 449, + "line": 454, "column": 24 } }, "object": { "type": "MemberExpression", - "start": 16097, - "end": 16107, + "start": 16371, + "end": 16381, "loc": { "start": { - "line": 449, + "line": 454, "column": 4 }, "end": { - "line": 449, + "line": 454, "column": 14 } }, "object": { "type": "ThisExpression", - "start": 16097, - "end": 16101, + "start": 16371, + "end": 16375, "loc": { "start": { - "line": 449, + "line": 454, "column": 4 }, "end": { - "line": 449, + "line": 454, "column": 8 } } }, "property": { "type": "Identifier", - "start": 16102, - "end": 16107, + "start": 16376, + "end": 16381, "loc": { "start": { - "line": 449, + "line": 454, "column": 9 }, "end": { - "line": 449, + "line": 454, "column": 14 }, "identifierName": "error" @@ -32573,15 +33071,15 @@ }, "property": { "type": "Identifier", - "start": 16108, - "end": 16117, + "start": 16382, + "end": 16391, "loc": { "start": { - "line": 449, + "line": 454, "column": 15 }, "end": { - "line": 449, + "line": 454, "column": 24 }, "identifierName": "classList" @@ -32592,15 +33090,15 @@ }, "property": { "type": "Identifier", - "start": 16118, - "end": 16121, + "start": 16392, + "end": 16395, "loc": { "start": { - "line": 449, + "line": 454, "column": 25 }, "end": { - "line": 449, + "line": 454, "column": 28 }, "identifierName": "add" @@ -32612,15 +33110,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 16122, - "end": 16133, + "start": 16396, + "end": 16407, "loc": { "start": { - "line": 449, + "line": 454, "column": 29 }, "end": { - "line": 449, + "line": 454, "column": 40 } }, @@ -32635,73 +33133,73 @@ }, { "type": "ExpressionStatement", - "start": 16140, - "end": 16193, + "start": 16414, + "end": 16467, "loc": { "start": { - "line": 450, + "line": 455, "column": 4 }, "end": { - "line": 450, + "line": 455, "column": 57 } }, "expression": { "type": "AssignmentExpression", - "start": 16140, - "end": 16192, + "start": 16414, + "end": 16466, "loc": { "start": { - "line": 450, + "line": 455, "column": 4 }, "end": { - "line": 450, + "line": 455, "column": 56 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 16140, - "end": 16150, + "start": 16414, + "end": 16424, "loc": { "start": { - "line": 450, + "line": 455, "column": 4 }, "end": { - "line": 450, + "line": 455, "column": 14 } }, "object": { "type": "ThisExpression", - "start": 16140, - "end": 16144, + "start": 16414, + "end": 16418, "loc": { "start": { - "line": 450, + "line": 455, "column": 4 }, "end": { - "line": 450, + "line": 455, "column": 8 } } }, "property": { "type": "Identifier", - "start": 16145, - "end": 16150, + "start": 16419, + "end": 16424, "loc": { "start": { - "line": 450, + "line": 455, "column": 9 }, "end": { - "line": 450, + "line": 455, "column": 14 }, "identifierName": "error" @@ -32712,72 +33210,72 @@ }, "right": { "type": "CallExpression", - "start": 16153, - "end": 16192, + "start": 16427, + "end": 16466, "loc": { "start": { - "line": 450, + "line": 455, "column": 17 }, "end": { - "line": 450, + "line": 455, "column": 56 } }, "callee": { "type": "MemberExpression", - "start": 16153, - "end": 16180, + "start": 16427, + "end": 16454, "loc": { "start": { - "line": 450, + "line": 455, "column": 17 }, "end": { - "line": 450, + "line": 455, "column": 44 } }, "object": { "type": "MemberExpression", - "start": 16153, - "end": 16168, + "start": 16427, + "end": 16442, "loc": { "start": { - "line": 450, + "line": 455, "column": 17 }, "end": { - "line": 450, + "line": 455, "column": 32 } }, "object": { "type": "ThisExpression", - "start": 16153, - "end": 16157, + "start": 16427, + "end": 16431, "loc": { "start": { - "line": 450, + "line": 455, "column": 17 }, "end": { - "line": 450, + "line": 455, "column": 21 } } }, "property": { "type": "Identifier", - "start": 16158, - "end": 16168, + "start": 16432, + "end": 16442, "loc": { "start": { - "line": 450, + "line": 455, "column": 22 }, "end": { - "line": 450, + "line": 455, "column": 32 }, "identifierName": "domElement" @@ -32788,15 +33286,15 @@ }, "property": { "type": "Identifier", - "start": 16169, - "end": 16180, + "start": 16443, + "end": 16454, "loc": { "start": { - "line": 450, + "line": 455, "column": 33 }, "end": { - "line": 450, + "line": 455, "column": 44 }, "identifierName": "appendChild" @@ -32808,44 +33306,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 16181, - "end": 16191, + "start": 16455, + "end": 16465, "loc": { "start": { - "line": 450, + "line": 455, "column": 45 }, "end": { - "line": 450, + "line": 455, "column": 55 } }, "object": { "type": "ThisExpression", - "start": 16181, - "end": 16185, + "start": 16455, + "end": 16459, "loc": { "start": { - "line": 450, + "line": 455, "column": 45 }, "end": { - "line": 450, + "line": 455, "column": 49 } } }, "property": { "type": "Identifier", - "start": 16186, - "end": 16191, + "start": 16460, + "end": 16465, "loc": { "start": { - "line": 450, + "line": 455, "column": 50 }, "end": { - "line": 450, + "line": 455, "column": 55 }, "identifierName": "error" @@ -32861,15 +33359,15 @@ { "type": "CommentBlock", "value": "*\n * Launch export timer\n * @type {Number}\n ", - "start": 16199, - "end": 16259, + "start": 16473, + "end": 16533, "loc": { "start": { - "line": 452, + "line": 457, "column": 4 }, "end": { - "line": 455, + "line": 460, "column": 7 } } @@ -32878,58 +33376,58 @@ }, { "type": "ExpressionStatement", - "start": 16264, - "end": 16293, + "start": 16538, + "end": 16567, "loc": { "start": { - "line": 456, + "line": 461, "column": 4 }, "end": { - "line": 456, + "line": 461, "column": 33 } }, "expression": { "type": "AssignmentExpression", - "start": 16264, - "end": 16292, + "start": 16538, + "end": 16566, "loc": { "start": { - "line": 456, + "line": 461, "column": 4 }, "end": { - "line": 456, + "line": 461, "column": 32 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 16264, - "end": 16280, + "start": 16538, + "end": 16554, "loc": { "start": { - "line": 456, + "line": 461, "column": 4 }, "end": { - "line": 456, + "line": 461, "column": 20 } }, "object": { "type": "ThisExpression", - "start": 16264, - "end": 16268, + "start": 16538, + "end": 16542, "loc": { "start": { - "line": 456, + "line": 461, "column": 4 }, "end": { - "line": 456, + "line": 461, "column": 8 } }, @@ -32937,15 +33435,15 @@ }, "property": { "type": "Identifier", - "start": 16269, - "end": 16280, + "start": 16543, + "end": 16554, "loc": { "start": { - "line": 456, + "line": 461, "column": 9 }, "end": { - "line": 456, + "line": 461, "column": 20 }, "identifierName": "exportTimer" @@ -32957,15 +33455,15 @@ }, "right": { "type": "Identifier", - "start": 16283, - "end": 16292, + "start": 16557, + "end": 16566, "loc": { "start": { - "line": 456, + "line": 461, "column": 23 }, "end": { - "line": 456, + "line": 461, "column": 32 }, "identifierName": "undefined" @@ -32978,15 +33476,15 @@ { "type": "CommentBlock", "value": "*\n * Launch export timer\n * @type {Number}\n ", - "start": 16199, - "end": 16259, + "start": 16473, + "end": 16533, "loc": { "start": { - "line": 452, + "line": 457, "column": 4 }, "end": { - "line": 455, + "line": 460, "column": 7 } } @@ -32996,15 +33494,15 @@ { "type": "CommentBlock", "value": "*\n * Launch resize timer\n * @type {Number}\n ", - "start": 16299, - "end": 16359, + "start": 16573, + "end": 16633, "loc": { "start": { - "line": 458, + "line": 463, "column": 4 }, "end": { - "line": 461, + "line": 466, "column": 7 } } @@ -33013,58 +33511,58 @@ }, { "type": "ExpressionStatement", - "start": 16364, - "end": 16393, + "start": 16638, + "end": 16667, "loc": { "start": { - "line": 462, + "line": 467, "column": 4 }, "end": { - "line": 462, + "line": 467, "column": 33 } }, "expression": { "type": "AssignmentExpression", - "start": 16364, - "end": 16392, + "start": 16638, + "end": 16666, "loc": { "start": { - "line": 462, + "line": 467, "column": 4 }, "end": { - "line": 462, + "line": 467, "column": 32 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 16364, - "end": 16380, + "start": 16638, + "end": 16654, "loc": { "start": { - "line": 462, + "line": 467, "column": 4 }, "end": { - "line": 462, + "line": 467, "column": 20 } }, "object": { "type": "ThisExpression", - "start": 16364, - "end": 16368, + "start": 16638, + "end": 16642, "loc": { "start": { - "line": 462, + "line": 467, "column": 4 }, "end": { - "line": 462, + "line": 467, "column": 8 } }, @@ -33072,15 +33570,15 @@ }, "property": { "type": "Identifier", - "start": 16369, - "end": 16380, + "start": 16643, + "end": 16654, "loc": { "start": { - "line": 462, + "line": 467, "column": 9 }, "end": { - "line": 462, + "line": 467, "column": 20 }, "identifierName": "resizeTimer" @@ -33092,15 +33590,15 @@ }, "right": { "type": "Identifier", - "start": 16383, - "end": 16392, + "start": 16657, + "end": 16666, "loc": { "start": { - "line": 462, + "line": 467, "column": 23 }, "end": { - "line": 462, + "line": 467, "column": 32 }, "identifierName": "undefined" @@ -33113,15 +33611,15 @@ { "type": "CommentBlock", "value": "*\n * Launch resize timer\n * @type {Number}\n ", - "start": 16299, - "end": 16359, + "start": 16573, + "end": 16633, "loc": { "start": { - "line": 458, + "line": 463, "column": 4 }, "end": { - "line": 461, + "line": 466, "column": 7 } } @@ -33131,15 +33629,15 @@ { "type": "CommentBlock", "value": "*\n * Notify delay timer\n * @type {Number}\n ", - "start": 16399, - "end": 16458, + "start": 16673, + "end": 16732, "loc": { "start": { - "line": 464, + "line": 469, "column": 4 }, "end": { - "line": 467, + "line": 472, "column": 7 } } @@ -33148,58 +33646,58 @@ }, { "type": "ExpressionStatement", - "start": 16463, - "end": 16492, + "start": 16737, + "end": 16766, "loc": { "start": { - "line": 468, + "line": 473, "column": 4 }, "end": { - "line": 468, + "line": 473, "column": 33 } }, "expression": { "type": "AssignmentExpression", - "start": 16463, - "end": 16491, + "start": 16737, + "end": 16765, "loc": { "start": { - "line": 468, + "line": 473, "column": 4 }, "end": { - "line": 468, + "line": 473, "column": 32 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 16463, - "end": 16479, + "start": 16737, + "end": 16753, "loc": { "start": { - "line": 468, + "line": 473, "column": 4 }, "end": { - "line": 468, + "line": 473, "column": 20 } }, "object": { "type": "ThisExpression", - "start": 16463, - "end": 16467, + "start": 16737, + "end": 16741, "loc": { "start": { - "line": 468, + "line": 473, "column": 4 }, "end": { - "line": 468, + "line": 473, "column": 8 } }, @@ -33207,15 +33705,15 @@ }, "property": { "type": "Identifier", - "start": 16468, - "end": 16479, + "start": 16742, + "end": 16753, "loc": { "start": { - "line": 468, + "line": 473, "column": 9 }, "end": { - "line": 468, + "line": 473, "column": 20 }, "identifierName": "notifyTimer" @@ -33227,15 +33725,15 @@ }, "right": { "type": "Identifier", - "start": 16482, - "end": 16491, + "start": 16756, + "end": 16765, "loc": { "start": { - "line": 468, + "line": 473, "column": 23 }, "end": { - "line": 468, + "line": 473, "column": 32 }, "identifierName": "undefined" @@ -33248,15 +33746,15 @@ { "type": "CommentBlock", "value": "*\n * Notify delay timer\n * @type {Number}\n ", - "start": 16399, - "end": 16458, + "start": 16673, + "end": 16732, "loc": { "start": { - "line": 464, + "line": 469, "column": 4 }, "end": { - "line": 467, + "line": 472, "column": 7 } } @@ -33266,15 +33764,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Behaviors}\n ", - "start": 16499, - "end": 16551, + "start": 16773, + "end": 16825, "loc": { "start": { - "line": 471, + "line": 476, "column": 4 }, "end": { - "line": 474, + "line": 479, "column": 7 } } @@ -33283,58 +33781,58 @@ }, { "type": "ExpressionStatement", - "start": 16556, - "end": 16631, + "start": 16830, + "end": 16905, "loc": { "start": { - "line": 475, + "line": 480, "column": 4 }, "end": { - "line": 475, + "line": 480, "column": 79 } }, "expression": { "type": "AssignmentExpression", - "start": 16556, - "end": 16630, + "start": 16830, + "end": 16904, "loc": { "start": { - "line": 475, + "line": 480, "column": 4 }, "end": { - "line": 475, + "line": 480, "column": 78 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 16556, - "end": 16575, + "start": 16830, + "end": 16849, "loc": { "start": { - "line": 475, + "line": 480, "column": 4 }, "end": { - "line": 475, + "line": 480, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 16556, - "end": 16560, + "start": 16830, + "end": 16834, "loc": { "start": { - "line": 475, + "line": 480, "column": 4 }, "end": { - "line": 475, + "line": 480, "column": 8 } }, @@ -33342,15 +33840,15 @@ }, "property": { "type": "Identifier", - "start": 16561, - "end": 16575, + "start": 16835, + "end": 16849, "loc": { "start": { - "line": 475, + "line": 480, "column": 9 }, "end": { - "line": 475, + "line": 480, "column": 23 }, "identifierName": "innerBehaviors" @@ -33362,43 +33860,43 @@ }, "right": { "type": "CallExpression", - "start": 16578, - "end": 16630, + "start": 16852, + "end": 16904, "loc": { "start": { - "line": 475, + "line": 480, "column": 26 }, "end": { - "line": 475, + "line": 480, "column": 78 } }, "callee": { "type": "MemberExpression", - "start": 16578, - "end": 16619, + "start": 16852, + "end": 16893, "loc": { "start": { - "line": 475, + "line": 480, "column": 26 }, "end": { - "line": 475, + "line": 480, "column": 67 } }, "object": { "type": "Identifier", - "start": 16578, - "end": 16594, + "start": 16852, + "end": 16868, "loc": { "start": { - "line": 475, + "line": 480, "column": 26 }, "end": { - "line": 475, + "line": 480, "column": 42 }, "identifierName": "DefaultBehaviors" @@ -33407,15 +33905,15 @@ }, "property": { "type": "Identifier", - "start": 16595, - "end": 16619, + "start": 16869, + "end": 16893, "loc": { "start": { - "line": 475, + "line": 480, "column": 43 }, "end": { - "line": 475, + "line": 480, "column": 67 }, "identifierName": "overrideDefaultBehaviors" @@ -33427,15 +33925,15 @@ "arguments": [ { "type": "Identifier", - "start": 16620, - "end": 16629, + "start": 16894, + "end": 16903, "loc": { "start": { - "line": 475, + "line": 480, "column": 68 }, "end": { - "line": 475, + "line": 480, "column": 77 }, "identifierName": "behaviors" @@ -33450,15 +33948,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Behaviors}\n ", - "start": 16499, - "end": 16551, + "start": 16773, + "end": 16825, "loc": { "start": { - "line": 471, + "line": 476, "column": 4 }, "end": { - "line": 474, + "line": 479, "column": 7 } } @@ -33467,73 +33965,73 @@ }, { "type": "ExpressionStatement", - "start": 16636, - "end": 16671, + "start": 16910, + "end": 16945, "loc": { "start": { - "line": 476, + "line": 481, "column": 4 }, "end": { - "line": 476, + "line": 481, "column": 39 } }, "expression": { "type": "AssignmentExpression", - "start": 16636, - "end": 16670, + "start": 16910, + "end": 16944, "loc": { "start": { - "line": 476, + "line": 481, "column": 4 }, "end": { - "line": 476, + "line": 481, "column": 38 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 16636, - "end": 16654, + "start": 16910, + "end": 16928, "loc": { "start": { - "line": 476, + "line": 481, "column": 4 }, "end": { - "line": 476, + "line": 481, "column": 22 } }, "object": { "type": "ThisExpression", - "start": 16636, - "end": 16640, + "start": 16910, + "end": 16914, "loc": { "start": { - "line": 476, + "line": 481, "column": 4 }, "end": { - "line": 476, + "line": 481, "column": 8 } } }, "property": { "type": "Identifier", - "start": 16641, - "end": 16654, + "start": 16915, + "end": 16928, "loc": { "start": { - "line": 476, + "line": 481, "column": 9 }, "end": { - "line": 476, + "line": 481, "column": 22 }, "identifierName": "configuration" @@ -33544,15 +34042,15 @@ }, "right": { "type": "Identifier", - "start": 16657, - "end": 16670, + "start": 16931, + "end": 16944, "loc": { "start": { - "line": 476, + "line": 481, "column": 25 }, "end": { - "line": 476, + "line": 481, "column": 38 }, "identifierName": "configuration" @@ -33563,73 +34061,73 @@ }, { "type": "ExpressionStatement", - "start": 16676, - "end": 16728, + "start": 16950, + "end": 17002, "loc": { "start": { - "line": 477, + "line": 482, "column": 4 }, "end": { - "line": 477, + "line": 482, "column": 56 } }, "expression": { "type": "AssignmentExpression", - "start": 16676, - "end": 16727, + "start": 16950, + "end": 17001, "loc": { "start": { - "line": 477, + "line": 482, "column": 4 }, "end": { - "line": 477, + "line": 482, "column": 55 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 16676, - "end": 16691, + "start": 16950, + "end": 16965, "loc": { "start": { - "line": 477, + "line": 482, "column": 4 }, "end": { - "line": 477, + "line": 482, "column": 19 } }, "object": { "type": "ThisExpression", - "start": 16676, - "end": 16680, + "start": 16950, + "end": 16954, "loc": { "start": { - "line": 477, + "line": 482, "column": 4 }, "end": { - "line": 477, + "line": 482, "column": 8 } } }, "property": { "type": "Identifier", - "start": 16681, - "end": 16691, + "start": 16955, + "end": 16965, "loc": { "start": { - "line": 477, + "line": 482, "column": 9 }, "end": { - "line": 477, + "line": 482, "column": 19 }, "identifierName": "smartGuide" @@ -33640,43 +34138,43 @@ }, "right": { "type": "CallExpression", - "start": 16694, - "end": 16727, + "start": 16968, + "end": 17001, "loc": { "start": { - "line": 477, + "line": 482, "column": 22 }, "end": { - "line": 477, + "line": 482, "column": 55 } }, "callee": { "type": "MemberExpression", - "start": 16694, - "end": 16721, + "start": 16968, + "end": 16995, "loc": { "start": { - "line": 477, + "line": 482, "column": 22 }, "end": { - "line": 477, + "line": 482, "column": 49 } }, "object": { "type": "Identifier", - "start": 16694, - "end": 16704, + "start": 16968, + "end": 16978, "loc": { "start": { - "line": 477, + "line": 482, "column": 22 }, "end": { - "line": 477, + "line": 482, "column": 32 }, "identifierName": "SmartGuide" @@ -33685,15 +34183,15 @@ }, "property": { "type": "Identifier", - "start": 16705, - "end": 16721, + "start": 16979, + "end": 16995, "loc": { "start": { - "line": 477, + "line": 482, "column": 33 }, "end": { - "line": 477, + "line": 482, "column": 49 }, "identifierName": "createSmartGuide" @@ -33705,15 +34203,15 @@ "arguments": [ { "type": "ThisExpression", - "start": 16722, - "end": 16726, + "start": 16996, + "end": 17000, "loc": { "start": { - "line": 477, + "line": 482, "column": 50 }, "end": { - "line": 477, + "line": 482, "column": 54 } } @@ -33725,15 +34223,15 @@ { "type": "CommentBlock", "value": "*\n * Pen color used only for pending stroke\n * @type {string}\n ", - "start": 16734, - "end": 16813, + "start": 17008, + "end": 17087, "loc": { "start": { - "line": 479, + "line": 484, "column": 4 }, "end": { - "line": 482, + "line": 487, "column": 7 } } @@ -33742,58 +34240,58 @@ }, { "type": "ExpressionStatement", - "start": 16818, - "end": 16839, + "start": 17092, + "end": 17113, "loc": { "start": { - "line": 483, + "line": 488, "column": 4 }, "end": { - "line": 483, + "line": 488, "column": 25 } }, "expression": { "type": "AssignmentExpression", - "start": 16818, - "end": 16838, + "start": 17092, + "end": 17112, "loc": { "start": { - "line": 483, + "line": 488, "column": 4 }, "end": { - "line": 483, + "line": 488, "column": 24 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 16818, - "end": 16833, + "start": 17092, + "end": 17107, "loc": { "start": { - "line": 483, + "line": 488, "column": 4 }, "end": { - "line": 483, + "line": 488, "column": 19 } }, "object": { "type": "ThisExpression", - "start": 16818, - "end": 16822, + "start": 17092, + "end": 17096, "loc": { "start": { - "line": 483, + "line": 488, "column": 4 }, "end": { - "line": 483, + "line": 488, "column": 8 } }, @@ -33801,15 +34299,15 @@ }, "property": { "type": "Identifier", - "start": 16823, - "end": 16833, + "start": 17097, + "end": 17107, "loc": { "start": { - "line": 483, + "line": 488, "column": 9 }, "end": { - "line": 483, + "line": 488, "column": 19 }, "identifierName": "localTheme" @@ -33821,15 +34319,15 @@ }, "right": { "type": "StringLiteral", - "start": 16836, - "end": 16838, + "start": 17110, + "end": 17112, "loc": { "start": { - "line": 483, + "line": 488, "column": 22 }, "end": { - "line": 483, + "line": 488, "column": 24 } }, @@ -33845,15 +34343,15 @@ { "type": "CommentBlock", "value": "*\n * Pen color used only for pending stroke\n * @type {string}\n ", - "start": 16734, - "end": 16813, + "start": 17008, + "end": 17087, "loc": { "start": { - "line": 479, + "line": 484, "column": 4 }, "end": { - "line": 482, + "line": 487, "column": 7 } } @@ -33862,73 +34360,73 @@ }, { "type": "ExpressionStatement", - "start": 16845, - "end": 16864, + "start": 17119, + "end": 17138, "loc": { "start": { - "line": 485, + "line": 490, "column": 4 }, "end": { - "line": 485, + "line": 490, "column": 23 } }, "expression": { "type": "AssignmentExpression", - "start": 16845, - "end": 16863, + "start": 17119, + "end": 17137, "loc": { "start": { - "line": 485, + "line": 490, "column": 4 }, "end": { - "line": 485, + "line": 490, "column": 22 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 16845, - "end": 16855, + "start": 17119, + "end": 17129, "loc": { "start": { - "line": 485, + "line": 490, "column": 4 }, "end": { - "line": 485, + "line": 490, "column": 14 } }, "object": { "type": "ThisExpression", - "start": 16845, - "end": 16849, + "start": 17119, + "end": 17123, "loc": { "start": { - "line": 485, + "line": 490, "column": 4 }, "end": { - "line": 485, + "line": 490, "column": 8 } } }, "property": { "type": "Identifier", - "start": 16850, - "end": 16855, + "start": 17124, + "end": 17129, "loc": { "start": { - "line": 485, + "line": 490, "column": 9 }, "end": { - "line": 485, + "line": 490, "column": 14 }, "identifierName": "theme" @@ -33939,15 +34437,15 @@ }, "right": { "type": "Identifier", - "start": 16858, - "end": 16863, + "start": 17132, + "end": 17137, "loc": { "start": { - "line": 485, + "line": 490, "column": 17 }, "end": { - "line": 485, + "line": 490, "column": 22 }, "identifierName": "theme" @@ -33958,73 +34456,73 @@ }, { "type": "ExpressionStatement", - "start": 16869, - "end": 16894, + "start": 17143, + "end": 17168, "loc": { "start": { - "line": 486, + "line": 491, "column": 4 }, "end": { - "line": 486, + "line": 491, "column": 29 } }, "expression": { "type": "AssignmentExpression", - "start": 16869, - "end": 16893, + "start": 17143, + "end": 17167, "loc": { "start": { - "line": 486, + "line": 491, "column": 4 }, "end": { - "line": 486, + "line": 491, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 16869, - "end": 16882, + "start": 17143, + "end": 17156, "loc": { "start": { - "line": 486, + "line": 491, "column": 4 }, "end": { - "line": 486, + "line": 491, "column": 17 } }, "object": { "type": "ThisExpression", - "start": 16869, - "end": 16873, + "start": 17143, + "end": 17147, "loc": { "start": { - "line": 486, + "line": 491, "column": 4 }, "end": { - "line": 486, + "line": 491, "column": 8 } } }, "property": { "type": "Identifier", - "start": 16874, - "end": 16882, + "start": 17148, + "end": 17156, "loc": { "start": { - "line": 486, + "line": 491, "column": 9 }, "end": { - "line": 486, + "line": 491, "column": 17 }, "identifierName": "penStyle" @@ -34035,15 +34533,15 @@ }, "right": { "type": "Identifier", - "start": 16885, - "end": 16893, + "start": 17159, + "end": 17167, "loc": { "start": { - "line": 486, + "line": 491, "column": 20 }, "end": { - "line": 486, + "line": 491, "column": 28 }, "identifierName": "penStyle" @@ -34054,73 +34552,73 @@ }, { "type": "ExpressionStatement", - "start": 16899, - "end": 16925, + "start": 17173, + "end": 17199, "loc": { "start": { - "line": 487, + "line": 492, "column": 4 }, "end": { - "line": 487, + "line": 492, "column": 30 } }, "expression": { "type": "AssignmentExpression", - "start": 16899, - "end": 16924, + "start": 17173, + "end": 17198, "loc": { "start": { - "line": 487, + "line": 492, "column": 4 }, "end": { - "line": 487, + "line": 492, "column": 29 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 16899, - "end": 16919, + "start": 17173, + "end": 17193, "loc": { "start": { - "line": 487, + "line": 492, "column": 4 }, "end": { - "line": 487, + "line": 492, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 16899, - "end": 16903, + "start": 17173, + "end": 17177, "loc": { "start": { - "line": 487, + "line": 492, "column": 4 }, "end": { - "line": 487, + "line": 492, "column": 8 } } }, "property": { "type": "Identifier", - "start": 16904, - "end": 16919, + "start": 17178, + "end": 17193, "loc": { "start": { - "line": 487, + "line": 492, "column": 9 }, "end": { - "line": 487, + "line": 492, "column": 24 }, "identifierName": "penStyleClasses" @@ -34131,15 +34629,15 @@ }, "right": { "type": "StringLiteral", - "start": 16922, - "end": 16924, + "start": 17196, + "end": 17198, "loc": { "start": { - "line": 487, + "line": 492, "column": 27 }, "end": { - "line": 487, + "line": 492, "column": 29 } }, @@ -34153,87 +34651,87 @@ }, { "type": "ExpressionStatement", - "start": 16931, - "end": 16961, + "start": 17205, + "end": 17235, "loc": { "start": { - "line": 489, + "line": 494, "column": 4 }, "end": { - "line": 489, + "line": 494, "column": 34 } }, "expression": { "type": "AssignmentExpression", - "start": 16931, - "end": 16960, + "start": 17205, + "end": 17234, "loc": { "start": { - "line": 489, + "line": 494, "column": 4 }, "end": { - "line": 489, + "line": 494, "column": 33 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 16931, - "end": 16953, + "start": 17205, + "end": 17227, "loc": { "start": { - "line": 489, + "line": 494, "column": 4 }, "end": { - "line": 489, + "line": 494, "column": 26 } }, "object": { "type": "MemberExpression", - "start": 16931, - "end": 16946, + "start": 17205, + "end": 17220, "loc": { "start": { - "line": 489, + "line": 494, "column": 4 }, "end": { - "line": 489, + "line": 494, "column": 19 } }, "object": { "type": "ThisExpression", - "start": 16931, - "end": 16935, + "start": 17205, + "end": 17209, "loc": { "start": { - "line": 489, + "line": 494, "column": 4 }, "end": { - "line": 489, + "line": 494, "column": 8 } } }, "property": { "type": "Identifier", - "start": 16936, - "end": 16946, + "start": 17210, + "end": 17220, "loc": { "start": { - "line": 489, + "line": 494, "column": 9 }, "end": { - "line": 489, + "line": 494, "column": 19 }, "identifierName": "domElement" @@ -34244,15 +34742,15 @@ }, "property": { "type": "Identifier", - "start": 16947, - "end": 16953, + "start": 17221, + "end": 17227, "loc": { "start": { - "line": 489, + "line": 494, "column": 20 }, "end": { - "line": 489, + "line": 494, "column": 26 }, "identifierName": "editor" @@ -34263,15 +34761,15 @@ }, "right": { "type": "ThisExpression", - "start": 16956, - "end": 16960, + "start": 17230, + "end": 17234, "loc": { "start": { - "line": 489, + "line": 494, "column": 29 }, "end": { - "line": 489, + "line": 494, "column": 33 } } @@ -34286,15 +34784,15 @@ { "type": "CommentBlock", "value": "*\n * @param {Element} element DOM element to attach this editor\n * @param {Configuration} [configuration] Configuration to apply\n * @param {Theme} [theme] Custom theme to apply\n * @param {PenStyle} [penStyle] Custom style to apply\n * @param {Behaviors} [behaviors] Custom behaviors to apply\n ", - "start": 15274, - "end": 15582, + "start": 15548, + "end": 15856, "loc": { "start": { - "line": 427, + "line": 432, "column": 2 }, "end": { - "line": 433, + "line": 438, "column": 5 } } @@ -34304,15 +34802,15 @@ { "type": "CommentBlock", "value": "*\n * Set the recognition parameters\n * WARNING : Need to fire a clear if user have already input some strokes.\n * @param {Configuration} configuration\n ", - "start": 16969, - "end": 17133, + "start": 17243, + "end": 17407, "loc": { "start": { - "line": 492, + "line": 497, "column": 2 }, "end": { - "line": 496, + "line": 501, "column": 5 } } @@ -34321,15 +34819,15 @@ }, { "type": "ClassMethod", - "start": 17136, - "end": 17596, + "start": 17410, + "end": 17870, "loc": { "start": { - "line": 497, + "line": 502, "column": 2 }, "end": { - "line": 507, + "line": 512, "column": 3 } }, @@ -34337,15 +34835,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 17140, - "end": 17153, + "start": 17414, + "end": 17427, "loc": { "start": { - "line": 497, + "line": 502, "column": 6 }, "end": { - "line": 497, + "line": 502, "column": 19 }, "identifierName": "configuration" @@ -34360,15 +34858,15 @@ "params": [ { "type": "Identifier", - "start": 17154, - "end": 17167, + "start": 17428, + "end": 17441, "loc": { "start": { - "line": 497, + "line": 502, "column": 20 }, "end": { - "line": 497, + "line": 502, "column": 33 }, "identifierName": "configuration" @@ -34378,116 +34876,116 @@ ], "body": { "type": "BlockStatement", - "start": 17169, - "end": 17596, + "start": 17443, + "end": 17870, "loc": { "start": { - "line": 497, + "line": 502, "column": 35 }, "end": { - "line": 507, + "line": 512, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 17175, - "end": 17213, + "start": 17449, + "end": 17487, "loc": { "start": { - "line": 498, + "line": 503, "column": 4 }, "end": { - "line": 498, + "line": 503, "column": 42 } }, "expression": { "type": "AssignmentExpression", - "start": 17175, - "end": 17212, + "start": 17449, + "end": 17486, "loc": { "start": { - "line": 498, + "line": 503, "column": 4 }, "end": { - "line": 498, + "line": 503, "column": 41 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 17175, - "end": 17200, + "start": 17449, + "end": 17474, "loc": { "start": { - "line": 498, + "line": 503, "column": 4 }, "end": { - "line": 498, + "line": 503, "column": 29 } }, "object": { "type": "MemberExpression", - "start": 17175, - "end": 17192, + "start": 17449, + "end": 17466, "loc": { "start": { - "line": 498, + "line": 503, "column": 4 }, "end": { - "line": 498, + "line": 503, "column": 21 } }, "object": { "type": "MemberExpression", - "start": 17175, - "end": 17186, + "start": 17449, + "end": 17460, "loc": { "start": { - "line": 498, + "line": 503, "column": 4 }, "end": { - "line": 498, + "line": 503, "column": 15 } }, "object": { "type": "ThisExpression", - "start": 17175, - "end": 17179, + "start": 17449, + "end": 17453, "loc": { "start": { - "line": 498, + "line": 503, "column": 4 }, "end": { - "line": 498, + "line": 503, "column": 8 } } }, "property": { "type": "Identifier", - "start": 17180, - "end": 17186, + "start": 17454, + "end": 17460, "loc": { "start": { - "line": 498, + "line": 503, "column": 9 }, "end": { - "line": 498, + "line": 503, "column": 15 }, "identifierName": "loader" @@ -34498,15 +34996,15 @@ }, "property": { "type": "Identifier", - "start": 17187, - "end": 17192, + "start": 17461, + "end": 17466, "loc": { "start": { - "line": 498, + "line": 503, "column": 16 }, "end": { - "line": 498, + "line": 503, "column": 21 }, "identifierName": "style" @@ -34517,15 +35015,15 @@ }, "property": { "type": "Identifier", - "start": 17193, - "end": 17200, + "start": 17467, + "end": 17474, "loc": { "start": { - "line": 498, + "line": 503, "column": 22 }, "end": { - "line": 498, + "line": 503, "column": 29 }, "identifierName": "display" @@ -34536,15 +35034,15 @@ }, "right": { "type": "StringLiteral", - "start": 17203, - "end": 17212, + "start": 17477, + "end": 17486, "loc": { "start": { - "line": 498, + "line": 503, "column": 32 }, "end": { - "line": 498, + "line": 503, "column": 41 } }, @@ -34558,101 +35056,101 @@ }, { "type": "ExpressionStatement", - "start": 17218, - "end": 17252, + "start": 17492, + "end": 17526, "loc": { "start": { - "line": 499, + "line": 504, "column": 4 }, "end": { - "line": 499, + "line": 504, "column": 38 } }, "expression": { "type": "AssignmentExpression", - "start": 17218, - "end": 17251, + "start": 17492, + "end": 17525, "loc": { "start": { - "line": 499, + "line": 504, "column": 4 }, "end": { - "line": 499, + "line": 504, "column": 37 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 17218, - "end": 17242, + "start": 17492, + "end": 17516, "loc": { "start": { - "line": 499, + "line": 504, "column": 4 }, "end": { - "line": 499, + "line": 504, "column": 28 } }, "object": { "type": "MemberExpression", - "start": 17218, - "end": 17234, + "start": 17492, + "end": 17508, "loc": { "start": { - "line": 499, + "line": 504, "column": 4 }, "end": { - "line": 499, + "line": 504, "column": 20 } }, "object": { "type": "MemberExpression", - "start": 17218, - "end": 17228, + "start": 17492, + "end": 17502, "loc": { "start": { - "line": 499, + "line": 504, "column": 4 }, "end": { - "line": 499, + "line": 504, "column": 14 } }, "object": { "type": "ThisExpression", - "start": 17218, - "end": 17222, + "start": 17492, + "end": 17496, "loc": { "start": { - "line": 499, + "line": 504, "column": 4 }, "end": { - "line": 499, + "line": 504, "column": 8 } } }, "property": { "type": "Identifier", - "start": 17223, - "end": 17228, + "start": 17497, + "end": 17502, "loc": { "start": { - "line": 499, + "line": 504, "column": 9 }, "end": { - "line": 499, + "line": 504, "column": 14 }, "identifierName": "error" @@ -34663,15 +35161,15 @@ }, "property": { "type": "Identifier", - "start": 17229, - "end": 17234, + "start": 17503, + "end": 17508, "loc": { "start": { - "line": 499, + "line": 504, "column": 15 }, "end": { - "line": 499, + "line": 504, "column": 20 }, "identifierName": "style" @@ -34682,15 +35180,15 @@ }, "property": { "type": "Identifier", - "start": 17235, - "end": 17242, + "start": 17509, + "end": 17516, "loc": { "start": { - "line": 499, + "line": 504, "column": 21 }, "end": { - "line": 499, + "line": 504, "column": 28 }, "identifierName": "display" @@ -34701,15 +35199,15 @@ }, "right": { "type": "StringLiteral", - "start": 17245, - "end": 17251, + "start": 17519, + "end": 17525, "loc": { "start": { - "line": 499, + "line": 504, "column": 31 }, "end": { - "line": 499, + "line": 504, "column": 37 } }, @@ -34724,15 +35222,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Configuration}\n ", - "start": 17257, - "end": 17313, + "start": 17531, + "end": 17587, "loc": { "start": { - "line": 500, + "line": 505, "column": 4 }, "end": { - "line": 503, + "line": 508, "column": 7 } } @@ -34741,58 +35239,58 @@ }, { "type": "ExpressionStatement", - "start": 17318, - "end": 17409, + "start": 17592, + "end": 17683, "loc": { "start": { - "line": 504, + "line": 509, "column": 4 }, "end": { - "line": 504, + "line": 509, "column": 95 } }, "expression": { "type": "AssignmentExpression", - "start": 17318, - "end": 17408, + "start": 17592, + "end": 17682, "loc": { "start": { - "line": 504, + "line": 509, "column": 4 }, "end": { - "line": 504, + "line": 509, "column": 94 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 17318, - "end": 17341, + "start": 17592, + "end": 17615, "loc": { "start": { - "line": 504, + "line": 509, "column": 4 }, "end": { - "line": 504, + "line": 509, "column": 27 } }, "object": { "type": "ThisExpression", - "start": 17318, - "end": 17322, + "start": 17592, + "end": 17596, "loc": { "start": { - "line": 504, + "line": 509, "column": 4 }, "end": { - "line": 504, + "line": 509, "column": 8 } }, @@ -34800,15 +35298,15 @@ }, "property": { "type": "Identifier", - "start": 17323, - "end": 17341, + "start": 17597, + "end": 17615, "loc": { "start": { - "line": 504, + "line": 509, "column": 9 }, "end": { - "line": 504, + "line": 509, "column": 27 }, "identifierName": "innerConfiguration" @@ -34820,43 +35318,43 @@ }, "right": { "type": "CallExpression", - "start": 17344, - "end": 17408, + "start": 17618, + "end": 17682, "loc": { "start": { - "line": 504, + "line": 509, "column": 30 }, "end": { - "line": 504, + "line": 509, "column": 94 } }, "callee": { "type": "MemberExpression", - "start": 17344, - "end": 17393, + "start": 17618, + "end": 17667, "loc": { "start": { - "line": 504, + "line": 509, "column": 30 }, "end": { - "line": 504, + "line": 509, "column": 79 } }, "object": { "type": "Identifier", - "start": 17344, - "end": 17364, + "start": 17618, + "end": 17638, "loc": { "start": { - "line": 504, + "line": 509, "column": 30 }, "end": { - "line": 504, + "line": 509, "column": 50 }, "identifierName": "DefaultConfiguration" @@ -34865,15 +35363,15 @@ }, "property": { "type": "Identifier", - "start": 17365, - "end": 17393, + "start": 17639, + "end": 17667, "loc": { "start": { - "line": 504, + "line": 509, "column": 51 }, "end": { - "line": 504, + "line": 509, "column": 79 }, "identifierName": "overrideDefaultConfiguration" @@ -34885,15 +35383,15 @@ "arguments": [ { "type": "Identifier", - "start": 17394, - "end": 17407, + "start": 17668, + "end": 17681, "loc": { "start": { - "line": 504, + "line": 509, "column": 80 }, "end": { - "line": 504, + "line": 509, "column": 93 }, "identifierName": "configuration" @@ -34908,15 +35406,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Configuration}\n ", - "start": 17257, - "end": 17313, + "start": 17531, + "end": 17587, "loc": { "start": { - "line": 500, + "line": 505, "column": 4 }, "end": { - "line": 503, + "line": 508, "column": 7 } } @@ -34925,72 +35423,72 @@ }, { "type": "ExpressionStatement", - "start": 17414, - "end": 17486, + "start": 17688, + "end": 17760, "loc": { "start": { - "line": 505, + "line": 510, "column": 4 }, "end": { - "line": 505, + "line": 510, "column": 76 } }, "expression": { "type": "CallExpression", - "start": 17414, - "end": 17485, + "start": 17688, + "end": 17759, "loc": { "start": { - "line": 505, + "line": 510, "column": 4 }, "end": { - "line": 505, + "line": 510, "column": 75 } }, "callee": { "type": "MemberExpression", - "start": 17414, - "end": 17434, + "start": 17688, + "end": 17708, "loc": { "start": { - "line": 505, + "line": 510, "column": 4 }, "end": { - "line": 505, + "line": 510, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 17414, - "end": 17418, + "start": 17688, + "end": 17692, "loc": { "start": { - "line": 505, + "line": 510, "column": 4 }, "end": { - "line": 505, + "line": 510, "column": 8 } } }, "property": { "type": "Identifier", - "start": 17419, - "end": 17434, + "start": 17693, + "end": 17708, "loc": { "start": { - "line": 505, + "line": 510, "column": 9 }, "end": { - "line": 505, + "line": 510, "column": 24 }, "identifierName": "setThemeForFont" @@ -35002,86 +35500,86 @@ "arguments": [ { "type": "MemberExpression", - "start": 17435, - "end": 17484, + "start": 17709, + "end": 17758, "loc": { "start": { - "line": 505, + "line": 510, "column": 25 }, "end": { - "line": 505, + "line": 510, "column": 74 } }, "object": { "type": "MemberExpression", - "start": 17435, - "end": 17479, + "start": 17709, + "end": 17753, "loc": { "start": { - "line": 505, + "line": 510, "column": 25 }, "end": { - "line": 505, + "line": 510, "column": 69 } }, "object": { "type": "MemberExpression", - "start": 17435, - "end": 17476, + "start": 17709, + "end": 17750, "loc": { "start": { - "line": 505, + "line": 510, "column": 25 }, "end": { - "line": 505, + "line": 510, "column": 66 } }, "object": { "type": "MemberExpression", - "start": 17435, - "end": 17458, + "start": 17709, + "end": 17732, "loc": { "start": { - "line": 505, + "line": 510, "column": 25 }, "end": { - "line": 505, + "line": 510, "column": 48 } }, "object": { "type": "ThisExpression", - "start": 17435, - "end": 17439, + "start": 17709, + "end": 17713, "loc": { "start": { - "line": 505, + "line": 510, "column": 25 }, "end": { - "line": 505, + "line": 510, "column": 29 } } }, "property": { "type": "Identifier", - "start": 17440, - "end": 17458, + "start": 17714, + "end": 17732, "loc": { "start": { - "line": 505, + "line": 510, "column": 30 }, "end": { - "line": 505, + "line": 510, "column": 48 }, "identifierName": "innerConfiguration" @@ -35092,15 +35590,15 @@ }, "property": { "type": "Identifier", - "start": 17459, - "end": 17476, + "start": 17733, + "end": 17750, "loc": { "start": { - "line": 505, + "line": 510, "column": 49 }, "end": { - "line": 505, + "line": 510, "column": 66 }, "identifierName": "recognitionParams" @@ -35111,15 +35609,15 @@ }, "property": { "type": "Identifier", - "start": 17477, - "end": 17479, + "start": 17751, + "end": 17753, "loc": { "start": { - "line": 505, + "line": 510, "column": 67 }, "end": { - "line": 505, + "line": 510, "column": 69 }, "identifierName": "v4" @@ -35130,15 +35628,15 @@ }, "property": { "type": "Identifier", - "start": 17480, - "end": 17484, + "start": 17754, + "end": 17758, "loc": { "start": { - "line": 505, + "line": 510, "column": 70 }, "end": { - "line": 505, + "line": 510, "column": 74 }, "identifierName": "lang" @@ -35152,73 +35650,73 @@ }, { "type": "ExpressionStatement", - "start": 17491, - "end": 17592, + "start": 17765, + "end": 17866, "loc": { "start": { - "line": 506, + "line": 511, "column": 4 }, "end": { - "line": 506, + "line": 511, "column": 105 } }, "expression": { "type": "AssignmentExpression", - "start": 17491, - "end": 17591, + "start": 17765, + "end": 17865, "loc": { "start": { - "line": 506, + "line": 511, "column": 4 }, "end": { - "line": 506, + "line": 511, "column": 104 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 17491, - "end": 17504, + "start": 17765, + "end": 17778, "loc": { "start": { - "line": 506, + "line": 511, "column": 4 }, "end": { - "line": 506, + "line": 511, "column": 17 } }, "object": { "type": "ThisExpression", - "start": 17491, - "end": 17495, + "start": 17765, + "end": 17769, "loc": { "start": { - "line": 506, + "line": 511, "column": 4 }, "end": { - "line": 506, + "line": 511, "column": 8 } } }, "property": { "type": "Identifier", - "start": 17496, - "end": 17504, + "start": 17770, + "end": 17778, "loc": { "start": { - "line": 506, + "line": 511, "column": 9 }, "end": { - "line": 506, + "line": 511, "column": 17 }, "identifierName": "behavior" @@ -35229,72 +35727,72 @@ }, "right": { "type": "CallExpression", - "start": 17507, - "end": 17591, + "start": 17781, + "end": 17865, "loc": { "start": { - "line": 506, + "line": 511, "column": 20 }, "end": { - "line": 506, + "line": 511, "column": 104 } }, "callee": { "type": "MemberExpression", - "start": 17507, - "end": 17550, + "start": 17781, + "end": 17824, "loc": { "start": { - "line": 506, + "line": 511, "column": 20 }, "end": { - "line": 506, + "line": 511, "column": 63 } }, "object": { "type": "MemberExpression", - "start": 17507, - "end": 17521, + "start": 17781, + "end": 17795, "loc": { "start": { - "line": 506, + "line": 511, "column": 20 }, "end": { - "line": 506, + "line": 511, "column": 34 } }, "object": { "type": "ThisExpression", - "start": 17507, - "end": 17511, + "start": 17781, + "end": 17785, "loc": { "start": { - "line": 506, + "line": 511, "column": 20 }, "end": { - "line": 506, + "line": 511, "column": 24 } } }, "property": { "type": "Identifier", - "start": 17512, - "end": 17521, + "start": 17786, + "end": 17795, "loc": { "start": { - "line": 506, + "line": 511, "column": 25 }, "end": { - "line": 506, + "line": 511, "column": 34 }, "identifierName": "behaviors" @@ -35305,15 +35803,15 @@ }, "property": { "type": "Identifier", - "start": 17522, - "end": 17550, + "start": 17796, + "end": 17824, "loc": { "start": { - "line": 506, + "line": 511, "column": 35 }, "end": { - "line": 506, + "line": 511, "column": 63 }, "identifierName": "getBehaviorFromConfiguration" @@ -35325,44 +35823,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 17551, - "end": 17565, + "start": 17825, + "end": 17839, "loc": { "start": { - "line": 506, + "line": 511, "column": 64 }, "end": { - "line": 506, + "line": 511, "column": 78 } }, "object": { "type": "ThisExpression", - "start": 17551, - "end": 17555, + "start": 17825, + "end": 17829, "loc": { "start": { - "line": 506, + "line": 511, "column": 64 }, "end": { - "line": 506, + "line": 511, "column": 68 } } }, "property": { "type": "Identifier", - "start": 17556, - "end": 17565, + "start": 17830, + "end": 17839, "loc": { "start": { - "line": 506, + "line": 511, "column": 69 }, "end": { - "line": 506, + "line": 511, "column": 78 }, "identifierName": "behaviors" @@ -35373,44 +35871,44 @@ }, { "type": "MemberExpression", - "start": 17567, - "end": 17590, + "start": 17841, + "end": 17864, "loc": { "start": { - "line": 506, + "line": 511, "column": 80 }, "end": { - "line": 506, + "line": 511, "column": 103 } }, "object": { "type": "ThisExpression", - "start": 17567, - "end": 17571, + "start": 17841, + "end": 17845, "loc": { "start": { - "line": 506, + "line": 511, "column": 80 }, "end": { - "line": 506, + "line": 511, "column": 84 } } }, "property": { "type": "Identifier", - "start": 17572, - "end": 17590, + "start": 17846, + "end": 17864, "loc": { "start": { - "line": 506, + "line": 511, "column": 85 }, "end": { - "line": 506, + "line": 511, "column": 103 }, "identifierName": "innerConfiguration" @@ -35431,15 +35929,15 @@ { "type": "CommentBlock", "value": "*\n * Set the recognition parameters\n * WARNING : Need to fire a clear if user have already input some strokes.\n * @param {Configuration} configuration\n ", - "start": 16969, - "end": 17133, + "start": 17243, + "end": 17407, "loc": { "start": { - "line": 492, + "line": 497, "column": 2 }, "end": { - "line": 496, + "line": 501, "column": 5 } } @@ -35449,15 +35947,15 @@ { "type": "CommentBlock", "value": "*\n * Get the current recognition parameters\n * @return {Configuration}\n ", - "start": 17600, - "end": 17682, + "start": 17874, + "end": 17956, "loc": { "start": { - "line": 509, + "line": 514, "column": 2 }, "end": { - "line": 512, + "line": 517, "column": 5 } } @@ -35466,15 +35964,15 @@ }, { "type": "ClassMethod", - "start": 17685, - "end": 17746, + "start": 17959, + "end": 18020, "loc": { "start": { - "line": 513, + "line": 518, "column": 2 }, "end": { - "line": 515, + "line": 520, "column": 3 } }, @@ -35482,15 +35980,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 17689, - "end": 17702, + "start": 17963, + "end": 17976, "loc": { "start": { - "line": 513, + "line": 518, "column": 6 }, "end": { - "line": 513, + "line": 518, "column": 19 }, "identifierName": "configuration" @@ -35505,73 +36003,73 @@ "params": [], "body": { "type": "BlockStatement", - "start": 17705, - "end": 17746, + "start": 17979, + "end": 18020, "loc": { "start": { - "line": 513, + "line": 518, "column": 22 }, "end": { - "line": 515, + "line": 520, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 17711, - "end": 17742, + "start": 17985, + "end": 18016, "loc": { "start": { - "line": 514, + "line": 519, "column": 4 }, "end": { - "line": 514, + "line": 519, "column": 35 } }, "argument": { "type": "MemberExpression", - "start": 17718, - "end": 17741, + "start": 17992, + "end": 18015, "loc": { "start": { - "line": 514, + "line": 519, "column": 11 }, "end": { - "line": 514, + "line": 519, "column": 34 } }, "object": { "type": "ThisExpression", - "start": 17718, - "end": 17722, + "start": 17992, + "end": 17996, "loc": { "start": { - "line": 514, + "line": 519, "column": 11 }, "end": { - "line": 514, + "line": 519, "column": 15 } } }, "property": { "type": "Identifier", - "start": 17723, - "end": 17741, + "start": 17997, + "end": 18015, "loc": { "start": { - "line": 514, + "line": 519, "column": 16 }, "end": { - "line": 514, + "line": 519, "column": 34 }, "identifierName": "innerConfiguration" @@ -35589,15 +36087,15 @@ { "type": "CommentBlock", "value": "*\n * Get the current recognition parameters\n * @return {Configuration}\n ", - "start": 17600, - "end": 17682, + "start": 17874, + "end": 17956, "loc": { "start": { - "line": 509, + "line": 514, "column": 2 }, "end": { - "line": 512, + "line": 517, "column": 5 } } @@ -35607,15 +36105,15 @@ { "type": "CommentBlock", "value": "*\n * Set the pen style\n * @param {PenStyle} penStyle\n ", - "start": 17750, - "end": 17814, + "start": 18024, + "end": 18088, "loc": { "start": { - "line": 517, + "line": 522, "column": 2 }, "end": { - "line": 520, + "line": 525, "column": 5 } } @@ -35624,15 +36122,15 @@ }, { "type": "ClassMethod", - "start": 17817, - "end": 18055, + "start": 18091, + "end": 18329, "loc": { "start": { - "line": 521, + "line": 526, "column": 2 }, "end": { - "line": 529, + "line": 534, "column": 3 } }, @@ -35640,15 +36138,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 17821, - "end": 17829, + "start": 18095, + "end": 18103, "loc": { "start": { - "line": 521, + "line": 526, "column": 6 }, "end": { - "line": 521, + "line": 526, "column": 14 }, "identifierName": "penStyle" @@ -35663,15 +36161,15 @@ "params": [ { "type": "Identifier", - "start": 17830, - "end": 17838, + "start": 18104, + "end": 18112, "loc": { "start": { - "line": 521, + "line": 526, "column": 15 }, "end": { - "line": 521, + "line": 526, "column": 23 }, "identifierName": "penStyle" @@ -35681,73 +36179,73 @@ ], "body": { "type": "BlockStatement", - "start": 17840, - "end": 18055, + "start": 18114, + "end": 18329, "loc": { "start": { - "line": 521, + "line": 526, "column": 25 }, "end": { - "line": 529, + "line": 534, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 17902, - "end": 17971, + "start": 18176, + "end": 18245, "loc": { "start": { - "line": 526, + "line": 531, "column": 4 }, "end": { - "line": 526, + "line": 531, "column": 73 } }, "expression": { "type": "AssignmentExpression", - "start": 17902, - "end": 17970, + "start": 18176, + "end": 18244, "loc": { "start": { - "line": 526, + "line": 531, "column": 4 }, "end": { - "line": 526, + "line": 531, "column": 72 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 17902, - "end": 17920, + "start": 18176, + "end": 18194, "loc": { "start": { - "line": 526, + "line": 531, "column": 4 }, "end": { - "line": 526, + "line": 531, "column": 22 } }, "object": { "type": "ThisExpression", - "start": 17902, - "end": 17906, + "start": 18176, + "end": 18180, "loc": { "start": { - "line": 526, + "line": 531, "column": 4 }, "end": { - "line": 526, + "line": 531, "column": 8 } }, @@ -35755,15 +36253,15 @@ }, "property": { "type": "Identifier", - "start": 17907, - "end": 17920, + "start": 18181, + "end": 18194, "loc": { "start": { - "line": 526, + "line": 531, "column": 9 }, "end": { - "line": 526, + "line": 531, "column": 22 }, "identifierName": "innerPenStyle" @@ -35775,43 +36273,43 @@ }, "right": { "type": "CallExpression", - "start": 17923, - "end": 17970, + "start": 18197, + "end": 18244, "loc": { "start": { - "line": 526, + "line": 531, "column": 25 }, "end": { - "line": 526, + "line": 531, "column": 72 } }, "callee": { "type": "MemberExpression", - "start": 17923, - "end": 17960, + "start": 18197, + "end": 18234, "loc": { "start": { - "line": 526, + "line": 531, "column": 25 }, "end": { - "line": 526, + "line": 531, "column": 62 } }, "object": { "type": "Identifier", - "start": 17923, - "end": 17936, + "start": 18197, + "end": 18210, "loc": { "start": { - "line": 526, + "line": 531, "column": 25 }, "end": { - "line": 526, + "line": 531, "column": 38 }, "identifierName": "DefaultStyles" @@ -35820,15 +36318,15 @@ }, "property": { "type": "Identifier", - "start": 17937, - "end": 17960, + "start": 18211, + "end": 18234, "loc": { "start": { - "line": 526, + "line": 531, "column": 39 }, "end": { - "line": 526, + "line": 531, "column": 62 }, "identifierName": "overrideDefaultPenStyle" @@ -35840,15 +36338,15 @@ "arguments": [ { "type": "Identifier", - "start": 17961, - "end": 17969, + "start": 18235, + "end": 18243, "loc": { "start": { - "line": 526, + "line": 531, "column": 63 }, "end": { - "line": 526, + "line": 531, "column": 71 }, "identifierName": "penStyle" @@ -35863,15 +36361,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {PenStyle}\n ", - "start": 17846, - "end": 17897, + "start": 18120, + "end": 18171, "loc": { "start": { - "line": 522, + "line": 527, "column": 4 }, "end": { - "line": 525, + "line": 530, "column": 7 } } @@ -35880,73 +36378,73 @@ }, { "type": "ExpressionStatement", - "start": 17976, - "end": 18016, + "start": 18250, + "end": 18290, "loc": { "start": { - "line": 527, + "line": 532, "column": 4 }, "end": { - "line": 527, + "line": 532, "column": 44 } }, "expression": { "type": "AssignmentExpression", - "start": 17976, - "end": 18015, + "start": 18250, + "end": 18289, "loc": { "start": { - "line": 527, + "line": 532, "column": 4 }, "end": { - "line": 527, + "line": 532, "column": 43 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 17976, - "end": 17994, + "start": 18250, + "end": 18268, "loc": { "start": { - "line": 527, + "line": 532, "column": 4 }, "end": { - "line": 527, + "line": 532, "column": 22 } }, "object": { "type": "ThisExpression", - "start": 17976, - "end": 17980, + "start": 18250, + "end": 18254, "loc": { "start": { - "line": 527, + "line": 532, "column": 4 }, "end": { - "line": 527, + "line": 532, "column": 8 } } }, "property": { "type": "Identifier", - "start": 17981, - "end": 17994, + "start": 18255, + "end": 18268, "loc": { "start": { - "line": 527, + "line": 532, "column": 9 }, "end": { - "line": 527, + "line": 532, "column": 22 }, "identifierName": "localPenStyle" @@ -35957,44 +36455,44 @@ }, "right": { "type": "MemberExpression", - "start": 17997, - "end": 18015, + "start": 18271, + "end": 18289, "loc": { "start": { - "line": 527, + "line": 532, "column": 25 }, "end": { - "line": 527, + "line": 532, "column": 43 } }, "object": { "type": "ThisExpression", - "start": 17997, - "end": 18001, + "start": 18271, + "end": 18275, "loc": { "start": { - "line": 527, + "line": 532, "column": 25 }, "end": { - "line": 527, + "line": 532, "column": 29 } } }, "property": { "type": "Identifier", - "start": 18002, - "end": 18015, + "start": 18276, + "end": 18289, "loc": { "start": { - "line": 527, + "line": 532, "column": 30 }, "end": { - "line": 527, + "line": 532, "column": 43 }, "identifierName": "innerPenStyle" @@ -36007,43 +36505,43 @@ }, { "type": "ExpressionStatement", - "start": 18021, - "end": 18051, + "start": 18295, + "end": 18325, "loc": { "start": { - "line": 528, + "line": 533, "column": 4 }, "end": { - "line": 528, + "line": 533, "column": 34 } }, "expression": { "type": "CallExpression", - "start": 18021, - "end": 18050, + "start": 18295, + "end": 18324, "loc": { "start": { - "line": 528, + "line": 533, "column": 4 }, "end": { - "line": 528, + "line": 533, "column": 33 } }, "callee": { "type": "Identifier", - "start": 18021, - "end": 18032, + "start": 18295, + "end": 18306, "loc": { "start": { - "line": 528, + "line": 533, "column": 4 }, "end": { - "line": 528, + "line": 533, "column": 15 }, "identifierName": "setPenStyle" @@ -36053,59 +36551,59 @@ "arguments": [ { "type": "ThisExpression", - "start": 18033, - "end": 18037, + "start": 18307, + "end": 18311, "loc": { "start": { - "line": 528, + "line": 533, "column": 16 }, "end": { - "line": 528, + "line": 533, "column": 20 } } }, { "type": "MemberExpression", - "start": 18039, - "end": 18049, + "start": 18313, + "end": 18323, "loc": { "start": { - "line": 528, + "line": 533, "column": 22 }, "end": { - "line": 528, + "line": 533, "column": 32 } }, "object": { "type": "ThisExpression", - "start": 18039, - "end": 18043, + "start": 18313, + "end": 18317, "loc": { "start": { - "line": 528, + "line": 533, "column": 22 }, "end": { - "line": 528, + "line": 533, "column": 26 } } }, "property": { "type": "Identifier", - "start": 18044, - "end": 18049, + "start": 18318, + "end": 18323, "loc": { "start": { - "line": 528, + "line": 533, "column": 27 }, "end": { - "line": 528, + "line": 533, "column": 32 }, "identifierName": "model" @@ -36125,15 +36623,15 @@ { "type": "CommentBlock", "value": "*\n * Set the pen style\n * @param {PenStyle} penStyle\n ", - "start": 17750, - "end": 17814, + "start": 18024, + "end": 18088, "loc": { "start": { - "line": 517, + "line": 522, "column": 2 }, "end": { - "line": 520, + "line": 525, "column": 5 } } @@ -36143,15 +36641,15 @@ { "type": "CommentBlock", "value": "*\n * Get the pen style\n * @return {PenStyle}\n ", - "start": 18059, - "end": 18115, + "start": 18333, + "end": 18389, "loc": { "start": { - "line": 531, + "line": 536, "column": 2 }, "end": { - "line": 534, + "line": 539, "column": 5 } } @@ -36160,15 +36658,15 @@ }, { "type": "ClassMethod", - "start": 18118, - "end": 18169, + "start": 18392, + "end": 18443, "loc": { "start": { - "line": 535, + "line": 540, "column": 2 }, "end": { - "line": 537, + "line": 542, "column": 3 } }, @@ -36176,15 +36674,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 18122, - "end": 18130, + "start": 18396, + "end": 18404, "loc": { "start": { - "line": 535, + "line": 540, "column": 6 }, "end": { - "line": 535, + "line": 540, "column": 14 }, "identifierName": "penStyle" @@ -36199,73 +36697,73 @@ "params": [], "body": { "type": "BlockStatement", - "start": 18133, - "end": 18169, + "start": 18407, + "end": 18443, "loc": { "start": { - "line": 535, + "line": 540, "column": 17 }, "end": { - "line": 537, + "line": 542, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 18139, - "end": 18165, + "start": 18413, + "end": 18439, "loc": { "start": { - "line": 536, + "line": 541, "column": 4 }, "end": { - "line": 536, + "line": 541, "column": 30 } }, "argument": { "type": "MemberExpression", - "start": 18146, - "end": 18164, + "start": 18420, + "end": 18438, "loc": { "start": { - "line": 536, + "line": 541, "column": 11 }, "end": { - "line": 536, + "line": 541, "column": 29 } }, "object": { "type": "ThisExpression", - "start": 18146, - "end": 18150, + "start": 18420, + "end": 18424, "loc": { "start": { - "line": 536, + "line": 541, "column": 11 }, "end": { - "line": 536, + "line": 541, "column": 15 } } }, "property": { "type": "Identifier", - "start": 18151, - "end": 18164, + "start": 18425, + "end": 18438, "loc": { "start": { - "line": 536, + "line": 541, "column": 16 }, "end": { - "line": 536, + "line": 541, "column": 29 }, "identifierName": "innerPenStyle" @@ -36283,15 +36781,15 @@ { "type": "CommentBlock", "value": "*\n * Get the pen style\n * @return {PenStyle}\n ", - "start": 18059, - "end": 18115, + "start": 18333, + "end": 18389, "loc": { "start": { - "line": 531, + "line": 536, "column": 2 }, "end": { - "line": 534, + "line": 539, "column": 5 } } @@ -36301,15 +36799,15 @@ { "type": "CommentBlock", "value": "*\n * Set the pen style\n * @param {String} penStyleClasses\n ", - "start": 18173, - "end": 18242, + "start": 18447, + "end": 18516, "loc": { "start": { - "line": 539, + "line": 544, "column": 2 }, "end": { - "line": 542, + "line": 547, "column": 5 } } @@ -36318,15 +36816,15 @@ }, { "type": "ClassMethod", - "start": 18245, - "end": 18502, + "start": 18519, + "end": 18776, "loc": { "start": { - "line": 543, + "line": 548, "column": 2 }, "end": { - "line": 551, + "line": 556, "column": 3 } }, @@ -36334,15 +36832,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 18249, - "end": 18264, + "start": 18523, + "end": 18538, "loc": { "start": { - "line": 543, + "line": 548, "column": 6 }, "end": { - "line": 543, + "line": 548, "column": 21 }, "identifierName": "penStyleClasses" @@ -36357,15 +36855,15 @@ "params": [ { "type": "Identifier", - "start": 18265, - "end": 18280, + "start": 18539, + "end": 18554, "loc": { "start": { - "line": 543, + "line": 548, "column": 22 }, "end": { - "line": 543, + "line": 548, "column": 37 }, "identifierName": "penStyleClasses" @@ -36375,73 +36873,73 @@ ], "body": { "type": "BlockStatement", - "start": 18282, - "end": 18502, + "start": 18556, + "end": 18776, "loc": { "start": { - "line": 543, + "line": 548, "column": 39 }, "end": { - "line": 551, + "line": 556, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 18342, - "end": 18386, + "start": 18616, + "end": 18660, "loc": { "start": { - "line": 548, + "line": 553, "column": 4 }, "end": { - "line": 548, + "line": 553, "column": 48 } }, "expression": { "type": "AssignmentExpression", - "start": 18342, - "end": 18385, + "start": 18616, + "end": 18659, "loc": { "start": { - "line": 548, + "line": 553, "column": 4 }, "end": { - "line": 548, + "line": 553, "column": 47 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 18342, - "end": 18367, + "start": 18616, + "end": 18641, "loc": { "start": { - "line": 548, + "line": 553, "column": 4 }, "end": { - "line": 548, + "line": 553, "column": 29 } }, "object": { "type": "ThisExpression", - "start": 18342, - "end": 18346, + "start": 18616, + "end": 18620, "loc": { "start": { - "line": 548, + "line": 553, "column": 4 }, "end": { - "line": 548, + "line": 553, "column": 8 } }, @@ -36449,15 +36947,15 @@ }, "property": { "type": "Identifier", - "start": 18347, - "end": 18367, + "start": 18621, + "end": 18641, "loc": { "start": { - "line": 548, + "line": 553, "column": 9 }, "end": { - "line": 548, + "line": 553, "column": 29 }, "identifierName": "innerPenStyleClasses" @@ -36469,15 +36967,15 @@ }, "right": { "type": "Identifier", - "start": 18370, - "end": 18385, + "start": 18644, + "end": 18659, "loc": { "start": { - "line": 548, + "line": 553, "column": 32 }, "end": { - "line": 548, + "line": 553, "column": 47 }, "identifierName": "penStyleClasses" @@ -36490,15 +36988,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {String}\n ", - "start": 18288, - "end": 18337, + "start": 18562, + "end": 18611, "loc": { "start": { - "line": 544, + "line": 549, "column": 4 }, "end": { - "line": 547, + "line": 552, "column": 7 } } @@ -36507,73 +37005,73 @@ }, { "type": "ExpressionStatement", - "start": 18391, - "end": 18456, + "start": 18665, + "end": 18730, "loc": { "start": { - "line": 549, + "line": 554, "column": 4 }, "end": { - "line": 549, + "line": 554, "column": 69 } }, "expression": { "type": "AssignmentExpression", - "start": 18391, - "end": 18455, + "start": 18665, + "end": 18729, "loc": { "start": { - "line": 549, + "line": 554, "column": 4 }, "end": { - "line": 549, + "line": 554, "column": 68 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 18391, - "end": 18409, + "start": 18665, + "end": 18683, "loc": { "start": { - "line": 549, + "line": 554, "column": 4 }, "end": { - "line": 549, + "line": 554, "column": 22 } }, "object": { "type": "ThisExpression", - "start": 18391, - "end": 18395, + "start": 18665, + "end": 18669, "loc": { "start": { - "line": 549, + "line": 554, "column": 4 }, "end": { - "line": 549, + "line": 554, "column": 8 } } }, "property": { "type": "Identifier", - "start": 18396, - "end": 18409, + "start": 18670, + "end": 18683, "loc": { "start": { - "line": 549, + "line": 554, "column": 9 }, "end": { - "line": 549, + "line": 554, "column": 22 }, "identifierName": "localPenStyle" @@ -36584,58 +37082,58 @@ }, "right": { "type": "MemberExpression", - "start": 18412, - "end": 18455, + "start": 18686, + "end": 18729, "loc": { "start": { - "line": 549, + "line": 554, "column": 25 }, "end": { - "line": 549, + "line": 554, "column": 68 } }, "object": { "type": "MemberExpression", - "start": 18412, - "end": 18422, + "start": 18686, + "end": 18696, "loc": { "start": { - "line": 549, + "line": 554, "column": 25 }, "end": { - "line": 549, + "line": 554, "column": 35 } }, "object": { "type": "ThisExpression", - "start": 18412, - "end": 18416, + "start": 18686, + "end": 18690, "loc": { "start": { - "line": 549, + "line": 554, "column": 25 }, "end": { - "line": 549, + "line": 554, "column": 29 } } }, "property": { "type": "Identifier", - "start": 18417, - "end": 18422, + "start": 18691, + "end": 18696, "loc": { "start": { - "line": 549, + "line": 554, "column": 30 }, "end": { - "line": 549, + "line": 554, "column": 35 }, "identifierName": "theme" @@ -36646,59 +37144,59 @@ }, "property": { "type": "TemplateLiteral", - "start": 18423, - "end": 18454, + "start": 18697, + "end": 18728, "loc": { "start": { - "line": 549, + "line": 554, "column": 36 }, "end": { - "line": 549, + "line": 554, "column": 67 } }, "expressions": [ { "type": "MemberExpression", - "start": 18427, - "end": 18452, + "start": 18701, + "end": 18726, "loc": { "start": { - "line": 549, + "line": 554, "column": 40 }, "end": { - "line": 549, + "line": 554, "column": 65 } }, "object": { "type": "ThisExpression", - "start": 18427, - "end": 18431, + "start": 18701, + "end": 18705, "loc": { "start": { - "line": 549, + "line": 554, "column": 40 }, "end": { - "line": 549, + "line": 554, "column": 44 } } }, "property": { "type": "Identifier", - "start": 18432, - "end": 18452, + "start": 18706, + "end": 18726, "loc": { "start": { - "line": 549, + "line": 554, "column": 45 }, "end": { - "line": 549, + "line": 554, "column": 65 }, "identifierName": "innerPenStyleClasses" @@ -36711,15 +37209,15 @@ "quasis": [ { "type": "TemplateElement", - "start": 18424, - "end": 18425, + "start": 18698, + "end": 18699, "loc": { "start": { - "line": 549, + "line": 554, "column": 37 }, "end": { - "line": 549, + "line": 554, "column": 38 } }, @@ -36731,15 +37229,15 @@ }, { "type": "TemplateElement", - "start": 18453, - "end": 18453, + "start": 18727, + "end": 18727, "loc": { "start": { - "line": 549, + "line": 554, "column": 66 }, "end": { - "line": 549, + "line": 554, "column": 66 } }, @@ -36757,43 +37255,43 @@ }, { "type": "ExpressionStatement", - "start": 18461, - "end": 18498, + "start": 18735, + "end": 18772, "loc": { "start": { - "line": 550, + "line": 555, "column": 4 }, "end": { - "line": 550, + "line": 555, "column": 41 } }, "expression": { "type": "CallExpression", - "start": 18461, - "end": 18497, + "start": 18735, + "end": 18771, "loc": { "start": { - "line": 550, + "line": 555, "column": 4 }, "end": { - "line": 550, + "line": 555, "column": 40 } }, "callee": { "type": "Identifier", - "start": 18461, - "end": 18479, + "start": 18735, + "end": 18753, "loc": { "start": { - "line": 550, + "line": 555, "column": 4 }, "end": { - "line": 550, + "line": 555, "column": 22 }, "identifierName": "setPenStyleClasses" @@ -36803,59 +37301,59 @@ "arguments": [ { "type": "ThisExpression", - "start": 18480, - "end": 18484, + "start": 18754, + "end": 18758, "loc": { "start": { - "line": 550, + "line": 555, "column": 23 }, "end": { - "line": 550, + "line": 555, "column": 27 } } }, { "type": "MemberExpression", - "start": 18486, - "end": 18496, + "start": 18760, + "end": 18770, "loc": { "start": { - "line": 550, + "line": 555, "column": 29 }, "end": { - "line": 550, + "line": 555, "column": 39 } }, "object": { "type": "ThisExpression", - "start": 18486, - "end": 18490, + "start": 18760, + "end": 18764, "loc": { "start": { - "line": 550, + "line": 555, "column": 29 }, "end": { - "line": 550, + "line": 555, "column": 33 } } }, "property": { "type": "Identifier", - "start": 18491, - "end": 18496, + "start": 18765, + "end": 18770, "loc": { "start": { - "line": 550, + "line": 555, "column": 34 }, "end": { - "line": 550, + "line": 555, "column": 39 }, "identifierName": "model" @@ -36875,15 +37373,15 @@ { "type": "CommentBlock", "value": "*\n * Set the pen style\n * @param {String} penStyleClasses\n ", - "start": 18173, - "end": 18242, + "start": 18447, + "end": 18516, "loc": { "start": { - "line": 539, + "line": 544, "column": 2 }, "end": { - "line": 542, + "line": 547, "column": 5 } } @@ -36893,15 +37391,15 @@ { "type": "CommentBlock", "value": "*\n * Get the pen style\n * @return {String}\n ", - "start": 18506, - "end": 18560, + "start": 18780, + "end": 18834, "loc": { "start": { - "line": 553, + "line": 558, "column": 2 }, "end": { - "line": 556, + "line": 561, "column": 5 } } @@ -36910,15 +37408,15 @@ }, { "type": "ClassMethod", - "start": 18563, - "end": 18628, + "start": 18837, + "end": 18902, "loc": { "start": { - "line": 557, + "line": 562, "column": 2 }, "end": { - "line": 559, + "line": 564, "column": 3 } }, @@ -36926,15 +37424,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 18567, - "end": 18582, + "start": 18841, + "end": 18856, "loc": { "start": { - "line": 557, + "line": 562, "column": 6 }, "end": { - "line": 557, + "line": 562, "column": 21 }, "identifierName": "penStyleClasses" @@ -36949,73 +37447,73 @@ "params": [], "body": { "type": "BlockStatement", - "start": 18585, - "end": 18628, + "start": 18859, + "end": 18902, "loc": { "start": { - "line": 557, + "line": 562, "column": 24 }, "end": { - "line": 559, + "line": 564, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 18591, - "end": 18624, + "start": 18865, + "end": 18898, "loc": { "start": { - "line": 558, + "line": 563, "column": 4 }, "end": { - "line": 558, + "line": 563, "column": 37 } }, "argument": { "type": "MemberExpression", - "start": 18598, - "end": 18623, + "start": 18872, + "end": 18897, "loc": { "start": { - "line": 558, + "line": 563, "column": 11 }, "end": { - "line": 558, + "line": 563, "column": 36 } }, "object": { "type": "ThisExpression", - "start": 18598, - "end": 18602, + "start": 18872, + "end": 18876, "loc": { "start": { - "line": 558, + "line": 563, "column": 11 }, "end": { - "line": 558, + "line": 563, "column": 15 } } }, "property": { "type": "Identifier", - "start": 18603, - "end": 18623, + "start": 18877, + "end": 18897, "loc": { "start": { - "line": 558, + "line": 563, "column": 16 }, "end": { - "line": 558, + "line": 563, "column": 36 }, "identifierName": "innerPenStyleClasses" @@ -37033,15 +37531,15 @@ { "type": "CommentBlock", "value": "*\n * Get the pen style\n * @return {String}\n ", - "start": 18506, - "end": 18560, + "start": 18780, + "end": 18834, "loc": { "start": { - "line": 553, + "line": 558, "column": 2 }, "end": { - "line": 556, + "line": 561, "column": 5 } } @@ -37051,15 +37549,15 @@ { "type": "CommentBlock", "value": "*\n * Set the theme\n * @param {Theme} theme\n ", - "start": 18632, - "end": 18686, + "start": 18906, + "end": 18960, "loc": { "start": { - "line": 561, + "line": 566, "column": 2 }, "end": { - "line": 564, + "line": 569, "column": 5 } } @@ -37068,15 +37566,15 @@ }, { "type": "ClassMethod", - "start": 18689, - "end": 18860, + "start": 18963, + "end": 19134, "loc": { "start": { - "line": 565, + "line": 570, "column": 2 }, "end": { - "line": 572, + "line": 577, "column": 3 } }, @@ -37084,15 +37582,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 18693, - "end": 18698, + "start": 18967, + "end": 18972, "loc": { "start": { - "line": 565, + "line": 570, "column": 6 }, "end": { - "line": 565, + "line": 570, "column": 11 }, "identifierName": "theme" @@ -37107,15 +37605,15 @@ "params": [ { "type": "Identifier", - "start": 18699, - "end": 18704, + "start": 18973, + "end": 18978, "loc": { "start": { - "line": 565, + "line": 570, "column": 12 }, "end": { - "line": 565, + "line": 570, "column": 17 }, "identifierName": "theme" @@ -37125,73 +37623,73 @@ ], "body": { "type": "BlockStatement", - "start": 18706, - "end": 18860, + "start": 18980, + "end": 19134, "loc": { "start": { - "line": 565, + "line": 570, "column": 19 }, "end": { - "line": 572, + "line": 577, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 18765, - "end": 18824, + "start": 19039, + "end": 19098, "loc": { "start": { - "line": 570, + "line": 575, "column": 4 }, "end": { - "line": 570, + "line": 575, "column": 63 } }, "expression": { "type": "AssignmentExpression", - "start": 18765, - "end": 18823, + "start": 19039, + "end": 19097, "loc": { "start": { - "line": 570, + "line": 575, "column": 4 }, "end": { - "line": 570, + "line": 575, "column": 62 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 18765, - "end": 18780, + "start": 19039, + "end": 19054, "loc": { "start": { - "line": 570, + "line": 575, "column": 4 }, "end": { - "line": 570, + "line": 575, "column": 19 } }, "object": { "type": "ThisExpression", - "start": 18765, - "end": 18769, + "start": 19039, + "end": 19043, "loc": { "start": { - "line": 570, + "line": 575, "column": 4 }, "end": { - "line": 570, + "line": 575, "column": 8 } }, @@ -37199,15 +37697,15 @@ }, "property": { "type": "Identifier", - "start": 18770, - "end": 18780, + "start": 19044, + "end": 19054, "loc": { "start": { - "line": 570, + "line": 575, "column": 9 }, "end": { - "line": 570, + "line": 575, "column": 19 }, "identifierName": "innerTheme" @@ -37219,43 +37717,43 @@ }, "right": { "type": "CallExpression", - "start": 18783, - "end": 18823, + "start": 19057, + "end": 19097, "loc": { "start": { - "line": 570, + "line": 575, "column": 22 }, "end": { - "line": 570, + "line": 575, "column": 62 } }, "callee": { "type": "MemberExpression", - "start": 18783, - "end": 18816, + "start": 19057, + "end": 19090, "loc": { "start": { - "line": 570, + "line": 575, "column": 22 }, "end": { - "line": 570, + "line": 575, "column": 55 } }, "object": { "type": "Identifier", - "start": 18783, - "end": 18795, + "start": 19057, + "end": 19069, "loc": { "start": { - "line": 570, + "line": 575, "column": 22 }, "end": { - "line": 570, + "line": 575, "column": 34 }, "identifierName": "DefaultTheme" @@ -37264,15 +37762,15 @@ }, "property": { "type": "Identifier", - "start": 18796, - "end": 18816, + "start": 19070, + "end": 19090, "loc": { "start": { - "line": 570, + "line": 575, "column": 35 }, "end": { - "line": 570, + "line": 575, "column": 55 }, "identifierName": "overrideDefaultTheme" @@ -37284,15 +37782,15 @@ "arguments": [ { "type": "Identifier", - "start": 18817, - "end": 18822, + "start": 19091, + "end": 19096, "loc": { "start": { - "line": 570, + "line": 575, "column": 56 }, "end": { - "line": 570, + "line": 575, "column": 61 }, "identifierName": "theme" @@ -37307,15 +37805,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Theme}\n ", - "start": 18712, - "end": 18760, + "start": 18986, + "end": 19034, "loc": { "start": { - "line": 566, + "line": 571, "column": 4 }, "end": { - "line": 569, + "line": 574, "column": 7 } } @@ -37324,43 +37822,43 @@ }, { "type": "ExpressionStatement", - "start": 18829, - "end": 18856, + "start": 19103, + "end": 19130, "loc": { "start": { - "line": 571, + "line": 576, "column": 4 }, "end": { - "line": 571, + "line": 576, "column": 31 } }, "expression": { "type": "CallExpression", - "start": 18829, - "end": 18855, + "start": 19103, + "end": 19129, "loc": { "start": { - "line": 571, + "line": 576, "column": 4 }, "end": { - "line": 571, + "line": 576, "column": 30 } }, "callee": { "type": "Identifier", - "start": 18829, - "end": 18837, + "start": 19103, + "end": 19111, "loc": { "start": { - "line": 571, + "line": 576, "column": 4 }, "end": { - "line": 571, + "line": 576, "column": 12 }, "identifierName": "setTheme" @@ -37370,59 +37868,59 @@ "arguments": [ { "type": "ThisExpression", - "start": 18838, - "end": 18842, + "start": 19112, + "end": 19116, "loc": { "start": { - "line": 571, + "line": 576, "column": 13 }, "end": { - "line": 571, + "line": 576, "column": 17 } } }, { "type": "MemberExpression", - "start": 18844, - "end": 18854, + "start": 19118, + "end": 19128, "loc": { "start": { - "line": 571, + "line": 576, "column": 19 }, "end": { - "line": 571, + "line": 576, "column": 29 } }, "object": { "type": "ThisExpression", - "start": 18844, - "end": 18848, + "start": 19118, + "end": 19122, "loc": { "start": { - "line": 571, + "line": 576, "column": 19 }, "end": { - "line": 571, + "line": 576, "column": 23 } } }, "property": { "type": "Identifier", - "start": 18849, - "end": 18854, + "start": 19123, + "end": 19128, "loc": { "start": { - "line": 571, + "line": 576, "column": 24 }, "end": { - "line": 571, + "line": 576, "column": 29 }, "identifierName": "model" @@ -37442,15 +37940,15 @@ { "type": "CommentBlock", "value": "*\n * Set the theme\n * @param {Theme} theme\n ", - "start": 18632, - "end": 18686, + "start": 18906, + "end": 18960, "loc": { "start": { - "line": 561, + "line": 566, "column": 2 }, "end": { - "line": 564, + "line": 569, "column": 5 } } @@ -37460,15 +37958,15 @@ { "type": "CommentBlock", "value": "*\n * Get the theme\n * @return {Theme}\n ", - "start": 18864, - "end": 18913, + "start": 19138, + "end": 19187, "loc": { "start": { - "line": 574, + "line": 579, "column": 2 }, "end": { - "line": 577, + "line": 582, "column": 5 } } @@ -37477,15 +37975,15 @@ }, { "type": "ClassMethod", - "start": 18916, - "end": 18961, + "start": 19190, + "end": 19235, "loc": { "start": { - "line": 578, + "line": 583, "column": 2 }, "end": { - "line": 580, + "line": 585, "column": 3 } }, @@ -37493,15 +37991,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 18920, - "end": 18925, + "start": 19194, + "end": 19199, "loc": { "start": { - "line": 578, + "line": 583, "column": 6 }, "end": { - "line": 578, + "line": 583, "column": 11 }, "identifierName": "theme" @@ -37516,73 +38014,73 @@ "params": [], "body": { "type": "BlockStatement", - "start": 18928, - "end": 18961, + "start": 19202, + "end": 19235, "loc": { "start": { - "line": 578, + "line": 583, "column": 14 }, "end": { - "line": 580, + "line": 585, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 18934, - "end": 18957, + "start": 19208, + "end": 19231, "loc": { "start": { - "line": 579, + "line": 584, "column": 4 }, "end": { - "line": 579, + "line": 584, "column": 27 } }, "argument": { "type": "MemberExpression", - "start": 18941, - "end": 18956, + "start": 19215, + "end": 19230, "loc": { "start": { - "line": 579, + "line": 584, "column": 11 }, "end": { - "line": 579, + "line": 584, "column": 26 } }, "object": { "type": "ThisExpression", - "start": 18941, - "end": 18945, + "start": 19215, + "end": 19219, "loc": { "start": { - "line": 579, + "line": 584, "column": 11 }, "end": { - "line": 579, + "line": 584, "column": 15 } } }, "property": { "type": "Identifier", - "start": 18946, - "end": 18956, + "start": 19220, + "end": 19230, "loc": { "start": { - "line": 579, + "line": 584, "column": 16 }, "end": { - "line": 579, + "line": 584, "column": 26 }, "identifierName": "innerTheme" @@ -37600,15 +38098,15 @@ { "type": "CommentBlock", "value": "*\n * Get the theme\n * @return {Theme}\n ", - "start": 18864, - "end": 18913, + "start": 19138, + "end": 19187, "loc": { "start": { - "line": 574, + "line": 579, "column": 2 }, "end": { - "line": 577, + "line": 582, "column": 5 } } @@ -37618,173 +38116,15 @@ { "type": "CommentBlock", "value": "*\n * Get behaviors\n * @return {Behaviors}\n ", - "start": 18965, - "end": 19018, - "loc": { - "start": { - "line": 582, - "column": 2 - }, - "end": { - "line": 585, - "column": 5 - } - } - } - ] - }, - { - "type": "ClassMethod", - "start": 19021, - "end": 19074, - "loc": { - "start": { - "line": 586, - "column": 2 - }, - "end": { - "line": 588, - "column": 3 - } - }, - "static": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19025, - "end": 19034, - "loc": { - "start": { - "line": 586, - "column": 6 - }, - "end": { - "line": 586, - "column": 15 - }, - "identifierName": "behaviors" - }, - "name": "behaviors" - }, - "kind": "get", - "id": null, - "generator": false, - "expression": false, - "async": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 19037, - "end": 19074, - "loc": { - "start": { - "line": 586, - "column": 18 - }, - "end": { - "line": 588, - "column": 3 - } - }, - "body": [ - { - "type": "ReturnStatement", - "start": 19043, - "end": 19070, - "loc": { - "start": { - "line": 587, - "column": 4 - }, - "end": { - "line": 587, - "column": 31 - } - }, - "argument": { - "type": "MemberExpression", - "start": 19050, - "end": 19069, - "loc": { - "start": { - "line": 587, - "column": 11 - }, - "end": { - "line": 587, - "column": 30 - } - }, - "object": { - "type": "ThisExpression", - "start": 19050, - "end": 19054, - "loc": { - "start": { - "line": 587, - "column": 11 - }, - "end": { - "line": 587, - "column": 15 - } - } - }, - "property": { - "type": "Identifier", - "start": 19055, - "end": 19069, - "loc": { - "start": { - "line": 587, - "column": 16 - }, - "end": { - "line": 587, - "column": 30 - }, - "identifierName": "innerBehaviors" - }, - "name": "innerBehaviors" - }, - "computed": false - } - } - ], - "directives": [], - "trailingComments": null - }, - "leadingComments": [ - { - "type": "CommentBlock", - "value": "*\n * Get behaviors\n * @return {Behaviors}\n ", - "start": 18965, - "end": 19018, + "start": 19239, + "end": 19292, "loc": { "start": { - "line": 582, + "line": 587, "column": 2 }, "end": { - "line": 585, - "column": 5 - } - } - } - ], - "trailingComments": [ - { - "type": "CommentBlock", - "value": "*\n * @private\n * @param {Behavior} behavior\n ", - "start": 19078, - "end": 19133, - "loc": { - "start": { "line": 590, - "column": 2 - }, - "end": { - "line": 593, "column": 5 } } @@ -37793,15 +38133,15 @@ }, { "type": "ClassMethod", - "start": 19136, - "end": 19721, + "start": 19295, + "end": 19348, "loc": { "start": { - "line": 594, + "line": 591, "column": 2 }, "end": { - "line": 612, + "line": 593, "column": 3 } }, @@ -37809,15 +38149,173 @@ "computed": false, "key": { "type": "Identifier", - "start": 19140, - "end": 19148, + "start": 19299, + "end": 19308, "loc": { "start": { - "line": 594, + "line": 591, "column": 6 }, "end": { - "line": 594, + "line": 591, + "column": 15 + }, + "identifierName": "behaviors" + }, + "name": "behaviors" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 19311, + "end": 19348, + "loc": { + "start": { + "line": 591, + "column": 18 + }, + "end": { + "line": 593, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 19317, + "end": 19344, + "loc": { + "start": { + "line": 592, + "column": 4 + }, + "end": { + "line": 592, + "column": 31 + } + }, + "argument": { + "type": "MemberExpression", + "start": 19324, + "end": 19343, + "loc": { + "start": { + "line": 592, + "column": 11 + }, + "end": { + "line": 592, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 19324, + "end": 19328, + "loc": { + "start": { + "line": 592, + "column": 11 + }, + "end": { + "line": 592, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "start": 19329, + "end": 19343, + "loc": { + "start": { + "line": 592, + "column": 16 + }, + "end": { + "line": 592, + "column": 30 + }, + "identifierName": "innerBehaviors" + }, + "name": "innerBehaviors" + }, + "computed": false + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Get behaviors\n * @return {Behaviors}\n ", + "start": 19239, + "end": 19292, + "loc": { + "start": { + "line": 587, + "column": 2 + }, + "end": { + "line": 590, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @private\n * @param {Behavior} behavior\n ", + "start": 19352, + "end": 19407, + "loc": { + "start": { + "line": 595, + "column": 2 + }, + "end": { + "line": 598, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 19410, + "end": 19995, + "loc": { + "start": { + "line": 599, + "column": 2 + }, + "end": { + "line": 617, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 19414, + "end": 19422, + "loc": { + "start": { + "line": 599, + "column": 6 + }, + "end": { + "line": 599, "column": 14 }, "identifierName": "behavior" @@ -37832,15 +38330,15 @@ "params": [ { "type": "Identifier", - "start": 19149, - "end": 19157, + "start": 19423, + "end": 19431, "loc": { "start": { - "line": 594, + "line": 599, "column": 15 }, "end": { - "line": 594, + "line": 599, "column": 23 }, "identifierName": "behavior" @@ -37850,44 +38348,44 @@ ], "body": { "type": "BlockStatement", - "start": 19159, - "end": 19721, + "start": 19433, + "end": 19995, "loc": { "start": { - "line": 594, + "line": 599, "column": 25 }, "end": { - "line": 612, + "line": 617, "column": 3 } }, "body": [ { "type": "IfStatement", - "start": 19165, - "end": 19717, + "start": 19439, + "end": 19991, "loc": { "start": { - "line": 595, + "line": 600, "column": 4 }, "end": { - "line": 611, + "line": 616, "column": 5 } }, "test": { "type": "Identifier", - "start": 19169, - "end": 19177, + "start": 19443, + "end": 19451, "loc": { "start": { - "line": 595, + "line": 600, "column": 8 }, "end": { - "line": 595, + "line": 600, "column": 16 }, "identifierName": "behavior" @@ -37896,73 +38394,73 @@ }, "consequent": { "type": "BlockStatement", - "start": 19179, - "end": 19717, + "start": 19453, + "end": 19991, "loc": { "start": { - "line": 595, + "line": 600, "column": 18 }, "end": { - "line": 611, + "line": 616, "column": 5 } }, "body": [ { "type": "IfStatement", - "start": 19187, - "end": 19347, + "start": 19461, + "end": 19621, "loc": { "start": { - "line": 596, + "line": 601, "column": 6 }, "end": { - "line": 598, + "line": 603, "column": 7 } }, "test": { "type": "MemberExpression", - "start": 19191, - "end": 19203, + "start": 19465, + "end": 19477, "loc": { "start": { - "line": 596, + "line": 601, "column": 10 }, "end": { - "line": 596, + "line": 601, "column": 22 } }, "object": { "type": "ThisExpression", - "start": 19191, - "end": 19195, + "start": 19465, + "end": 19469, "loc": { "start": { - "line": 596, + "line": 601, "column": 10 }, "end": { - "line": 596, + "line": 601, "column": 14 } } }, "property": { "type": "Identifier", - "start": 19196, - "end": 19203, + "start": 19470, + "end": 19477, "loc": { "start": { - "line": 596, + "line": 601, "column": 15 }, "end": { - "line": 596, + "line": 601, "column": 22 }, "identifierName": "grabber" @@ -37973,86 +38471,86 @@ }, "consequent": { "type": "BlockStatement", - "start": 19205, - "end": 19347, + "start": 19479, + "end": 19621, "loc": { "start": { - "line": 596, + "line": 601, "column": 24 }, "end": { - "line": 598, + "line": 603, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 19281, - "end": 19339, + "start": 19555, + "end": 19613, "loc": { "start": { - "line": 597, + "line": 602, "column": 8 }, "end": { - "line": 597, + "line": 602, "column": 66 } }, "expression": { "type": "CallExpression", - "start": 19281, - "end": 19338, + "start": 19555, + "end": 19612, "loc": { "start": { - "line": 597, + "line": 602, "column": 8 }, "end": { - "line": 597, + "line": 602, "column": 65 } }, "callee": { "type": "MemberExpression", - "start": 19281, - "end": 19300, + "start": 19555, + "end": 19574, "loc": { "start": { - "line": 597, + "line": 602, "column": 8 }, "end": { - "line": 597, + "line": 602, "column": 27 } }, "object": { "type": "MemberExpression", - "start": 19281, - "end": 19293, + "start": 19555, + "end": 19567, "loc": { "start": { - "line": 597, + "line": 602, "column": 8 }, "end": { - "line": 597, + "line": 602, "column": 20 } }, "object": { "type": "ThisExpression", - "start": 19281, - "end": 19285, + "start": 19555, + "end": 19559, "loc": { "start": { - "line": 597, + "line": 602, "column": 8 }, "end": { - "line": 597, + "line": 602, "column": 12 } }, @@ -38060,15 +38558,15 @@ }, "property": { "type": "Identifier", - "start": 19286, - "end": 19293, + "start": 19560, + "end": 19567, "loc": { "start": { - "line": 597, + "line": 602, "column": 13 }, "end": { - "line": 597, + "line": 602, "column": 20 }, "identifierName": "grabber" @@ -38080,15 +38578,15 @@ }, "property": { "type": "Identifier", - "start": 19294, - "end": 19300, + "start": 19568, + "end": 19574, "loc": { "start": { - "line": 597, + "line": 602, "column": 21 }, "end": { - "line": 597, + "line": 602, "column": 27 }, "identifierName": "detach" @@ -38101,44 +38599,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 19301, - "end": 19316, + "start": 19575, + "end": 19590, "loc": { "start": { - "line": 597, + "line": 602, "column": 28 }, "end": { - "line": 597, + "line": 602, "column": 43 } }, "object": { "type": "ThisExpression", - "start": 19301, - "end": 19305, + "start": 19575, + "end": 19579, "loc": { "start": { - "line": 597, + "line": 602, "column": 28 }, "end": { - "line": 597, + "line": 602, "column": 32 } } }, "property": { "type": "Identifier", - "start": 19306, - "end": 19316, + "start": 19580, + "end": 19590, "loc": { "start": { - "line": 597, + "line": 602, "column": 33 }, "end": { - "line": 597, + "line": 602, "column": 43 }, "identifierName": "domElement" @@ -38149,44 +38647,44 @@ }, { "type": "MemberExpression", - "start": 19318, - "end": 19337, + "start": 19592, + "end": 19611, "loc": { "start": { - "line": 597, + "line": 602, "column": 45 }, "end": { - "line": 597, + "line": 602, "column": 64 } }, "object": { "type": "ThisExpression", - "start": 19318, - "end": 19322, + "start": 19592, + "end": 19596, "loc": { "start": { - "line": 597, + "line": 602, "column": 45 }, "end": { - "line": 597, + "line": 602, "column": 49 } } }, "property": { "type": "Identifier", - "start": 19323, - "end": 19337, + "start": 19597, + "end": 19611, "loc": { "start": { - "line": 597, + "line": 602, "column": 50 }, "end": { - "line": 597, + "line": 602, "column": 64 }, "identifierName": "grabberContext" @@ -38202,15 +38700,15 @@ { "type": "CommentLine", "value": " Remove event handlers to avoid multiplication (detach grabber)", - "start": 19207, - "end": 19272, + "start": 19481, + "end": 19546, "loc": { "start": { - "line": 596, + "line": 601, "column": 26 }, "end": { - "line": 596, + "line": 601, "column": 91 } } @@ -38226,15 +38724,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Behavior}\n ", - "start": 19354, - "end": 19411, + "start": 19628, + "end": 19685, "loc": { "start": { - "line": 599, + "line": 604, "column": 6 }, "end": { - "line": 602, + "line": 607, "column": 9 } } @@ -38243,58 +38741,58 @@ }, { "type": "ExpressionStatement", - "start": 19418, - "end": 19448, + "start": 19692, + "end": 19722, "loc": { "start": { - "line": 603, + "line": 608, "column": 6 }, "end": { - "line": 603, + "line": 608, "column": 36 } }, "expression": { "type": "AssignmentExpression", - "start": 19418, - "end": 19447, + "start": 19692, + "end": 19721, "loc": { "start": { - "line": 603, + "line": 608, "column": 6 }, "end": { - "line": 603, + "line": 608, "column": 35 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 19418, - "end": 19436, + "start": 19692, + "end": 19710, "loc": { "start": { - "line": 603, + "line": 608, "column": 6 }, "end": { - "line": 603, + "line": 608, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 19418, - "end": 19422, + "start": 19692, + "end": 19696, "loc": { "start": { - "line": 603, + "line": 608, "column": 6 }, "end": { - "line": 603, + "line": 608, "column": 10 } }, @@ -38302,15 +38800,15 @@ }, "property": { "type": "Identifier", - "start": 19423, - "end": 19436, + "start": 19697, + "end": 19710, "loc": { "start": { - "line": 603, + "line": 608, "column": 11 }, "end": { - "line": 603, + "line": 608, "column": 24 }, "identifierName": "innerBehavior" @@ -38322,15 +38820,15 @@ }, "right": { "type": "Identifier", - "start": 19439, - "end": 19447, + "start": 19713, + "end": 19721, "loc": { "start": { - "line": 603, + "line": 608, "column": 27 }, "end": { - "line": 603, + "line": 608, "column": 35 }, "identifierName": "behavior" @@ -38343,15 +38841,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Behavior}\n ", - "start": 19354, - "end": 19411, + "start": 19628, + "end": 19685, "loc": { "start": { - "line": 599, + "line": 604, "column": 6 }, "end": { - "line": 602, + "line": 607, "column": 9 } } @@ -38360,73 +38858,73 @@ }, { "type": "ExpressionStatement", - "start": 19455, - "end": 19499, + "start": 19729, + "end": 19773, "loc": { "start": { - "line": 604, + "line": 609, "column": 6 }, "end": { - "line": 604, + "line": 609, "column": 50 } }, "expression": { "type": "AssignmentExpression", - "start": 19455, - "end": 19498, + "start": 19729, + "end": 19772, "loc": { "start": { - "line": 604, + "line": 609, "column": 6 }, "end": { - "line": 604, + "line": 609, "column": 49 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 19455, - "end": 19468, + "start": 19729, + "end": 19742, "loc": { "start": { - "line": 604, + "line": 609, "column": 6 }, "end": { - "line": 604, + "line": 609, "column": 19 } }, "object": { "type": "ThisExpression", - "start": 19455, - "end": 19459, + "start": 19729, + "end": 19733, "loc": { "start": { - "line": 604, + "line": 609, "column": 6 }, "end": { - "line": 604, + "line": 609, "column": 10 } } }, "property": { "type": "Identifier", - "start": 19460, - "end": 19468, + "start": 19734, + "end": 19742, "loc": { "start": { - "line": 604, + "line": 609, "column": 11 }, "end": { - "line": 604, + "line": 609, "column": 19 }, "identifierName": "renderer" @@ -38437,58 +38935,58 @@ }, "right": { "type": "MemberExpression", - "start": 19471, - "end": 19498, + "start": 19745, + "end": 19772, "loc": { "start": { - "line": 604, + "line": 609, "column": 22 }, "end": { - "line": 604, + "line": 609, "column": 49 } }, "object": { "type": "MemberExpression", - "start": 19471, - "end": 19489, + "start": 19745, + "end": 19763, "loc": { "start": { - "line": 604, + "line": 609, "column": 22 }, "end": { - "line": 604, + "line": 609, "column": 40 } }, "object": { "type": "ThisExpression", - "start": 19471, - "end": 19475, + "start": 19745, + "end": 19749, "loc": { "start": { - "line": 604, + "line": 609, "column": 22 }, "end": { - "line": 604, + "line": 609, "column": 26 } } }, "property": { "type": "Identifier", - "start": 19476, - "end": 19489, + "start": 19750, + "end": 19763, "loc": { "start": { - "line": 604, + "line": 609, "column": 27 }, "end": { - "line": 604, + "line": 609, "column": 40 }, "identifierName": "innerBehavior" @@ -38499,15 +38997,15 @@ }, "property": { "type": "Identifier", - "start": 19490, - "end": 19498, + "start": 19764, + "end": 19772, "loc": { "start": { - "line": 604, + "line": 609, "column": 41 }, "end": { - "line": 604, + "line": 609, "column": 49 }, "identifierName": "renderer" @@ -38520,73 +39018,73 @@ }, { "type": "ExpressionStatement", - "start": 19506, - "end": 19554, + "start": 19780, + "end": 19828, "loc": { "start": { - "line": 605, + "line": 610, "column": 6 }, "end": { - "line": 605, + "line": 610, "column": 54 } }, "expression": { "type": "AssignmentExpression", - "start": 19506, - "end": 19553, + "start": 19780, + "end": 19827, "loc": { "start": { - "line": 605, + "line": 610, "column": 6 }, "end": { - "line": 605, + "line": 610, "column": 53 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 19506, - "end": 19521, + "start": 19780, + "end": 19795, "loc": { "start": { - "line": 605, + "line": 610, "column": 6 }, "end": { - "line": 605, + "line": 610, "column": 21 } }, "object": { "type": "ThisExpression", - "start": 19506, - "end": 19510, + "start": 19780, + "end": 19784, "loc": { "start": { - "line": 605, + "line": 610, "column": 6 }, "end": { - "line": 605, + "line": 610, "column": 10 } } }, "property": { "type": "Identifier", - "start": 19511, - "end": 19521, + "start": 19785, + "end": 19795, "loc": { "start": { - "line": 605, + "line": 610, "column": 11 }, "end": { - "line": 605, + "line": 610, "column": 21 }, "identifierName": "recognizer" @@ -38597,58 +39095,58 @@ }, "right": { "type": "MemberExpression", - "start": 19524, - "end": 19553, + "start": 19798, + "end": 19827, "loc": { "start": { - "line": 605, + "line": 610, "column": 24 }, "end": { - "line": 605, + "line": 610, "column": 53 } }, "object": { "type": "MemberExpression", - "start": 19524, - "end": 19542, + "start": 19798, + "end": 19816, "loc": { "start": { - "line": 605, + "line": 610, "column": 24 }, "end": { - "line": 605, + "line": 610, "column": 42 } }, "object": { "type": "ThisExpression", - "start": 19524, - "end": 19528, + "start": 19798, + "end": 19802, "loc": { "start": { - "line": 605, + "line": 610, "column": 24 }, "end": { - "line": 605, + "line": 610, "column": 28 } } }, "property": { "type": "Identifier", - "start": 19529, - "end": 19542, + "start": 19803, + "end": 19816, "loc": { "start": { - "line": 605, + "line": 610, "column": 29 }, "end": { - "line": 605, + "line": 610, "column": 42 }, "identifierName": "innerBehavior" @@ -38659,15 +39157,15 @@ }, "property": { "type": "Identifier", - "start": 19543, - "end": 19553, + "start": 19817, + "end": 19827, "loc": { "start": { - "line": 605, + "line": 610, "column": 43 }, "end": { - "line": 605, + "line": 610, "column": 53 }, "identifierName": "recognizer" @@ -38681,15 +39179,15 @@ { "type": "CommentBlock", "value": "*\n * Current grabber context\n * @type {GrabberContext}\n ", - "start": 19561, - "end": 19639, + "start": 19835, + "end": 19913, "loc": { "start": { - "line": 606, + "line": 611, "column": 6 }, "end": { - "line": 609, + "line": 614, "column": 9 } } @@ -38698,58 +39196,58 @@ }, { "type": "ExpressionStatement", - "start": 19646, - "end": 19711, + "start": 19920, + "end": 19985, "loc": { "start": { - "line": 610, + "line": 615, "column": 6 }, "end": { - "line": 610, + "line": 615, "column": 71 } }, "expression": { "type": "AssignmentExpression", - "start": 19646, - "end": 19710, + "start": 19920, + "end": 19984, "loc": { "start": { - "line": 610, + "line": 615, "column": 6 }, "end": { - "line": 610, + "line": 615, "column": 70 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 19646, - "end": 19665, + "start": 19920, + "end": 19939, "loc": { "start": { - "line": 610, + "line": 615, "column": 6 }, "end": { - "line": 610, + "line": 615, "column": 25 } }, "object": { "type": "ThisExpression", - "start": 19646, - "end": 19650, + "start": 19920, + "end": 19924, "loc": { "start": { - "line": 610, + "line": 615, "column": 6 }, "end": { - "line": 610, + "line": 615, "column": 10 } }, @@ -38757,15 +39255,15 @@ }, "property": { "type": "Identifier", - "start": 19651, - "end": 19665, + "start": 19925, + "end": 19939, "loc": { "start": { - "line": 610, + "line": 615, "column": 11 }, "end": { - "line": 610, + "line": 615, "column": 25 }, "identifierName": "grabberContext" @@ -38777,72 +39275,72 @@ }, "right": { "type": "CallExpression", - "start": 19668, - "end": 19710, + "start": 19942, + "end": 19984, "loc": { "start": { - "line": 610, + "line": 615, "column": 28 }, "end": { - "line": 610, + "line": 615, "column": 70 } }, "callee": { "type": "MemberExpression", - "start": 19668, - "end": 19687, + "start": 19942, + "end": 19961, "loc": { "start": { - "line": 610, + "line": 615, "column": 28 }, "end": { - "line": 610, + "line": 615, "column": 47 } }, "object": { "type": "MemberExpression", - "start": 19668, - "end": 19680, + "start": 19942, + "end": 19954, "loc": { "start": { - "line": 610, + "line": 615, "column": 28 }, "end": { - "line": 610, + "line": 615, "column": 40 } }, "object": { "type": "ThisExpression", - "start": 19668, - "end": 19672, + "start": 19942, + "end": 19946, "loc": { "start": { - "line": 610, + "line": 615, "column": 28 }, "end": { - "line": 610, + "line": 615, "column": 32 } } }, "property": { "type": "Identifier", - "start": 19673, - "end": 19680, + "start": 19947, + "end": 19954, "loc": { "start": { - "line": 610, + "line": 615, "column": 33 }, "end": { - "line": 610, + "line": 615, "column": 40 }, "identifierName": "grabber" @@ -38853,15 +39351,15 @@ }, "property": { "type": "Identifier", - "start": 19681, - "end": 19687, + "start": 19955, + "end": 19961, "loc": { "start": { - "line": 610, + "line": 615, "column": 41 }, "end": { - "line": 610, + "line": 615, "column": 47 }, "identifierName": "attach" @@ -38873,44 +39371,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 19688, - "end": 19703, + "start": 19962, + "end": 19977, "loc": { "start": { - "line": 610, + "line": 615, "column": 48 }, "end": { - "line": 610, + "line": 615, "column": 63 } }, "object": { "type": "ThisExpression", - "start": 19688, - "end": 19692, + "start": 19962, + "end": 19966, "loc": { "start": { - "line": 610, + "line": 615, "column": 48 }, "end": { - "line": 610, + "line": 615, "column": 52 } } }, "property": { "type": "Identifier", - "start": 19693, - "end": 19703, + "start": 19967, + "end": 19977, "loc": { "start": { - "line": 610, + "line": 615, "column": 53 }, "end": { - "line": 610, + "line": 615, "column": 63 }, "identifierName": "domElement" @@ -38921,15 +39419,15 @@ }, { "type": "ThisExpression", - "start": 19705, - "end": 19709, + "start": 19979, + "end": 19983, "loc": { "start": { - "line": 610, + "line": 615, "column": 65 }, "end": { - "line": 610, + "line": 615, "column": 69 } } @@ -38942,15 +39440,15 @@ { "type": "CommentBlock", "value": "*\n * Current grabber context\n * @type {GrabberContext}\n ", - "start": 19561, - "end": 19639, + "start": 19835, + "end": 19913, "loc": { "start": { - "line": 606, + "line": 611, "column": 6 }, "end": { - "line": 609, + "line": 614, "column": 9 } } @@ -38970,15 +39468,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @param {Behavior} behavior\n ", - "start": 19078, - "end": 19133, + "start": 19352, + "end": 19407, "loc": { "start": { - "line": 590, + "line": 595, "column": 2 }, "end": { - "line": 593, + "line": 598, "column": 5 } } @@ -38988,15 +39486,15 @@ { "type": "CommentBlock", "value": "*\n * Get current behavior\n * @return {Behavior}\n ", - "start": 19725, - "end": 19784, + "start": 19999, + "end": 20058, "loc": { "start": { - "line": 614, + "line": 619, "column": 2 }, "end": { - "line": 617, + "line": 622, "column": 5 } } @@ -39005,15 +39503,15 @@ }, { "type": "ClassMethod", - "start": 19787, - "end": 19838, + "start": 20061, + "end": 20112, "loc": { "start": { - "line": 618, + "line": 623, "column": 2 }, "end": { - "line": 620, + "line": 625, "column": 3 } }, @@ -39021,15 +39519,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 19791, - "end": 19799, + "start": 20065, + "end": 20073, "loc": { "start": { - "line": 618, + "line": 623, "column": 6 }, "end": { - "line": 618, + "line": 623, "column": 14 }, "identifierName": "behavior" @@ -39044,73 +39542,73 @@ "params": [], "body": { "type": "BlockStatement", - "start": 19802, - "end": 19838, + "start": 20076, + "end": 20112, "loc": { "start": { - "line": 618, + "line": 623, "column": 17 }, "end": { - "line": 620, + "line": 625, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 19808, - "end": 19834, + "start": 20082, + "end": 20108, "loc": { "start": { - "line": 619, + "line": 624, "column": 4 }, "end": { - "line": 619, + "line": 624, "column": 30 } }, "argument": { "type": "MemberExpression", - "start": 19815, - "end": 19833, + "start": 20089, + "end": 20107, "loc": { "start": { - "line": 619, + "line": 624, "column": 11 }, "end": { - "line": 619, + "line": 624, "column": 29 } }, "object": { "type": "ThisExpression", - "start": 19815, - "end": 19819, + "start": 20089, + "end": 20093, "loc": { "start": { - "line": 619, + "line": 624, "column": 11 }, "end": { - "line": 619, + "line": 624, "column": 15 } } }, "property": { "type": "Identifier", - "start": 19820, - "end": 19833, + "start": 20094, + "end": 20107, "loc": { "start": { - "line": 619, + "line": 624, "column": 16 }, "end": { - "line": 619, + "line": 624, "column": 29 }, "identifierName": "innerBehavior" @@ -39128,15 +39626,15 @@ { "type": "CommentBlock", "value": "*\n * Get current behavior\n * @return {Behavior}\n ", - "start": 19725, - "end": 19784, + "start": 19999, + "end": 20058, "loc": { "start": { - "line": 614, + "line": 619, "column": 2 }, "end": { - "line": 617, + "line": 622, "column": 5 } } @@ -39146,15 +39644,15 @@ { "type": "CommentBlock", "value": "*\n * Set the current recognizer\n * @private\n * @param {Recognizer} recognizer\n ", - "start": 19842, - "end": 19933, + "start": 20116, + "end": 20207, "loc": { "start": { - "line": 622, + "line": 627, "column": 2 }, "end": { - "line": 626, + "line": 631, "column": 5 } } @@ -39163,15 +39661,15 @@ }, { "type": "ClassMethod", - "start": 19936, - "end": 21598, + "start": 20210, + "end": 21872, "loc": { "start": { - "line": 627, + "line": 632, "column": 2 }, "end": { - "line": 675, + "line": 680, "column": 3 } }, @@ -39179,15 +39677,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 19940, - "end": 19950, + "start": 20214, + "end": 20224, "loc": { "start": { - "line": 627, + "line": 632, "column": 6 }, "end": { - "line": 627, + "line": 632, "column": 16 }, "identifierName": "recognizer" @@ -39202,15 +39700,15 @@ "params": [ { "type": "Identifier", - "start": 19951, - "end": 19961, + "start": 20225, + "end": 20235, "loc": { "start": { - "line": 627, + "line": 632, "column": 17 }, "end": { - "line": 627, + "line": 632, "column": 27 }, "identifierName": "recognizer" @@ -39220,88 +39718,88 @@ ], "body": { "type": "BlockStatement", - "start": 19963, - "end": 21598, + "start": 20237, + "end": 21872, "loc": { "start": { - "line": 627, + "line": 632, "column": 29 }, "end": { - "line": 675, + "line": 680, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 19969, - "end": 20050, + "start": 20243, + "end": 20324, "loc": { "start": { - "line": 628, + "line": 633, "column": 4 }, "end": { - "line": 628, + "line": 633, "column": 85 } }, "expression": { "type": "AssignmentExpression", - "start": 19969, - "end": 20049, + "start": 20243, + "end": 20323, "loc": { "start": { - "line": 628, + "line": 633, "column": 4 }, "end": { - "line": 628, + "line": 633, "column": 84 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 19969, - "end": 19989, + "start": 20243, + "end": 20263, "loc": { "start": { - "line": 628, + "line": 633, "column": 4 }, "end": { - "line": 628, + "line": 633, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 19969, - "end": 19973, + "start": 20243, + "end": 20247, "loc": { "start": { - "line": 628, + "line": 633, "column": 4 }, "end": { - "line": 628, + "line": 633, "column": 8 } } }, "property": { "type": "Identifier", - "start": 19974, - "end": 19989, + "start": 20248, + "end": 20263, "loc": { "start": { - "line": 628, + "line": 633, "column": 9 }, "end": { - "line": 628, + "line": 633, "column": 24 }, "identifierName": "undoRedoContext" @@ -39312,43 +39810,43 @@ }, "right": { "type": "CallExpression", - "start": 19992, - "end": 20049, + "start": 20266, + "end": 20323, "loc": { "start": { - "line": 628, + "line": 633, "column": 27 }, "end": { - "line": 628, + "line": 633, "column": 84 } }, "callee": { "type": "MemberExpression", - "start": 19992, - "end": 20029, + "start": 20266, + "end": 20303, "loc": { "start": { - "line": 628, + "line": 633, "column": 27 }, "end": { - "line": 628, + "line": 633, "column": 64 } }, "object": { "type": "Identifier", - "start": 19992, - "end": 20007, + "start": 20266, + "end": 20281, "loc": { "start": { - "line": 628, + "line": 633, "column": 27 }, "end": { - "line": 628, + "line": 633, "column": 42 }, "identifierName": "UndoRedoContext" @@ -39357,15 +39855,15 @@ }, "property": { "type": "Identifier", - "start": 20008, - "end": 20029, + "start": 20282, + "end": 20303, "loc": { "start": { - "line": 628, + "line": 633, "column": 43 }, "end": { - "line": 628, + "line": 633, "column": 64 }, "identifierName": "createUndoRedoContext" @@ -39377,44 +39875,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 20030, - "end": 20048, + "start": 20304, + "end": 20322, "loc": { "start": { - "line": 628, + "line": 633, "column": 65 }, "end": { - "line": 628, + "line": 633, "column": 83 } }, "object": { "type": "ThisExpression", - "start": 20030, - "end": 20034, + "start": 20304, + "end": 20308, "loc": { "start": { - "line": 628, + "line": 633, "column": 65 }, "end": { - "line": 628, + "line": 633, "column": 69 } } }, "property": { "type": "Identifier", - "start": 20035, - "end": 20048, + "start": 20309, + "end": 20322, "loc": { "start": { - "line": 628, + "line": 633, "column": 70 }, "end": { - "line": 628, + "line": 633, "column": 83 }, "identifierName": "configuration" @@ -39429,73 +39927,73 @@ }, { "type": "ExpressionStatement", - "start": 20055, - "end": 20094, + "start": 20329, + "end": 20368, "loc": { "start": { - "line": 629, + "line": 634, "column": 4 }, "end": { - "line": 629, + "line": 634, "column": 43 } }, "expression": { "type": "AssignmentExpression", - "start": 20055, - "end": 20093, + "start": 20329, + "end": 20367, "loc": { "start": { - "line": 629, + "line": 634, "column": 4 }, "end": { - "line": 629, + "line": 634, "column": 42 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 20055, - "end": 20075, + "start": 20329, + "end": 20349, "loc": { "start": { - "line": 629, + "line": 634, "column": 4 }, "end": { - "line": 629, + "line": 634, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 20055, - "end": 20059, + "start": 20329, + "end": 20333, "loc": { "start": { - "line": 629, + "line": 634, "column": 4 }, "end": { - "line": 629, + "line": 634, "column": 8 } } }, "property": { "type": "Identifier", - "start": 20060, - "end": 20075, + "start": 20334, + "end": 20349, "loc": { "start": { - "line": 629, + "line": 634, "column": 9 }, "end": { - "line": 629, + "line": 634, "column": 24 }, "identifierName": "undoRedoManager" @@ -39506,15 +40004,15 @@ }, "right": { "type": "Identifier", - "start": 20078, - "end": 20093, + "start": 20352, + "end": 20367, "loc": { "start": { - "line": 629, + "line": 634, "column": 27 }, "end": { - "line": 629, + "line": 634, "column": 42 }, "identifierName": "UndoRedoManager" @@ -39525,44 +40023,44 @@ }, { "type": "VariableDeclaration", - "start": 20100, - "end": 21023, + "start": 20374, + "end": 21297, "loc": { "start": { - "line": 631, + "line": 636, "column": 4 }, "end": { - "line": 655, + "line": 660, "column": 6 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 20106, - "end": 21022, + "start": 20380, + "end": 21296, "loc": { "start": { - "line": 631, + "line": 636, "column": 10 }, "end": { - "line": 655, + "line": 660, "column": 5 } }, "id": { "type": "Identifier", - "start": 20106, - "end": 20116, + "start": 20380, + "end": 20390, "loc": { "start": { - "line": 631, + "line": 636, "column": 10 }, "end": { - "line": 631, + "line": 636, "column": 20 }, "identifierName": "initialize" @@ -39571,15 +40069,15 @@ }, "init": { "type": "ArrowFunctionExpression", - "start": 20119, - "end": 21022, + "start": 20393, + "end": 21296, "loc": { "start": { - "line": 631, + "line": 636, "column": 23 }, "end": { - "line": 655, + "line": 660, "column": 5 } }, @@ -39590,15 +40088,15 @@ "params": [ { "type": "Identifier", - "start": 20120, - "end": 20125, + "start": 20394, + "end": 20399, "loc": { "start": { - "line": 631, + "line": 636, "column": 24 }, "end": { - "line": 631, + "line": 636, "column": 29 }, "identifierName": "model" @@ -39608,73 +40106,73 @@ ], "body": { "type": "BlockStatement", - "start": 20130, - "end": 21022, + "start": 20404, + "end": 21296, "loc": { "start": { - "line": 631, + "line": 636, "column": 34 }, "end": { - "line": 655, + "line": 660, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 20204, - "end": 20238, + "start": 20478, + "end": 20512, "loc": { "start": { - "line": 636, + "line": 641, "column": 6 }, "end": { - "line": 636, + "line": 641, "column": 40 } }, "expression": { "type": "AssignmentExpression", - "start": 20204, - "end": 20237, + "start": 20478, + "end": 20511, "loc": { "start": { - "line": 636, + "line": 641, "column": 6 }, "end": { - "line": 636, + "line": 641, "column": 39 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 20204, - "end": 20224, + "start": 20478, + "end": 20498, "loc": { "start": { - "line": 636, + "line": 641, "column": 6 }, "end": { - "line": 636, + "line": 641, "column": 26 } }, "object": { "type": "ThisExpression", - "start": 20204, - "end": 20208, + "start": 20478, + "end": 20482, "loc": { "start": { - "line": 636, + "line": 641, "column": 6 }, "end": { - "line": 636, + "line": 641, "column": 10 } }, @@ -39682,15 +40180,15 @@ }, "property": { "type": "Identifier", - "start": 20209, - "end": 20224, + "start": 20483, + "end": 20498, "loc": { "start": { - "line": 636, + "line": 641, "column": 11 }, "end": { - "line": 636, + "line": 641, "column": 26 }, "identifierName": "innerRecognizer" @@ -39702,15 +40200,15 @@ }, "right": { "type": "Identifier", - "start": 20227, - "end": 20237, + "start": 20501, + "end": 20511, "loc": { "start": { - "line": 636, + "line": 641, "column": 29 }, "end": { - "line": 636, + "line": 641, "column": 39 }, "identifierName": "recognizer" @@ -39723,15 +40221,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Recognizer}\n ", - "start": 20138, - "end": 20197, + "start": 20412, + "end": 20471, "loc": { "start": { - "line": 632, + "line": 637, "column": 6 }, "end": { - "line": 635, + "line": 640, "column": 9 } } @@ -39740,58 +40238,58 @@ }, { "type": "IfStatement", - "start": 20245, - "end": 21016, + "start": 20519, + "end": 21290, "loc": { "start": { - "line": 637, + "line": 642, "column": 6 }, "end": { - "line": 654, + "line": 659, "column": 7 } }, "test": { "type": "MemberExpression", - "start": 20249, - "end": 20269, + "start": 20523, + "end": 20543, "loc": { "start": { - "line": 637, + "line": 642, "column": 10 }, "end": { - "line": 637, + "line": 642, "column": 30 } }, "object": { "type": "ThisExpression", - "start": 20249, - "end": 20253, + "start": 20523, + "end": 20527, "loc": { "start": { - "line": 637, + "line": 642, "column": 10 }, "end": { - "line": 637, + "line": 642, "column": 14 } } }, "property": { "type": "Identifier", - "start": 20254, - "end": 20269, + "start": 20528, + "end": 20543, "loc": { "start": { - "line": 637, + "line": 642, "column": 15 }, "end": { - "line": 637, + "line": 642, "column": 30 }, "identifierName": "innerRecognizer" @@ -39802,73 +40300,73 @@ }, "consequent": { "type": "BlockStatement", - "start": 20271, - "end": 21016, + "start": 20545, + "end": 21290, "loc": { "start": { - "line": 637, + "line": 642, "column": 32 }, "end": { - "line": 654, + "line": 659, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 20381, - "end": 20459, + "start": 20655, + "end": 20733, "loc": { "start": { - "line": 642, + "line": 647, "column": 8 }, "end": { - "line": 642, + "line": 647, "column": 86 } }, "expression": { "type": "AssignmentExpression", - "start": 20381, - "end": 20458, + "start": 20655, + "end": 20732, "loc": { "start": { - "line": 642, + "line": 647, "column": 8 }, "end": { - "line": 642, + "line": 647, "column": 85 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 20381, - "end": 20403, + "start": 20655, + "end": 20677, "loc": { "start": { - "line": 642, + "line": 647, "column": 8 }, "end": { - "line": 642, + "line": 647, "column": 30 } }, "object": { "type": "ThisExpression", - "start": 20381, - "end": 20385, + "start": 20655, + "end": 20659, "loc": { "start": { - "line": 642, + "line": 647, "column": 8 }, "end": { - "line": 642, + "line": 647, "column": 12 } }, @@ -39876,15 +40374,15 @@ }, "property": { "type": "Identifier", - "start": 20386, - "end": 20403, + "start": 20660, + "end": 20677, "loc": { "start": { - "line": 642, + "line": 647, "column": 13 }, "end": { - "line": 642, + "line": 647, "column": 30 }, "identifierName": "recognizerContext" @@ -39896,43 +40394,43 @@ }, "right": { "type": "CallExpression", - "start": 20406, - "end": 20458, + "start": 20680, + "end": 20732, "loc": { "start": { - "line": 642, + "line": 647, "column": 33 }, "end": { - "line": 642, + "line": 647, "column": 85 } }, "callee": { "type": "MemberExpression", - "start": 20406, - "end": 20452, + "start": 20680, + "end": 20726, "loc": { "start": { - "line": 642, + "line": 647, "column": 33 }, "end": { - "line": 642, + "line": 647, "column": 79 } }, "object": { "type": "Identifier", - "start": 20406, - "end": 20423, + "start": 20680, + "end": 20697, "loc": { "start": { - "line": 642, + "line": 647, "column": 33 }, "end": { - "line": 642, + "line": 647, "column": 50 }, "identifierName": "RecognizerContext" @@ -39941,15 +40439,15 @@ }, "property": { "type": "Identifier", - "start": 20424, - "end": 20452, + "start": 20698, + "end": 20726, "loc": { "start": { - "line": 642, + "line": 647, "column": 51 }, "end": { - "line": 642, + "line": 647, "column": 79 }, "identifierName": "createEmptyRecognizerContext" @@ -39961,15 +40459,15 @@ "arguments": [ { "type": "ThisExpression", - "start": 20453, - "end": 20457, + "start": 20727, + "end": 20731, "loc": { "start": { - "line": 642, + "line": 647, "column": 80 }, "end": { - "line": 642, + "line": 647, "column": 84 } } @@ -39982,15 +40480,15 @@ { "type": "CommentBlock", "value": "*\n * Current recognition context\n * @type {RecognizerContext}\n ", - "start": 20281, - "end": 20372, + "start": 20555, + "end": 20646, "loc": { "start": { - "line": 638, + "line": 643, "column": 8 }, "end": { - "line": 641, + "line": 646, "column": 11 } } @@ -40000,15 +40498,15 @@ { "type": "CommentLine", "value": " FIXME: merge undo/redo manager with default recognizer", - "start": 20468, - "end": 20525, + "start": 20742, + "end": 20799, "loc": { "start": { - "line": 643, + "line": 648, "column": 8 }, "end": { - "line": 643, + "line": 648, "column": 65 } } @@ -40017,85 +40515,85 @@ }, { "type": "IfStatement", - "start": 20534, - "end": 20747, + "start": 20808, + "end": 21021, "loc": { "start": { - "line": 644, + "line": 649, "column": 8 }, "end": { - "line": 647, + "line": 652, "column": 9 } }, "test": { "type": "LogicalExpression", - "start": 20538, - "end": 20622, + "start": 20812, + "end": 20896, "loc": { "start": { - "line": 644, + "line": 649, "column": 12 }, "end": { - "line": 644, + "line": 649, "column": 96 } }, "left": { "type": "LogicalExpression", - "start": 20538, - "end": 20592, + "start": 20812, + "end": 20866, "loc": { "start": { - "line": 644, + "line": 649, "column": 12 }, "end": { - "line": 644, + "line": 649, "column": 66 } }, "left": { "type": "MemberExpression", - "start": 20538, - "end": 20563, + "start": 20812, + "end": 20837, "loc": { "start": { - "line": 644, + "line": 649, "column": 12 }, "end": { - "line": 644, + "line": 649, "column": 37 } }, "object": { "type": "MemberExpression", - "start": 20538, - "end": 20558, + "start": 20812, + "end": 20832, "loc": { "start": { - "line": 644, + "line": 649, "column": 12 }, "end": { - "line": 644, + "line": 649, "column": 32 } }, "object": { "type": "ThisExpression", - "start": 20538, - "end": 20542, + "start": 20812, + "end": 20816, "loc": { "start": { - "line": 644, + "line": 649, "column": 12 }, "end": { - "line": 644, + "line": 649, "column": 16 } }, @@ -40103,15 +40601,15 @@ }, "property": { "type": "Identifier", - "start": 20543, - "end": 20558, + "start": 20817, + "end": 20832, "loc": { "start": { - "line": 644, + "line": 649, "column": 17 }, "end": { - "line": 644, + "line": 649, "column": 32 }, "identifierName": "innerRecognizer" @@ -40123,15 +40621,15 @@ }, "property": { "type": "Identifier", - "start": 20559, - "end": 20563, + "start": 20833, + "end": 20837, "loc": { "start": { - "line": 644, + "line": 649, "column": 33 }, "end": { - "line": 644, + "line": 649, "column": 37 }, "identifierName": "undo" @@ -40144,58 +40642,58 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 20567, - "end": 20592, + "start": 20841, + "end": 20866, "loc": { "start": { - "line": 644, + "line": 649, "column": 41 }, "end": { - "line": 644, + "line": 649, "column": 66 } }, "object": { "type": "MemberExpression", - "start": 20567, - "end": 20587, + "start": 20841, + "end": 20861, "loc": { "start": { - "line": 644, + "line": 649, "column": 41 }, "end": { - "line": 644, + "line": 649, "column": 61 } }, "object": { "type": "ThisExpression", - "start": 20567, - "end": 20571, + "start": 20841, + "end": 20845, "loc": { "start": { - "line": 644, + "line": 649, "column": 41 }, "end": { - "line": 644, + "line": 649, "column": 45 } } }, "property": { "type": "Identifier", - "start": 20572, - "end": 20587, + "start": 20846, + "end": 20861, "loc": { "start": { - "line": 644, + "line": 649, "column": 46 }, "end": { - "line": 644, + "line": 649, "column": 61 }, "identifierName": "innerRecognizer" @@ -40206,15 +40704,15 @@ }, "property": { "type": "Identifier", - "start": 20588, - "end": 20592, + "start": 20862, + "end": 20866, "loc": { "start": { - "line": 644, + "line": 649, "column": 62 }, "end": { - "line": 644, + "line": 649, "column": 66 }, "identifierName": "redo" @@ -40228,58 +40726,58 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 20596, - "end": 20622, + "start": 20870, + "end": 20896, "loc": { "start": { - "line": 644, + "line": 649, "column": 70 }, "end": { - "line": 644, + "line": 649, "column": 96 } }, "object": { "type": "MemberExpression", - "start": 20596, - "end": 20616, + "start": 20870, + "end": 20890, "loc": { "start": { - "line": 644, + "line": 649, "column": 70 }, "end": { - "line": 644, + "line": 649, "column": 90 } }, "object": { "type": "ThisExpression", - "start": 20596, - "end": 20600, + "start": 20870, + "end": 20874, "loc": { "start": { - "line": 644, + "line": 649, "column": 70 }, "end": { - "line": 644, + "line": 649, "column": 74 } } }, "property": { "type": "Identifier", - "start": 20601, - "end": 20616, + "start": 20875, + "end": 20890, "loc": { "start": { - "line": 644, + "line": 649, "column": 75 }, "end": { - "line": 644, + "line": 649, "column": 90 }, "identifierName": "innerRecognizer" @@ -40290,15 +40788,15 @@ }, "property": { "type": "Identifier", - "start": 20617, - "end": 20622, + "start": 20891, + "end": 20896, "loc": { "start": { - "line": 644, + "line": 649, "column": 91 }, "end": { - "line": 644, + "line": 649, "column": 96 }, "identifierName": "clear" @@ -40311,88 +40809,88 @@ }, "consequent": { "type": "BlockStatement", - "start": 20624, - "end": 20747, + "start": 20898, + "end": 21021, "loc": { "start": { - "line": 644, + "line": 649, "column": 98 }, "end": { - "line": 647, + "line": 652, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 20636, - "end": 20682, + "start": 20910, + "end": 20956, "loc": { "start": { - "line": 645, + "line": 650, "column": 10 }, "end": { - "line": 645, + "line": 650, "column": 56 } }, "expression": { "type": "AssignmentExpression", - "start": 20636, - "end": 20681, + "start": 20910, + "end": 20955, "loc": { "start": { - "line": 645, + "line": 650, "column": 10 }, "end": { - "line": 645, + "line": 650, "column": 55 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 20636, - "end": 20656, + "start": 20910, + "end": 20930, "loc": { "start": { - "line": 645, + "line": 650, "column": 10 }, "end": { - "line": 645, + "line": 650, "column": 30 } }, "object": { "type": "ThisExpression", - "start": 20636, - "end": 20640, + "start": 20910, + "end": 20914, "loc": { "start": { - "line": 645, + "line": 650, "column": 10 }, "end": { - "line": 645, + "line": 650, "column": 14 } } }, "property": { "type": "Identifier", - "start": 20641, - "end": 20656, + "start": 20915, + "end": 20930, "loc": { "start": { - "line": 645, + "line": 650, "column": 15 }, "end": { - "line": 645, + "line": 650, "column": 30 }, "identifierName": "undoRedoContext" @@ -40403,44 +40901,44 @@ }, "right": { "type": "MemberExpression", - "start": 20659, - "end": 20681, + "start": 20933, + "end": 20955, "loc": { "start": { - "line": 645, + "line": 650, "column": 33 }, "end": { - "line": 645, + "line": 650, "column": 55 } }, "object": { "type": "ThisExpression", - "start": 20659, - "end": 20663, + "start": 20933, + "end": 20937, "loc": { "start": { - "line": 645, + "line": 650, "column": 33 }, "end": { - "line": 645, + "line": 650, "column": 37 } } }, "property": { "type": "Identifier", - "start": 20664, - "end": 20681, + "start": 20938, + "end": 20955, "loc": { "start": { - "line": 645, + "line": 650, "column": 38 }, "end": { - "line": 645, + "line": 650, "column": 55 }, "identifierName": "recognizerContext" @@ -40453,73 +40951,73 @@ }, { "type": "ExpressionStatement", - "start": 20693, - "end": 20737, + "start": 20967, + "end": 21011, "loc": { "start": { - "line": 646, + "line": 651, "column": 10 }, "end": { - "line": 646, + "line": 651, "column": 54 } }, "expression": { "type": "AssignmentExpression", - "start": 20693, - "end": 20736, + "start": 20967, + "end": 21010, "loc": { "start": { - "line": 646, + "line": 651, "column": 10 }, "end": { - "line": 646, + "line": 651, "column": 53 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 20693, - "end": 20713, + "start": 20967, + "end": 20987, "loc": { "start": { - "line": 646, + "line": 651, "column": 10 }, "end": { - "line": 646, + "line": 651, "column": 30 } }, "object": { "type": "ThisExpression", - "start": 20693, - "end": 20697, + "start": 20967, + "end": 20971, "loc": { "start": { - "line": 646, + "line": 651, "column": 10 }, "end": { - "line": 646, + "line": 651, "column": 14 } } }, "property": { "type": "Identifier", - "start": 20698, - "end": 20713, + "start": 20972, + "end": 20987, "loc": { "start": { - "line": 646, + "line": 651, "column": 15 }, "end": { - "line": 646, + "line": 651, "column": 30 }, "identifierName": "undoRedoManager" @@ -40530,44 +41028,44 @@ }, "right": { "type": "MemberExpression", - "start": 20716, - "end": 20736, + "start": 20990, + "end": 21010, "loc": { "start": { - "line": 646, + "line": 651, "column": 33 }, "end": { - "line": 646, + "line": 651, "column": 53 } }, "object": { "type": "ThisExpression", - "start": 20716, - "end": 20720, + "start": 20990, + "end": 20994, "loc": { "start": { - "line": 646, + "line": 651, "column": 33 }, "end": { - "line": 646, + "line": 651, "column": 37 } } }, "property": { "type": "Identifier", - "start": 20721, - "end": 20736, + "start": 20995, + "end": 21010, "loc": { "start": { - "line": 646, + "line": 651, "column": 38 }, "end": { - "line": 646, + "line": 651, "column": 53 }, "identifierName": "innerRecognizer" @@ -40586,15 +41084,15 @@ { "type": "CommentLine", "value": " FIXME: merge undo/redo manager with default recognizer", - "start": 20468, - "end": 20525, + "start": 20742, + "end": 20799, "loc": { "start": { - "line": 643, + "line": 648, "column": 8 }, "end": { - "line": 643, + "line": 648, "column": 65 } } @@ -40603,86 +41101,86 @@ }, { "type": "ExpressionStatement", - "start": 20757, - "end": 21008, + "start": 21031, + "end": 21282, "loc": { "start": { - "line": 649, + "line": 654, "column": 8 }, "end": { - "line": 653, + "line": 658, "column": 11 } }, "expression": { "type": "CallExpression", - "start": 20757, - "end": 21007, + "start": 21031, + "end": 21281, "loc": { "start": { - "line": 649, + "line": 654, "column": 8 }, "end": { - "line": 653, + "line": 658, "column": 10 } }, "callee": { "type": "MemberExpression", - "start": 20757, - "end": 20782, + "start": 21031, + "end": 21056, "loc": { "start": { - "line": 649, + "line": 654, "column": 8 }, "end": { - "line": 649, + "line": 654, "column": 33 } }, "object": { "type": "MemberExpression", - "start": 20757, - "end": 20777, + "start": 21031, + "end": 21051, "loc": { "start": { - "line": 649, + "line": 654, "column": 8 }, "end": { - "line": 649, + "line": 654, "column": 28 } }, "object": { "type": "ThisExpression", - "start": 20757, - "end": 20761, + "start": 21031, + "end": 21035, "loc": { "start": { - "line": 649, + "line": 654, "column": 8 }, "end": { - "line": 649, + "line": 654, "column": 12 } } }, "property": { "type": "Identifier", - "start": 20762, - "end": 20777, + "start": 21036, + "end": 21051, "loc": { "start": { - "line": 649, + "line": 654, "column": 13 }, "end": { - "line": 649, + "line": 654, "column": 28 }, "identifierName": "innerRecognizer" @@ -40693,15 +41191,15 @@ }, "property": { "type": "Identifier", - "start": 20778, - "end": 20782, + "start": 21052, + "end": 21056, "loc": { "start": { - "line": 649, + "line": 654, "column": 29 }, "end": { - "line": 649, + "line": 654, "column": 33 }, "identifierName": "init" @@ -40713,44 +41211,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 20783, - "end": 20805, + "start": 21057, + "end": 21079, "loc": { "start": { - "line": 649, + "line": 654, "column": 34 }, "end": { - "line": 649, + "line": 654, "column": 56 } }, "object": { "type": "ThisExpression", - "start": 20783, - "end": 20787, + "start": 21057, + "end": 21061, "loc": { "start": { - "line": 649, + "line": 654, "column": 34 }, "end": { - "line": 649, + "line": 654, "column": 38 } } }, "property": { "type": "Identifier", - "start": 20788, - "end": 20805, + "start": 21062, + "end": 21079, "loc": { "start": { - "line": 649, + "line": 654, "column": 39 }, "end": { - "line": 649, + "line": 654, "column": 56 }, "identifierName": "recognizerContext" @@ -40761,15 +41259,15 @@ }, { "type": "Identifier", - "start": 20807, - "end": 20812, + "start": 21081, + "end": 21086, "loc": { "start": { - "line": 649, + "line": 654, "column": 58 }, "end": { - "line": 649, + "line": 654, "column": 63 }, "identifierName": "model" @@ -40778,15 +41276,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 20814, - "end": 21006, + "start": 21088, + "end": 21280, "loc": { "start": { - "line": 649, + "line": 654, "column": 65 }, "end": { - "line": 653, + "line": 658, "column": 9 } }, @@ -40797,15 +41295,15 @@ "params": [ { "type": "Identifier", - "start": 20815, - "end": 20818, + "start": 21089, + "end": 21092, "loc": { "start": { - "line": 649, + "line": 654, "column": 66 }, "end": { - "line": 649, + "line": 654, "column": 69 }, "identifierName": "err" @@ -40814,15 +41312,15 @@ }, { "type": "Identifier", - "start": 20820, - "end": 20823, + "start": 21094, + "end": 21097, "loc": { "start": { - "line": 649, + "line": 654, "column": 71 }, "end": { - "line": 649, + "line": 654, "column": 74 }, "identifierName": "res" @@ -40831,29 +41329,29 @@ }, { "type": "RestElement", - "start": 20825, - "end": 20833, + "start": 21099, + "end": 21107, "loc": { "start": { - "line": 649, + "line": 654, "column": 76 }, "end": { - "line": 649, + "line": 654, "column": 84 } }, "argument": { "type": "Identifier", - "start": 20828, - "end": 20833, + "start": 21102, + "end": 21107, "loc": { "start": { - "line": 649, + "line": 654, "column": 79 }, "end": { - "line": 649, + "line": 654, "column": 84 }, "identifierName": "types" @@ -40864,72 +41362,72 @@ ], "body": { "type": "BlockStatement", - "start": 20838, - "end": 21006, + "start": 21112, + "end": 21280, "loc": { "start": { - "line": 649, + "line": 654, "column": 89 }, "end": { - "line": 653, + "line": 658, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 20850, - "end": 20894, + "start": 21124, + "end": 21168, "loc": { "start": { - "line": 650, + "line": 655, "column": 10 }, "end": { - "line": 650, + "line": 655, "column": 54 } }, "expression": { "type": "CallExpression", - "start": 20850, - "end": 20893, + "start": 21124, + "end": 21167, "loc": { "start": { - "line": 650, + "line": 655, "column": 10 }, "end": { - "line": 650, + "line": 655, "column": 53 } }, "callee": { "type": "MemberExpression", - "start": 20850, - "end": 20862, + "start": 21124, + "end": 21136, "loc": { "start": { - "line": 650, + "line": 655, "column": 10 }, "end": { - "line": 650, + "line": 655, "column": 22 } }, "object": { "type": "Identifier", - "start": 20850, - "end": 20856, + "start": 21124, + "end": 21130, "loc": { "start": { - "line": 650, + "line": 655, "column": 10 }, "end": { - "line": 650, + "line": 655, "column": 16 }, "identifierName": "logger" @@ -40938,15 +41436,15 @@ }, "property": { "type": "Identifier", - "start": 20857, - "end": 20862, + "start": 21131, + "end": 21136, "loc": { "start": { - "line": 650, + "line": 655, "column": 17 }, "end": { - "line": 650, + "line": 655, "column": 22 }, "identifierName": "debug" @@ -40958,15 +41456,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 20863, - "end": 20887, + "start": 21137, + "end": 21161, "loc": { "start": { - "line": 650, + "line": 655, "column": 23 }, "end": { - "line": 650, + "line": 655, "column": 47 } }, @@ -40978,15 +41476,15 @@ }, { "type": "Identifier", - "start": 20889, - "end": 20892, + "start": 21163, + "end": 21166, "loc": { "start": { - "line": 650, + "line": 655, "column": 49 }, "end": { - "line": 650, + "line": 655, "column": 52 }, "identifierName": "res" @@ -40998,101 +41496,101 @@ }, { "type": "ExpressionStatement", - "start": 20905, - "end": 20940, + "start": 21179, + "end": 21214, "loc": { "start": { - "line": 651, + "line": 656, "column": 10 }, "end": { - "line": 651, + "line": 656, "column": 45 } }, "expression": { "type": "AssignmentExpression", - "start": 20905, - "end": 20939, + "start": 21179, + "end": 21213, "loc": { "start": { - "line": 651, + "line": 656, "column": 10 }, "end": { - "line": 651, + "line": 656, "column": 44 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 20905, - "end": 20930, + "start": 21179, + "end": 21204, "loc": { "start": { - "line": 651, + "line": 656, "column": 10 }, "end": { - "line": 651, + "line": 656, "column": 35 } }, "object": { "type": "MemberExpression", - "start": 20905, - "end": 20922, + "start": 21179, + "end": 21196, "loc": { "start": { - "line": 651, + "line": 656, "column": 10 }, "end": { - "line": 651, + "line": 656, "column": 27 } }, "object": { "type": "MemberExpression", - "start": 20905, - "end": 20916, + "start": 21179, + "end": 21190, "loc": { "start": { - "line": 651, + "line": 656, "column": 10 }, "end": { - "line": 651, + "line": 656, "column": 21 } }, "object": { "type": "ThisExpression", - "start": 20905, - "end": 20909, + "start": 21179, + "end": 21183, "loc": { "start": { - "line": 651, + "line": 656, "column": 10 }, "end": { - "line": 651, + "line": 656, "column": 14 } } }, "property": { "type": "Identifier", - "start": 20910, - "end": 20916, + "start": 21184, + "end": 21190, "loc": { "start": { - "line": 651, + "line": 656, "column": 15 }, "end": { - "line": 651, + "line": 656, "column": 21 }, "identifierName": "loader" @@ -41103,15 +41601,15 @@ }, "property": { "type": "Identifier", - "start": 20917, - "end": 20922, + "start": 21191, + "end": 21196, "loc": { "start": { - "line": 651, + "line": 656, "column": 22 }, "end": { - "line": 651, + "line": 656, "column": 27 }, "identifierName": "style" @@ -41122,15 +41620,15 @@ }, "property": { "type": "Identifier", - "start": 20923, - "end": 20930, + "start": 21197, + "end": 21204, "loc": { "start": { - "line": 651, + "line": 656, "column": 28 }, "end": { - "line": 651, + "line": 656, "column": 35 }, "identifierName": "display" @@ -41141,15 +41639,15 @@ }, "right": { "type": "StringLiteral", - "start": 20933, - "end": 20939, + "start": 21207, + "end": 21213, "loc": { "start": { - "line": 651, + "line": 656, "column": 38 }, "end": { - "line": 651, + "line": 656, "column": 44 } }, @@ -41163,43 +41661,43 @@ }, { "type": "ExpressionStatement", - "start": 20951, - "end": 20996, + "start": 21225, + "end": 21270, "loc": { "start": { - "line": 652, + "line": 657, "column": 10 }, "end": { - "line": 652, + "line": 657, "column": 55 } }, "expression": { "type": "CallExpression", - "start": 20951, - "end": 20995, + "start": 21225, + "end": 21269, "loc": { "start": { - "line": 652, + "line": 657, "column": 10 }, "end": { - "line": 652, + "line": 657, "column": 54 } }, "callee": { "type": "Identifier", - "start": 20951, - "end": 20969, + "start": 21225, + "end": 21243, "loc": { "start": { - "line": 652, + "line": 657, "column": 10 }, "end": { - "line": 652, + "line": 657, "column": 28 }, "identifierName": "recognizerCallback" @@ -41209,30 +41707,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 20970, - "end": 20974, + "start": 21244, + "end": 21248, "loc": { "start": { - "line": 652, + "line": 657, "column": 29 }, "end": { - "line": 652, + "line": 657, "column": 33 } } }, { "type": "Identifier", - "start": 20976, - "end": 20979, + "start": 21250, + "end": 21253, "loc": { "start": { - "line": 652, + "line": 657, "column": 35 }, "end": { - "line": 652, + "line": 657, "column": 38 }, "identifierName": "err" @@ -41241,15 +41739,15 @@ }, { "type": "Identifier", - "start": 20981, - "end": 20984, + "start": 21255, + "end": 21258, "loc": { "start": { - "line": 652, + "line": 657, "column": 40 }, "end": { - "line": 652, + "line": 657, "column": 43 }, "identifierName": "res" @@ -41258,29 +41756,29 @@ }, { "type": "SpreadElement", - "start": 20986, - "end": 20994, + "start": 21260, + "end": 21268, "loc": { "start": { - "line": 652, + "line": 657, "column": 45 }, "end": { - "line": 652, + "line": 657, "column": 53 } }, "argument": { "type": "Identifier", - "start": 20989, - "end": 20994, + "start": 21263, + "end": 21268, "loc": { "start": { - "line": 652, + "line": 657, "column": 48 }, "end": { - "line": 652, + "line": 657, "column": 53 }, "identifierName": "types" @@ -41313,29 +41811,29 @@ }, { "type": "IfStatement", - "start": 21029, - "end": 21594, + "start": 21303, + "end": 21868, "loc": { "start": { - "line": 657, + "line": 662, "column": 4 }, "end": { - "line": 674, + "line": 679, "column": 5 } }, "test": { "type": "Identifier", - "start": 21033, - "end": 21043, + "start": 21307, + "end": 21317, "loc": { "start": { - "line": 657, + "line": 662, "column": 8 }, "end": { - "line": 657, + "line": 662, "column": 18 }, "identifierName": "recognizer" @@ -41344,73 +41842,73 @@ }, "consequent": { "type": "BlockStatement", - "start": 21045, - "end": 21594, + "start": 21319, + "end": 21868, "loc": { "start": { - "line": 657, + "line": 662, "column": 20 }, "end": { - "line": 674, + "line": 679, "column": 5 } }, "body": [ { "type": "IfStatement", - "start": 21053, - "end": 21588, + "start": 21327, + "end": 21862, "loc": { "start": { - "line": 658, + "line": 663, "column": 6 }, "end": { - "line": 673, + "line": 678, "column": 7 } }, "test": { "type": "MemberExpression", - "start": 21057, - "end": 21077, + "start": 21331, + "end": 21351, "loc": { "start": { - "line": 658, + "line": 663, "column": 10 }, "end": { - "line": 658, + "line": 663, "column": 30 } }, "object": { "type": "ThisExpression", - "start": 21057, - "end": 21061, + "start": 21331, + "end": 21335, "loc": { "start": { - "line": 658, + "line": 663, "column": 10 }, "end": { - "line": 658, + "line": 663, "column": 14 } } }, "property": { "type": "Identifier", - "start": 21062, - "end": 21077, + "start": 21336, + "end": 21351, "loc": { "start": { - "line": 658, + "line": 663, "column": 15 }, "end": { - "line": 658, + "line": 663, "column": 30 }, "identifierName": "innerRecognizer" @@ -41421,101 +41919,101 @@ }, "consequent": { "type": "BlockStatement", - "start": 21079, - "end": 21345, + "start": 21353, + "end": 21619, "loc": { "start": { - "line": 658, + "line": 663, "column": 32 }, "end": { - "line": 664, + "line": 669, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 21089, - "end": 21337, + "start": 21363, + "end": 21611, "loc": { "start": { - "line": 659, + "line": 664, "column": 8 }, "end": { - "line": 663, + "line": 668, "column": 11 } }, "expression": { "type": "CallExpression", - "start": 21089, - "end": 21336, + "start": 21363, + "end": 21610, "loc": { "start": { - "line": 659, + "line": 664, "column": 8 }, "end": { - "line": 663, + "line": 668, "column": 10 } }, "callee": { "type": "MemberExpression", - "start": 21089, - "end": 21115, + "start": 21363, + "end": 21389, "loc": { "start": { - "line": 659, + "line": 664, "column": 8 }, "end": { - "line": 659, + "line": 664, "column": 34 } }, "object": { "type": "MemberExpression", - "start": 21089, - "end": 21109, + "start": 21363, + "end": 21383, "loc": { "start": { - "line": 659, + "line": 664, "column": 8 }, "end": { - "line": 659, + "line": 664, "column": 28 } }, "object": { "type": "ThisExpression", - "start": 21089, - "end": 21093, + "start": 21363, + "end": 21367, "loc": { "start": { - "line": 659, + "line": 664, "column": 8 }, "end": { - "line": 659, + "line": 664, "column": 12 } } }, "property": { "type": "Identifier", - "start": 21094, - "end": 21109, + "start": 21368, + "end": 21383, "loc": { "start": { - "line": 659, + "line": 664, "column": 13 }, "end": { - "line": 659, + "line": 664, "column": 28 }, "identifierName": "innerRecognizer" @@ -41526,15 +42024,15 @@ }, "property": { "type": "Identifier", - "start": 21110, - "end": 21115, + "start": 21384, + "end": 21389, "loc": { "start": { - "line": 659, + "line": 664, "column": 29 }, "end": { - "line": 659, + "line": 664, "column": 34 }, "identifierName": "close" @@ -41546,44 +42044,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 21116, - "end": 21138, + "start": 21390, + "end": 21412, "loc": { "start": { - "line": 659, + "line": 664, "column": 35 }, "end": { - "line": 659, + "line": 664, "column": 57 } }, "object": { "type": "ThisExpression", - "start": 21116, - "end": 21120, + "start": 21390, + "end": 21394, "loc": { "start": { - "line": 659, + "line": 664, "column": 35 }, "end": { - "line": 659, + "line": 664, "column": 39 } } }, "property": { "type": "Identifier", - "start": 21121, - "end": 21138, + "start": 21395, + "end": 21412, "loc": { "start": { - "line": 659, + "line": 664, "column": 40 }, "end": { - "line": 659, + "line": 664, "column": 57 }, "identifierName": "recognizerContext" @@ -41594,44 +42092,44 @@ }, { "type": "MemberExpression", - "start": 21140, - "end": 21150, + "start": 21414, + "end": 21424, "loc": { "start": { - "line": 659, + "line": 664, "column": 59 }, "end": { - "line": 659, + "line": 664, "column": 69 } }, "object": { "type": "ThisExpression", - "start": 21140, - "end": 21144, + "start": 21414, + "end": 21418, "loc": { "start": { - "line": 659, + "line": 664, "column": 59 }, "end": { - "line": 659, + "line": 664, "column": 63 } } }, "property": { "type": "Identifier", - "start": 21145, - "end": 21150, + "start": 21419, + "end": 21424, "loc": { "start": { - "line": 659, + "line": 664, "column": 64 }, "end": { - "line": 659, + "line": 664, "column": 69 }, "identifierName": "model" @@ -41642,15 +42140,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 21152, - "end": 21335, + "start": 21426, + "end": 21609, "loc": { "start": { - "line": 659, + "line": 664, "column": 71 }, "end": { - "line": 663, + "line": 668, "column": 9 } }, @@ -41661,15 +42159,15 @@ "params": [ { "type": "Identifier", - "start": 21153, - "end": 21156, + "start": 21427, + "end": 21430, "loc": { "start": { - "line": 659, + "line": 664, "column": 72 }, "end": { - "line": 659, + "line": 664, "column": 75 }, "identifierName": "err" @@ -41678,15 +42176,15 @@ }, { "type": "Identifier", - "start": 21158, - "end": 21161, + "start": 21432, + "end": 21435, "loc": { "start": { - "line": 659, + "line": 664, "column": 77 }, "end": { - "line": 659, + "line": 664, "column": 80 }, "identifierName": "res" @@ -41695,29 +42193,29 @@ }, { "type": "RestElement", - "start": 21163, - "end": 21171, + "start": 21437, + "end": 21445, "loc": { "start": { - "line": 659, + "line": 664, "column": 82 }, "end": { - "line": 659, + "line": 664, "column": 90 } }, "argument": { "type": "Identifier", - "start": 21166, - "end": 21171, + "start": 21440, + "end": 21445, "loc": { "start": { - "line": 659, + "line": 664, "column": 85 }, "end": { - "line": 659, + "line": 664, "column": 90 }, "identifierName": "types" @@ -41728,72 +42226,72 @@ ], "body": { "type": "BlockStatement", - "start": 21176, - "end": 21335, + "start": 21450, + "end": 21609, "loc": { "start": { - "line": 659, + "line": 664, "column": 95 }, "end": { - "line": 663, + "line": 668, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 21188, - "end": 21221, + "start": 21462, + "end": 21495, "loc": { "start": { - "line": 660, + "line": 665, "column": 10 }, "end": { - "line": 660, + "line": 665, "column": 43 } }, "expression": { "type": "CallExpression", - "start": 21188, - "end": 21220, + "start": 21462, + "end": 21494, "loc": { "start": { - "line": 660, + "line": 665, "column": 10 }, "end": { - "line": 660, + "line": 665, "column": 42 } }, "callee": { "type": "MemberExpression", - "start": 21188, - "end": 21199, + "start": 21462, + "end": 21473, "loc": { "start": { - "line": 660, + "line": 665, "column": 10 }, "end": { - "line": 660, + "line": 665, "column": 21 } }, "object": { "type": "Identifier", - "start": 21188, - "end": 21194, + "start": 21462, + "end": 21468, "loc": { "start": { - "line": 660, + "line": 665, "column": 10 }, "end": { - "line": 660, + "line": 665, "column": 16 }, "identifierName": "logger" @@ -41802,15 +42300,15 @@ }, "property": { "type": "Identifier", - "start": 21195, - "end": 21199, + "start": 21469, + "end": 21473, "loc": { "start": { - "line": 660, + "line": 665, "column": 17 }, "end": { - "line": 660, + "line": 665, "column": 21 }, "identifierName": "info" @@ -41822,15 +42320,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 21200, - "end": 21219, + "start": 21474, + "end": 21493, "loc": { "start": { - "line": 660, + "line": 665, "column": 22 }, "end": { - "line": 660, + "line": 665, "column": 41 } }, @@ -41845,43 +42343,43 @@ }, { "type": "ExpressionStatement", - "start": 21232, - "end": 21277, + "start": 21506, + "end": 21551, "loc": { "start": { - "line": 661, + "line": 666, "column": 10 }, "end": { - "line": 661, + "line": 666, "column": 55 } }, "expression": { "type": "CallExpression", - "start": 21232, - "end": 21276, + "start": 21506, + "end": 21550, "loc": { "start": { - "line": 661, + "line": 666, "column": 10 }, "end": { - "line": 661, + "line": 666, "column": 54 } }, "callee": { "type": "Identifier", - "start": 21232, - "end": 21250, + "start": 21506, + "end": 21524, "loc": { "start": { - "line": 661, + "line": 666, "column": 10 }, "end": { - "line": 661, + "line": 666, "column": 28 }, "identifierName": "recognizerCallback" @@ -41891,30 +42389,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 21251, - "end": 21255, + "start": 21525, + "end": 21529, "loc": { "start": { - "line": 661, + "line": 666, "column": 29 }, "end": { - "line": 661, + "line": 666, "column": 33 } } }, { "type": "Identifier", - "start": 21257, - "end": 21260, + "start": 21531, + "end": 21534, "loc": { "start": { - "line": 661, + "line": 666, "column": 35 }, "end": { - "line": 661, + "line": 666, "column": 38 }, "identifierName": "err" @@ -41923,15 +42421,15 @@ }, { "type": "Identifier", - "start": 21262, - "end": 21265, + "start": 21536, + "end": 21539, "loc": { "start": { - "line": 661, + "line": 666, "column": 40 }, "end": { - "line": 661, + "line": 666, "column": 43 }, "identifierName": "res" @@ -41940,29 +42438,29 @@ }, { "type": "SpreadElement", - "start": 21267, - "end": 21275, + "start": 21541, + "end": 21549, "loc": { "start": { - "line": 661, + "line": 666, "column": 45 }, "end": { - "line": 661, + "line": 666, "column": 53 } }, "argument": { "type": "Identifier", - "start": 21270, - "end": 21275, + "start": 21544, + "end": 21549, "loc": { "start": { - "line": 661, + "line": 666, "column": 48 }, "end": { - "line": 661, + "line": 666, "column": 53 }, "identifierName": "types" @@ -41975,43 +42473,43 @@ }, { "type": "ExpressionStatement", - "start": 21288, - "end": 21325, + "start": 21562, + "end": 21599, "loc": { "start": { - "line": 662, + "line": 667, "column": 10 }, "end": { - "line": 662, + "line": 667, "column": 47 } }, "expression": { "type": "CallExpression", - "start": 21288, - "end": 21324, + "start": 21562, + "end": 21598, "loc": { "start": { - "line": 662, + "line": 667, "column": 10 }, "end": { - "line": 662, + "line": 667, "column": 46 } }, "callee": { "type": "Identifier", - "start": 21288, - "end": 21298, + "start": 21562, + "end": 21572, "loc": { "start": { - "line": 662, + "line": 667, "column": 10 }, "end": { - "line": 662, + "line": 667, "column": 20 }, "identifierName": "initialize" @@ -42021,43 +42519,43 @@ "arguments": [ { "type": "CallExpression", - "start": 21299, - "end": 21323, + "start": 21573, + "end": 21597, "loc": { "start": { - "line": 662, + "line": 667, "column": 21 }, "end": { - "line": 662, + "line": 667, "column": 45 } }, "callee": { "type": "MemberExpression", - "start": 21299, - "end": 21318, + "start": 21573, + "end": 21592, "loc": { "start": { - "line": 662, + "line": 667, "column": 21 }, "end": { - "line": 662, + "line": 667, "column": 40 } }, "object": { "type": "Identifier", - "start": 21299, - "end": 21307, + "start": 21573, + "end": 21581, "loc": { "start": { - "line": 662, + "line": 667, "column": 21 }, "end": { - "line": 662, + "line": 667, "column": 29 }, "identifierName": "InkModel" @@ -42066,15 +42564,15 @@ }, "property": { "type": "Identifier", - "start": 21308, - "end": 21318, + "start": 21582, + "end": 21592, "loc": { "start": { - "line": 662, + "line": 667, "column": 30 }, "end": { - "line": 662, + "line": 667, "column": 40 }, "identifierName": "clearModel" @@ -42086,15 +42584,15 @@ "arguments": [ { "type": "Identifier", - "start": 21319, - "end": 21322, + "start": 21593, + "end": 21596, "loc": { "start": { - "line": 662, + "line": 667, "column": 41 }, "end": { - "line": 662, + "line": 667, "column": 44 }, "identifierName": "res" @@ -42118,73 +42616,73 @@ }, "alternate": { "type": "BlockStatement", - "start": 21351, - "end": 21588, + "start": 21625, + "end": 21862, "loc": { "start": { - "line": 664, + "line": 669, "column": 13 }, "end": { - "line": 673, + "line": 678, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 21435, - "end": 21489, + "start": 21709, + "end": 21763, "loc": { "start": { - "line": 669, + "line": 674, "column": 8 }, "end": { - "line": 669, + "line": 674, "column": 62 } }, "expression": { "type": "AssignmentExpression", - "start": 21435, - "end": 21488, + "start": 21709, + "end": 21762, "loc": { "start": { - "line": 669, + "line": 674, "column": 8 }, "end": { - "line": 669, + "line": 674, "column": 61 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 21435, - "end": 21445, + "start": 21709, + "end": 21719, "loc": { "start": { - "line": 669, + "line": 674, "column": 8 }, "end": { - "line": 669, + "line": 674, "column": 18 } }, "object": { "type": "ThisExpression", - "start": 21435, - "end": 21439, + "start": 21709, + "end": 21713, "loc": { "start": { - "line": 669, + "line": 674, "column": 8 }, "end": { - "line": 669, + "line": 674, "column": 12 } }, @@ -42192,15 +42690,15 @@ }, "property": { "type": "Identifier", - "start": 21440, - "end": 21445, + "start": 21714, + "end": 21719, "loc": { "start": { - "line": 669, + "line": 674, "column": 13 }, "end": { - "line": 669, + "line": 674, "column": 18 }, "identifierName": "model" @@ -42212,43 +42710,43 @@ }, "right": { "type": "CallExpression", - "start": 21448, - "end": 21488, + "start": 21722, + "end": 21762, "loc": { "start": { - "line": 669, + "line": 674, "column": 21 }, "end": { - "line": 669, + "line": 674, "column": 61 } }, "callee": { "type": "MemberExpression", - "start": 21448, - "end": 21468, + "start": 21722, + "end": 21742, "loc": { "start": { - "line": 669, + "line": 674, "column": 21 }, "end": { - "line": 669, + "line": 674, "column": 41 } }, "object": { "type": "Identifier", - "start": 21448, - "end": 21456, + "start": 21722, + "end": 21730, "loc": { "start": { - "line": 669, + "line": 674, "column": 21 }, "end": { - "line": 669, + "line": 674, "column": 29 }, "identifierName": "InkModel" @@ -42257,15 +42755,15 @@ }, "property": { "type": "Identifier", - "start": 21457, - "end": 21468, + "start": 21731, + "end": 21742, "loc": { "start": { - "line": 669, + "line": 674, "column": 30 }, "end": { - "line": 669, + "line": 674, "column": 41 }, "identifierName": "createModel" @@ -42277,44 +42775,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 21469, - "end": 21487, + "start": 21743, + "end": 21761, "loc": { "start": { - "line": 669, + "line": 674, "column": 42 }, "end": { - "line": 669, + "line": 674, "column": 60 } }, "object": { "type": "ThisExpression", - "start": 21469, - "end": 21473, + "start": 21743, + "end": 21747, "loc": { "start": { - "line": 669, + "line": 674, "column": 42 }, "end": { - "line": 669, + "line": 674, "column": 46 } } }, "property": { "type": "Identifier", - "start": 21474, - "end": 21487, + "start": 21748, + "end": 21761, "loc": { "start": { - "line": 669, + "line": 674, "column": 47 }, "end": { - "line": 669, + "line": 674, "column": 60 }, "identifierName": "configuration" @@ -42331,15 +42829,15 @@ { "type": "CommentBlock", "value": "*\n * Current model\n * @type {Model}\n ", - "start": 21361, - "end": 21426, + "start": 21635, + "end": 21700, "loc": { "start": { - "line": 665, + "line": 670, "column": 8 }, "end": { - "line": 668, + "line": 673, "column": 11 } } @@ -42349,15 +42847,15 @@ { "type": "CommentLine", "value": " INFO: Recognizer needs model to be initialized", - "start": 21499, - "end": 21548, + "start": 21773, + "end": 21822, "loc": { "start": { - "line": 671, + "line": 676, "column": 8 }, "end": { - "line": 671, + "line": 676, "column": 57 } } @@ -42366,43 +42864,43 @@ }, { "type": "ExpressionStatement", - "start": 21557, - "end": 21580, + "start": 21831, + "end": 21854, "loc": { "start": { - "line": 672, + "line": 677, "column": 8 }, "end": { - "line": 672, + "line": 677, "column": 31 } }, "expression": { "type": "CallExpression", - "start": 21557, - "end": 21579, + "start": 21831, + "end": 21853, "loc": { "start": { - "line": 672, + "line": 677, "column": 8 }, "end": { - "line": 672, + "line": 677, "column": 30 } }, "callee": { "type": "Identifier", - "start": 21557, - "end": 21567, + "start": 21831, + "end": 21841, "loc": { "start": { - "line": 672, + "line": 677, "column": 8 }, "end": { - "line": 672, + "line": 677, "column": 18 }, "identifierName": "initialize" @@ -42413,44 +42911,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 21568, - "end": 21578, + "start": 21842, + "end": 21852, "loc": { "start": { - "line": 672, + "line": 677, "column": 19 }, "end": { - "line": 672, + "line": 677, "column": 29 } }, "object": { "type": "ThisExpression", - "start": 21568, - "end": 21572, + "start": 21842, + "end": 21846, "loc": { "start": { - "line": 672, + "line": 677, "column": 19 }, "end": { - "line": 672, + "line": 677, "column": 23 } } }, "property": { "type": "Identifier", - "start": 21573, - "end": 21578, + "start": 21847, + "end": 21852, "loc": { "start": { - "line": 672, + "line": 677, "column": 24 }, "end": { - "line": 672, + "line": 677, "column": 29 }, "identifierName": "model" @@ -42466,15 +42964,15 @@ { "type": "CommentLine", "value": " INFO: Recognizer needs model to be initialized", - "start": 21499, - "end": 21548, + "start": 21773, + "end": 21822, "loc": { "start": { - "line": 671, + "line": 676, "column": 8 }, "end": { - "line": 671, + "line": 676, "column": 57 } } @@ -42498,15 +42996,15 @@ { "type": "CommentBlock", "value": "*\n * Set the current recognizer\n * @private\n * @param {Recognizer} recognizer\n ", - "start": 19842, - "end": 19933, + "start": 20116, + "end": 20207, "loc": { "start": { - "line": 622, + "line": 627, "column": 2 }, "end": { - "line": 626, + "line": 631, "column": 5 } } @@ -42516,15 +43014,15 @@ { "type": "CommentBlock", "value": "*\n * Get current recognizer\n * @return {Recognizer}\n ", - "start": 21602, - "end": 21665, + "start": 21876, + "end": 21939, "loc": { "start": { - "line": 677, + "line": 682, "column": 2 }, "end": { - "line": 680, + "line": 685, "column": 5 } } @@ -42533,15 +43031,15 @@ }, { "type": "ClassMethod", - "start": 21668, - "end": 21723, + "start": 21942, + "end": 21997, "loc": { "start": { - "line": 681, + "line": 686, "column": 2 }, "end": { - "line": 683, + "line": 688, "column": 3 } }, @@ -42549,15 +43047,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 21672, - "end": 21682, + "start": 21946, + "end": 21956, "loc": { "start": { - "line": 681, + "line": 686, "column": 6 }, "end": { - "line": 681, + "line": 686, "column": 16 }, "identifierName": "recognizer" @@ -42572,73 +43070,73 @@ "params": [], "body": { "type": "BlockStatement", - "start": 21685, - "end": 21723, + "start": 21959, + "end": 21997, "loc": { "start": { - "line": 681, + "line": 686, "column": 19 }, "end": { - "line": 683, + "line": 688, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 21691, - "end": 21719, + "start": 21965, + "end": 21993, "loc": { "start": { - "line": 682, + "line": 687, "column": 4 }, "end": { - "line": 682, + "line": 687, "column": 32 } }, "argument": { "type": "MemberExpression", - "start": 21698, - "end": 21718, + "start": 21972, + "end": 21992, "loc": { "start": { - "line": 682, + "line": 687, "column": 11 }, "end": { - "line": 682, + "line": 687, "column": 31 } }, "object": { "type": "ThisExpression", - "start": 21698, - "end": 21702, + "start": 21972, + "end": 21976, "loc": { "start": { - "line": 682, + "line": 687, "column": 11 }, "end": { - "line": 682, + "line": 687, "column": 15 } } }, "property": { "type": "Identifier", - "start": 21703, - "end": 21718, + "start": 21977, + "end": 21992, "loc": { "start": { - "line": 682, + "line": 687, "column": 16 }, "end": { - "line": 682, + "line": 687, "column": 31 }, "identifierName": "innerRecognizer" @@ -42656,15 +43154,15 @@ { "type": "CommentBlock", "value": "*\n * Get current recognizer\n * @return {Recognizer}\n ", - "start": 21602, - "end": 21665, + "start": 21876, + "end": 21939, "loc": { "start": { - "line": 677, + "line": 682, "column": 2 }, "end": { - "line": 680, + "line": 685, "column": 5 } } @@ -42674,15 +43172,15 @@ { "type": "CommentBlock", "value": "*\n * Set the current renderer\n * @private\n * @param {Renderer} renderer\n ", - "start": 21727, - "end": 21812, + "start": 22001, + "end": 22086, "loc": { "start": { - "line": 685, + "line": 690, "column": 2 }, "end": { - "line": 689, + "line": 694, "column": 5 } } @@ -42691,15 +43189,15 @@ }, { "type": "ClassMethod", - "start": 21815, - "end": 22378, + "start": 22089, + "end": 22652, "loc": { "start": { - "line": 690, + "line": 695, "column": 2 }, "end": { - "line": 709, + "line": 714, "column": 3 } }, @@ -42707,15 +43205,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 21819, - "end": 21827, + "start": 22093, + "end": 22101, "loc": { "start": { - "line": 690, + "line": 695, "column": 6 }, "end": { - "line": 690, + "line": 695, "column": 14 }, "identifierName": "renderer" @@ -42730,15 +43228,15 @@ "params": [ { "type": "Identifier", - "start": 21828, - "end": 21836, + "start": 22102, + "end": 22110, "loc": { "start": { - "line": 690, + "line": 695, "column": 15 }, "end": { - "line": 690, + "line": 695, "column": 23 }, "identifierName": "renderer" @@ -42748,44 +43246,44 @@ ], "body": { "type": "BlockStatement", - "start": 21838, - "end": 22378, + "start": 22112, + "end": 22652, "loc": { "start": { - "line": 690, + "line": 695, "column": 25 }, "end": { - "line": 709, + "line": 714, "column": 3 } }, "body": [ { "type": "IfStatement", - "start": 21844, - "end": 22374, + "start": 22118, + "end": 22648, "loc": { "start": { - "line": 691, + "line": 696, "column": 4 }, "end": { - "line": 708, + "line": 713, "column": 5 } }, "test": { "type": "Identifier", - "start": 21848, - "end": 21856, + "start": 22122, + "end": 22130, "loc": { "start": { - "line": 691, + "line": 696, "column": 8 }, "end": { - "line": 691, + "line": 696, "column": 16 }, "identifierName": "renderer" @@ -42794,73 +43292,73 @@ }, "consequent": { "type": "BlockStatement", - "start": 21858, - "end": 22374, + "start": 22132, + "end": 22648, "loc": { "start": { - "line": 691, + "line": 696, "column": 18 }, "end": { - "line": 708, + "line": 713, "column": 5 } }, "body": [ { "type": "IfStatement", - "start": 21866, - "end": 21973, + "start": 22140, + "end": 22247, "loc": { "start": { - "line": 692, + "line": 697, "column": 6 }, "end": { - "line": 694, + "line": 699, "column": 7 } }, "test": { "type": "MemberExpression", - "start": 21870, - "end": 21888, + "start": 22144, + "end": 22162, "loc": { "start": { - "line": 692, + "line": 697, "column": 10 }, "end": { - "line": 692, + "line": 697, "column": 28 } }, "object": { "type": "ThisExpression", - "start": 21870, - "end": 21874, + "start": 22144, + "end": 22148, "loc": { "start": { - "line": 692, + "line": 697, "column": 10 }, "end": { - "line": 692, + "line": 697, "column": 14 } } }, "property": { "type": "Identifier", - "start": 21875, - "end": 21888, + "start": 22149, + "end": 22162, "loc": { "start": { - "line": 692, + "line": 697, "column": 15 }, "end": { - "line": 692, + "line": 697, "column": 28 }, "identifierName": "innerRenderer" @@ -42871,101 +43369,101 @@ }, "consequent": { "type": "BlockStatement", - "start": 21890, - "end": 21973, + "start": 22164, + "end": 22247, "loc": { "start": { - "line": 692, + "line": 697, "column": 30 }, "end": { - "line": 694, + "line": 699, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 21900, - "end": 21965, + "start": 22174, + "end": 22239, "loc": { "start": { - "line": 693, + "line": 698, "column": 8 }, "end": { - "line": 693, + "line": 698, "column": 73 } }, "expression": { "type": "CallExpression", - "start": 21900, - "end": 21964, + "start": 22174, + "end": 22238, "loc": { "start": { - "line": 693, + "line": 698, "column": 8 }, "end": { - "line": 693, + "line": 698, "column": 72 } }, "callee": { "type": "MemberExpression", - "start": 21900, - "end": 21925, + "start": 22174, + "end": 22199, "loc": { "start": { - "line": 693, + "line": 698, "column": 8 }, "end": { - "line": 693, + "line": 698, "column": 33 } }, "object": { "type": "MemberExpression", - "start": 21900, - "end": 21918, + "start": 22174, + "end": 22192, "loc": { "start": { - "line": 693, + "line": 698, "column": 8 }, "end": { - "line": 693, + "line": 698, "column": 26 } }, "object": { "type": "ThisExpression", - "start": 21900, - "end": 21904, + "start": 22174, + "end": 22178, "loc": { "start": { - "line": 693, + "line": 698, "column": 8 }, "end": { - "line": 693, + "line": 698, "column": 12 } } }, "property": { "type": "Identifier", - "start": 21905, - "end": 21918, + "start": 22179, + "end": 22192, "loc": { "start": { - "line": 693, + "line": 698, "column": 13 }, "end": { - "line": 693, + "line": 698, "column": 26 }, "identifierName": "innerRenderer" @@ -42976,15 +43474,15 @@ }, "property": { "type": "Identifier", - "start": 21919, - "end": 21925, + "start": 22193, + "end": 22199, "loc": { "start": { - "line": 693, + "line": 698, "column": 27 }, "end": { - "line": 693, + "line": 698, "column": 33 }, "identifierName": "detach" @@ -42996,44 +43494,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 21926, - "end": 21941, + "start": 22200, + "end": 22215, "loc": { "start": { - "line": 693, + "line": 698, "column": 34 }, "end": { - "line": 693, + "line": 698, "column": 49 } }, "object": { "type": "ThisExpression", - "start": 21926, - "end": 21930, + "start": 22200, + "end": 22204, "loc": { "start": { - "line": 693, + "line": 698, "column": 34 }, "end": { - "line": 693, + "line": 698, "column": 38 } } }, "property": { "type": "Identifier", - "start": 21931, - "end": 21941, + "start": 22205, + "end": 22215, "loc": { "start": { - "line": 693, + "line": 698, "column": 39 }, "end": { - "line": 693, + "line": 698, "column": 49 }, "identifierName": "domElement" @@ -43044,44 +43542,44 @@ }, { "type": "MemberExpression", - "start": 21943, - "end": 21963, + "start": 22217, + "end": 22237, "loc": { "start": { - "line": 693, + "line": 698, "column": 51 }, "end": { - "line": 693, + "line": 698, "column": 71 } }, "object": { "type": "ThisExpression", - "start": 21943, - "end": 21947, + "start": 22217, + "end": 22221, "loc": { "start": { - "line": 693, + "line": 698, "column": 51 }, "end": { - "line": 693, + "line": 698, "column": 55 } } }, "property": { "type": "Identifier", - "start": 21948, - "end": 21963, + "start": 22222, + "end": 22237, "loc": { "start": { - "line": 693, + "line": 698, "column": 56 }, "end": { - "line": 693, + "line": 698, "column": 71 }, "identifierName": "rendererContext" @@ -43102,15 +43600,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Renderer}\n ", - "start": 21981, - "end": 22038, + "start": 22255, + "end": 22312, "loc": { "start": { - "line": 696, + "line": 701, "column": 6 }, "end": { - "line": 699, + "line": 704, "column": 9 } } @@ -43119,58 +43617,58 @@ }, { "type": "ExpressionStatement", - "start": 22045, - "end": 22075, + "start": 22319, + "end": 22349, "loc": { "start": { - "line": 700, + "line": 705, "column": 6 }, "end": { - "line": 700, + "line": 705, "column": 36 } }, "expression": { "type": "AssignmentExpression", - "start": 22045, - "end": 22074, + "start": 22319, + "end": 22348, "loc": { "start": { - "line": 700, + "line": 705, "column": 6 }, "end": { - "line": 700, + "line": 705, "column": 35 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 22045, - "end": 22063, + "start": 22319, + "end": 22337, "loc": { "start": { - "line": 700, + "line": 705, "column": 6 }, "end": { - "line": 700, + "line": 705, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 22045, - "end": 22049, + "start": 22319, + "end": 22323, "loc": { "start": { - "line": 700, + "line": 705, "column": 6 }, "end": { - "line": 700, + "line": 705, "column": 10 } }, @@ -43178,15 +43676,15 @@ }, "property": { "type": "Identifier", - "start": 22050, - "end": 22063, + "start": 22324, + "end": 22337, "loc": { "start": { - "line": 700, + "line": 705, "column": 11 }, "end": { - "line": 700, + "line": 705, "column": 24 }, "identifierName": "innerRenderer" @@ -43198,15 +43696,15 @@ }, "right": { "type": "Identifier", - "start": 22066, - "end": 22074, + "start": 22340, + "end": 22348, "loc": { "start": { - "line": 700, + "line": 705, "column": 27 }, "end": { - "line": 700, + "line": 705, "column": 35 }, "identifierName": "renderer" @@ -43219,15 +43717,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Renderer}\n ", - "start": 21981, - "end": 22038, + "start": 22255, + "end": 22312, "loc": { "start": { - "line": 696, + "line": 701, "column": 6 }, "end": { - "line": 699, + "line": 704, "column": 9 } } @@ -43236,58 +43734,58 @@ }, { "type": "IfStatement", - "start": 22082, - "end": 22368, + "start": 22356, + "end": 22642, "loc": { "start": { - "line": 701, + "line": 706, "column": 6 }, "end": { - "line": 707, + "line": 712, "column": 7 } }, "test": { "type": "MemberExpression", - "start": 22086, - "end": 22104, + "start": 22360, + "end": 22378, "loc": { "start": { - "line": 701, + "line": 706, "column": 10 }, "end": { - "line": 701, + "line": 706, "column": 28 } }, "object": { "type": "ThisExpression", - "start": 22086, - "end": 22090, + "start": 22360, + "end": 22364, "loc": { "start": { - "line": 701, + "line": 706, "column": 10 }, "end": { - "line": 701, + "line": 706, "column": 14 } } }, "property": { "type": "Identifier", - "start": 22091, - "end": 22104, + "start": 22365, + "end": 22378, "loc": { "start": { - "line": 701, + "line": 706, "column": 15 }, "end": { - "line": 701, + "line": 706, "column": 28 }, "identifierName": "innerRenderer" @@ -43298,73 +43796,73 @@ }, "consequent": { "type": "BlockStatement", - "start": 22106, - "end": 22368, + "start": 22380, + "end": 22642, "loc": { "start": { - "line": 701, + "line": 706, "column": 30 }, "end": { - "line": 707, + "line": 712, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 22203, - "end": 22360, + "start": 22477, + "end": 22634, "loc": { "start": { - "line": 706, + "line": 711, "column": 8 }, "end": { - "line": 706, + "line": 711, "column": 165 } }, "expression": { "type": "AssignmentExpression", - "start": 22203, - "end": 22359, + "start": 22477, + "end": 22633, "loc": { "start": { - "line": 706, + "line": 711, "column": 8 }, "end": { - "line": 706, + "line": 711, "column": 164 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 22203, - "end": 22223, + "start": 22477, + "end": 22497, "loc": { "start": { - "line": 706, + "line": 711, "column": 8 }, "end": { - "line": 706, + "line": 711, "column": 28 } }, "object": { "type": "ThisExpression", - "start": 22203, - "end": 22207, + "start": 22477, + "end": 22481, "loc": { "start": { - "line": 706, + "line": 711, "column": 8 }, "end": { - "line": 706, + "line": 711, "column": 12 } }, @@ -43372,15 +43870,15 @@ }, "property": { "type": "Identifier", - "start": 22208, - "end": 22223, + "start": 22482, + "end": 22497, "loc": { "start": { - "line": 706, + "line": 711, "column": 13 }, "end": { - "line": 706, + "line": 711, "column": 28 }, "identifierName": "rendererContext" @@ -43392,72 +43890,72 @@ }, "right": { "type": "CallExpression", - "start": 22226, - "end": 22359, + "start": 22500, + "end": 22633, "loc": { "start": { - "line": 706, + "line": 711, "column": 31 }, "end": { - "line": 706, + "line": 711, "column": 164 } }, "callee": { "type": "MemberExpression", - "start": 22226, - "end": 22251, + "start": 22500, + "end": 22525, "loc": { "start": { - "line": 706, + "line": 711, "column": 31 }, "end": { - "line": 706, + "line": 711, "column": 56 } }, "object": { "type": "MemberExpression", - "start": 22226, - "end": 22244, + "start": 22500, + "end": 22518, "loc": { "start": { - "line": 706, + "line": 711, "column": 31 }, "end": { - "line": 706, + "line": 711, "column": 49 } }, "object": { "type": "ThisExpression", - "start": 22226, - "end": 22230, + "start": 22500, + "end": 22504, "loc": { "start": { - "line": 706, + "line": 711, "column": 31 }, "end": { - "line": 706, + "line": 711, "column": 35 } } }, "property": { "type": "Identifier", - "start": 22231, - "end": 22244, + "start": 22505, + "end": 22518, "loc": { "start": { - "line": 706, + "line": 711, "column": 36 }, "end": { - "line": 706, + "line": 711, "column": 49 }, "identifierName": "innerRenderer" @@ -43468,15 +43966,15 @@ }, "property": { "type": "Identifier", - "start": 22245, - "end": 22251, + "start": 22519, + "end": 22525, "loc": { "start": { - "line": 706, + "line": 711, "column": 50 }, "end": { - "line": 706, + "line": 711, "column": 56 }, "identifierName": "attach" @@ -43488,44 +43986,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 22252, - "end": 22267, + "start": 22526, + "end": 22541, "loc": { "start": { - "line": 706, + "line": 711, "column": 57 }, "end": { - "line": 706, + "line": 711, "column": 72 } }, "object": { "type": "ThisExpression", - "start": 22252, - "end": 22256, + "start": 22526, + "end": 22530, "loc": { "start": { - "line": 706, + "line": 711, "column": 57 }, "end": { - "line": 706, + "line": 711, "column": 61 } } }, "property": { "type": "Identifier", - "start": 22257, - "end": 22267, + "start": 22531, + "end": 22541, "loc": { "start": { - "line": 706, + "line": 711, "column": 62 }, "end": { - "line": 706, + "line": 711, "column": 72 }, "identifierName": "domElement" @@ -43536,72 +44034,72 @@ }, { "type": "MemberExpression", - "start": 22269, - "end": 22313, + "start": 22543, + "end": 22587, "loc": { "start": { - "line": 706, + "line": 711, "column": 74 }, "end": { - "line": 706, + "line": 711, "column": 118 } }, "object": { "type": "MemberExpression", - "start": 22269, - "end": 22303, + "start": 22543, + "end": 22577, "loc": { "start": { - "line": 706, + "line": 711, "column": 74 }, "end": { - "line": 706, + "line": 711, "column": 108 } }, "object": { "type": "MemberExpression", - "start": 22269, - "end": 22287, + "start": 22543, + "end": 22561, "loc": { "start": { - "line": 706, + "line": 711, "column": 74 }, "end": { - "line": 706, + "line": 711, "column": 92 } }, "object": { "type": "ThisExpression", - "start": 22269, - "end": 22273, + "start": 22543, + "end": 22547, "loc": { "start": { - "line": 706, + "line": 711, "column": 74 }, "end": { - "line": 706, + "line": 711, "column": 78 } } }, "property": { "type": "Identifier", - "start": 22274, - "end": 22287, + "start": 22548, + "end": 22561, "loc": { "start": { - "line": 706, + "line": 711, "column": 79 }, "end": { - "line": 706, + "line": 711, "column": 92 }, "identifierName": "configuration" @@ -43612,15 +44110,15 @@ }, "property": { "type": "Identifier", - "start": 22288, - "end": 22303, + "start": 22562, + "end": 22577, "loc": { "start": { - "line": 706, + "line": 711, "column": 93 }, "end": { - "line": 706, + "line": 711, "column": 108 }, "identifierName": "renderingParams" @@ -43631,15 +44129,15 @@ }, "property": { "type": "Identifier", - "start": 22304, - "end": 22313, + "start": 22578, + "end": 22587, "loc": { "start": { - "line": 706, + "line": 711, "column": 109 }, "end": { - "line": 706, + "line": 711, "column": 118 }, "identifierName": "minHeight" @@ -43650,72 +44148,72 @@ }, { "type": "MemberExpression", - "start": 22315, - "end": 22358, + "start": 22589, + "end": 22632, "loc": { "start": { - "line": 706, + "line": 711, "column": 120 }, "end": { - "line": 706, + "line": 711, "column": 163 } }, "object": { "type": "MemberExpression", - "start": 22315, - "end": 22349, + "start": 22589, + "end": 22623, "loc": { "start": { - "line": 706, + "line": 711, "column": 120 }, "end": { - "line": 706, + "line": 711, "column": 154 } }, "object": { "type": "MemberExpression", - "start": 22315, - "end": 22333, + "start": 22589, + "end": 22607, "loc": { "start": { - "line": 706, + "line": 711, "column": 120 }, "end": { - "line": 706, + "line": 711, "column": 138 } }, "object": { "type": "ThisExpression", - "start": 22315, - "end": 22319, + "start": 22589, + "end": 22593, "loc": { "start": { - "line": 706, + "line": 711, "column": 120 }, "end": { - "line": 706, + "line": 711, "column": 124 } } }, "property": { "type": "Identifier", - "start": 22320, - "end": 22333, + "start": 22594, + "end": 22607, "loc": { "start": { - "line": 706, + "line": 711, "column": 125 }, "end": { - "line": 706, + "line": 711, "column": 138 }, "identifierName": "configuration" @@ -43726,15 +44224,15 @@ }, "property": { "type": "Identifier", - "start": 22334, - "end": 22349, + "start": 22608, + "end": 22623, "loc": { "start": { - "line": 706, + "line": 711, "column": 139 }, "end": { - "line": 706, + "line": 711, "column": 154 }, "identifierName": "renderingParams" @@ -43745,15 +44243,15 @@ }, "property": { "type": "Identifier", - "start": 22350, - "end": 22358, + "start": 22624, + "end": 22632, "loc": { "start": { - "line": 706, + "line": 711, "column": 155 }, "end": { - "line": 706, + "line": 711, "column": 163 }, "identifierName": "minWidth" @@ -43770,15 +44268,15 @@ { "type": "CommentBlock", "value": "*\n * Current rendering context\n * @type {Object}\n ", - "start": 22116, - "end": 22194, + "start": 22390, + "end": 22468, "loc": { "start": { - "line": 702, + "line": 707, "column": 8 }, "end": { - "line": 705, + "line": 710, "column": 11 } } @@ -43803,15 +44301,15 @@ { "type": "CommentBlock", "value": "*\n * Set the current renderer\n * @private\n * @param {Renderer} renderer\n ", - "start": 21727, - "end": 21812, + "start": 22001, + "end": 22086, "loc": { "start": { - "line": 685, + "line": 690, "column": 2 }, "end": { - "line": 689, + "line": 694, "column": 5 } } @@ -43821,15 +44319,15 @@ { "type": "CommentBlock", "value": "*\n * Get current renderer\n * @return {Renderer}\n ", - "start": 22382, - "end": 22441, + "start": 22656, + "end": 22715, "loc": { "start": { - "line": 711, + "line": 716, "column": 2 }, "end": { - "line": 714, + "line": 719, "column": 5 } } @@ -43838,15 +44336,15 @@ }, { "type": "ClassMethod", - "start": 22444, - "end": 22495, + "start": 22718, + "end": 22769, "loc": { "start": { - "line": 715, + "line": 720, "column": 2 }, "end": { - "line": 717, + "line": 722, "column": 3 } }, @@ -43854,15 +44352,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 22448, - "end": 22456, + "start": 22722, + "end": 22730, "loc": { "start": { - "line": 715, + "line": 720, "column": 6 }, "end": { - "line": 715, + "line": 720, "column": 14 }, "identifierName": "renderer" @@ -43877,73 +44375,73 @@ "params": [], "body": { "type": "BlockStatement", - "start": 22459, - "end": 22495, + "start": 22733, + "end": 22769, "loc": { "start": { - "line": 715, + "line": 720, "column": 17 }, "end": { - "line": 717, + "line": 722, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 22465, - "end": 22491, + "start": 22739, + "end": 22765, "loc": { "start": { - "line": 716, + "line": 721, "column": 4 }, "end": { - "line": 716, + "line": 721, "column": 30 } }, "argument": { "type": "MemberExpression", - "start": 22472, - "end": 22490, + "start": 22746, + "end": 22764, "loc": { "start": { - "line": 716, + "line": 721, "column": 11 }, "end": { - "line": 716, + "line": 721, "column": 29 } }, "object": { "type": "ThisExpression", - "start": 22472, - "end": 22476, + "start": 22746, + "end": 22750, "loc": { "start": { - "line": 716, + "line": 721, "column": 11 }, "end": { - "line": 716, + "line": 721, "column": 15 } } }, "property": { "type": "Identifier", - "start": 22477, - "end": 22490, + "start": 22751, + "end": 22764, "loc": { "start": { - "line": 716, + "line": 721, "column": 16 }, "end": { - "line": 716, + "line": 721, "column": 29 }, "identifierName": "innerRenderer" @@ -43961,15 +44459,15 @@ { "type": "CommentBlock", "value": "*\n * Get current renderer\n * @return {Renderer}\n ", - "start": 22382, - "end": 22441, + "start": 22656, + "end": 22715, "loc": { "start": { - "line": 711, + "line": 716, "column": 2 }, "end": { - "line": 714, + "line": 719, "column": 5 } } @@ -43979,15 +44477,15 @@ { "type": "CommentBlock", "value": "*\n * Get current grabber\n * @return {Grabber}\n ", - "start": 22499, - "end": 22556, + "start": 22773, + "end": 22830, "loc": { "start": { - "line": 719, + "line": 724, "column": 2 }, "end": { - "line": 722, + "line": 727, "column": 5 } } @@ -43996,15 +44494,15 @@ }, { "type": "ClassMethod", - "start": 22559, - "end": 22640, + "start": 22833, + "end": 22914, "loc": { "start": { - "line": 723, + "line": 728, "column": 2 }, "end": { - "line": 725, + "line": 730, "column": 3 } }, @@ -44012,15 +44510,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 22563, - "end": 22570, + "start": 22837, + "end": 22844, "loc": { "start": { - "line": 723, + "line": 728, "column": 6 }, "end": { - "line": 723, + "line": 728, "column": 13 }, "identifierName": "grabber" @@ -44035,87 +44533,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 22573, - "end": 22640, + "start": 22847, + "end": 22914, "loc": { "start": { - "line": 723, + "line": 728, "column": 16 }, "end": { - "line": 725, + "line": 730, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 22579, - "end": 22636, + "start": 22853, + "end": 22910, "loc": { "start": { - "line": 724, + "line": 729, "column": 4 }, "end": { - "line": 724, + "line": 729, "column": 61 } }, "argument": { "type": "ConditionalExpression", - "start": 22586, - "end": 22635, + "start": 22860, + "end": 22909, "loc": { "start": { - "line": 724, + "line": 729, "column": 11 }, "end": { - "line": 724, + "line": 729, "column": 60 } }, "test": { "type": "MemberExpression", - "start": 22586, - "end": 22599, + "start": 22860, + "end": 22873, "loc": { "start": { - "line": 724, + "line": 729, "column": 11 }, "end": { - "line": 724, + "line": 729, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 22586, - "end": 22590, + "start": 22860, + "end": 22864, "loc": { "start": { - "line": 724, + "line": 729, "column": 11 }, "end": { - "line": 724, + "line": 729, "column": 15 } } }, "property": { "type": "Identifier", - "start": 22591, - "end": 22599, + "start": 22865, + "end": 22873, "loc": { "start": { - "line": 724, + "line": 729, "column": 16 }, "end": { - "line": 724, + "line": 729, "column": 24 }, "identifierName": "behavior" @@ -44126,58 +44624,58 @@ }, "consequent": { "type": "MemberExpression", - "start": 22602, - "end": 22623, + "start": 22876, + "end": 22897, "loc": { "start": { - "line": 724, + "line": 729, "column": 27 }, "end": { - "line": 724, + "line": 729, "column": 48 } }, "object": { "type": "MemberExpression", - "start": 22602, - "end": 22615, + "start": 22876, + "end": 22889, "loc": { "start": { - "line": 724, + "line": 729, "column": 27 }, "end": { - "line": 724, + "line": 729, "column": 40 } }, "object": { "type": "ThisExpression", - "start": 22602, - "end": 22606, + "start": 22876, + "end": 22880, "loc": { "start": { - "line": 724, + "line": 729, "column": 27 }, "end": { - "line": 724, + "line": 729, "column": 31 } } }, "property": { "type": "Identifier", - "start": 22607, - "end": 22615, + "start": 22881, + "end": 22889, "loc": { "start": { - "line": 724, + "line": 729, "column": 32 }, "end": { - "line": 724, + "line": 729, "column": 40 }, "identifierName": "behavior" @@ -44188,15 +44686,15 @@ }, "property": { "type": "Identifier", - "start": 22616, - "end": 22623, + "start": 22890, + "end": 22897, "loc": { "start": { - "line": 724, + "line": 729, "column": 41 }, "end": { - "line": 724, + "line": 729, "column": 48 }, "identifierName": "grabber" @@ -44207,15 +44705,15 @@ }, "alternate": { "type": "Identifier", - "start": 22626, - "end": 22635, + "start": 22900, + "end": 22909, "loc": { "start": { - "line": 724, + "line": 729, "column": 51 }, "end": { - "line": 724, + "line": 729, "column": 60 }, "identifierName": "undefined" @@ -44232,15 +44730,15 @@ { "type": "CommentBlock", "value": "*\n * Get current grabber\n * @return {Grabber}\n ", - "start": 22499, - "end": 22556, + "start": 22773, + "end": 22830, "loc": { "start": { - "line": 719, + "line": 724, "column": 2 }, "end": { - "line": 722, + "line": 727, "column": 5 } } @@ -44250,15 +44748,15 @@ { "type": "CommentBlock", "value": "*\n * Get current stroker\n * @return {Stroker}\n ", - "start": 22644, - "end": 22701, + "start": 22918, + "end": 22975, "loc": { "start": { - "line": 727, + "line": 732, "column": 2 }, "end": { - "line": 730, + "line": 735, "column": 5 } } @@ -44267,15 +44765,15 @@ }, { "type": "ClassMethod", - "start": 22704, - "end": 22785, + "start": 22978, + "end": 23059, "loc": { "start": { - "line": 731, + "line": 736, "column": 2 }, "end": { - "line": 733, + "line": 738, "column": 3 } }, @@ -44283,15 +44781,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 22708, - "end": 22715, + "start": 22982, + "end": 22989, "loc": { "start": { - "line": 731, + "line": 736, "column": 6 }, "end": { - "line": 731, + "line": 736, "column": 13 }, "identifierName": "stroker" @@ -44306,87 +44804,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 22718, - "end": 22785, + "start": 22992, + "end": 23059, "loc": { "start": { - "line": 731, + "line": 736, "column": 16 }, "end": { - "line": 733, + "line": 738, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 22724, - "end": 22781, + "start": 22998, + "end": 23055, "loc": { "start": { - "line": 732, + "line": 737, "column": 4 }, "end": { - "line": 732, + "line": 737, "column": 61 } }, "argument": { "type": "ConditionalExpression", - "start": 22731, - "end": 22780, + "start": 23005, + "end": 23054, "loc": { "start": { - "line": 732, + "line": 737, "column": 11 }, "end": { - "line": 732, + "line": 737, "column": 60 } }, "test": { "type": "MemberExpression", - "start": 22731, - "end": 22744, + "start": 23005, + "end": 23018, "loc": { "start": { - "line": 732, + "line": 737, "column": 11 }, "end": { - "line": 732, + "line": 737, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 22731, - "end": 22735, + "start": 23005, + "end": 23009, "loc": { "start": { - "line": 732, + "line": 737, "column": 11 }, "end": { - "line": 732, + "line": 737, "column": 15 } } }, "property": { "type": "Identifier", - "start": 22736, - "end": 22744, + "start": 23010, + "end": 23018, "loc": { "start": { - "line": 732, + "line": 737, "column": 16 }, "end": { - "line": 732, + "line": 737, "column": 24 }, "identifierName": "behavior" @@ -44397,58 +44895,58 @@ }, "consequent": { "type": "MemberExpression", - "start": 22747, - "end": 22768, + "start": 23021, + "end": 23042, "loc": { "start": { - "line": 732, + "line": 737, "column": 27 }, "end": { - "line": 732, + "line": 737, "column": 48 } }, "object": { "type": "MemberExpression", - "start": 22747, - "end": 22760, + "start": 23021, + "end": 23034, "loc": { "start": { - "line": 732, + "line": 737, "column": 27 }, "end": { - "line": 732, + "line": 737, "column": 40 } }, "object": { "type": "ThisExpression", - "start": 22747, - "end": 22751, + "start": 23021, + "end": 23025, "loc": { "start": { - "line": 732, + "line": 737, "column": 27 }, "end": { - "line": 732, + "line": 737, "column": 31 } } }, "property": { "type": "Identifier", - "start": 22752, - "end": 22760, + "start": 23026, + "end": 23034, "loc": { "start": { - "line": 732, + "line": 737, "column": 32 }, "end": { - "line": 732, + "line": 737, "column": 40 }, "identifierName": "behavior" @@ -44459,15 +44957,15 @@ }, "property": { "type": "Identifier", - "start": 22761, - "end": 22768, + "start": 23035, + "end": 23042, "loc": { "start": { - "line": 732, + "line": 737, "column": 41 }, "end": { - "line": 732, + "line": 737, "column": 48 }, "identifierName": "stroker" @@ -44478,15 +44976,15 @@ }, "alternate": { "type": "Identifier", - "start": 22771, - "end": 22780, + "start": 23045, + "end": 23054, "loc": { "start": { - "line": 732, + "line": 737, "column": 51 }, "end": { - "line": 732, + "line": 737, "column": 60 }, "identifierName": "undefined" @@ -44503,15 +45001,15 @@ { "type": "CommentBlock", "value": "*\n * Get current stroker\n * @return {Stroker}\n ", - "start": 22644, - "end": 22701, + "start": 22918, + "end": 22975, "loc": { "start": { - "line": 727, + "line": 732, "column": 2 }, "end": { - "line": 730, + "line": 735, "column": 5 } } @@ -44521,15 +45019,15 @@ { "type": "CommentBlock", "value": "*\n * Get current callbacks\n * @return {Array}\n ", - "start": 22789, - "end": 22846, + "start": 23063, + "end": 23120, "loc": { "start": { - "line": 735, + "line": 740, "column": 2 }, "end": { - "line": 738, + "line": 743, "column": 5 } } @@ -44538,15 +45036,15 @@ }, { "type": "ClassMethod", - "start": 22849, - "end": 22934, + "start": 23123, + "end": 23208, "loc": { "start": { - "line": 739, + "line": 744, "column": 2 }, "end": { - "line": 741, + "line": 746, "column": 3 } }, @@ -44554,15 +45052,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 22853, - "end": 22862, + "start": 23127, + "end": 23136, "loc": { "start": { - "line": 739, + "line": 744, "column": 6 }, "end": { - "line": 739, + "line": 744, "column": 15 }, "identifierName": "callbacks" @@ -44577,87 +45075,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 22865, - "end": 22934, + "start": 23139, + "end": 23208, "loc": { "start": { - "line": 739, + "line": 744, "column": 18 }, "end": { - "line": 741, + "line": 746, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 22871, - "end": 22930, + "start": 23145, + "end": 23204, "loc": { "start": { - "line": 740, + "line": 745, "column": 4 }, "end": { - "line": 740, + "line": 745, "column": 63 } }, "argument": { "type": "ConditionalExpression", - "start": 22878, - "end": 22929, + "start": 23152, + "end": 23203, "loc": { "start": { - "line": 740, + "line": 745, "column": 11 }, "end": { - "line": 740, + "line": 745, "column": 62 } }, "test": { "type": "MemberExpression", - "start": 22878, - "end": 22891, + "start": 23152, + "end": 23165, "loc": { "start": { - "line": 740, + "line": 745, "column": 11 }, "end": { - "line": 740, + "line": 745, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 22878, - "end": 22882, + "start": 23152, + "end": 23156, "loc": { "start": { - "line": 740, + "line": 745, "column": 11 }, "end": { - "line": 740, + "line": 745, "column": 15 } } }, "property": { "type": "Identifier", - "start": 22883, - "end": 22891, + "start": 23157, + "end": 23165, "loc": { "start": { - "line": 740, + "line": 745, "column": 16 }, "end": { - "line": 740, + "line": 745, "column": 24 }, "identifierName": "behavior" @@ -44668,58 +45166,58 @@ }, "consequent": { "type": "MemberExpression", - "start": 22894, - "end": 22917, + "start": 23168, + "end": 23191, "loc": { "start": { - "line": 740, + "line": 745, "column": 27 }, "end": { - "line": 740, + "line": 745, "column": 50 } }, "object": { "type": "MemberExpression", - "start": 22894, - "end": 22907, + "start": 23168, + "end": 23181, "loc": { "start": { - "line": 740, + "line": 745, "column": 27 }, "end": { - "line": 740, + "line": 745, "column": 40 } }, "object": { "type": "ThisExpression", - "start": 22894, - "end": 22898, + "start": 23168, + "end": 23172, "loc": { "start": { - "line": 740, + "line": 745, "column": 27 }, "end": { - "line": 740, + "line": 745, "column": 31 } } }, "property": { "type": "Identifier", - "start": 22899, - "end": 22907, + "start": 23173, + "end": 23181, "loc": { "start": { - "line": 740, + "line": 745, "column": 32 }, "end": { - "line": 740, + "line": 745, "column": 40 }, "identifierName": "behavior" @@ -44730,15 +45228,15 @@ }, "property": { "type": "Identifier", - "start": 22908, - "end": 22917, + "start": 23182, + "end": 23191, "loc": { "start": { - "line": 740, + "line": 745, "column": 41 }, "end": { - "line": 740, + "line": 745, "column": 50 }, "identifierName": "callbacks" @@ -44749,15 +45247,15 @@ }, "alternate": { "type": "Identifier", - "start": 22920, - "end": 22929, + "start": 23194, + "end": 23203, "loc": { "start": { - "line": 740, + "line": 745, "column": 53 }, "end": { - "line": 740, + "line": 745, "column": 62 }, "identifierName": "undefined" @@ -44774,15 +45272,15 @@ { "type": "CommentBlock", "value": "*\n * Get current callbacks\n * @return {Array}\n ", - "start": 22789, - "end": 22846, + "start": 23063, + "end": 23120, "loc": { "start": { - "line": 735, + "line": 740, "column": 2 }, "end": { - "line": 738, + "line": 743, "column": 5 } } @@ -44792,15 +45290,15 @@ { "type": "CommentBlock", "value": "*\n * Get a PNG image data url from the data model\n * @return {String}\n ", - "start": 22938, - "end": 23019, + "start": 23212, + "end": 23293, "loc": { "start": { - "line": 743, + "line": 748, "column": 2 }, "end": { - "line": 746, + "line": 751, "column": 5 } } @@ -44809,15 +45307,15 @@ }, { "type": "ClassMethod", - "start": 23022, - "end": 23098, + "start": 23296, + "end": 23372, "loc": { "start": { - "line": 747, + "line": 752, "column": 2 }, "end": { - "line": 749, + "line": 754, "column": 3 } }, @@ -44825,15 +45323,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 23026, - "end": 23029, + "start": 23300, + "end": 23303, "loc": { "start": { - "line": 747, + "line": 752, "column": 6 }, "end": { - "line": 747, + "line": 752, "column": 9 }, "identifierName": "png" @@ -44848,72 +45346,72 @@ "params": [], "body": { "type": "BlockStatement", - "start": 23032, - "end": 23098, + "start": 23306, + "end": 23372, "loc": { "start": { - "line": 747, + "line": 752, "column": 12 }, "end": { - "line": 749, + "line": 754, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 23038, - "end": 23094, + "start": 23312, + "end": 23368, "loc": { "start": { - "line": 748, + "line": 753, "column": 4 }, "end": { - "line": 748, + "line": 753, "column": 60 } }, "argument": { "type": "CallExpression", - "start": 23045, - "end": 23093, + "start": 23319, + "end": 23367, "loc": { "start": { - "line": 748, + "line": 753, "column": 11 }, "end": { - "line": 748, + "line": 753, "column": 59 } }, "callee": { "type": "MemberExpression", - "start": 23045, - "end": 23067, + "start": 23319, + "end": 23341, "loc": { "start": { - "line": 748, + "line": 753, "column": 11 }, "end": { - "line": 748, + "line": 753, "column": 33 } }, "object": { "type": "Identifier", - "start": 23045, - "end": 23058, + "start": 23319, + "end": 23332, "loc": { "start": { - "line": 748, + "line": 753, "column": 11 }, "end": { - "line": 748, + "line": 753, "column": 24 }, "identifierName": "ImageRenderer" @@ -44922,15 +45420,15 @@ }, "property": { "type": "Identifier", - "start": 23059, - "end": 23067, + "start": 23333, + "end": 23341, "loc": { "start": { - "line": 748, + "line": 753, "column": 25 }, "end": { - "line": 748, + "line": 753, "column": 33 }, "identifierName": "getImage" @@ -44942,44 +45440,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 23068, - "end": 23078, + "start": 23342, + "end": 23352, "loc": { "start": { - "line": 748, + "line": 753, "column": 34 }, "end": { - "line": 748, + "line": 753, "column": 44 } }, "object": { "type": "ThisExpression", - "start": 23068, - "end": 23072, + "start": 23342, + "end": 23346, "loc": { "start": { - "line": 748, + "line": 753, "column": 34 }, "end": { - "line": 748, + "line": 753, "column": 38 } } }, "property": { "type": "Identifier", - "start": 23073, - "end": 23078, + "start": 23347, + "end": 23352, "loc": { "start": { - "line": 748, + "line": 753, "column": 39 }, "end": { - "line": 748, + "line": 753, "column": 44 }, "identifierName": "model" @@ -44990,44 +45488,44 @@ }, { "type": "MemberExpression", - "start": 23080, - "end": 23092, + "start": 23354, + "end": 23366, "loc": { "start": { - "line": 748, + "line": 753, "column": 46 }, "end": { - "line": 748, + "line": 753, "column": 58 } }, "object": { "type": "ThisExpression", - "start": 23080, - "end": 23084, + "start": 23354, + "end": 23358, "loc": { "start": { - "line": 748, + "line": 753, "column": 46 }, "end": { - "line": 748, + "line": 753, "column": 50 } } }, "property": { "type": "Identifier", - "start": 23085, - "end": 23092, + "start": 23359, + "end": 23366, "loc": { "start": { - "line": 748, + "line": 753, "column": 51 }, "end": { - "line": 748, + "line": 753, "column": 58 }, "identifierName": "stroker" @@ -45047,15 +45545,15 @@ { "type": "CommentBlock", "value": "*\n * Get a PNG image data url from the data model\n * @return {String}\n ", - "start": 22938, - "end": 23019, + "start": 23212, + "end": 23293, "loc": { "start": { - "line": 743, + "line": 748, "column": 2 }, "end": { - "line": 746, + "line": 751, "column": 5 } } @@ -45065,15 +45563,15 @@ { "type": "CommentBlock", "value": "*\n * Get statistics to monitor what ink size is send to the server.\n * @return {Stats}\n ", - "start": 23102, - "end": 23200, + "start": 23376, + "end": 23474, "loc": { "start": { - "line": 751, + "line": 756, "column": 2 }, "end": { - "line": 754, + "line": 759, "column": 5 } } @@ -45082,15 +45580,15 @@ }, { "type": "ClassMethod", - "start": 23203, - "end": 23267, + "start": 23477, + "end": 23541, "loc": { "start": { - "line": 755, + "line": 760, "column": 2 }, "end": { - "line": 757, + "line": 762, "column": 3 } }, @@ -45098,15 +45596,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 23203, - "end": 23211, + "start": 23477, + "end": 23485, "loc": { "start": { - "line": 755, + "line": 760, "column": 2 }, "end": { - "line": 755, + "line": 760, "column": 10 }, "identifierName": "getStats" @@ -45122,72 +45620,72 @@ "params": [], "body": { "type": "BlockStatement", - "start": 23214, - "end": 23267, + "start": 23488, + "end": 23541, "loc": { "start": { - "line": 755, + "line": 760, "column": 13 }, "end": { - "line": 757, + "line": 762, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 23220, - "end": 23263, + "start": 23494, + "end": 23537, "loc": { "start": { - "line": 756, + "line": 761, "column": 4 }, "end": { - "line": 756, + "line": 761, "column": 47 } }, "argument": { "type": "CallExpression", - "start": 23227, - "end": 23262, + "start": 23501, + "end": 23536, "loc": { "start": { - "line": 756, + "line": 761, "column": 11 }, "end": { - "line": 756, + "line": 761, "column": 46 } }, "callee": { "type": "MemberExpression", - "start": 23227, - "end": 23250, + "start": 23501, + "end": 23524, "loc": { "start": { - "line": 756, + "line": 761, "column": 11 }, "end": { - "line": 756, + "line": 761, "column": 34 } }, "object": { "type": "Identifier", - "start": 23227, - "end": 23237, + "start": 23501, + "end": 23511, "loc": { "start": { - "line": 756, + "line": 761, "column": 11 }, "end": { - "line": 756, + "line": 761, "column": 21 }, "identifierName": "ModelStats" @@ -45196,15 +45694,15 @@ }, "property": { "type": "Identifier", - "start": 23238, - "end": 23250, + "start": 23512, + "end": 23524, "loc": { "start": { - "line": 756, + "line": 761, "column": 22 }, "end": { - "line": 756, + "line": 761, "column": 34 }, "identifierName": "computeStats" @@ -45216,44 +45714,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 23251, - "end": 23261, + "start": 23525, + "end": 23535, "loc": { "start": { - "line": 756, + "line": 761, "column": 35 }, "end": { - "line": 756, + "line": 761, "column": 45 } }, "object": { "type": "ThisExpression", - "start": 23251, - "end": 23255, + "start": 23525, + "end": 23529, "loc": { "start": { - "line": 756, + "line": 761, "column": 35 }, "end": { - "line": 756, + "line": 761, "column": 39 } } }, "property": { "type": "Identifier", - "start": 23256, - "end": 23261, + "start": 23530, + "end": 23535, "loc": { "start": { - "line": 756, + "line": 761, "column": 40 }, "end": { - "line": 756, + "line": 761, "column": 45 }, "identifierName": "model" @@ -45273,15 +45771,15 @@ { "type": "CommentBlock", "value": "*\n * Get statistics to monitor what ink size is send to the server.\n * @return {Stats}\n ", - "start": 23102, - "end": 23200, + "start": 23376, + "end": 23474, "loc": { "start": { - "line": 751, + "line": 756, "column": 2 }, "end": { - "line": 754, + "line": 759, "column": 5 } } @@ -45291,15 +45789,15 @@ { "type": "CommentBlock", "value": "*\n * True if initialized, false otherwise\n * @return {Boolean}\n ", - "start": 23271, - "end": 23345, + "start": 23545, + "end": 23619, "loc": { "start": { - "line": 759, + "line": 764, "column": 2 }, "end": { - "line": 762, + "line": 767, "column": 5 } } @@ -45308,15 +45806,15 @@ }, { "type": "ClassMethod", - "start": 23348, - "end": 23451, + "start": 23622, + "end": 23725, "loc": { "start": { - "line": 763, + "line": 768, "column": 2 }, "end": { - "line": 765, + "line": 770, "column": 3 } }, @@ -45324,15 +45822,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 23352, - "end": 23363, + "start": 23626, + "end": 23637, "loc": { "start": { - "line": 763, + "line": 768, "column": 6 }, "end": { - "line": 763, + "line": 768, "column": 17 }, "identifierName": "initialized" @@ -45347,87 +45845,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 23366, - "end": 23451, + "start": 23640, + "end": 23725, "loc": { "start": { - "line": 763, + "line": 768, "column": 20 }, "end": { - "line": 765, + "line": 770, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 23372, - "end": 23447, + "start": 23646, + "end": 23721, "loc": { "start": { - "line": 764, + "line": 769, "column": 4 }, "end": { - "line": 764, + "line": 769, "column": 79 } }, "argument": { "type": "ConditionalExpression", - "start": 23379, - "end": 23446, + "start": 23653, + "end": 23720, "loc": { "start": { - "line": 764, + "line": 769, "column": 11 }, "end": { - "line": 764, + "line": 769, "column": 78 } }, "test": { "type": "MemberExpression", - "start": 23379, - "end": 23401, + "start": 23653, + "end": 23675, "loc": { "start": { - "line": 764, + "line": 769, "column": 11 }, "end": { - "line": 764, + "line": 769, "column": 33 } }, "object": { "type": "ThisExpression", - "start": 23379, - "end": 23383, + "start": 23653, + "end": 23657, "loc": { "start": { - "line": 764, + "line": 769, "column": 11 }, "end": { - "line": 764, + "line": 769, "column": 15 } } }, "property": { "type": "Identifier", - "start": 23384, - "end": 23401, + "start": 23658, + "end": 23675, "loc": { "start": { - "line": 764, + "line": 769, "column": 16 }, "end": { - "line": 764, + "line": 769, "column": 33 }, "identifierName": "recognizerContext" @@ -45438,58 +45936,58 @@ }, "consequent": { "type": "MemberExpression", - "start": 23404, - "end": 23438, + "start": 23678, + "end": 23712, "loc": { "start": { - "line": 764, + "line": 769, "column": 36 }, "end": { - "line": 764, + "line": 769, "column": 70 } }, "object": { "type": "MemberExpression", - "start": 23404, - "end": 23426, + "start": 23678, + "end": 23700, "loc": { "start": { - "line": 764, + "line": 769, "column": 36 }, "end": { - "line": 764, + "line": 769, "column": 58 } }, "object": { "type": "ThisExpression", - "start": 23404, - "end": 23408, + "start": 23678, + "end": 23682, "loc": { "start": { - "line": 764, + "line": 769, "column": 36 }, "end": { - "line": 764, + "line": 769, "column": 40 } } }, "property": { "type": "Identifier", - "start": 23409, - "end": 23426, + "start": 23683, + "end": 23700, "loc": { "start": { - "line": 764, + "line": 769, "column": 41 }, "end": { - "line": 764, + "line": 769, "column": 58 }, "identifierName": "recognizerContext" @@ -45500,15 +45998,15 @@ }, "property": { "type": "Identifier", - "start": 23427, - "end": 23438, + "start": 23701, + "end": 23712, "loc": { "start": { - "line": 764, + "line": 769, "column": 59 }, "end": { - "line": 764, + "line": 769, "column": 70 }, "identifierName": "initialized" @@ -45519,15 +46017,15 @@ }, "alternate": { "type": "BooleanLiteral", - "start": 23441, - "end": 23446, + "start": 23715, + "end": 23720, "loc": { "start": { - "line": 764, + "line": 769, "column": 73 }, "end": { - "line": 764, + "line": 769, "column": 78 } }, @@ -45543,15 +46041,15 @@ { "type": "CommentBlock", "value": "*\n * True if initialized, false otherwise\n * @return {Boolean}\n ", - "start": 23271, - "end": 23345, + "start": 23545, + "end": 23619, "loc": { "start": { - "line": 759, + "line": 764, "column": 2 }, "end": { - "line": 762, + "line": 767, "column": 5 } } @@ -45561,15 +46059,15 @@ { "type": "CommentBlock", "value": "*\n * Handle a pointer down\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n * @param {String} [pointerType=mouse] Current pointer type\n * @param {String} [pointerId] Current pointer id\n ", - "start": 23455, - "end": 23686, + "start": 23729, + "end": 23960, "loc": { "start": { - "line": 767, + "line": 772, "column": 2 }, "end": { - "line": 772, + "line": 777, "column": 5 } } @@ -45578,15 +46076,15 @@ }, { "type": "ClassMethod", - "start": 23689, - "end": 24148, + "start": 23963, + "end": 24422, "loc": { "start": { - "line": 773, + "line": 778, "column": 2 }, "end": { - "line": 780, + "line": 785, "column": 3 } }, @@ -45594,15 +46092,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 23689, - "end": 23700, + "start": 23963, + "end": 23974, "loc": { "start": { - "line": 773, + "line": 778, "column": 2 }, "end": { - "line": 773, + "line": 778, "column": 13 }, "identifierName": "pointerDown" @@ -45618,15 +46116,15 @@ "params": [ { "type": "Identifier", - "start": 23701, - "end": 23706, + "start": 23975, + "end": 23980, "loc": { "start": { - "line": 773, + "line": 778, "column": 14 }, "end": { - "line": 773, + "line": 778, "column": 19 }, "identifierName": "point" @@ -45635,29 +46133,29 @@ }, { "type": "AssignmentPattern", - "start": 23708, - "end": 23727, + "start": 23982, + "end": 24001, "loc": { "start": { - "line": 773, + "line": 778, "column": 21 }, "end": { - "line": 773, + "line": 778, "column": 40 } }, "left": { "type": "Identifier", - "start": 23708, - "end": 23719, + "start": 23982, + "end": 23993, "loc": { "start": { - "line": 773, + "line": 778, "column": 21 }, "end": { - "line": 773, + "line": 778, "column": 32 }, "identifierName": "pointerType" @@ -45666,15 +46164,15 @@ }, "right": { "type": "StringLiteral", - "start": 23722, - "end": 23727, + "start": 23996, + "end": 24001, "loc": { "start": { - "line": 773, + "line": 778, "column": 35 }, "end": { - "line": 773, + "line": 778, "column": 40 } }, @@ -45687,15 +46185,15 @@ }, { "type": "Identifier", - "start": 23729, - "end": 23738, + "start": 24003, + "end": 24012, "loc": { "start": { - "line": 773, + "line": 778, "column": 42 }, "end": { - "line": 773, + "line": 778, "column": 51 }, "identifierName": "pointerId" @@ -45705,72 +46203,72 @@ ], "body": { "type": "BlockStatement", - "start": 23740, - "end": 24148, + "start": 24014, + "end": 24422, "loc": { "start": { - "line": 773, + "line": 778, "column": 53 }, "end": { - "line": 780, + "line": 785, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 23746, - "end": 23782, + "start": 24020, + "end": 24056, "loc": { "start": { - "line": 774, + "line": 779, "column": 4 }, "end": { - "line": 774, + "line": 779, "column": 40 } }, "expression": { "type": "CallExpression", - "start": 23746, - "end": 23781, + "start": 24020, + "end": 24055, "loc": { "start": { - "line": 774, + "line": 779, "column": 4 }, "end": { - "line": 774, + "line": 779, "column": 39 } }, "callee": { "type": "MemberExpression", - "start": 23746, - "end": 23758, + "start": 24020, + "end": 24032, "loc": { "start": { - "line": 774, + "line": 779, "column": 4 }, "end": { - "line": 774, + "line": 779, "column": 16 } }, "object": { "type": "Identifier", - "start": 23746, - "end": 23752, + "start": 24020, + "end": 24026, "loc": { "start": { - "line": 774, + "line": 779, "column": 4 }, "end": { - "line": 774, + "line": 779, "column": 10 }, "identifierName": "logger" @@ -45779,15 +46277,15 @@ }, "property": { "type": "Identifier", - "start": 23753, - "end": 23758, + "start": 24027, + "end": 24032, "loc": { "start": { - "line": 774, + "line": 779, "column": 11 }, "end": { - "line": 774, + "line": 779, "column": 16 }, "identifierName": "trace" @@ -45799,15 +46297,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 23759, - "end": 23773, + "start": 24033, + "end": 24047, "loc": { "start": { - "line": 774, + "line": 779, "column": 17 }, "end": { - "line": 774, + "line": 779, "column": 31 } }, @@ -45819,15 +46317,15 @@ }, { "type": "Identifier", - "start": 23775, - "end": 23780, + "start": 24049, + "end": 24054, "loc": { "start": { - "line": 774, + "line": 779, "column": 33 }, "end": { - "line": 774, + "line": 779, "column": 38 }, "identifierName": "point" @@ -45839,57 +46337,57 @@ }, { "type": "ExpressionStatement", - "start": 23787, - "end": 23825, + "start": 24061, + "end": 24099, "loc": { "start": { - "line": 775, + "line": 780, "column": 4 }, "end": { - "line": 775, + "line": 780, "column": 42 } }, "expression": { "type": "CallExpression", - "start": 23787, - "end": 23824, + "start": 24061, + "end": 24098, "loc": { "start": { - "line": 775, + "line": 780, "column": 4 }, "end": { - "line": 775, + "line": 780, "column": 41 } }, "callee": { "type": "MemberExpression", - "start": 23787, - "end": 23806, + "start": 24061, + "end": 24080, "loc": { "start": { - "line": 775, + "line": 780, "column": 4 }, "end": { - "line": 775, + "line": 780, "column": 23 } }, "object": { "type": "Identifier", - "start": 23787, - "end": 23793, + "start": 24061, + "end": 24067, "loc": { "start": { - "line": 775, + "line": 780, "column": 4 }, "end": { - "line": 775, + "line": 780, "column": 10 }, "identifierName": "window" @@ -45898,15 +46396,15 @@ }, "property": { "type": "Identifier", - "start": 23794, - "end": 23806, + "start": 24068, + "end": 24080, "loc": { "start": { - "line": 775, + "line": 780, "column": 11 }, "end": { - "line": 775, + "line": 780, "column": 23 }, "identifierName": "clearTimeout" @@ -45918,44 +46416,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 23807, - "end": 23823, + "start": 24081, + "end": 24097, "loc": { "start": { - "line": 775, + "line": 780, "column": 24 }, "end": { - "line": 775, + "line": 780, "column": 40 } }, "object": { "type": "ThisExpression", - "start": 23807, - "end": 23811, + "start": 24081, + "end": 24085, "loc": { "start": { - "line": 775, + "line": 780, "column": 24 }, "end": { - "line": 775, + "line": 780, "column": 28 } } }, "property": { "type": "Identifier", - "start": 23812, - "end": 23823, + "start": 24086, + "end": 24097, "loc": { "start": { - "line": 775, + "line": 780, "column": 29 }, "end": { - "line": 775, + "line": 780, "column": 40 }, "identifierName": "notifyTimer" @@ -45969,57 +46467,57 @@ }, { "type": "ExpressionStatement", - "start": 23830, - "end": 23868, + "start": 24104, + "end": 24142, "loc": { "start": { - "line": 776, + "line": 781, "column": 4 }, "end": { - "line": 776, + "line": 781, "column": 42 } }, "expression": { "type": "CallExpression", - "start": 23830, - "end": 23867, + "start": 24104, + "end": 24141, "loc": { "start": { - "line": 776, + "line": 781, "column": 4 }, "end": { - "line": 776, + "line": 781, "column": 41 } }, "callee": { "type": "MemberExpression", - "start": 23830, - "end": 23849, + "start": 24104, + "end": 24123, "loc": { "start": { - "line": 776, + "line": 781, "column": 4 }, "end": { - "line": 776, + "line": 781, "column": 23 } }, "object": { "type": "Identifier", - "start": 23830, - "end": 23836, + "start": 24104, + "end": 24110, "loc": { "start": { - "line": 776, + "line": 781, "column": 4 }, "end": { - "line": 776, + "line": 781, "column": 10 }, "identifierName": "window" @@ -46028,15 +46526,15 @@ }, "property": { "type": "Identifier", - "start": 23837, - "end": 23849, + "start": 24111, + "end": 24123, "loc": { "start": { - "line": 776, + "line": 781, "column": 11 }, "end": { - "line": 776, + "line": 781, "column": 23 }, "identifierName": "clearTimeout" @@ -46048,44 +46546,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 23850, - "end": 23866, + "start": 24124, + "end": 24140, "loc": { "start": { - "line": 776, + "line": 781, "column": 24 }, "end": { - "line": 776, + "line": 781, "column": 40 } }, "object": { "type": "ThisExpression", - "start": 23850, - "end": 23854, + "start": 24124, + "end": 24128, "loc": { "start": { - "line": 776, + "line": 781, "column": 24 }, "end": { - "line": 776, + "line": 781, "column": 28 } } }, "property": { "type": "Identifier", - "start": 23855, - "end": 23866, + "start": 24129, + "end": 24140, "loc": { "start": { - "line": 776, + "line": 781, "column": 29 }, "end": { - "line": 776, + "line": 781, "column": 40 }, "identifierName": "exportTimer" @@ -46099,73 +46597,73 @@ }, { "type": "ExpressionStatement", - "start": 23873, - "end": 24011, + "start": 24147, + "end": 24285, "loc": { "start": { - "line": 777, + "line": 782, "column": 4 }, "end": { - "line": 777, + "line": 782, "column": 142 } }, "expression": { "type": "AssignmentExpression", - "start": 23873, - "end": 24010, + "start": 24147, + "end": 24284, "loc": { "start": { - "line": 777, + "line": 782, "column": 4 }, "end": { - "line": 777, + "line": 782, "column": 141 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 23873, - "end": 23883, + "start": 24147, + "end": 24157, "loc": { "start": { - "line": 777, + "line": 782, "column": 4 }, "end": { - "line": 777, + "line": 782, "column": 14 } }, "object": { "type": "ThisExpression", - "start": 23873, - "end": 23877, + "start": 24147, + "end": 24151, "loc": { "start": { - "line": 777, + "line": 782, "column": 4 }, "end": { - "line": 777, + "line": 782, "column": 8 } } }, "property": { "type": "Identifier", - "start": 23878, - "end": 23883, + "start": 24152, + "end": 24157, "loc": { "start": { - "line": 777, + "line": 782, "column": 9 }, "end": { - "line": 777, + "line": 782, "column": 14 }, "identifierName": "model" @@ -46176,43 +46674,43 @@ }, "right": { "type": "CallExpression", - "start": 23886, - "end": 24010, + "start": 24160, + "end": 24284, "loc": { "start": { - "line": 777, + "line": 782, "column": 17 }, "end": { - "line": 777, + "line": 782, "column": 141 } }, "callee": { "type": "MemberExpression", - "start": 23886, - "end": 23912, + "start": 24160, + "end": 24186, "loc": { "start": { - "line": 777, + "line": 782, "column": 17 }, "end": { - "line": 777, + "line": 782, "column": 43 } }, "object": { "type": "Identifier", - "start": 23886, - "end": 23894, + "start": 24160, + "end": 24168, "loc": { "start": { - "line": 777, + "line": 782, "column": 17 }, "end": { - "line": 777, + "line": 782, "column": 25 }, "identifierName": "InkModel" @@ -46221,15 +46719,15 @@ }, "property": { "type": "Identifier", - "start": 23895, - "end": 23912, + "start": 24169, + "end": 24186, "loc": { "start": { - "line": 777, + "line": 782, "column": 26 }, "end": { - "line": 777, + "line": 782, "column": 43 }, "identifierName": "initPendingStroke" @@ -46241,44 +46739,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 23913, - "end": 23923, + "start": 24187, + "end": 24197, "loc": { "start": { - "line": 777, + "line": 782, "column": 44 }, "end": { - "line": 777, + "line": 782, "column": 54 } }, "object": { "type": "ThisExpression", - "start": 23913, - "end": 23917, + "start": 24187, + "end": 24191, "loc": { "start": { - "line": 777, + "line": 782, "column": 44 }, "end": { - "line": 777, + "line": 782, "column": 48 } } }, "property": { "type": "Identifier", - "start": 23918, - "end": 23923, + "start": 24192, + "end": 24197, "loc": { "start": { - "line": 777, + "line": 782, "column": 49 }, "end": { - "line": 777, + "line": 782, "column": 54 }, "identifierName": "model" @@ -46289,15 +46787,15 @@ }, { "type": "Identifier", - "start": 23925, - "end": 23930, + "start": 24199, + "end": 24204, "loc": { "start": { - "line": 777, + "line": 782, "column": 56 }, "end": { - "line": 777, + "line": 782, "column": 61 }, "identifierName": "point" @@ -46306,43 +46804,43 @@ }, { "type": "CallExpression", - "start": 23932, - "end": 24009, + "start": 24206, + "end": 24283, "loc": { "start": { - "line": 777, + "line": 782, "column": 63 }, "end": { - "line": 777, + "line": 782, "column": 140 } }, "callee": { "type": "MemberExpression", - "start": 23932, - "end": 23945, + "start": 24206, + "end": 24219, "loc": { "start": { - "line": 777, + "line": 782, "column": 63 }, "end": { - "line": 777, + "line": 782, "column": 76 } }, "object": { "type": "Identifier", - "start": 23932, - "end": 23938, + "start": 24206, + "end": 24212, "loc": { "start": { - "line": 777, + "line": 782, "column": 63 }, "end": { - "line": 777, + "line": 782, "column": 69 }, "identifierName": "Object" @@ -46351,15 +46849,15 @@ }, "property": { "type": "Identifier", - "start": 23939, - "end": 23945, + "start": 24213, + "end": 24219, "loc": { "start": { - "line": 777, + "line": 782, "column": 70 }, "end": { - "line": 777, + "line": 782, "column": 76 }, "identifierName": "assign" @@ -46371,30 +46869,30 @@ "arguments": [ { "type": "ObjectExpression", - "start": 23946, - "end": 23972, + "start": 24220, + "end": 24246, "loc": { "start": { - "line": 777, + "line": 782, "column": 77 }, "end": { - "line": 777, + "line": 782, "column": 103 } }, "properties": [ { "type": "ObjectProperty", - "start": 23948, - "end": 23959, + "start": 24222, + "end": 24233, "loc": { "start": { - "line": 777, + "line": 782, "column": 79 }, "end": { - "line": 777, + "line": 782, "column": 90 } }, @@ -46403,15 +46901,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 23948, - "end": 23959, + "start": 24222, + "end": 24233, "loc": { "start": { - "line": 777, + "line": 782, "column": 79 }, "end": { - "line": 777, + "line": 782, "column": 90 }, "identifierName": "pointerType" @@ -46420,15 +46918,15 @@ }, "value": { "type": "Identifier", - "start": 23948, - "end": 23959, + "start": 24222, + "end": 24233, "loc": { "start": { - "line": 777, + "line": 782, "column": 79 }, "end": { - "line": 777, + "line": 782, "column": 90 }, "identifierName": "pointerType" @@ -46441,15 +46939,15 @@ }, { "type": "ObjectProperty", - "start": 23961, - "end": 23970, + "start": 24235, + "end": 24244, "loc": { "start": { - "line": 777, + "line": 782, "column": 92 }, "end": { - "line": 777, + "line": 782, "column": 101 } }, @@ -46458,15 +46956,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 23961, - "end": 23970, + "start": 24235, + "end": 24244, "loc": { "start": { - "line": 777, + "line": 782, "column": 92 }, "end": { - "line": 777, + "line": 782, "column": 101 }, "identifierName": "pointerId" @@ -46475,15 +46973,15 @@ }, "value": { "type": "Identifier", - "start": 23961, - "end": 23970, + "start": 24235, + "end": 24244, "loc": { "start": { - "line": 777, + "line": 782, "column": 92 }, "end": { - "line": 777, + "line": 782, "column": 101 }, "identifierName": "pointerId" @@ -46498,58 +46996,58 @@ }, { "type": "MemberExpression", - "start": 23974, - "end": 23988, + "start": 24248, + "end": 24262, "loc": { "start": { - "line": 777, + "line": 782, "column": 105 }, "end": { - "line": 777, + "line": 782, "column": 119 } }, "object": { "type": "MemberExpression", - "start": 23974, - "end": 23984, + "start": 24248, + "end": 24258, "loc": { "start": { - "line": 777, + "line": 782, "column": 105 }, "end": { - "line": 777, + "line": 782, "column": 115 } }, "object": { "type": "ThisExpression", - "start": 23974, - "end": 23978, + "start": 24248, + "end": 24252, "loc": { "start": { - "line": 777, + "line": 782, "column": 105 }, "end": { - "line": 777, + "line": 782, "column": 109 } } }, "property": { "type": "Identifier", - "start": 23979, - "end": 23984, + "start": 24253, + "end": 24258, "loc": { "start": { - "line": 777, + "line": 782, "column": 110 }, "end": { - "line": 777, + "line": 782, "column": 115 }, "identifierName": "theme" @@ -46560,15 +47058,15 @@ }, "property": { "type": "Identifier", - "start": 23985, - "end": 23988, + "start": 24259, + "end": 24262, "loc": { "start": { - "line": 777, + "line": 782, "column": 116 }, "end": { - "line": 777, + "line": 782, "column": 119 }, "identifierName": "ink" @@ -46579,44 +47077,44 @@ }, { "type": "MemberExpression", - "start": 23990, - "end": 24008, + "start": 24264, + "end": 24282, "loc": { "start": { - "line": 777, + "line": 782, "column": 121 }, "end": { - "line": 777, + "line": 782, "column": 139 } }, "object": { "type": "ThisExpression", - "start": 23990, - "end": 23994, + "start": 24264, + "end": 24268, "loc": { "start": { - "line": 777, + "line": 782, "column": 121 }, "end": { - "line": 777, + "line": 782, "column": 125 } } }, "property": { "type": "Identifier", - "start": 23995, - "end": 24008, + "start": 24269, + "end": 24282, "loc": { "start": { - "line": 777, + "line": 782, "column": 126 }, "end": { - "line": 777, + "line": 782, "column": 139 }, "identifierName": "localPenStyle" @@ -46633,86 +47131,86 @@ }, { "type": "ExpressionStatement", - "start": 24016, - "end": 24096, + "start": 24290, + "end": 24370, "loc": { "start": { - "line": 778, + "line": 783, "column": 4 }, "end": { - "line": 778, + "line": 783, "column": 84 } }, "expression": { "type": "CallExpression", - "start": 24016, - "end": 24095, + "start": 24290, + "end": 24369, "loc": { "start": { - "line": 778, + "line": 783, "column": 4 }, "end": { - "line": 778, + "line": 783, "column": 83 } }, "callee": { "type": "MemberExpression", - "start": 24016, - "end": 24047, + "start": 24290, + "end": 24321, "loc": { "start": { - "line": 778, + "line": 783, "column": 4 }, "end": { - "line": 778, + "line": 783, "column": 35 } }, "object": { "type": "MemberExpression", - "start": 24016, - "end": 24029, + "start": 24290, + "end": 24303, "loc": { "start": { - "line": 778, + "line": 783, "column": 4 }, "end": { - "line": 778, + "line": 783, "column": 17 } }, "object": { "type": "ThisExpression", - "start": 24016, - "end": 24020, + "start": 24290, + "end": 24294, "loc": { "start": { - "line": 778, + "line": 783, "column": 4 }, "end": { - "line": 778, + "line": 783, "column": 8 } } }, "property": { "type": "Identifier", - "start": 24021, - "end": 24029, + "start": 24295, + "end": 24303, "loc": { "start": { - "line": 778, + "line": 783, "column": 9 }, "end": { - "line": 778, + "line": 783, "column": 17 }, "identifierName": "renderer" @@ -46723,15 +47221,15 @@ }, "property": { "type": "Identifier", - "start": 24030, - "end": 24047, + "start": 24304, + "end": 24321, "loc": { "start": { - "line": 778, + "line": 783, "column": 18 }, "end": { - "line": 778, + "line": 783, "column": 35 }, "identifierName": "drawCurrentStroke" @@ -46743,44 +47241,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 24048, - "end": 24068, + "start": 24322, + "end": 24342, "loc": { "start": { - "line": 778, + "line": 783, "column": 36 }, "end": { - "line": 778, + "line": 783, "column": 56 } }, "object": { "type": "ThisExpression", - "start": 24048, - "end": 24052, + "start": 24322, + "end": 24326, "loc": { "start": { - "line": 778, + "line": 783, "column": 36 }, "end": { - "line": 778, + "line": 783, "column": 40 } } }, "property": { "type": "Identifier", - "start": 24053, - "end": 24068, + "start": 24327, + "end": 24342, "loc": { "start": { - "line": 778, + "line": 783, "column": 41 }, "end": { - "line": 778, + "line": 783, "column": 56 }, "identifierName": "rendererContext" @@ -46791,44 +47289,44 @@ }, { "type": "MemberExpression", - "start": 24070, - "end": 24080, + "start": 24344, + "end": 24354, "loc": { "start": { - "line": 778, + "line": 783, "column": 58 }, "end": { - "line": 778, + "line": 783, "column": 68 } }, "object": { "type": "ThisExpression", - "start": 24070, - "end": 24074, + "start": 24344, + "end": 24348, "loc": { "start": { - "line": 778, + "line": 783, "column": 58 }, "end": { - "line": 778, + "line": 783, "column": 62 } } }, "property": { "type": "Identifier", - "start": 24075, - "end": 24080, + "start": 24349, + "end": 24354, "loc": { "start": { - "line": 778, + "line": 783, "column": 63 }, "end": { - "line": 778, + "line": 783, "column": 68 }, "identifierName": "model" @@ -46839,44 +47337,44 @@ }, { "type": "MemberExpression", - "start": 24082, - "end": 24094, + "start": 24356, + "end": 24368, "loc": { "start": { - "line": 778, + "line": 783, "column": 70 }, "end": { - "line": 778, + "line": 783, "column": 82 } }, "object": { "type": "ThisExpression", - "start": 24082, - "end": 24086, + "start": 24356, + "end": 24360, "loc": { "start": { - "line": 778, + "line": 783, "column": 70 }, "end": { - "line": 778, + "line": 783, "column": 74 } } }, "property": { "type": "Identifier", - "start": 24087, - "end": 24094, + "start": 24361, + "end": 24368, "loc": { "start": { - "line": 778, + "line": 783, "column": 75 }, "end": { - "line": 778, + "line": 783, "column": 82 }, "identifierName": "stroker" @@ -46891,15 +47389,15 @@ { "type": "CommentLine", "value": " Currently no recognition on pointer down", - "start": 24101, - "end": 24144, + "start": 24375, + "end": 24418, "loc": { "start": { - "line": 779, + "line": 784, "column": 4 }, "end": { - "line": 779, + "line": 784, "column": 47 } } @@ -46914,15 +47412,15 @@ { "type": "CommentBlock", "value": "*\n * Handle a pointer down\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n * @param {String} [pointerType=mouse] Current pointer type\n * @param {String} [pointerId] Current pointer id\n ", - "start": 23455, - "end": 23686, + "start": 23729, + "end": 23960, "loc": { "start": { - "line": 767, + "line": 772, "column": 2 }, "end": { - "line": 772, + "line": 777, "column": 5 } } @@ -46932,15 +47430,15 @@ { "type": "CommentBlock", "value": "*\n * Handle a pointer move\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n ", - "start": 24152, - "end": 24269, + "start": 24426, + "end": 24543, "loc": { "start": { - "line": 782, + "line": 787, "column": 2 }, "end": { - "line": 785, + "line": 790, "column": 5 } } @@ -46949,15 +47447,15 @@ }, { "type": "ClassMethod", - "start": 24272, - "end": 24538, + "start": 24546, + "end": 24812, "loc": { "start": { - "line": 786, + "line": 791, "column": 2 }, "end": { - "line": 791, + "line": 796, "column": 3 } }, @@ -46965,15 +47463,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 24272, - "end": 24283, + "start": 24546, + "end": 24557, "loc": { "start": { - "line": 786, + "line": 791, "column": 2 }, "end": { - "line": 786, + "line": 791, "column": 13 }, "identifierName": "pointerMove" @@ -46989,15 +47487,15 @@ "params": [ { "type": "Identifier", - "start": 24284, - "end": 24289, + "start": 24558, + "end": 24563, "loc": { "start": { - "line": 786, + "line": 791, "column": 14 }, "end": { - "line": 786, + "line": 791, "column": 19 }, "identifierName": "point" @@ -47007,72 +47505,72 @@ ], "body": { "type": "BlockStatement", - "start": 24291, - "end": 24538, + "start": 24565, + "end": 24812, "loc": { "start": { - "line": 786, + "line": 791, "column": 21 }, "end": { - "line": 791, + "line": 796, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 24297, - "end": 24333, + "start": 24571, + "end": 24607, "loc": { "start": { - "line": 787, + "line": 792, "column": 4 }, "end": { - "line": 787, + "line": 792, "column": 40 } }, "expression": { "type": "CallExpression", - "start": 24297, - "end": 24332, + "start": 24571, + "end": 24606, "loc": { "start": { - "line": 787, + "line": 792, "column": 4 }, "end": { - "line": 787, + "line": 792, "column": 39 } }, "callee": { "type": "MemberExpression", - "start": 24297, - "end": 24309, + "start": 24571, + "end": 24583, "loc": { "start": { - "line": 787, + "line": 792, "column": 4 }, "end": { - "line": 787, + "line": 792, "column": 16 } }, "object": { "type": "Identifier", - "start": 24297, - "end": 24303, + "start": 24571, + "end": 24577, "loc": { "start": { - "line": 787, + "line": 792, "column": 4 }, "end": { - "line": 787, + "line": 792, "column": 10 }, "identifierName": "logger" @@ -47081,15 +47579,15 @@ }, "property": { "type": "Identifier", - "start": 24304, - "end": 24309, + "start": 24578, + "end": 24583, "loc": { "start": { - "line": 787, + "line": 792, "column": 11 }, "end": { - "line": 787, + "line": 792, "column": 16 }, "identifierName": "trace" @@ -47101,15 +47599,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 24310, - "end": 24324, + "start": 24584, + "end": 24598, "loc": { "start": { - "line": 787, + "line": 792, "column": 17 }, "end": { - "line": 787, + "line": 792, "column": 31 } }, @@ -47121,15 +47619,15 @@ }, { "type": "Identifier", - "start": 24326, - "end": 24331, + "start": 24600, + "end": 24605, "loc": { "start": { - "line": 787, + "line": 792, "column": 33 }, "end": { - "line": 787, + "line": 792, "column": 38 }, "identifierName": "point" @@ -47141,73 +47639,73 @@ }, { "type": "ExpressionStatement", - "start": 24338, - "end": 24401, + "start": 24612, + "end": 24675, "loc": { "start": { - "line": 788, + "line": 793, "column": 4 }, "end": { - "line": 788, + "line": 793, "column": 67 } }, "expression": { "type": "AssignmentExpression", - "start": 24338, - "end": 24400, + "start": 24612, + "end": 24674, "loc": { "start": { - "line": 788, + "line": 793, "column": 4 }, "end": { - "line": 788, + "line": 793, "column": 66 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 24338, - "end": 24348, + "start": 24612, + "end": 24622, "loc": { "start": { - "line": 788, + "line": 793, "column": 4 }, "end": { - "line": 788, + "line": 793, "column": 14 } }, "object": { "type": "ThisExpression", - "start": 24338, - "end": 24342, + "start": 24612, + "end": 24616, "loc": { "start": { - "line": 788, + "line": 793, "column": 4 }, "end": { - "line": 788, + "line": 793, "column": 8 } } }, "property": { "type": "Identifier", - "start": 24343, - "end": 24348, + "start": 24617, + "end": 24622, "loc": { "start": { - "line": 788, + "line": 793, "column": 9 }, "end": { - "line": 788, + "line": 793, "column": 14 }, "identifierName": "model" @@ -47218,43 +47716,43 @@ }, "right": { "type": "CallExpression", - "start": 24351, - "end": 24400, + "start": 24625, + "end": 24674, "loc": { "start": { - "line": 788, + "line": 793, "column": 17 }, "end": { - "line": 788, + "line": 793, "column": 66 } }, "callee": { "type": "MemberExpression", - "start": 24351, - "end": 24381, + "start": 24625, + "end": 24655, "loc": { "start": { - "line": 788, + "line": 793, "column": 17 }, "end": { - "line": 788, + "line": 793, "column": 47 } }, "object": { "type": "Identifier", - "start": 24351, - "end": 24359, + "start": 24625, + "end": 24633, "loc": { "start": { - "line": 788, + "line": 793, "column": 17 }, "end": { - "line": 788, + "line": 793, "column": 25 }, "identifierName": "InkModel" @@ -47263,15 +47761,15 @@ }, "property": { "type": "Identifier", - "start": 24360, - "end": 24381, + "start": 24634, + "end": 24655, "loc": { "start": { - "line": 788, + "line": 793, "column": 26 }, "end": { - "line": 788, + "line": 793, "column": 47 }, "identifierName": "appendToPendingStroke" @@ -47283,44 +47781,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 24382, - "end": 24392, + "start": 24656, + "end": 24666, "loc": { "start": { - "line": 788, + "line": 793, "column": 48 }, "end": { - "line": 788, + "line": 793, "column": 58 } }, "object": { "type": "ThisExpression", - "start": 24382, - "end": 24386, + "start": 24656, + "end": 24660, "loc": { "start": { - "line": 788, + "line": 793, "column": 48 }, "end": { - "line": 788, + "line": 793, "column": 52 } } }, "property": { "type": "Identifier", - "start": 24387, - "end": 24392, + "start": 24661, + "end": 24666, "loc": { "start": { - "line": 788, + "line": 793, "column": 53 }, "end": { - "line": 788, + "line": 793, "column": 58 }, "identifierName": "model" @@ -47331,15 +47829,15 @@ }, { "type": "Identifier", - "start": 24394, - "end": 24399, + "start": 24668, + "end": 24673, "loc": { "start": { - "line": 788, + "line": 793, "column": 60 }, "end": { - "line": 788, + "line": 793, "column": 65 }, "identifierName": "point" @@ -47352,86 +47850,86 @@ }, { "type": "ExpressionStatement", - "start": 24406, - "end": 24486, + "start": 24680, + "end": 24760, "loc": { "start": { - "line": 789, + "line": 794, "column": 4 }, "end": { - "line": 789, + "line": 794, "column": 84 } }, "expression": { "type": "CallExpression", - "start": 24406, - "end": 24485, + "start": 24680, + "end": 24759, "loc": { "start": { - "line": 789, + "line": 794, "column": 4 }, "end": { - "line": 789, + "line": 794, "column": 83 } }, "callee": { "type": "MemberExpression", - "start": 24406, - "end": 24437, + "start": 24680, + "end": 24711, "loc": { "start": { - "line": 789, + "line": 794, "column": 4 }, "end": { - "line": 789, + "line": 794, "column": 35 } }, "object": { "type": "MemberExpression", - "start": 24406, - "end": 24419, + "start": 24680, + "end": 24693, "loc": { "start": { - "line": 789, + "line": 794, "column": 4 }, "end": { - "line": 789, + "line": 794, "column": 17 } }, "object": { "type": "ThisExpression", - "start": 24406, - "end": 24410, + "start": 24680, + "end": 24684, "loc": { "start": { - "line": 789, + "line": 794, "column": 4 }, "end": { - "line": 789, + "line": 794, "column": 8 } } }, "property": { "type": "Identifier", - "start": 24411, - "end": 24419, + "start": 24685, + "end": 24693, "loc": { "start": { - "line": 789, + "line": 794, "column": 9 }, "end": { - "line": 789, + "line": 794, "column": 17 }, "identifierName": "renderer" @@ -47442,15 +47940,15 @@ }, "property": { "type": "Identifier", - "start": 24420, - "end": 24437, + "start": 24694, + "end": 24711, "loc": { "start": { - "line": 789, + "line": 794, "column": 18 }, "end": { - "line": 789, + "line": 794, "column": 35 }, "identifierName": "drawCurrentStroke" @@ -47462,44 +47960,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 24438, - "end": 24458, + "start": 24712, + "end": 24732, "loc": { "start": { - "line": 789, + "line": 794, "column": 36 }, "end": { - "line": 789, + "line": 794, "column": 56 } }, "object": { "type": "ThisExpression", - "start": 24438, - "end": 24442, + "start": 24712, + "end": 24716, "loc": { "start": { - "line": 789, + "line": 794, "column": 36 }, "end": { - "line": 789, + "line": 794, "column": 40 } } }, "property": { "type": "Identifier", - "start": 24443, - "end": 24458, + "start": 24717, + "end": 24732, "loc": { "start": { - "line": 789, + "line": 794, "column": 41 }, "end": { - "line": 789, + "line": 794, "column": 56 }, "identifierName": "rendererContext" @@ -47510,44 +48008,44 @@ }, { "type": "MemberExpression", - "start": 24460, - "end": 24470, + "start": 24734, + "end": 24744, "loc": { "start": { - "line": 789, + "line": 794, "column": 58 }, "end": { - "line": 789, + "line": 794, "column": 68 } }, "object": { "type": "ThisExpression", - "start": 24460, - "end": 24464, + "start": 24734, + "end": 24738, "loc": { "start": { - "line": 789, + "line": 794, "column": 58 }, "end": { - "line": 789, + "line": 794, "column": 62 } } }, "property": { "type": "Identifier", - "start": 24465, - "end": 24470, + "start": 24739, + "end": 24744, "loc": { "start": { - "line": 789, + "line": 794, "column": 63 }, "end": { - "line": 789, + "line": 794, "column": 68 }, "identifierName": "model" @@ -47558,44 +48056,44 @@ }, { "type": "MemberExpression", - "start": 24472, - "end": 24484, + "start": 24746, + "end": 24758, "loc": { "start": { - "line": 789, + "line": 794, "column": 70 }, "end": { - "line": 789, + "line": 794, "column": 82 } }, "object": { "type": "ThisExpression", - "start": 24472, - "end": 24476, + "start": 24746, + "end": 24750, "loc": { "start": { - "line": 789, + "line": 794, "column": 70 }, "end": { - "line": 789, + "line": 794, "column": 74 } } }, "property": { "type": "Identifier", - "start": 24477, - "end": 24484, + "start": 24751, + "end": 24758, "loc": { "start": { - "line": 789, + "line": 794, "column": 75 }, "end": { - "line": 789, + "line": 794, "column": 82 }, "identifierName": "stroker" @@ -47610,15 +48108,15 @@ { "type": "CommentLine", "value": " Currently no recognition on pointer move", - "start": 24491, - "end": 24534, + "start": 24765, + "end": 24808, "loc": { "start": { - "line": 790, + "line": 795, "column": 4 }, "end": { - "line": 790, + "line": 795, "column": 47 } } @@ -47633,15 +48131,15 @@ { "type": "CommentBlock", "value": "*\n * Handle a pointer move\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n ", - "start": 24152, - "end": 24269, + "start": 24426, + "end": 24543, "loc": { "start": { - "line": 782, + "line": 787, "column": 2 }, "end": { - "line": 785, + "line": 790, "column": 5 } } @@ -47651,15 +48149,15 @@ { "type": "CommentBlock", "value": "*\n * Handle a pointer up\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n ", - "start": 24542, - "end": 24657, + "start": 24816, + "end": 24931, "loc": { "start": { - "line": 793, + "line": 798, "column": 2 }, "end": { - "line": 796, + "line": 801, "column": 5 } } @@ -47668,15 +48166,15 @@ }, { "type": "ClassMethod", - "start": 24660, - "end": 25066, + "start": 24934, + "end": 25340, "loc": { "start": { - "line": 797, + "line": 802, "column": 2 }, "end": { - "line": 808, + "line": 813, "column": 3 } }, @@ -47684,15 +48182,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 24660, - "end": 24669, + "start": 24934, + "end": 24943, "loc": { "start": { - "line": 797, + "line": 802, "column": 2 }, "end": { - "line": 797, + "line": 802, "column": 11 }, "identifierName": "pointerUp" @@ -47708,15 +48206,15 @@ "params": [ { "type": "Identifier", - "start": 24670, - "end": 24675, + "start": 24944, + "end": 24949, "loc": { "start": { - "line": 797, + "line": 802, "column": 12 }, "end": { - "line": 797, + "line": 802, "column": 17 }, "identifierName": "point" @@ -47726,72 +48224,72 @@ ], "body": { "type": "BlockStatement", - "start": 24677, - "end": 25066, + "start": 24951, + "end": 25340, "loc": { "start": { - "line": 797, + "line": 802, "column": 19 }, "end": { - "line": 808, + "line": 813, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 24683, - "end": 24717, + "start": 24957, + "end": 24991, "loc": { "start": { - "line": 798, + "line": 803, "column": 4 }, "end": { - "line": 798, + "line": 803, "column": 38 } }, "expression": { "type": "CallExpression", - "start": 24683, - "end": 24716, + "start": 24957, + "end": 24990, "loc": { "start": { - "line": 798, + "line": 803, "column": 4 }, "end": { - "line": 798, + "line": 803, "column": 37 } }, "callee": { "type": "MemberExpression", - "start": 24683, - "end": 24695, + "start": 24957, + "end": 24969, "loc": { "start": { - "line": 798, + "line": 803, "column": 4 }, "end": { - "line": 798, + "line": 803, "column": 16 } }, "object": { "type": "Identifier", - "start": 24683, - "end": 24689, + "start": 24957, + "end": 24963, "loc": { "start": { - "line": 798, + "line": 803, "column": 4 }, "end": { - "line": 798, + "line": 803, "column": 10 }, "identifierName": "logger" @@ -47800,15 +48298,15 @@ }, "property": { "type": "Identifier", - "start": 24690, - "end": 24695, + "start": 24964, + "end": 24969, "loc": { "start": { - "line": 798, + "line": 803, "column": 11 }, "end": { - "line": 798, + "line": 803, "column": 16 }, "identifierName": "trace" @@ -47820,15 +48318,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 24696, - "end": 24708, + "start": 24970, + "end": 24982, "loc": { "start": { - "line": 798, + "line": 803, "column": 17 }, "end": { - "line": 798, + "line": 803, "column": 29 } }, @@ -47840,15 +48338,15 @@ }, { "type": "Identifier", - "start": 24710, - "end": 24715, + "start": 24984, + "end": 24989, "loc": { "start": { - "line": 798, + "line": 803, "column": 31 }, "end": { - "line": 798, + "line": 803, "column": 36 }, "identifierName": "point" @@ -47860,73 +48358,73 @@ }, { "type": "ExpressionStatement", - "start": 24722, - "end": 24795, + "start": 24996, + "end": 25069, "loc": { "start": { - "line": 799, + "line": 804, "column": 4 }, "end": { - "line": 799, + "line": 804, "column": 77 } }, "expression": { "type": "AssignmentExpression", - "start": 24722, - "end": 24794, + "start": 24996, + "end": 25068, "loc": { "start": { - "line": 799, + "line": 804, "column": 4 }, "end": { - "line": 799, + "line": 804, "column": 76 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 24722, - "end": 24732, + "start": 24996, + "end": 25006, "loc": { "start": { - "line": 799, + "line": 804, "column": 4 }, "end": { - "line": 799, + "line": 804, "column": 14 } }, "object": { "type": "ThisExpression", - "start": 24722, - "end": 24726, + "start": 24996, + "end": 25000, "loc": { "start": { - "line": 799, + "line": 804, "column": 4 }, "end": { - "line": 799, + "line": 804, "column": 8 } } }, "property": { "type": "Identifier", - "start": 24727, - "end": 24732, + "start": 25001, + "end": 25006, "loc": { "start": { - "line": 799, + "line": 804, "column": 9 }, "end": { - "line": 799, + "line": 804, "column": 14 }, "identifierName": "model" @@ -47937,43 +48435,43 @@ }, "right": { "type": "CallExpression", - "start": 24735, - "end": 24794, + "start": 25009, + "end": 25068, "loc": { "start": { - "line": 799, + "line": 804, "column": 17 }, "end": { - "line": 799, + "line": 804, "column": 76 } }, "callee": { "type": "MemberExpression", - "start": 24735, - "end": 24760, + "start": 25009, + "end": 25034, "loc": { "start": { - "line": 799, + "line": 804, "column": 17 }, "end": { - "line": 799, + "line": 804, "column": 42 } }, "object": { "type": "Identifier", - "start": 24735, - "end": 24743, + "start": 25009, + "end": 25017, "loc": { "start": { - "line": 799, + "line": 804, "column": 17 }, "end": { - "line": 799, + "line": 804, "column": 25 }, "identifierName": "InkModel" @@ -47982,15 +48480,15 @@ }, "property": { "type": "Identifier", - "start": 24744, - "end": 24760, + "start": 25018, + "end": 25034, "loc": { "start": { - "line": 799, + "line": 804, "column": 26 }, "end": { - "line": 799, + "line": 804, "column": 42 }, "identifierName": "endPendingStroke" @@ -48002,44 +48500,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 24761, - "end": 24771, + "start": 25035, + "end": 25045, "loc": { "start": { - "line": 799, + "line": 804, "column": 43 }, "end": { - "line": 799, + "line": 804, "column": 53 } }, "object": { "type": "ThisExpression", - "start": 24761, - "end": 24765, + "start": 25035, + "end": 25039, "loc": { "start": { - "line": 799, + "line": 804, "column": 43 }, "end": { - "line": 799, + "line": 804, "column": 47 } } }, "property": { "type": "Identifier", - "start": 24766, - "end": 24771, + "start": 25040, + "end": 25045, "loc": { "start": { - "line": 799, + "line": 804, "column": 48 }, "end": { - "line": 799, + "line": 804, "column": 53 }, "identifierName": "model" @@ -48050,15 +48548,15 @@ }, { "type": "Identifier", - "start": 24773, - "end": 24778, + "start": 25047, + "end": 25052, "loc": { "start": { - "line": 799, + "line": 804, "column": 55 }, "end": { - "line": 799, + "line": 804, "column": 60 }, "identifierName": "point" @@ -48067,44 +48565,44 @@ }, { "type": "MemberExpression", - "start": 24780, - "end": 24793, + "start": 25054, + "end": 25067, "loc": { "start": { - "line": 799, + "line": 804, "column": 62 }, "end": { - "line": 799, + "line": 804, "column": 75 } }, "object": { "type": "ThisExpression", - "start": 24780, - "end": 24784, + "start": 25054, + "end": 25058, "loc": { "start": { - "line": 799, + "line": 804, "column": 62 }, "end": { - "line": 799, + "line": 804, "column": 66 } } }, "property": { "type": "Identifier", - "start": 24785, - "end": 24793, + "start": 25059, + "end": 25067, "loc": { "start": { - "line": 799, + "line": 804, "column": 67 }, "end": { - "line": 799, + "line": 804, "column": 75 }, "identifierName": "penStyle" @@ -48119,86 +48617,86 @@ }, { "type": "ExpressionStatement", - "start": 24800, - "end": 24872, + "start": 25074, + "end": 25146, "loc": { "start": { - "line": 800, + "line": 805, "column": 4 }, "end": { - "line": 800, + "line": 805, "column": 76 } }, "expression": { "type": "CallExpression", - "start": 24800, - "end": 24871, + "start": 25074, + "end": 25145, "loc": { "start": { - "line": 800, + "line": 805, "column": 4 }, "end": { - "line": 800, + "line": 805, "column": 75 } }, "callee": { "type": "MemberExpression", - "start": 24800, - "end": 24823, + "start": 25074, + "end": 25097, "loc": { "start": { - "line": 800, + "line": 805, "column": 4 }, "end": { - "line": 800, + "line": 805, "column": 27 } }, "object": { "type": "MemberExpression", - "start": 24800, - "end": 24813, + "start": 25074, + "end": 25087, "loc": { "start": { - "line": 800, + "line": 805, "column": 4 }, "end": { - "line": 800, + "line": 805, "column": 17 } }, "object": { "type": "ThisExpression", - "start": 24800, - "end": 24804, + "start": 25074, + "end": 25078, "loc": { "start": { - "line": 800, + "line": 805, "column": 4 }, "end": { - "line": 800, + "line": 805, "column": 8 } } }, "property": { "type": "Identifier", - "start": 24805, - "end": 24813, + "start": 25079, + "end": 25087, "loc": { "start": { - "line": 800, + "line": 805, "column": 9 }, "end": { - "line": 800, + "line": 805, "column": 17 }, "identifierName": "renderer" @@ -48209,15 +48707,15 @@ }, "property": { "type": "Identifier", - "start": 24814, - "end": 24823, + "start": 25088, + "end": 25097, "loc": { "start": { - "line": 800, + "line": 805, "column": 18 }, "end": { - "line": 800, + "line": 805, "column": 27 }, "identifierName": "drawModel" @@ -48229,44 +48727,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 24824, - "end": 24844, + "start": 25098, + "end": 25118, "loc": { "start": { - "line": 800, + "line": 805, "column": 28 }, "end": { - "line": 800, + "line": 805, "column": 48 } }, "object": { "type": "ThisExpression", - "start": 24824, - "end": 24828, + "start": 25098, + "end": 25102, "loc": { "start": { - "line": 800, + "line": 805, "column": 28 }, "end": { - "line": 800, + "line": 805, "column": 32 } } }, "property": { "type": "Identifier", - "start": 24829, - "end": 24844, + "start": 25103, + "end": 25118, "loc": { "start": { - "line": 800, + "line": 805, "column": 33 }, "end": { - "line": 800, + "line": 805, "column": 48 }, "identifierName": "rendererContext" @@ -48277,44 +48775,44 @@ }, { "type": "MemberExpression", - "start": 24846, - "end": 24856, + "start": 25120, + "end": 25130, "loc": { "start": { - "line": 800, + "line": 805, "column": 50 }, "end": { - "line": 800, + "line": 805, "column": 60 } }, "object": { "type": "ThisExpression", - "start": 24846, - "end": 24850, + "start": 25120, + "end": 25124, "loc": { "start": { - "line": 800, + "line": 805, "column": 50 }, "end": { - "line": 800, + "line": 805, "column": 54 } } }, "property": { "type": "Identifier", - "start": 24851, - "end": 24856, + "start": 25125, + "end": 25130, "loc": { "start": { - "line": 800, + "line": 805, "column": 55 }, "end": { - "line": 800, + "line": 805, "column": 60 }, "identifierName": "model" @@ -48325,44 +48823,44 @@ }, { "type": "MemberExpression", - "start": 24858, - "end": 24870, + "start": 25132, + "end": 25144, "loc": { "start": { - "line": 800, + "line": 805, "column": 62 }, "end": { - "line": 800, + "line": 805, "column": 74 } }, "object": { "type": "ThisExpression", - "start": 24858, - "end": 24862, + "start": 25132, + "end": 25136, "loc": { "start": { - "line": 800, + "line": 805, "column": 62 }, "end": { - "line": 800, + "line": 805, "column": 66 } } }, "property": { "type": "Identifier", - "start": 24863, - "end": 24870, + "start": 25137, + "end": 25144, "loc": { "start": { - "line": 800, + "line": 805, "column": 67 }, "end": { - "line": 800, + "line": 805, "column": 74 }, "identifierName": "stroker" @@ -48376,72 +48874,72 @@ }, { "type": "IfStatement", - "start": 24878, - "end": 25062, + "start": 25152, + "end": 25336, "loc": { "start": { - "line": 802, + "line": 807, "column": 4 }, "end": { - "line": 807, + "line": 812, "column": 5 } }, "test": { "type": "MemberExpression", - "start": 24882, - "end": 24908, + "start": 25156, + "end": 25182, "loc": { "start": { - "line": 802, + "line": 807, "column": 8 }, "end": { - "line": 802, + "line": 807, "column": 34 } }, "object": { "type": "MemberExpression", - "start": 24882, - "end": 24897, + "start": 25156, + "end": 25171, "loc": { "start": { - "line": 802, + "line": 807, "column": 8 }, "end": { - "line": 802, + "line": 807, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 24882, - "end": 24886, + "start": 25156, + "end": 25160, "loc": { "start": { - "line": 802, + "line": 807, "column": 8 }, "end": { - "line": 802, + "line": 807, "column": 12 } } }, "property": { "type": "Identifier", - "start": 24887, - "end": 24897, + "start": 25161, + "end": 25171, "loc": { "start": { - "line": 802, + "line": 807, "column": 13 }, "end": { - "line": 802, + "line": 807, "column": 23 }, "identifierName": "recognizer" @@ -48452,15 +48950,15 @@ }, "property": { "type": "Identifier", - "start": 24898, - "end": 24908, + "start": 25172, + "end": 25182, "loc": { "start": { - "line": 802, + "line": 807, "column": 24 }, "end": { - "line": 802, + "line": 807, "column": 34 }, "identifierName": "addStrokes" @@ -48471,58 +48969,58 @@ }, "consequent": { "type": "BlockStatement", - "start": 24910, - "end": 24953, + "start": 25184, + "end": 25227, "loc": { "start": { - "line": 802, + "line": 807, "column": 36 }, "end": { - "line": 804, + "line": 809, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 24918, - "end": 24947, + "start": 25192, + "end": 25221, "loc": { "start": { - "line": 803, + "line": 808, "column": 6 }, "end": { - "line": 803, + "line": 808, "column": 35 } }, "expression": { "type": "CallExpression", - "start": 24918, - "end": 24946, + "start": 25192, + "end": 25220, "loc": { "start": { - "line": 803, + "line": 808, "column": 6 }, "end": { - "line": 803, + "line": 808, "column": 34 } }, "callee": { "type": "Identifier", - "start": 24918, - "end": 24928, + "start": 25192, + "end": 25202, "loc": { "start": { - "line": 803, + "line": 808, "column": 6 }, "end": { - "line": 803, + "line": 808, "column": 16 }, "identifierName": "addStrokes" @@ -48532,59 +49030,59 @@ "arguments": [ { "type": "ThisExpression", - "start": 24929, - "end": 24933, + "start": 25203, + "end": 25207, "loc": { "start": { - "line": 803, + "line": 808, "column": 17 }, "end": { - "line": 803, + "line": 808, "column": 21 } } }, { "type": "MemberExpression", - "start": 24935, - "end": 24945, + "start": 25209, + "end": 25219, "loc": { "start": { - "line": 803, + "line": 808, "column": 23 }, "end": { - "line": 803, + "line": 808, "column": 33 } }, "object": { "type": "ThisExpression", - "start": 24935, - "end": 24939, + "start": 25209, + "end": 25213, "loc": { "start": { - "line": 803, + "line": 808, "column": 23 }, "end": { - "line": 803, + "line": 808, "column": 27 } } }, "property": { "type": "Identifier", - "start": 24940, - "end": 24945, + "start": 25214, + "end": 25219, "loc": { "start": { - "line": 803, + "line": 808, "column": 28 }, "end": { - "line": 803, + "line": 808, "column": 33 }, "identifierName": "model" @@ -48601,58 +49099,58 @@ }, "alternate": { "type": "BlockStatement", - "start": 24959, - "end": 25062, + "start": 25233, + "end": 25336, "loc": { "start": { - "line": 804, + "line": 809, "column": 11 }, "end": { - "line": 807, + "line": 812, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 25008, - "end": 25056, + "start": 25282, + "end": 25330, "loc": { "start": { - "line": 806, + "line": 811, "column": 6 }, "end": { - "line": 806, + "line": 811, "column": 54 } }, "expression": { "type": "CallExpression", - "start": 25008, - "end": 25055, + "start": 25282, + "end": 25329, "loc": { "start": { - "line": 806, + "line": 811, "column": 6 }, "end": { - "line": 806, + "line": 811, "column": 53 } }, "callee": { "type": "Identifier", - "start": 25008, - "end": 25026, + "start": 25282, + "end": 25300, "loc": { "start": { - "line": 806, + "line": 811, "column": 6 }, "end": { - "line": 806, + "line": 811, "column": 24 }, "identifierName": "recognizerCallback" @@ -48663,30 +49161,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 25027, - "end": 25031, + "start": 25301, + "end": 25305, "loc": { "start": { - "line": 806, + "line": 811, "column": 25 }, "end": { - "line": 806, + "line": 811, "column": 29 } } }, { "type": "Identifier", - "start": 25033, - "end": 25042, + "start": 25307, + "end": 25316, "loc": { "start": { - "line": 806, + "line": 811, "column": 31 }, "end": { - "line": 806, + "line": 811, "column": 40 }, "identifierName": "undefined" @@ -48695,44 +49193,44 @@ }, { "type": "MemberExpression", - "start": 25044, - "end": 25054, + "start": 25318, + "end": 25328, "loc": { "start": { - "line": 806, + "line": 811, "column": 42 }, "end": { - "line": 806, + "line": 811, "column": 52 } }, "object": { "type": "ThisExpression", - "start": 25044, - "end": 25048, + "start": 25318, + "end": 25322, "loc": { "start": { - "line": 806, + "line": 811, "column": 42 }, "end": { - "line": 806, + "line": 811, "column": 46 } } }, "property": { "type": "Identifier", - "start": 25049, - "end": 25054, + "start": 25323, + "end": 25328, "loc": { "start": { - "line": 806, + "line": 811, "column": 47 }, "end": { - "line": 806, + "line": 811, "column": 52 }, "identifierName": "model" @@ -48748,15 +49246,15 @@ { "type": "CommentLine", "value": " Push model in undo redo manager", - "start": 24967, - "end": 25001, + "start": 25241, + "end": 25275, "loc": { "start": { - "line": 805, + "line": 810, "column": 6 }, "end": { - "line": 805, + "line": 810, "column": 40 } } @@ -48774,15 +49272,15 @@ { "type": "CommentBlock", "value": "*\n * Handle a pointer up\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n ", - "start": 24542, - "end": 24657, + "start": 24816, + "end": 24931, "loc": { "start": { - "line": 793, + "line": 798, "column": 2 }, "end": { - "line": 796, + "line": 801, "column": 5 } } @@ -48791,15 +49289,15 @@ }, { "type": "ClassMethod", - "start": 25070, - "end": 25908, + "start": 25344, + "end": 26182, "loc": { "start": { - "line": 810, + "line": 815, "column": 2 }, "end": { - "line": 828, + "line": 833, "column": 3 } }, @@ -48807,15 +49305,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 25070, - "end": 25082, + "start": 25344, + "end": 25356, "loc": { "start": { - "line": 810, + "line": 815, "column": 2 }, "end": { - "line": 810, + "line": 815, "column": 14 }, "identifierName": "removeStroke" @@ -48830,15 +49328,15 @@ "params": [ { "type": "Identifier", - "start": 25083, - "end": 25089, + "start": 25357, + "end": 25363, "loc": { "start": { - "line": 810, + "line": 815, "column": 15 }, "end": { - "line": 810, + "line": 815, "column": 21 }, "identifierName": "stroke" @@ -48848,115 +49346,115 @@ ], "body": { "type": "BlockStatement", - "start": 25091, - "end": 25908, + "start": 25365, + "end": 26182, "loc": { "start": { - "line": 810, + "line": 815, "column": 23 }, "end": { - "line": 828, + "line": 833, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 25097, - "end": 25407, + "start": 25371, + "end": 25681, "loc": { "start": { - "line": 811, + "line": 816, "column": 4 }, "end": { - "line": 817, + "line": 822, "column": 7 } }, "expression": { "type": "CallExpression", - "start": 25097, - "end": 25406, + "start": 25371, + "end": 25680, "loc": { "start": { - "line": 811, + "line": 816, "column": 4 }, "end": { - "line": 817, + "line": 822, "column": 6 } }, "callee": { "type": "MemberExpression", - "start": 25097, - "end": 25128, + "start": 25371, + "end": 25402, "loc": { "start": { - "line": 811, + "line": 816, "column": 4 }, "end": { - "line": 811, + "line": 816, "column": 35 } }, "object": { "type": "MemberExpression", - "start": 25097, - "end": 25120, + "start": 25371, + "end": 25394, "loc": { "start": { - "line": 811, + "line": 816, "column": 4 }, "end": { - "line": 811, + "line": 816, "column": 27 } }, "object": { "type": "MemberExpression", - "start": 25097, - "end": 25107, + "start": 25371, + "end": 25381, "loc": { "start": { - "line": 811, + "line": 816, "column": 4 }, "end": { - "line": 811, + "line": 816, "column": 14 } }, "object": { "type": "ThisExpression", - "start": 25097, - "end": 25101, + "start": 25371, + "end": 25375, "loc": { "start": { - "line": 811, + "line": 816, "column": 4 }, "end": { - "line": 811, + "line": 816, "column": 8 } } }, "property": { "type": "Identifier", - "start": 25102, - "end": 25107, + "start": 25376, + "end": 25381, "loc": { "start": { - "line": 811, + "line": 816, "column": 9 }, "end": { - "line": 811, + "line": 816, "column": 14 }, "identifierName": "model" @@ -48967,15 +49465,15 @@ }, "property": { "type": "Identifier", - "start": 25108, - "end": 25120, + "start": 25382, + "end": 25394, "loc": { "start": { - "line": 811, + "line": 816, "column": 15 }, "end": { - "line": 811, + "line": 816, "column": 27 }, "identifierName": "strokeGroups" @@ -48986,15 +49484,15 @@ }, "property": { "type": "Identifier", - "start": 25121, - "end": 25128, + "start": 25395, + "end": 25402, "loc": { "start": { - "line": 811, + "line": 816, "column": 28 }, "end": { - "line": 811, + "line": 816, "column": 35 }, "identifierName": "forEach" @@ -49006,15 +49504,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 25129, - "end": 25405, + "start": 25403, + "end": 25679, "loc": { "start": { - "line": 811, + "line": 816, "column": 36 }, "end": { - "line": 817, + "line": 822, "column": 5 } }, @@ -49025,15 +49523,15 @@ "params": [ { "type": "Identifier", - "start": 25130, - "end": 25135, + "start": 25404, + "end": 25409, "loc": { "start": { - "line": 811, + "line": 816, "column": 37 }, "end": { - "line": 811, + "line": 816, "column": 42 }, "identifierName": "group" @@ -49043,59 +49541,59 @@ ], "body": { "type": "BlockStatement", - "start": 25140, - "end": 25405, + "start": 25414, + "end": 25679, "loc": { "start": { - "line": 811, + "line": 816, "column": 47 }, "end": { - "line": 817, + "line": 822, "column": 5 } }, "body": [ { "type": "VariableDeclaration", - "start": 25148, - "end": 25240, + "start": 25422, + "end": 25514, "loc": { "start": { - "line": 812, + "line": 817, "column": 6 }, "end": { - "line": 812, + "line": 817, "column": 98 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 25154, - "end": 25239, + "start": 25428, + "end": 25513, "loc": { "start": { - "line": 812, + "line": 817, "column": 12 }, "end": { - "line": 812, + "line": 817, "column": 97 } }, "id": { "type": "Identifier", - "start": 25154, - "end": 25167, + "start": 25428, + "end": 25441, "loc": { "start": { - "line": 812, + "line": 817, "column": 12 }, "end": { - "line": 812, + "line": 817, "column": 25 }, "identifierName": "stringStrokes" @@ -49104,57 +49602,57 @@ }, "init": { "type": "CallExpression", - "start": 25170, - "end": 25239, + "start": 25444, + "end": 25513, "loc": { "start": { - "line": 812, + "line": 817, "column": 28 }, "end": { - "line": 812, + "line": 817, "column": 97 } }, "callee": { "type": "MemberExpression", - "start": 25170, - "end": 25187, + "start": 25444, + "end": 25461, "loc": { "start": { - "line": 812, + "line": 817, "column": 28 }, "end": { - "line": 812, + "line": 817, "column": 45 } }, "object": { "type": "MemberExpression", - "start": 25170, - "end": 25183, + "start": 25444, + "end": 25457, "loc": { "start": { - "line": 812, + "line": 817, "column": 28 }, "end": { - "line": 812, + "line": 817, "column": 41 } }, "object": { "type": "Identifier", - "start": 25170, - "end": 25175, + "start": 25444, + "end": 25449, "loc": { "start": { - "line": 812, + "line": 817, "column": 28 }, "end": { - "line": 812, + "line": 817, "column": 33 }, "identifierName": "group" @@ -49163,15 +49661,15 @@ }, "property": { "type": "Identifier", - "start": 25176, - "end": 25183, + "start": 25450, + "end": 25457, "loc": { "start": { - "line": 812, + "line": 817, "column": 34 }, "end": { - "line": 812, + "line": 817, "column": 41 }, "identifierName": "strokes" @@ -49182,15 +49680,15 @@ }, "property": { "type": "Identifier", - "start": 25184, - "end": 25187, + "start": 25458, + "end": 25461, "loc": { "start": { - "line": 812, + "line": 817, "column": 42 }, "end": { - "line": 812, + "line": 817, "column": 45 }, "identifierName": "map" @@ -49202,15 +49700,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 25188, - "end": 25238, + "start": 25462, + "end": 25512, "loc": { "start": { - "line": 812, + "line": 817, "column": 46 }, "end": { - "line": 812, + "line": 817, "column": 96 } }, @@ -49221,15 +49719,15 @@ "params": [ { "type": "Identifier", - "start": 25188, - "end": 25203, + "start": 25462, + "end": 25477, "loc": { "start": { - "line": 812, + "line": 817, "column": 46 }, "end": { - "line": 812, + "line": 817, "column": 61 }, "identifierName": "strokeFromGroup" @@ -49239,43 +49737,43 @@ ], "body": { "type": "CallExpression", - "start": 25207, - "end": 25238, + "start": 25481, + "end": 25512, "loc": { "start": { - "line": 812, + "line": 817, "column": 65 }, "end": { - "line": 812, + "line": 817, "column": 96 } }, "callee": { "type": "MemberExpression", - "start": 25207, - "end": 25221, + "start": 25481, + "end": 25495, "loc": { "start": { - "line": 812, + "line": 817, "column": 65 }, "end": { - "line": 812, + "line": 817, "column": 79 } }, "object": { "type": "Identifier", - "start": 25207, - "end": 25211, + "start": 25481, + "end": 25485, "loc": { "start": { - "line": 812, + "line": 817, "column": 65 }, "end": { - "line": 812, + "line": 817, "column": 69 }, "identifierName": "JSON" @@ -49284,15 +49782,15 @@ }, "property": { "type": "Identifier", - "start": 25212, - "end": 25221, + "start": 25486, + "end": 25495, "loc": { "start": { - "line": 812, + "line": 817, "column": 70 }, "end": { - "line": 812, + "line": 817, "column": 79 }, "identifierName": "stringify" @@ -49304,15 +49802,15 @@ "arguments": [ { "type": "Identifier", - "start": 25222, - "end": 25237, + "start": 25496, + "end": 25511, "loc": { "start": { - "line": 812, + "line": 817, "column": 80 }, "end": { - "line": 812, + "line": 817, "column": 95 }, "identifierName": "strokeFromGroup" @@ -49330,44 +49828,44 @@ }, { "type": "VariableDeclaration", - "start": 25247, - "end": 25313, + "start": 25521, + "end": 25587, "loc": { "start": { - "line": 813, + "line": 818, "column": 6 }, "end": { - "line": 813, + "line": 818, "column": 72 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 25253, - "end": 25312, + "start": 25527, + "end": 25586, "loc": { "start": { - "line": 813, + "line": 818, "column": 12 }, "end": { - "line": 813, + "line": 818, "column": 71 } }, "id": { "type": "Identifier", - "start": 25253, - "end": 25264, + "start": 25527, + "end": 25538, "loc": { "start": { - "line": 813, + "line": 818, "column": 12 }, "end": { - "line": 813, + "line": 818, "column": 23 }, "identifierName": "strokeIndex" @@ -49376,43 +49874,43 @@ }, "init": { "type": "CallExpression", - "start": 25267, - "end": 25312, + "start": 25541, + "end": 25586, "loc": { "start": { - "line": 813, + "line": 818, "column": 26 }, "end": { - "line": 813, + "line": 818, "column": 71 } }, "callee": { "type": "MemberExpression", - "start": 25267, - "end": 25288, + "start": 25541, + "end": 25562, "loc": { "start": { - "line": 813, + "line": 818, "column": 26 }, "end": { - "line": 813, + "line": 818, "column": 47 } }, "object": { "type": "Identifier", - "start": 25267, - "end": 25280, + "start": 25541, + "end": 25554, "loc": { "start": { - "line": 813, + "line": 818, "column": 26 }, "end": { - "line": 813, + "line": 818, "column": 39 }, "identifierName": "stringStrokes" @@ -49421,15 +49919,15 @@ }, "property": { "type": "Identifier", - "start": 25281, - "end": 25288, + "start": 25555, + "end": 25562, "loc": { "start": { - "line": 813, + "line": 818, "column": 40 }, "end": { - "line": 813, + "line": 818, "column": 47 }, "identifierName": "indexOf" @@ -49441,43 +49939,43 @@ "arguments": [ { "type": "CallExpression", - "start": 25289, - "end": 25311, + "start": 25563, + "end": 25585, "loc": { "start": { - "line": 813, + "line": 818, "column": 48 }, "end": { - "line": 813, + "line": 818, "column": 70 } }, "callee": { "type": "MemberExpression", - "start": 25289, - "end": 25303, + "start": 25563, + "end": 25577, "loc": { "start": { - "line": 813, + "line": 818, "column": 48 }, "end": { - "line": 813, + "line": 818, "column": 62 } }, "object": { "type": "Identifier", - "start": 25289, - "end": 25293, + "start": 25563, + "end": 25567, "loc": { "start": { - "line": 813, + "line": 818, "column": 48 }, "end": { - "line": 813, + "line": 818, "column": 52 }, "identifierName": "JSON" @@ -49486,15 +49984,15 @@ }, "property": { "type": "Identifier", - "start": 25294, - "end": 25303, + "start": 25568, + "end": 25577, "loc": { "start": { - "line": 813, + "line": 818, "column": 53 }, "end": { - "line": 813, + "line": 818, "column": 62 }, "identifierName": "stringify" @@ -49506,15 +50004,15 @@ "arguments": [ { "type": "Identifier", - "start": 25304, - "end": 25310, + "start": 25578, + "end": 25584, "loc": { "start": { - "line": 813, + "line": 818, "column": 63 }, "end": { - "line": 813, + "line": 818, "column": 69 }, "identifierName": "stroke" @@ -49531,43 +50029,43 @@ }, { "type": "IfStatement", - "start": 25320, - "end": 25399, + "start": 25594, + "end": 25673, "loc": { "start": { - "line": 814, + "line": 819, "column": 6 }, "end": { - "line": 816, + "line": 821, "column": 7 } }, "test": { "type": "BinaryExpression", - "start": 25324, - "end": 25342, + "start": 25598, + "end": 25616, "loc": { "start": { - "line": 814, + "line": 819, "column": 10 }, "end": { - "line": 814, + "line": 819, "column": 28 } }, "left": { "type": "Identifier", - "start": 25324, - "end": 25335, + "start": 25598, + "end": 25609, "loc": { "start": { - "line": 814, + "line": 819, "column": 10 }, "end": { - "line": 814, + "line": 819, "column": 21 }, "identifierName": "strokeIndex" @@ -49577,15 +50075,15 @@ "operator": "!==", "right": { "type": "UnaryExpression", - "start": 25340, - "end": 25342, + "start": 25614, + "end": 25616, "loc": { "start": { - "line": 814, + "line": 819, "column": 26 }, "end": { - "line": 814, + "line": 819, "column": 28 } }, @@ -49593,15 +50091,15 @@ "prefix": true, "argument": { "type": "NumericLiteral", - "start": 25341, - "end": 25342, + "start": 25615, + "end": 25616, "loc": { "start": { - "line": 814, + "line": 819, "column": 27 }, "end": { - "line": 814, + "line": 819, "column": 28 } }, @@ -49618,86 +50116,86 @@ }, "consequent": { "type": "BlockStatement", - "start": 25344, - "end": 25399, + "start": 25618, + "end": 25673, "loc": { "start": { - "line": 814, + "line": 819, "column": 30 }, "end": { - "line": 816, + "line": 821, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 25354, - "end": 25391, + "start": 25628, + "end": 25665, "loc": { "start": { - "line": 815, + "line": 820, "column": 8 }, "end": { - "line": 815, + "line": 820, "column": 45 } }, "expression": { "type": "CallExpression", - "start": 25354, - "end": 25390, + "start": 25628, + "end": 25664, "loc": { "start": { - "line": 815, + "line": 820, "column": 8 }, "end": { - "line": 815, + "line": 820, "column": 44 } }, "callee": { "type": "MemberExpression", - "start": 25354, - "end": 25374, + "start": 25628, + "end": 25648, "loc": { "start": { - "line": 815, + "line": 820, "column": 8 }, "end": { - "line": 815, + "line": 820, "column": 28 } }, "object": { "type": "MemberExpression", - "start": 25354, - "end": 25367, + "start": 25628, + "end": 25641, "loc": { "start": { - "line": 815, + "line": 820, "column": 8 }, "end": { - "line": 815, + "line": 820, "column": 21 } }, "object": { "type": "Identifier", - "start": 25354, - "end": 25359, + "start": 25628, + "end": 25633, "loc": { "start": { - "line": 815, + "line": 820, "column": 8 }, "end": { - "line": 815, + "line": 820, "column": 13 }, "identifierName": "group" @@ -49706,15 +50204,15 @@ }, "property": { "type": "Identifier", - "start": 25360, - "end": 25367, + "start": 25634, + "end": 25641, "loc": { "start": { - "line": 815, + "line": 820, "column": 14 }, "end": { - "line": 815, + "line": 820, "column": 21 }, "identifierName": "strokes" @@ -49725,15 +50223,15 @@ }, "property": { "type": "Identifier", - "start": 25368, - "end": 25374, + "start": 25642, + "end": 25648, "loc": { "start": { - "line": 815, + "line": 820, "column": 22 }, "end": { - "line": 815, + "line": 820, "column": 28 }, "identifierName": "splice" @@ -49745,15 +50243,15 @@ "arguments": [ { "type": "Identifier", - "start": 25375, - "end": 25386, + "start": 25649, + "end": 25660, "loc": { "start": { - "line": 815, + "line": 820, "column": 29 }, "end": { - "line": 815, + "line": 820, "column": 40 }, "identifierName": "strokeIndex" @@ -49762,15 +50260,15 @@ }, { "type": "NumericLiteral", - "start": 25388, - "end": 25389, + "start": 25662, + "end": 25663, "loc": { "start": { - "line": 815, + "line": 820, "column": 42 }, "end": { - "line": 815, + "line": 820, "column": 43 } }, @@ -49797,44 +50295,44 @@ }, { "type": "VariableDeclaration", - "start": 25412, - "end": 25499, + "start": 25686, + "end": 25773, "loc": { "start": { - "line": 818, + "line": 823, "column": 4 }, "end": { - "line": 818, + "line": 823, "column": 91 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 25418, - "end": 25498, + "start": 25692, + "end": 25772, "loc": { "start": { - "line": 818, + "line": 823, "column": 10 }, "end": { - "line": 818, + "line": 823, "column": 90 } }, "id": { "type": "Identifier", - "start": 25418, - "end": 25434, + "start": 25692, + "end": 25708, "loc": { "start": { - "line": 818, + "line": 823, "column": 10 }, "end": { - "line": 818, + "line": 823, "column": 26 }, "identifierName": "stringRawStrokes" @@ -49843,86 +50341,86 @@ }, "init": { "type": "CallExpression", - "start": 25437, - "end": 25498, + "start": 25711, + "end": 25772, "loc": { "start": { - "line": 818, + "line": 823, "column": 29 }, "end": { - "line": 818, + "line": 823, "column": 90 } }, "callee": { "type": "MemberExpression", - "start": 25437, - "end": 25462, + "start": 25711, + "end": 25736, "loc": { "start": { - "line": 818, + "line": 823, "column": 29 }, "end": { - "line": 818, + "line": 823, "column": 54 } }, "object": { "type": "MemberExpression", - "start": 25437, - "end": 25458, + "start": 25711, + "end": 25732, "loc": { "start": { - "line": 818, + "line": 823, "column": 29 }, "end": { - "line": 818, + "line": 823, "column": 50 } }, "object": { "type": "MemberExpression", - "start": 25437, - "end": 25447, + "start": 25711, + "end": 25721, "loc": { "start": { - "line": 818, + "line": 823, "column": 29 }, "end": { - "line": 818, + "line": 823, "column": 39 } }, "object": { "type": "ThisExpression", - "start": 25437, - "end": 25441, + "start": 25711, + "end": 25715, "loc": { "start": { - "line": 818, + "line": 823, "column": 29 }, "end": { - "line": 818, + "line": 823, "column": 33 } } }, "property": { "type": "Identifier", - "start": 25442, - "end": 25447, + "start": 25716, + "end": 25721, "loc": { "start": { - "line": 818, + "line": 823, "column": 34 }, "end": { - "line": 818, + "line": 823, "column": 39 }, "identifierName": "model" @@ -49933,15 +50431,15 @@ }, "property": { "type": "Identifier", - "start": 25448, - "end": 25458, + "start": 25722, + "end": 25732, "loc": { "start": { - "line": 818, + "line": 823, "column": 40 }, "end": { - "line": 818, + "line": 823, "column": 50 }, "identifierName": "rawStrokes" @@ -49952,15 +50450,15 @@ }, "property": { "type": "Identifier", - "start": 25459, - "end": 25462, + "start": 25733, + "end": 25736, "loc": { "start": { - "line": 818, + "line": 823, "column": 51 }, "end": { - "line": 818, + "line": 823, "column": 54 }, "identifierName": "map" @@ -49972,15 +50470,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 25463, - "end": 25497, + "start": 25737, + "end": 25771, "loc": { "start": { - "line": 818, + "line": 823, "column": 55 }, "end": { - "line": 818, + "line": 823, "column": 89 } }, @@ -49991,15 +50489,15 @@ "params": [ { "type": "Identifier", - "start": 25463, - "end": 25470, + "start": 25737, + "end": 25744, "loc": { "start": { - "line": 818, + "line": 823, "column": 55 }, "end": { - "line": 818, + "line": 823, "column": 62 }, "identifierName": "strokes" @@ -50009,43 +50507,43 @@ ], "body": { "type": "CallExpression", - "start": 25474, - "end": 25497, + "start": 25748, + "end": 25771, "loc": { "start": { - "line": 818, + "line": 823, "column": 66 }, "end": { - "line": 818, + "line": 823, "column": 89 } }, "callee": { "type": "MemberExpression", - "start": 25474, - "end": 25488, + "start": 25748, + "end": 25762, "loc": { "start": { - "line": 818, + "line": 823, "column": 66 }, "end": { - "line": 818, + "line": 823, "column": 80 } }, "object": { "type": "Identifier", - "start": 25474, - "end": 25478, + "start": 25748, + "end": 25752, "loc": { "start": { - "line": 818, + "line": 823, "column": 66 }, "end": { - "line": 818, + "line": 823, "column": 70 }, "identifierName": "JSON" @@ -50054,15 +50552,15 @@ }, "property": { "type": "Identifier", - "start": 25479, - "end": 25488, + "start": 25753, + "end": 25762, "loc": { "start": { - "line": 818, + "line": 823, "column": 71 }, "end": { - "line": 818, + "line": 823, "column": 80 }, "identifierName": "stringify" @@ -50074,15 +50572,15 @@ "arguments": [ { "type": "Identifier", - "start": 25489, - "end": 25496, + "start": 25763, + "end": 25770, "loc": { "start": { - "line": 818, + "line": 823, "column": 81 }, "end": { - "line": 818, + "line": 823, "column": 88 }, "identifierName": "strokes" @@ -50100,44 +50598,44 @@ }, { "type": "VariableDeclaration", - "start": 25504, - "end": 25573, + "start": 25778, + "end": 25847, "loc": { "start": { - "line": 819, + "line": 824, "column": 4 }, "end": { - "line": 819, + "line": 824, "column": 73 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 25510, - "end": 25572, + "start": 25784, + "end": 25846, "loc": { "start": { - "line": 819, + "line": 824, "column": 10 }, "end": { - "line": 819, + "line": 824, "column": 72 } }, "id": { "type": "Identifier", - "start": 25510, - "end": 25521, + "start": 25784, + "end": 25795, "loc": { "start": { - "line": 819, + "line": 824, "column": 10 }, "end": { - "line": 819, + "line": 824, "column": 21 }, "identifierName": "strokeIndex" @@ -50146,43 +50644,43 @@ }, "init": { "type": "CallExpression", - "start": 25524, - "end": 25572, + "start": 25798, + "end": 25846, "loc": { "start": { - "line": 819, + "line": 824, "column": 24 }, "end": { - "line": 819, + "line": 824, "column": 72 } }, "callee": { "type": "MemberExpression", - "start": 25524, - "end": 25548, + "start": 25798, + "end": 25822, "loc": { "start": { - "line": 819, + "line": 824, "column": 24 }, "end": { - "line": 819, + "line": 824, "column": 48 } }, "object": { "type": "Identifier", - "start": 25524, - "end": 25540, + "start": 25798, + "end": 25814, "loc": { "start": { - "line": 819, + "line": 824, "column": 24 }, "end": { - "line": 819, + "line": 824, "column": 40 }, "identifierName": "stringRawStrokes" @@ -50191,15 +50689,15 @@ }, "property": { "type": "Identifier", - "start": 25541, - "end": 25548, + "start": 25815, + "end": 25822, "loc": { "start": { - "line": 819, + "line": 824, "column": 41 }, "end": { - "line": 819, + "line": 824, "column": 48 }, "identifierName": "indexOf" @@ -50211,43 +50709,43 @@ "arguments": [ { "type": "CallExpression", - "start": 25549, - "end": 25571, + "start": 25823, + "end": 25845, "loc": { "start": { - "line": 819, + "line": 824, "column": 49 }, "end": { - "line": 819, + "line": 824, "column": 71 } }, "callee": { "type": "MemberExpression", - "start": 25549, - "end": 25563, + "start": 25823, + "end": 25837, "loc": { "start": { - "line": 819, + "line": 824, "column": 49 }, "end": { - "line": 819, + "line": 824, "column": 63 } }, "object": { "type": "Identifier", - "start": 25549, - "end": 25553, + "start": 25823, + "end": 25827, "loc": { "start": { - "line": 819, + "line": 824, "column": 49 }, "end": { - "line": 819, + "line": 824, "column": 53 }, "identifierName": "JSON" @@ -50256,15 +50754,15 @@ }, "property": { "type": "Identifier", - "start": 25554, - "end": 25563, + "start": 25828, + "end": 25837, "loc": { "start": { - "line": 819, + "line": 824, "column": 54 }, "end": { - "line": 819, + "line": 824, "column": 63 }, "identifierName": "stringify" @@ -50276,15 +50774,15 @@ "arguments": [ { "type": "Identifier", - "start": 25564, - "end": 25570, + "start": 25838, + "end": 25844, "loc": { "start": { - "line": 819, + "line": 824, "column": 64 }, "end": { - "line": 819, + "line": 824, "column": 70 }, "identifierName": "stroke" @@ -50301,43 +50799,43 @@ }, { "type": "IfStatement", - "start": 25578, - "end": 25661, + "start": 25852, + "end": 25935, "loc": { "start": { - "line": 820, + "line": 825, "column": 4 }, "end": { - "line": 822, + "line": 827, "column": 5 } }, "test": { "type": "BinaryExpression", - "start": 25582, - "end": 25600, + "start": 25856, + "end": 25874, "loc": { "start": { - "line": 820, + "line": 825, "column": 8 }, "end": { - "line": 820, + "line": 825, "column": 26 } }, "left": { "type": "Identifier", - "start": 25582, - "end": 25593, + "start": 25856, + "end": 25867, "loc": { "start": { - "line": 820, + "line": 825, "column": 8 }, "end": { - "line": 820, + "line": 825, "column": 19 }, "identifierName": "strokeIndex" @@ -50347,15 +50845,15 @@ "operator": "!==", "right": { "type": "UnaryExpression", - "start": 25598, - "end": 25600, + "start": 25872, + "end": 25874, "loc": { "start": { - "line": 820, + "line": 825, "column": 24 }, "end": { - "line": 820, + "line": 825, "column": 26 } }, @@ -50363,15 +50861,15 @@ "prefix": true, "argument": { "type": "NumericLiteral", - "start": 25599, - "end": 25600, + "start": 25873, + "end": 25874, "loc": { "start": { - "line": 820, + "line": 825, "column": 25 }, "end": { - "line": 820, + "line": 825, "column": 26 } }, @@ -50388,115 +50886,115 @@ }, "consequent": { "type": "BlockStatement", - "start": 25602, - "end": 25661, + "start": 25876, + "end": 25935, "loc": { "start": { - "line": 820, + "line": 825, "column": 28 }, "end": { - "line": 822, + "line": 827, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 25610, - "end": 25655, + "start": 25884, + "end": 25929, "loc": { "start": { - "line": 821, + "line": 826, "column": 6 }, "end": { - "line": 821, + "line": 826, "column": 51 } }, "expression": { "type": "CallExpression", - "start": 25610, - "end": 25654, + "start": 25884, + "end": 25928, "loc": { "start": { - "line": 821, + "line": 826, "column": 6 }, "end": { - "line": 821, + "line": 826, "column": 50 } }, "callee": { "type": "MemberExpression", - "start": 25610, - "end": 25638, + "start": 25884, + "end": 25912, "loc": { "start": { - "line": 821, + "line": 826, "column": 6 }, "end": { - "line": 821, + "line": 826, "column": 34 } }, "object": { "type": "MemberExpression", - "start": 25610, - "end": 25631, + "start": 25884, + "end": 25905, "loc": { "start": { - "line": 821, + "line": 826, "column": 6 }, "end": { - "line": 821, + "line": 826, "column": 27 } }, "object": { "type": "MemberExpression", - "start": 25610, - "end": 25620, + "start": 25884, + "end": 25894, "loc": { "start": { - "line": 821, + "line": 826, "column": 6 }, "end": { - "line": 821, + "line": 826, "column": 16 } }, "object": { "type": "ThisExpression", - "start": 25610, - "end": 25614, + "start": 25884, + "end": 25888, "loc": { "start": { - "line": 821, + "line": 826, "column": 6 }, "end": { - "line": 821, + "line": 826, "column": 10 } } }, "property": { "type": "Identifier", - "start": 25615, - "end": 25620, + "start": 25889, + "end": 25894, "loc": { "start": { - "line": 821, + "line": 826, "column": 11 }, "end": { - "line": 821, + "line": 826, "column": 16 }, "identifierName": "model" @@ -50507,15 +51005,15 @@ }, "property": { "type": "Identifier", - "start": 25621, - "end": 25631, + "start": 25895, + "end": 25905, "loc": { "start": { - "line": 821, + "line": 826, "column": 17 }, "end": { - "line": 821, + "line": 826, "column": 27 }, "identifierName": "rawStrokes" @@ -50526,15 +51024,15 @@ }, "property": { "type": "Identifier", - "start": 25632, - "end": 25638, + "start": 25906, + "end": 25912, "loc": { "start": { - "line": 821, + "line": 826, "column": 28 }, "end": { - "line": 821, + "line": 826, "column": 34 }, "identifierName": "splice" @@ -50546,15 +51044,15 @@ "arguments": [ { "type": "Identifier", - "start": 25639, - "end": 25650, + "start": 25913, + "end": 25924, "loc": { "start": { - "line": 821, + "line": 826, "column": 35 }, "end": { - "line": 821, + "line": 826, "column": 46 }, "identifierName": "strokeIndex" @@ -50563,15 +51061,15 @@ }, { "type": "NumericLiteral", - "start": 25652, - "end": 25653, + "start": 25926, + "end": 25927, "loc": { "start": { - "line": 821, + "line": 826, "column": 48 }, "end": { - "line": 821, + "line": 826, "column": 49 } }, @@ -50591,86 +51089,86 @@ }, { "type": "ExpressionStatement", - "start": 25666, - "end": 25738, + "start": 25940, + "end": 26012, "loc": { "start": { - "line": 823, + "line": 828, "column": 4 }, "end": { - "line": 823, + "line": 828, "column": 76 } }, "expression": { "type": "CallExpression", - "start": 25666, - "end": 25737, + "start": 25940, + "end": 26011, "loc": { "start": { - "line": 823, + "line": 828, "column": 4 }, "end": { - "line": 823, + "line": 828, "column": 75 } }, "callee": { "type": "MemberExpression", - "start": 25666, - "end": 25689, + "start": 25940, + "end": 25963, "loc": { "start": { - "line": 823, + "line": 828, "column": 4 }, "end": { - "line": 823, + "line": 828, "column": 27 } }, "object": { "type": "MemberExpression", - "start": 25666, - "end": 25679, + "start": 25940, + "end": 25953, "loc": { "start": { - "line": 823, + "line": 828, "column": 4 }, "end": { - "line": 823, + "line": 828, "column": 17 } }, "object": { "type": "ThisExpression", - "start": 25666, - "end": 25670, + "start": 25940, + "end": 25944, "loc": { "start": { - "line": 823, + "line": 828, "column": 4 }, "end": { - "line": 823, + "line": 828, "column": 8 } } }, "property": { "type": "Identifier", - "start": 25671, - "end": 25679, + "start": 25945, + "end": 25953, "loc": { "start": { - "line": 823, + "line": 828, "column": 9 }, "end": { - "line": 823, + "line": 828, "column": 17 }, "identifierName": "renderer" @@ -50681,15 +51179,15 @@ }, "property": { "type": "Identifier", - "start": 25680, - "end": 25689, + "start": 25954, + "end": 25963, "loc": { "start": { - "line": 823, + "line": 828, "column": 18 }, "end": { - "line": 823, + "line": 828, "column": 27 }, "identifierName": "drawModel" @@ -50701,44 +51199,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 25690, - "end": 25710, + "start": 25964, + "end": 25984, "loc": { "start": { - "line": 823, + "line": 828, "column": 28 }, "end": { - "line": 823, + "line": 828, "column": 48 } }, "object": { "type": "ThisExpression", - "start": 25690, - "end": 25694, + "start": 25964, + "end": 25968, "loc": { "start": { - "line": 823, + "line": 828, "column": 28 }, "end": { - "line": 823, + "line": 828, "column": 32 } } }, "property": { "type": "Identifier", - "start": 25695, - "end": 25710, + "start": 25969, + "end": 25984, "loc": { "start": { - "line": 823, + "line": 828, "column": 33 }, "end": { - "line": 823, + "line": 828, "column": 48 }, "identifierName": "rendererContext" @@ -50749,44 +51247,44 @@ }, { "type": "MemberExpression", - "start": 25712, - "end": 25722, + "start": 25986, + "end": 25996, "loc": { "start": { - "line": 823, + "line": 828, "column": 50 }, "end": { - "line": 823, + "line": 828, "column": 60 } }, "object": { "type": "ThisExpression", - "start": 25712, - "end": 25716, + "start": 25986, + "end": 25990, "loc": { "start": { - "line": 823, + "line": 828, "column": 50 }, "end": { - "line": 823, + "line": 828, "column": 54 } } }, "property": { "type": "Identifier", - "start": 25717, - "end": 25722, + "start": 25991, + "end": 25996, "loc": { "start": { - "line": 823, + "line": 828, "column": 55 }, "end": { - "line": 823, + "line": 828, "column": 60 }, "identifierName": "model" @@ -50797,44 +51295,44 @@ }, { "type": "MemberExpression", - "start": 25724, - "end": 25736, + "start": 25998, + "end": 26010, "loc": { "start": { - "line": 823, + "line": 828, "column": 62 }, "end": { - "line": 823, + "line": 828, "column": 74 } }, "object": { "type": "ThisExpression", - "start": 25724, - "end": 25728, + "start": 25998, + "end": 26002, "loc": { "start": { - "line": 823, + "line": 828, "column": 62 }, "end": { - "line": 823, + "line": 828, "column": 66 } } }, "property": { "type": "Identifier", - "start": 25729, - "end": 25736, + "start": 26003, + "end": 26010, "loc": { "start": { - "line": 823, + "line": 828, "column": 67 }, "end": { - "line": 823, + "line": 828, "column": 74 }, "identifierName": "stroker" @@ -50848,43 +51346,43 @@ }, { "type": "ExpressionStatement", - "start": 25743, - "end": 25791, + "start": 26017, + "end": 26065, "loc": { "start": { - "line": 824, + "line": 829, "column": 4 }, "end": { - "line": 824, + "line": 829, "column": 52 } }, "expression": { "type": "CallExpression", - "start": 25743, - "end": 25790, + "start": 26017, + "end": 26064, "loc": { "start": { - "line": 824, + "line": 829, "column": 4 }, "end": { - "line": 824, + "line": 829, "column": 51 } }, "callee": { "type": "Identifier", - "start": 25743, - "end": 25761, + "start": 26017, + "end": 26035, "loc": { "start": { - "line": 824, + "line": 829, "column": 4 }, "end": { - "line": 824, + "line": 829, "column": 22 }, "identifierName": "recognizerCallback" @@ -50894,30 +51392,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 25762, - "end": 25766, + "start": 26036, + "end": 26040, "loc": { "start": { - "line": 824, + "line": 829, "column": 23 }, "end": { - "line": 824, + "line": 829, "column": 27 } } }, { "type": "Identifier", - "start": 25768, - "end": 25777, + "start": 26042, + "end": 26051, "loc": { "start": { - "line": 824, + "line": 829, "column": 29 }, "end": { - "line": 824, + "line": 829, "column": 38 }, "identifierName": "undefined" @@ -50926,44 +51424,44 @@ }, { "type": "MemberExpression", - "start": 25779, - "end": 25789, + "start": 26053, + "end": 26063, "loc": { "start": { - "line": 824, + "line": 829, "column": 40 }, "end": { - "line": 824, + "line": 829, "column": 50 } }, "object": { "type": "ThisExpression", - "start": 25779, - "end": 25783, + "start": 26053, + "end": 26057, "loc": { "start": { - "line": 824, + "line": 829, "column": 40 }, "end": { - "line": 824, + "line": 829, "column": 44 } } }, "property": { "type": "Identifier", - "start": 25784, - "end": 25789, + "start": 26058, + "end": 26063, "loc": { "start": { - "line": 824, + "line": 829, "column": 45 }, "end": { - "line": 824, + "line": 829, "column": 50 }, "identifierName": "model" @@ -50977,29 +51475,29 @@ }, { "type": "IfStatement", - "start": 25796, - "end": 25904, + "start": 26070, + "end": 26178, "loc": { "start": { - "line": 825, + "line": 830, "column": 4 }, "end": { - "line": 827, + "line": 832, "column": 5 } }, "test": { "type": "UnaryExpression", - "start": 25800, - "end": 25857, + "start": 26074, + "end": 26131, "loc": { "start": { - "line": 825, + "line": 830, "column": 8 }, "end": { - "line": 825, + "line": 830, "column": 65 } }, @@ -51007,86 +51505,86 @@ "prefix": true, "argument": { "type": "BinaryExpression", - "start": 25802, - "end": 25856, + "start": 26076, + "end": 26130, "loc": { "start": { - "line": 825, + "line": 830, "column": 10 }, "end": { - "line": 825, + "line": 830, "column": 64 } }, "left": { "type": "MemberExpression", - "start": 25802, - "end": 25843, + "start": 26076, + "end": 26117, "loc": { "start": { - "line": 825, + "line": 830, "column": 10 }, "end": { - "line": 825, + "line": 830, "column": 51 } }, "object": { "type": "MemberExpression", - "start": 25802, - "end": 25829, + "start": 26076, + "end": 26103, "loc": { "start": { - "line": 825, + "line": 830, "column": 10 }, "end": { - "line": 825, + "line": 830, "column": 37 } }, "object": { "type": "MemberExpression", - "start": 25802, - "end": 25820, + "start": 26076, + "end": 26094, "loc": { "start": { - "line": 825, + "line": 830, "column": 10 }, "end": { - "line": 825, + "line": 830, "column": 28 } }, "object": { "type": "ThisExpression", - "start": 25802, - "end": 25806, + "start": 26076, + "end": 26080, "loc": { "start": { - "line": 825, + "line": 830, "column": 10 }, "end": { - "line": 825, + "line": 830, "column": 14 } } }, "property": { "type": "Identifier", - "start": 25807, - "end": 25820, + "start": 26081, + "end": 26094, "loc": { "start": { - "line": 825, + "line": 830, "column": 15 }, "end": { - "line": 825, + "line": 830, "column": 28 }, "identifierName": "configuration" @@ -51097,15 +51595,15 @@ }, "property": { "type": "Identifier", - "start": 25821, - "end": 25829, + "start": 26095, + "end": 26103, "loc": { "start": { - "line": 825, + "line": 830, "column": 29 }, "end": { - "line": 825, + "line": 830, "column": 37 }, "identifierName": "triggers" @@ -51116,15 +51614,15 @@ }, "property": { "type": "Identifier", - "start": 25830, - "end": 25843, + "start": 26104, + "end": 26117, "loc": { "start": { - "line": 825, + "line": 830, "column": 38 }, "end": { - "line": 825, + "line": 830, "column": 51 }, "identifierName": "exportContent" @@ -51136,15 +51634,15 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 25848, - "end": 25856, + "start": 26122, + "end": 26130, "loc": { "start": { - "line": 825, + "line": 830, "column": 56 }, "end": { - "line": 825, + "line": 830, "column": 64 } }, @@ -51156,7 +51654,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 25801 + "parenStart": 26075 } }, "extra": { @@ -51165,58 +51663,58 @@ }, "consequent": { "type": "BlockStatement", - "start": 25859, - "end": 25904, + "start": 26133, + "end": 26178, "loc": { "start": { - "line": 825, + "line": 830, "column": 67 }, "end": { - "line": 827, + "line": 832, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 25867, - "end": 25898, + "start": 26141, + "end": 26172, "loc": { "start": { - "line": 826, + "line": 831, "column": 6 }, "end": { - "line": 826, + "line": 831, "column": 37 } }, "expression": { "type": "CallExpression", - "start": 25867, - "end": 25897, + "start": 26141, + "end": 26171, "loc": { "start": { - "line": 826, + "line": 831, "column": 6 }, "end": { - "line": 826, + "line": 831, "column": 36 } }, "callee": { "type": "Identifier", - "start": 25867, - "end": 25879, + "start": 26141, + "end": 26153, "loc": { "start": { - "line": 826, + "line": 831, "column": 6 }, "end": { - "line": 826, + "line": 831, "column": 18 }, "identifierName": "launchExport" @@ -51226,59 +51724,59 @@ "arguments": [ { "type": "ThisExpression", - "start": 25880, - "end": 25884, + "start": 26154, + "end": 26158, "loc": { "start": { - "line": 826, + "line": 831, "column": 19 }, "end": { - "line": 826, + "line": 831, "column": 23 } } }, { "type": "MemberExpression", - "start": 25886, - "end": 25896, + "start": 26160, + "end": 26170, "loc": { "start": { - "line": 826, + "line": 831, "column": 25 }, "end": { - "line": 826, + "line": 831, "column": 35 } }, "object": { "type": "ThisExpression", - "start": 25886, - "end": 25890, + "start": 26160, + "end": 26164, "loc": { "start": { - "line": 826, + "line": 831, "column": 25 }, "end": { - "line": 826, + "line": 831, "column": 29 } } }, "property": { "type": "Identifier", - "start": 25891, - "end": 25896, + "start": 26165, + "end": 26170, "loc": { "start": { - "line": 826, + "line": 831, "column": 30 }, "end": { - "line": 826, + "line": 831, "column": 35 }, "identifierName": "model" @@ -51296,20 +51794,39 @@ "alternate": null } ], - "directives": [] - } + "directives": [], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @Deprecated\n * @param rawStrokes\n * @param strokeGroups\n ", + "start": 26186, + "end": 26260, + "loc": { + "start": { + "line": 835, + "column": 2 + }, + "end": { + "line": 839, + "column": 5 + } + } + } + ] }, { "type": "ClassMethod", - "start": 25912, - "end": 26358, + "start": 26263, + "end": 26709, "loc": { "start": { - "line": 830, + "line": 840, "column": 2 }, "end": { - "line": 841, + "line": 851, "column": 3 } }, @@ -51317,20 +51834,21 @@ "computed": false, "key": { "type": "Identifier", - "start": 25912, - "end": 25918, + "start": 26263, + "end": 26269, "loc": { "start": { - "line": 830, + "line": 840, "column": 2 }, "end": { - "line": 830, + "line": 840, "column": 8 }, "identifierName": "reDraw" }, - "name": "reDraw" + "name": "reDraw", + "leadingComments": null }, "kind": "method", "id": null, @@ -51340,15 +51858,15 @@ "params": [ { "type": "Identifier", - "start": 25919, - "end": 25929, + "start": 26270, + "end": 26280, "loc": { "start": { - "line": 830, + "line": 840, "column": 9 }, "end": { - "line": 830, + "line": 840, "column": 19 }, "identifierName": "rawStrokes" @@ -51357,15 +51875,15 @@ }, { "type": "Identifier", - "start": 25931, - "end": 25943, + "start": 26282, + "end": 26294, "loc": { "start": { - "line": 830, + "line": 840, "column": 21 }, "end": { - "line": 830, + "line": 840, "column": 33 }, "identifierName": "strokeGroups" @@ -51375,72 +51893,72 @@ ], "body": { "type": "BlockStatement", - "start": 25945, - "end": 26358, + "start": 26296, + "end": 26709, "loc": { "start": { - "line": 830, + "line": 840, "column": 35 }, "end": { - "line": 841, + "line": 851, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 25951, - "end": 26037, + "start": 26302, + "end": 26388, "loc": { "start": { - "line": 831, + "line": 841, "column": 4 }, "end": { - "line": 833, + "line": 843, "column": 7 } }, "expression": { "type": "CallExpression", - "start": 25951, - "end": 26036, + "start": 26302, + "end": 26387, "loc": { "start": { - "line": 831, + "line": 841, "column": 4 }, "end": { - "line": 833, + "line": 843, "column": 6 } }, "callee": { "type": "MemberExpression", - "start": 25951, - "end": 25969, + "start": 26302, + "end": 26320, "loc": { "start": { - "line": 831, + "line": 841, "column": 4 }, "end": { - "line": 831, + "line": 841, "column": 22 } }, "object": { "type": "Identifier", - "start": 25951, - "end": 25961, + "start": 26302, + "end": 26312, "loc": { "start": { - "line": 831, + "line": 841, "column": 4 }, "end": { - "line": 831, + "line": 841, "column": 14 }, "identifierName": "rawStrokes" @@ -51449,15 +51967,15 @@ }, "property": { "type": "Identifier", - "start": 25962, - "end": 25969, + "start": 26313, + "end": 26320, "loc": { "start": { - "line": 831, + "line": 841, "column": 15 }, "end": { - "line": 831, + "line": 841, "column": 22 }, "identifierName": "forEach" @@ -51469,15 +51987,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 25970, - "end": 26035, + "start": 26321, + "end": 26386, "loc": { "start": { - "line": 831, + "line": 841, "column": 23 }, "end": { - "line": 833, + "line": 843, "column": 5 } }, @@ -51488,15 +52006,15 @@ "params": [ { "type": "Identifier", - "start": 25971, - "end": 25977, + "start": 26322, + "end": 26328, "loc": { "start": { - "line": 831, + "line": 841, "column": 24 }, "end": { - "line": 831, + "line": 841, "column": 30 }, "identifierName": "stroke" @@ -51506,72 +52024,72 @@ ], "body": { "type": "BlockStatement", - "start": 25982, - "end": 26035, + "start": 26333, + "end": 26386, "loc": { "start": { - "line": 831, + "line": 841, "column": 35 }, "end": { - "line": 833, + "line": 843, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 25990, - "end": 26029, + "start": 26341, + "end": 26380, "loc": { "start": { - "line": 832, + "line": 842, "column": 6 }, "end": { - "line": 832, + "line": 842, "column": 45 } }, "expression": { "type": "CallExpression", - "start": 25990, - "end": 26028, + "start": 26341, + "end": 26379, "loc": { "start": { - "line": 832, + "line": 842, "column": 6 }, "end": { - "line": 832, + "line": 842, "column": 44 } }, "callee": { "type": "MemberExpression", - "start": 25990, - "end": 26008, + "start": 26341, + "end": 26359, "loc": { "start": { - "line": 832, + "line": 842, "column": 6 }, "end": { - "line": 832, + "line": 842, "column": 24 } }, "object": { "type": "Identifier", - "start": 25990, - "end": 25998, + "start": 26341, + "end": 26349, "loc": { "start": { - "line": 832, + "line": 842, "column": 6 }, "end": { - "line": 832, + "line": 842, "column": 14 }, "identifierName": "InkModel" @@ -51580,15 +52098,15 @@ }, "property": { "type": "Identifier", - "start": 25999, - "end": 26008, + "start": 26350, + "end": 26359, "loc": { "start": { - "line": 832, + "line": 842, "column": 15 }, "end": { - "line": 832, + "line": 842, "column": 24 }, "identifierName": "addStroke" @@ -51600,44 +52118,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 26009, - "end": 26019, + "start": 26360, + "end": 26370, "loc": { "start": { - "line": 832, + "line": 842, "column": 25 }, "end": { - "line": 832, + "line": 842, "column": 35 } }, "object": { "type": "ThisExpression", - "start": 26009, - "end": 26013, + "start": 26360, + "end": 26364, "loc": { "start": { - "line": 832, + "line": 842, "column": 25 }, "end": { - "line": 832, + "line": 842, "column": 29 } } }, "property": { "type": "Identifier", - "start": 26014, - "end": 26019, + "start": 26365, + "end": 26370, "loc": { "start": { - "line": 832, + "line": 842, "column": 30 }, "end": { - "line": 832, + "line": 842, "column": 35 }, "identifierName": "model" @@ -51648,15 +52166,15 @@ }, { "type": "Identifier", - "start": 26021, - "end": 26027, + "start": 26372, + "end": 26378, "loc": { "start": { - "line": 832, + "line": 842, "column": 37 }, "end": { - "line": 832, + "line": 842, "column": 43 }, "identifierName": "stroke" @@ -51675,57 +52193,57 @@ }, { "type": "ExpressionStatement", - "start": 26042, - "end": 26224, + "start": 26393, + "end": 26575, "loc": { "start": { - "line": 834, + "line": 844, "column": 4 }, "end": { - "line": 838, + "line": 848, "column": 7 } }, "expression": { "type": "CallExpression", - "start": 26042, - "end": 26223, + "start": 26393, + "end": 26574, "loc": { "start": { - "line": 834, + "line": 844, "column": 4 }, "end": { - "line": 838, + "line": 848, "column": 6 } }, "callee": { "type": "MemberExpression", - "start": 26042, - "end": 26062, + "start": 26393, + "end": 26413, "loc": { "start": { - "line": 834, + "line": 844, "column": 4 }, "end": { - "line": 834, + "line": 844, "column": 24 } }, "object": { "type": "Identifier", - "start": 26042, - "end": 26054, + "start": 26393, + "end": 26405, "loc": { "start": { - "line": 834, + "line": 844, "column": 4 }, "end": { - "line": 834, + "line": 844, "column": 16 }, "identifierName": "strokeGroups" @@ -51734,15 +52252,15 @@ }, "property": { "type": "Identifier", - "start": 26055, - "end": 26062, + "start": 26406, + "end": 26413, "loc": { "start": { - "line": 834, + "line": 844, "column": 17 }, "end": { - "line": 834, + "line": 844, "column": 24 }, "identifierName": "forEach" @@ -51754,15 +52272,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 26063, - "end": 26222, + "start": 26414, + "end": 26573, "loc": { "start": { - "line": 834, + "line": 844, "column": 25 }, "end": { - "line": 838, + "line": 848, "column": 5 } }, @@ -51773,15 +52291,15 @@ "params": [ { "type": "Identifier", - "start": 26064, - "end": 26069, + "start": 26415, + "end": 26420, "loc": { "start": { - "line": 834, + "line": 844, "column": 26 }, "end": { - "line": 834, + "line": 844, "column": 31 }, "identifierName": "group" @@ -51791,86 +52309,86 @@ ], "body": { "type": "BlockStatement", - "start": 26074, - "end": 26222, + "start": 26425, + "end": 26573, "loc": { "start": { - "line": 834, + "line": 844, "column": 36 }, "end": { - "line": 838, + "line": 848, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 26082, - "end": 26216, + "start": 26433, + "end": 26567, "loc": { "start": { - "line": 835, + "line": 845, "column": 6 }, "end": { - "line": 837, + "line": 847, "column": 9 } }, "expression": { "type": "CallExpression", - "start": 26082, - "end": 26215, + "start": 26433, + "end": 26566, "loc": { "start": { - "line": 835, + "line": 845, "column": 6 }, "end": { - "line": 837, + "line": 847, "column": 8 } }, "callee": { "type": "MemberExpression", - "start": 26082, - "end": 26103, + "start": 26433, + "end": 26454, "loc": { "start": { - "line": 835, + "line": 845, "column": 6 }, "end": { - "line": 835, + "line": 845, "column": 27 } }, "object": { "type": "MemberExpression", - "start": 26082, - "end": 26095, + "start": 26433, + "end": 26446, "loc": { "start": { - "line": 835, + "line": 845, "column": 6 }, "end": { - "line": 835, + "line": 845, "column": 19 } }, "object": { "type": "Identifier", - "start": 26082, - "end": 26087, + "start": 26433, + "end": 26438, "loc": { "start": { - "line": 835, + "line": 845, "column": 6 }, "end": { - "line": 835, + "line": 845, "column": 11 }, "identifierName": "group" @@ -51879,15 +52397,15 @@ }, "property": { "type": "Identifier", - "start": 26088, - "end": 26095, + "start": 26439, + "end": 26446, "loc": { "start": { - "line": 835, + "line": 845, "column": 12 }, "end": { - "line": 835, + "line": 845, "column": 19 }, "identifierName": "strokes" @@ -51898,15 +52416,15 @@ }, "property": { "type": "Identifier", - "start": 26096, - "end": 26103, + "start": 26447, + "end": 26454, "loc": { "start": { - "line": 835, + "line": 845, "column": 20 }, "end": { - "line": 835, + "line": 845, "column": 27 }, "identifierName": "forEach" @@ -51918,15 +52436,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 26104, - "end": 26214, + "start": 26455, + "end": 26565, "loc": { "start": { - "line": 835, + "line": 845, "column": 28 }, "end": { - "line": 837, + "line": 847, "column": 7 } }, @@ -51937,15 +52455,15 @@ "params": [ { "type": "Identifier", - "start": 26105, - "end": 26120, + "start": 26456, + "end": 26471, "loc": { "start": { - "line": 835, + "line": 845, "column": 29 }, "end": { - "line": 835, + "line": 845, "column": 44 }, "identifierName": "strokeFromGroup" @@ -51955,72 +52473,72 @@ ], "body": { "type": "BlockStatement", - "start": 26125, - "end": 26214, + "start": 26476, + "end": 26565, "loc": { "start": { - "line": 835, + "line": 845, "column": 49 }, "end": { - "line": 837, + "line": 847, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 26135, - "end": 26206, + "start": 26486, + "end": 26557, "loc": { "start": { - "line": 836, + "line": 846, "column": 8 }, "end": { - "line": 836, + "line": 846, "column": 79 } }, "expression": { "type": "CallExpression", - "start": 26135, - "end": 26205, + "start": 26486, + "end": 26556, "loc": { "start": { - "line": 836, + "line": 846, "column": 8 }, "end": { - "line": 836, + "line": 846, "column": 78 } }, "callee": { "type": "MemberExpression", - "start": 26135, - "end": 26160, + "start": 26486, + "end": 26511, "loc": { "start": { - "line": 836, + "line": 846, "column": 8 }, "end": { - "line": 836, + "line": 846, "column": 33 } }, "object": { "type": "Identifier", - "start": 26135, - "end": 26143, + "start": 26486, + "end": 26494, "loc": { "start": { - "line": 836, + "line": 846, "column": 8 }, "end": { - "line": 836, + "line": 846, "column": 16 }, "identifierName": "InkModel" @@ -52029,15 +52547,15 @@ }, "property": { "type": "Identifier", - "start": 26144, - "end": 26160, + "start": 26495, + "end": 26511, "loc": { "start": { - "line": 836, + "line": 846, "column": 17 }, "end": { - "line": 836, + "line": 846, "column": 33 }, "identifierName": "addStrokeToGroup" @@ -52049,44 +52567,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 26161, - "end": 26171, + "start": 26512, + "end": 26522, "loc": { "start": { - "line": 836, + "line": 846, "column": 34 }, "end": { - "line": 836, + "line": 846, "column": 44 } }, "object": { "type": "ThisExpression", - "start": 26161, - "end": 26165, + "start": 26512, + "end": 26516, "loc": { "start": { - "line": 836, + "line": 846, "column": 34 }, "end": { - "line": 836, + "line": 846, "column": 38 } } }, "property": { "type": "Identifier", - "start": 26166, - "end": 26171, + "start": 26517, + "end": 26522, "loc": { "start": { - "line": 836, + "line": 846, "column": 39 }, "end": { - "line": 836, + "line": 846, "column": 44 }, "identifierName": "model" @@ -52097,15 +52615,15 @@ }, { "type": "Identifier", - "start": 26173, - "end": 26188, + "start": 26524, + "end": 26539, "loc": { "start": { - "line": 836, + "line": 846, "column": 46 }, "end": { - "line": 836, + "line": 846, "column": 61 }, "identifierName": "strokeFromGroup" @@ -52114,29 +52632,29 @@ }, { "type": "MemberExpression", - "start": 26190, - "end": 26204, + "start": 26541, + "end": 26555, "loc": { "start": { - "line": 836, + "line": 846, "column": 63 }, "end": { - "line": 836, + "line": 846, "column": 77 } }, "object": { "type": "Identifier", - "start": 26190, - "end": 26195, + "start": 26541, + "end": 26546, "loc": { "start": { - "line": 836, + "line": 846, "column": 63 }, "end": { - "line": 836, + "line": 846, "column": 68 }, "identifierName": "group" @@ -52145,15 +52663,15 @@ }, "property": { "type": "Identifier", - "start": 26196, - "end": 26204, + "start": 26547, + "end": 26555, "loc": { "start": { - "line": 836, + "line": 846, "column": 69 }, "end": { - "line": 836, + "line": 846, "column": 77 }, "identifierName": "penStyle" @@ -52181,86 +52699,86 @@ }, { "type": "ExpressionStatement", - "start": 26229, - "end": 26301, + "start": 26580, + "end": 26652, "loc": { "start": { - "line": 839, + "line": 849, "column": 4 }, "end": { - "line": 839, + "line": 849, "column": 76 } }, "expression": { "type": "CallExpression", - "start": 26229, - "end": 26300, + "start": 26580, + "end": 26651, "loc": { "start": { - "line": 839, + "line": 849, "column": 4 }, "end": { - "line": 839, + "line": 849, "column": 75 } }, "callee": { "type": "MemberExpression", - "start": 26229, - "end": 26252, + "start": 26580, + "end": 26603, "loc": { "start": { - "line": 839, + "line": 849, "column": 4 }, "end": { - "line": 839, + "line": 849, "column": 27 } }, "object": { "type": "MemberExpression", - "start": 26229, - "end": 26242, + "start": 26580, + "end": 26593, "loc": { "start": { - "line": 839, + "line": 849, "column": 4 }, "end": { - "line": 839, + "line": 849, "column": 17 } }, "object": { "type": "ThisExpression", - "start": 26229, - "end": 26233, + "start": 26580, + "end": 26584, "loc": { "start": { - "line": 839, + "line": 849, "column": 4 }, "end": { - "line": 839, + "line": 849, "column": 8 } } }, "property": { "type": "Identifier", - "start": 26234, - "end": 26242, + "start": 26585, + "end": 26593, "loc": { "start": { - "line": 839, + "line": 849, "column": 9 }, "end": { - "line": 839, + "line": 849, "column": 17 }, "identifierName": "renderer" @@ -52271,15 +52789,15 @@ }, "property": { "type": "Identifier", - "start": 26243, - "end": 26252, + "start": 26594, + "end": 26603, "loc": { "start": { - "line": 839, + "line": 849, "column": 18 }, "end": { - "line": 839, + "line": 849, "column": 27 }, "identifierName": "drawModel" @@ -52291,44 +52809,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 26253, - "end": 26273, + "start": 26604, + "end": 26624, "loc": { "start": { - "line": 839, + "line": 849, "column": 28 }, "end": { - "line": 839, + "line": 849, "column": 48 } }, "object": { "type": "ThisExpression", - "start": 26253, - "end": 26257, + "start": 26604, + "end": 26608, "loc": { "start": { - "line": 839, + "line": 849, "column": 28 }, "end": { - "line": 839, + "line": 849, "column": 32 } } }, "property": { "type": "Identifier", - "start": 26258, - "end": 26273, + "start": 26609, + "end": 26624, "loc": { "start": { - "line": 839, + "line": 849, "column": 33 }, "end": { - "line": 839, + "line": 849, "column": 48 }, "identifierName": "rendererContext" @@ -52339,44 +52857,44 @@ }, { "type": "MemberExpression", - "start": 26275, - "end": 26285, + "start": 26626, + "end": 26636, "loc": { "start": { - "line": 839, + "line": 849, "column": 50 }, "end": { - "line": 839, + "line": 849, "column": 60 } }, "object": { "type": "ThisExpression", - "start": 26275, - "end": 26279, + "start": 26626, + "end": 26630, "loc": { "start": { - "line": 839, + "line": 849, "column": 50 }, "end": { - "line": 839, + "line": 849, "column": 54 } } }, "property": { "type": "Identifier", - "start": 26280, - "end": 26285, + "start": 26631, + "end": 26636, "loc": { "start": { - "line": 839, + "line": 849, "column": 55 }, "end": { - "line": 839, + "line": 849, "column": 60 }, "identifierName": "model" @@ -52387,44 +52905,44 @@ }, { "type": "MemberExpression", - "start": 26287, - "end": 26299, + "start": 26638, + "end": 26650, "loc": { "start": { - "line": 839, + "line": 849, "column": 62 }, "end": { - "line": 839, + "line": 849, "column": 74 } }, "object": { "type": "ThisExpression", - "start": 26287, - "end": 26291, + "start": 26638, + "end": 26642, "loc": { "start": { - "line": 839, + "line": 849, "column": 62 }, "end": { - "line": 839, + "line": 849, "column": 66 } } }, "property": { "type": "Identifier", - "start": 26292, - "end": 26299, + "start": 26643, + "end": 26650, "loc": { "start": { - "line": 839, + "line": 849, "column": 67 }, "end": { - "line": 839, + "line": 849, "column": 74 }, "identifierName": "stroker" @@ -52438,43 +52956,43 @@ }, { "type": "ExpressionStatement", - "start": 26306, - "end": 26354, + "start": 26657, + "end": 26705, "loc": { "start": { - "line": 840, + "line": 850, "column": 4 }, "end": { - "line": 840, + "line": 850, "column": 52 } }, "expression": { "type": "CallExpression", - "start": 26306, - "end": 26353, + "start": 26657, + "end": 26704, "loc": { "start": { - "line": 840, + "line": 850, "column": 4 }, "end": { - "line": 840, + "line": 850, "column": 51 } }, "callee": { "type": "Identifier", - "start": 26306, - "end": 26324, + "start": 26657, + "end": 26675, "loc": { "start": { - "line": 840, + "line": 850, "column": 4 }, "end": { - "line": 840, + "line": 850, "column": 22 }, "identifierName": "recognizerCallback" @@ -52484,30 +53002,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 26325, - "end": 26329, + "start": 26676, + "end": 26680, "loc": { "start": { - "line": 840, + "line": 850, "column": 23 }, "end": { - "line": 840, + "line": 850, "column": 27 } } }, { "type": "Identifier", - "start": 26331, - "end": 26340, + "start": 26682, + "end": 26691, "loc": { "start": { - "line": 840, + "line": 850, "column": 29 }, "end": { - "line": 840, + "line": 850, "column": 38 }, "identifierName": "undefined" @@ -52516,44 +53034,44 @@ }, { "type": "MemberExpression", - "start": 26342, - "end": 26352, + "start": 26693, + "end": 26703, "loc": { "start": { - "line": 840, + "line": 850, "column": 40 }, "end": { - "line": 840, + "line": 850, "column": 50 } }, "object": { "type": "ThisExpression", - "start": 26342, - "end": 26346, + "start": 26693, + "end": 26697, "loc": { "start": { - "line": 840, + "line": 850, "column": 40 }, "end": { - "line": 840, + "line": 850, "column": 44 } } }, "property": { "type": "Identifier", - "start": 26347, - "end": 26352, + "start": 26698, + "end": 26703, "loc": { "start": { - "line": 840, + "line": 850, "column": 45 }, "end": { - "line": 840, + "line": 850, "column": 50 }, "identifierName": "model" @@ -52569,19 +53087,37 @@ "directives": [], "trailingComments": null }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * @Deprecated\n * @param rawStrokes\n * @param strokeGroups\n ", + "start": 26186, + "end": 26260, + "loc": { + "start": { + "line": 835, + "column": 2 + }, + "end": { + "line": 839, + "column": 5 + } + } + } + ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * True if idle state\n * @return {Boolean}\n ", - "start": 26362, - "end": 26418, + "start": 26713, + "end": 26769, "loc": { "start": { - "line": 843, + "line": 853, "column": 2 }, "end": { - "line": 846, + "line": 856, "column": 5 } } @@ -52590,15 +53126,15 @@ }, { "type": "ClassMethod", - "start": 26421, - "end": 26477, + "start": 26772, + "end": 26828, "loc": { "start": { - "line": 847, + "line": 857, "column": 2 }, "end": { - "line": 849, + "line": 859, "column": 3 } }, @@ -52606,15 +53142,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 26425, - "end": 26429, + "start": 26776, + "end": 26780, "loc": { "start": { - "line": 847, + "line": 857, "column": 6 }, "end": { - "line": 847, + "line": 857, "column": 10 }, "identifierName": "idle" @@ -52629,87 +53165,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 26432, - "end": 26477, + "start": 26783, + "end": 26828, "loc": { "start": { - "line": 847, + "line": 857, "column": 13 }, "end": { - "line": 849, + "line": 859, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 26438, - "end": 26473, + "start": 26789, + "end": 26824, "loc": { "start": { - "line": 848, + "line": 858, "column": 4 }, "end": { - "line": 848, + "line": 858, "column": 39 } }, "argument": { "type": "MemberExpression", - "start": 26445, - "end": 26472, + "start": 26796, + "end": 26823, "loc": { "start": { - "line": 848, + "line": 858, "column": 11 }, "end": { - "line": 848, + "line": 858, "column": 38 } }, "object": { "type": "MemberExpression", - "start": 26445, - "end": 26467, + "start": 26796, + "end": 26818, "loc": { "start": { - "line": 848, + "line": 858, "column": 11 }, "end": { - "line": 848, + "line": 858, "column": 33 } }, "object": { "type": "ThisExpression", - "start": 26445, - "end": 26449, + "start": 26796, + "end": 26800, "loc": { "start": { - "line": 848, + "line": 858, "column": 11 }, "end": { - "line": 848, + "line": 858, "column": 15 } } }, "property": { "type": "Identifier", - "start": 26450, - "end": 26467, + "start": 26801, + "end": 26818, "loc": { "start": { - "line": 848, + "line": 858, "column": 16 }, "end": { - "line": 848, + "line": 858, "column": 33 }, "identifierName": "recognizerContext" @@ -52720,15 +53256,15 @@ }, "property": { "type": "Identifier", - "start": 26468, - "end": 26472, + "start": 26819, + "end": 26823, "loc": { "start": { - "line": 848, + "line": 858, "column": 34 }, "end": { - "line": 848, + "line": 858, "column": 38 }, "identifierName": "idle" @@ -52746,15 +53282,15 @@ { "type": "CommentBlock", "value": "*\n * True if idle state\n * @return {Boolean}\n ", - "start": 26362, - "end": 26418, + "start": 26713, + "end": 26769, "loc": { "start": { - "line": 843, + "line": 853, "column": 2 }, "end": { - "line": 846, + "line": 856, "column": 5 } } @@ -52764,15 +53300,15 @@ { "type": "CommentBlock", "value": "*\n * Wait for idle state.\n ", - "start": 26481, - "end": 26516, + "start": 26832, + "end": 26867, "loc": { "start": { - "line": 851, + "line": 861, "column": 2 }, "end": { - "line": 853, + "line": 863, "column": 5 } } @@ -52781,15 +53317,15 @@ }, { "type": "ClassMethod", - "start": 26519, - "end": 26644, + "start": 26870, + "end": 26995, "loc": { "start": { - "line": 854, + "line": 864, "column": 2 }, "end": { - "line": 857, + "line": 867, "column": 3 } }, @@ -52797,15 +53333,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 26519, - "end": 26530, + "start": 26870, + "end": 26881, "loc": { "start": { - "line": 854, + "line": 864, "column": 2 }, "end": { - "line": 854, + "line": 864, "column": 13 }, "identifierName": "waitForIdle" @@ -52821,58 +53357,58 @@ "params": [], "body": { "type": "BlockStatement", - "start": 26533, - "end": 26644, + "start": 26884, + "end": 26995, "loc": { "start": { - "line": 854, + "line": 864, "column": 16 }, "end": { - "line": 857, + "line": 867, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 26539, - "end": 26599, + "start": 26890, + "end": 26950, "loc": { "start": { - "line": 855, + "line": 865, "column": 4 }, "end": { - "line": 855, + "line": 865, "column": 64 } }, "expression": { "type": "CallExpression", - "start": 26539, - "end": 26598, + "start": 26890, + "end": 26949, "loc": { "start": { - "line": 855, + "line": 865, "column": 4 }, "end": { - "line": 855, + "line": 865, "column": 63 } }, "callee": { "type": "Identifier", - "start": 26539, - "end": 26555, + "start": 26890, + "end": 26906, "loc": { "start": { - "line": 855, + "line": 865, "column": 4 }, "end": { - "line": 855, + "line": 865, "column": 20 }, "identifierName": "triggerCallbacks" @@ -52882,30 +53418,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 26556, - "end": 26560, + "start": 26907, + "end": 26911, "loc": { "start": { - "line": 855, + "line": 865, "column": 21 }, "end": { - "line": 855, + "line": 865, "column": 25 } } }, { "type": "Identifier", - "start": 26562, - "end": 26571, + "start": 26913, + "end": 26922, "loc": { "start": { - "line": 855, + "line": 865, "column": 27 }, "end": { - "line": 855, + "line": 865, "column": 36 }, "identifierName": "undefined" @@ -52914,43 +53450,43 @@ }, { "type": "MemberExpression", - "start": 26573, - "end": 26597, + "start": 26924, + "end": 26948, "loc": { "start": { - "line": 855, + "line": 865, "column": 38 }, "end": { - "line": 855, + "line": 865, "column": 62 } }, "object": { "type": "MemberExpression", - "start": 26573, - "end": 26592, + "start": 26924, + "end": 26943, "loc": { "start": { - "line": 855, + "line": 865, "column": 38 }, "end": { - "line": 855, + "line": 865, "column": 57 } }, "object": { "type": "Identifier", - "start": 26573, - "end": 26582, + "start": 26924, + "end": 26933, "loc": { "start": { - "line": 855, + "line": 865, "column": 38 }, "end": { - "line": 855, + "line": 865, "column": 47 }, "identifierName": "Constants" @@ -52959,15 +53495,15 @@ }, "property": { "type": "Identifier", - "start": 26583, - "end": 26592, + "start": 26934, + "end": 26943, "loc": { "start": { - "line": 855, + "line": 865, "column": 48 }, "end": { - "line": 855, + "line": 865, "column": 57 }, "identifierName": "EventType" @@ -52978,15 +53514,15 @@ }, "property": { "type": "Identifier", - "start": 26593, - "end": 26597, + "start": 26944, + "end": 26948, "loc": { "start": { - "line": 855, + "line": 865, "column": 58 }, "end": { - "line": 855, + "line": 865, "column": 62 }, "identifierName": "IDLE" @@ -53000,43 +53536,43 @@ }, { "type": "ExpressionStatement", - "start": 26604, - "end": 26640, + "start": 26955, + "end": 26991, "loc": { "start": { - "line": 856, + "line": 866, "column": 4 }, "end": { - "line": 856, + "line": 866, "column": 40 } }, "expression": { "type": "CallExpression", - "start": 26604, - "end": 26639, + "start": 26955, + "end": 26990, "loc": { "start": { - "line": 856, + "line": 866, "column": 4 }, "end": { - "line": 856, + "line": 866, "column": 39 } }, "callee": { "type": "Identifier", - "start": 26604, - "end": 26621, + "start": 26955, + "end": 26972, "loc": { "start": { - "line": 856, + "line": 866, "column": 4 }, "end": { - "line": 856, + "line": 866, "column": 21 }, "identifierName": "launchWaitForIdle" @@ -53046,59 +53582,59 @@ "arguments": [ { "type": "ThisExpression", - "start": 26622, - "end": 26626, + "start": 26973, + "end": 26977, "loc": { "start": { - "line": 856, + "line": 866, "column": 22 }, "end": { - "line": 856, + "line": 866, "column": 26 } } }, { "type": "MemberExpression", - "start": 26628, - "end": 26638, + "start": 26979, + "end": 26989, "loc": { "start": { - "line": 856, + "line": 866, "column": 28 }, "end": { - "line": 856, + "line": 866, "column": 38 } }, "object": { "type": "ThisExpression", - "start": 26628, - "end": 26632, + "start": 26979, + "end": 26983, "loc": { "start": { - "line": 856, + "line": 866, "column": 28 }, "end": { - "line": 856, + "line": 866, "column": 32 } } }, "property": { "type": "Identifier", - "start": 26633, - "end": 26638, + "start": 26984, + "end": 26989, "loc": { "start": { - "line": 856, + "line": 866, "column": 33 }, "end": { - "line": 856, + "line": 866, "column": 38 }, "identifierName": "model" @@ -53118,15 +53654,15 @@ { "type": "CommentBlock", "value": "*\n * Wait for idle state.\n ", - "start": 26481, - "end": 26516, + "start": 26832, + "end": 26867, "loc": { "start": { - "line": 851, + "line": 861, "column": 2 }, "end": { - "line": 853, + "line": 863, "column": 5 } } @@ -53136,15 +53672,15 @@ { "type": "CommentBlock", "value": "*\n * True if can undo, false otherwise.\n * @return {Boolean}\n ", - "start": 26648, - "end": 26720, + "start": 26999, + "end": 27071, "loc": { "start": { - "line": 859, + "line": 869, "column": 2 }, "end": { - "line": 862, + "line": 872, "column": 5 } } @@ -53153,15 +53689,15 @@ }, { "type": "ClassMethod", - "start": 26723, - "end": 26783, + "start": 27074, + "end": 27134, "loc": { "start": { - "line": 863, + "line": 873, "column": 2 }, "end": { - "line": 865, + "line": 875, "column": 3 } }, @@ -53169,15 +53705,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 26727, - "end": 26734, + "start": 27078, + "end": 27085, "loc": { "start": { - "line": 863, + "line": 873, "column": 6 }, "end": { - "line": 863, + "line": 873, "column": 13 }, "identifierName": "canUndo" @@ -53192,87 +53728,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 26737, - "end": 26783, + "start": 27088, + "end": 27134, "loc": { "start": { - "line": 863, + "line": 873, "column": 16 }, "end": { - "line": 865, + "line": 875, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 26743, - "end": 26779, + "start": 27094, + "end": 27130, "loc": { "start": { - "line": 864, + "line": 874, "column": 4 }, "end": { - "line": 864, + "line": 874, "column": 40 } }, "argument": { "type": "MemberExpression", - "start": 26750, - "end": 26778, + "start": 27101, + "end": 27129, "loc": { "start": { - "line": 864, + "line": 874, "column": 11 }, "end": { - "line": 864, + "line": 874, "column": 39 } }, "object": { "type": "MemberExpression", - "start": 26750, - "end": 26770, + "start": 27101, + "end": 27121, "loc": { "start": { - "line": 864, + "line": 874, "column": 11 }, "end": { - "line": 864, + "line": 874, "column": 31 } }, "object": { "type": "ThisExpression", - "start": 26750, - "end": 26754, + "start": 27101, + "end": 27105, "loc": { "start": { - "line": 864, + "line": 874, "column": 11 }, "end": { - "line": 864, + "line": 874, "column": 15 } } }, "property": { "type": "Identifier", - "start": 26755, - "end": 26770, + "start": 27106, + "end": 27121, "loc": { "start": { - "line": 864, + "line": 874, "column": 16 }, "end": { - "line": 864, + "line": 874, "column": 31 }, "identifierName": "undoRedoContext" @@ -53283,15 +53819,15 @@ }, "property": { "type": "Identifier", - "start": 26771, - "end": 26778, + "start": 27122, + "end": 27129, "loc": { "start": { - "line": 864, + "line": 874, "column": 32 }, "end": { - "line": 864, + "line": 874, "column": 39 }, "identifierName": "canUndo" @@ -53309,15 +53845,15 @@ { "type": "CommentBlock", "value": "*\n * True if can undo, false otherwise.\n * @return {Boolean}\n ", - "start": 26648, - "end": 26720, + "start": 26999, + "end": 27071, "loc": { "start": { - "line": 859, + "line": 869, "column": 2 }, "end": { - "line": 862, + "line": 872, "column": 5 } } @@ -53327,15 +53863,15 @@ { "type": "CommentBlock", "value": "*\n * Undo the last action.\n ", - "start": 26787, - "end": 26823, + "start": 27138, + "end": 27174, "loc": { "start": { - "line": 867, + "line": 877, "column": 2 }, "end": { - "line": 869, + "line": 879, "column": 5 } } @@ -53344,15 +53880,15 @@ }, { "type": "ClassMethod", - "start": 26826, - "end": 27103, + "start": 27177, + "end": 27454, "loc": { "start": { - "line": 870, + "line": 880, "column": 2 }, "end": { - "line": 876, + "line": 886, "column": 3 } }, @@ -53360,15 +53896,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 26826, - "end": 26830, + "start": 27177, + "end": 27181, "loc": { "start": { - "line": 870, + "line": 880, "column": 2 }, "end": { - "line": 870, + "line": 880, "column": 6 }, "identifierName": "undo" @@ -53384,72 +53920,72 @@ "params": [], "body": { "type": "BlockStatement", - "start": 26833, - "end": 27103, + "start": 27184, + "end": 27454, "loc": { "start": { - "line": 870, + "line": 880, "column": 9 }, "end": { - "line": 876, + "line": 886, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 26839, - "end": 26886, + "start": 27190, + "end": 27237, "loc": { "start": { - "line": 871, + "line": 881, "column": 4 }, "end": { - "line": 871, + "line": 881, "column": 51 } }, "expression": { "type": "CallExpression", - "start": 26839, - "end": 26885, + "start": 27190, + "end": 27236, "loc": { "start": { - "line": 871, + "line": 881, "column": 4 }, "end": { - "line": 871, + "line": 881, "column": 50 } }, "callee": { "type": "MemberExpression", - "start": 26839, - "end": 26851, + "start": 27190, + "end": 27202, "loc": { "start": { - "line": 871, + "line": 881, "column": 4 }, "end": { - "line": 871, + "line": 881, "column": 16 } }, "object": { "type": "Identifier", - "start": 26839, - "end": 26845, + "start": 27190, + "end": 27196, "loc": { "start": { - "line": 871, + "line": 881, "column": 4 }, "end": { - "line": 871, + "line": 881, "column": 10 }, "identifierName": "logger" @@ -53458,15 +53994,15 @@ }, "property": { "type": "Identifier", - "start": 26846, - "end": 26851, + "start": 27197, + "end": 27202, "loc": { "start": { - "line": 871, + "line": 881, "column": 11 }, "end": { - "line": 871, + "line": 881, "column": 16 }, "identifierName": "debug" @@ -53478,15 +54014,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 26852, - "end": 26872, + "start": 27203, + "end": 27223, "loc": { "start": { - "line": 871, + "line": 881, "column": 17 }, "end": { - "line": 871, + "line": 881, "column": 37 } }, @@ -53498,44 +54034,44 @@ }, { "type": "MemberExpression", - "start": 26874, - "end": 26884, + "start": 27225, + "end": 27235, "loc": { "start": { - "line": 871, + "line": 881, "column": 39 }, "end": { - "line": 871, + "line": 881, "column": 49 } }, "object": { "type": "ThisExpression", - "start": 26874, - "end": 26878, + "start": 27225, + "end": 27229, "loc": { "start": { - "line": 871, + "line": 881, "column": 39 }, "end": { - "line": 871, + "line": 881, "column": 43 } } }, "property": { "type": "Identifier", - "start": 26879, - "end": 26884, + "start": 27230, + "end": 27235, "loc": { "start": { - "line": 871, + "line": 881, "column": 44 }, "end": { - "line": 871, + "line": 881, "column": 49 }, "identifierName": "model" @@ -53549,43 +54085,43 @@ }, { "type": "ExpressionStatement", - "start": 26891, - "end": 26951, + "start": 27242, + "end": 27302, "loc": { "start": { - "line": 872, + "line": 882, "column": 4 }, "end": { - "line": 872, + "line": 882, "column": 64 } }, "expression": { "type": "CallExpression", - "start": 26891, - "end": 26950, + "start": 27242, + "end": 27301, "loc": { "start": { - "line": 872, + "line": 882, "column": 4 }, "end": { - "line": 872, + "line": 882, "column": 63 } }, "callee": { "type": "Identifier", - "start": 26891, - "end": 26907, + "start": 27242, + "end": 27258, "loc": { "start": { - "line": 872, + "line": 882, "column": 4 }, "end": { - "line": 872, + "line": 882, "column": 20 }, "identifierName": "triggerCallbacks" @@ -53595,30 +54131,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 26908, - "end": 26912, + "start": 27259, + "end": 27263, "loc": { "start": { - "line": 872, + "line": 882, "column": 21 }, "end": { - "line": 872, + "line": 882, "column": 25 } } }, { "type": "Identifier", - "start": 26914, - "end": 26923, + "start": 27265, + "end": 27274, "loc": { "start": { - "line": 872, + "line": 882, "column": 27 }, "end": { - "line": 872, + "line": 882, "column": 36 }, "identifierName": "undefined" @@ -53627,43 +54163,43 @@ }, { "type": "MemberExpression", - "start": 26925, - "end": 26949, + "start": 27276, + "end": 27300, "loc": { "start": { - "line": 872, + "line": 882, "column": 38 }, "end": { - "line": 872, + "line": 882, "column": 62 } }, "object": { "type": "MemberExpression", - "start": 26925, - "end": 26944, + "start": 27276, + "end": 27295, "loc": { "start": { - "line": 872, + "line": 882, "column": 38 }, "end": { - "line": 872, + "line": 882, "column": 57 } }, "object": { "type": "Identifier", - "start": 26925, - "end": 26934, + "start": 27276, + "end": 27285, "loc": { "start": { - "line": 872, + "line": 882, "column": 38 }, "end": { - "line": 872, + "line": 882, "column": 47 }, "identifierName": "Constants" @@ -53672,15 +54208,15 @@ }, "property": { "type": "Identifier", - "start": 26935, - "end": 26944, + "start": 27286, + "end": 27295, "loc": { "start": { - "line": 872, + "line": 882, "column": 48 }, "end": { - "line": 872, + "line": 882, "column": 57 }, "identifierName": "EventType" @@ -53691,15 +54227,15 @@ }, "property": { "type": "Identifier", - "start": 26945, - "end": 26949, + "start": 27296, + "end": 27300, "loc": { "start": { - "line": 872, + "line": 882, "column": 58 }, "end": { - "line": 872, + "line": 882, "column": 62 }, "identifierName": "UNDO" @@ -53713,86 +54249,86 @@ }, { "type": "ExpressionStatement", - "start": 26956, - "end": 27099, + "start": 27307, + "end": 27450, "loc": { "start": { - "line": 873, + "line": 883, "column": 4 }, "end": { - "line": 875, + "line": 885, "column": 7 } }, "expression": { "type": "CallExpression", - "start": 26956, - "end": 27098, + "start": 27307, + "end": 27449, "loc": { "start": { - "line": 873, + "line": 883, "column": 4 }, "end": { - "line": 875, + "line": 885, "column": 6 } }, "callee": { "type": "MemberExpression", - "start": 26956, - "end": 26981, + "start": 27307, + "end": 27332, "loc": { "start": { - "line": 873, + "line": 883, "column": 4 }, "end": { - "line": 873, + "line": 883, "column": 29 } }, "object": { "type": "MemberExpression", - "start": 26956, - "end": 26976, + "start": 27307, + "end": 27327, "loc": { "start": { - "line": 873, + "line": 883, "column": 4 }, "end": { - "line": 873, + "line": 883, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 26956, - "end": 26960, + "start": 27307, + "end": 27311, "loc": { "start": { - "line": 873, + "line": 883, "column": 4 }, "end": { - "line": 873, + "line": 883, "column": 8 } } }, "property": { "type": "Identifier", - "start": 26961, - "end": 26976, + "start": 27312, + "end": 27327, "loc": { "start": { - "line": 873, + "line": 883, "column": 9 }, "end": { - "line": 873, + "line": 883, "column": 24 }, "identifierName": "undoRedoManager" @@ -53803,15 +54339,15 @@ }, "property": { "type": "Identifier", - "start": 26977, - "end": 26981, + "start": 27328, + "end": 27332, "loc": { "start": { - "line": 873, + "line": 883, "column": 25 }, "end": { - "line": 873, + "line": 883, "column": 29 }, "identifierName": "undo" @@ -53823,44 +54359,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 26982, - "end": 27002, + "start": 27333, + "end": 27353, "loc": { "start": { - "line": 873, + "line": 883, "column": 30 }, "end": { - "line": 873, + "line": 883, "column": 50 } }, "object": { "type": "ThisExpression", - "start": 26982, - "end": 26986, + "start": 27333, + "end": 27337, "loc": { "start": { - "line": 873, + "line": 883, "column": 30 }, "end": { - "line": 873, + "line": 883, "column": 34 } } }, "property": { "type": "Identifier", - "start": 26987, - "end": 27002, + "start": 27338, + "end": 27353, "loc": { "start": { - "line": 873, + "line": 883, "column": 35 }, "end": { - "line": 873, + "line": 883, "column": 50 }, "identifierName": "undoRedoContext" @@ -53871,44 +54407,44 @@ }, { "type": "MemberExpression", - "start": 27004, - "end": 27014, + "start": 27355, + "end": 27365, "loc": { "start": { - "line": 873, + "line": 883, "column": 52 }, "end": { - "line": 873, + "line": 883, "column": 62 } }, "object": { "type": "ThisExpression", - "start": 27004, - "end": 27008, + "start": 27355, + "end": 27359, "loc": { "start": { - "line": 873, + "line": 883, "column": 52 }, "end": { - "line": 873, + "line": 883, "column": 56 } } }, "property": { "type": "Identifier", - "start": 27009, - "end": 27014, + "start": 27360, + "end": 27365, "loc": { "start": { - "line": 873, + "line": 883, "column": 57 }, "end": { - "line": 873, + "line": 883, "column": 62 }, "identifierName": "model" @@ -53919,15 +54455,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 27016, - "end": 27097, + "start": 27367, + "end": 27448, "loc": { "start": { - "line": 873, + "line": 883, "column": 64 }, "end": { - "line": 875, + "line": 885, "column": 5 } }, @@ -53938,15 +54474,15 @@ "params": [ { "type": "Identifier", - "start": 27017, - "end": 27020, + "start": 27368, + "end": 27371, "loc": { "start": { - "line": 873, + "line": 883, "column": 65 }, "end": { - "line": 873, + "line": 883, "column": 68 }, "identifierName": "err" @@ -53955,15 +54491,15 @@ }, { "type": "Identifier", - "start": 27022, - "end": 27025, + "start": 27373, + "end": 27376, "loc": { "start": { - "line": 873, + "line": 883, "column": 70 }, "end": { - "line": 873, + "line": 883, "column": 73 }, "identifierName": "res" @@ -53972,29 +54508,29 @@ }, { "type": "RestElement", - "start": 27027, - "end": 27035, + "start": 27378, + "end": 27386, "loc": { "start": { - "line": 873, + "line": 883, "column": 75 }, "end": { - "line": 873, + "line": 883, "column": 83 } }, "argument": { "type": "Identifier", - "start": 27030, - "end": 27035, + "start": 27381, + "end": 27386, "loc": { "start": { - "line": 873, + "line": 883, "column": 78 }, "end": { - "line": 873, + "line": 883, "column": 83 }, "identifierName": "types" @@ -54005,58 +54541,58 @@ ], "body": { "type": "BlockStatement", - "start": 27040, - "end": 27097, + "start": 27391, + "end": 27448, "loc": { "start": { - "line": 873, + "line": 883, "column": 88 }, "end": { - "line": 875, + "line": 885, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 27048, - "end": 27091, + "start": 27399, + "end": 27442, "loc": { "start": { - "line": 874, + "line": 884, "column": 6 }, "end": { - "line": 874, + "line": 884, "column": 49 } }, "expression": { "type": "CallExpression", - "start": 27048, - "end": 27090, + "start": 27399, + "end": 27441, "loc": { "start": { - "line": 874, + "line": 884, "column": 6 }, "end": { - "line": 874, + "line": 884, "column": 48 } }, "callee": { "type": "Identifier", - "start": 27048, - "end": 27069, + "start": 27399, + "end": 27420, "loc": { "start": { - "line": 874, + "line": 884, "column": 6 }, "end": { - "line": 874, + "line": 884, "column": 27 }, "identifierName": "manageRecognizedModel" @@ -54066,30 +54602,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 27070, - "end": 27074, + "start": 27421, + "end": 27425, "loc": { "start": { - "line": 874, + "line": 884, "column": 28 }, "end": { - "line": 874, + "line": 884, "column": 32 } } }, { "type": "Identifier", - "start": 27076, - "end": 27079, + "start": 27427, + "end": 27430, "loc": { "start": { - "line": 874, + "line": 884, "column": 34 }, "end": { - "line": 874, + "line": 884, "column": 37 }, "identifierName": "res" @@ -54098,29 +54634,29 @@ }, { "type": "SpreadElement", - "start": 27081, - "end": 27089, + "start": 27432, + "end": 27440, "loc": { "start": { - "line": 874, + "line": 884, "column": 39 }, "end": { - "line": 874, + "line": 884, "column": 47 } }, "argument": { "type": "Identifier", - "start": 27084, - "end": 27089, + "start": 27435, + "end": 27440, "loc": { "start": { - "line": 874, + "line": 884, "column": 42 }, "end": { - "line": 874, + "line": 884, "column": 47 }, "identifierName": "types" @@ -54146,15 +54682,15 @@ { "type": "CommentBlock", "value": "*\n * Undo the last action.\n ", - "start": 26787, - "end": 26823, + "start": 27138, + "end": 27174, "loc": { "start": { - "line": 867, + "line": 877, "column": 2 }, "end": { - "line": 869, + "line": 879, "column": 5 } } @@ -54164,15 +54700,15 @@ { "type": "CommentBlock", "value": "*\n * True if can redo, false otherwise.\n * @return {Boolean}\n ", - "start": 27107, - "end": 27179, + "start": 27458, + "end": 27530, "loc": { "start": { - "line": 878, + "line": 888, "column": 2 }, "end": { - "line": 881, + "line": 891, "column": 5 } } @@ -54181,15 +54717,15 @@ }, { "type": "ClassMethod", - "start": 27182, - "end": 27242, + "start": 27533, + "end": 27593, "loc": { "start": { - "line": 882, + "line": 892, "column": 2 }, "end": { - "line": 884, + "line": 894, "column": 3 } }, @@ -54197,15 +54733,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 27186, - "end": 27193, + "start": 27537, + "end": 27544, "loc": { "start": { - "line": 882, + "line": 892, "column": 6 }, "end": { - "line": 882, + "line": 892, "column": 13 }, "identifierName": "canRedo" @@ -54220,87 +54756,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 27196, - "end": 27242, + "start": 27547, + "end": 27593, "loc": { "start": { - "line": 882, + "line": 892, "column": 16 }, "end": { - "line": 884, + "line": 894, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 27202, - "end": 27238, + "start": 27553, + "end": 27589, "loc": { "start": { - "line": 883, + "line": 893, "column": 4 }, "end": { - "line": 883, + "line": 893, "column": 40 } }, "argument": { "type": "MemberExpression", - "start": 27209, - "end": 27237, + "start": 27560, + "end": 27588, "loc": { "start": { - "line": 883, + "line": 893, "column": 11 }, "end": { - "line": 883, + "line": 893, "column": 39 } }, "object": { "type": "MemberExpression", - "start": 27209, - "end": 27229, + "start": 27560, + "end": 27580, "loc": { "start": { - "line": 883, + "line": 893, "column": 11 }, "end": { - "line": 883, + "line": 893, "column": 31 } }, "object": { "type": "ThisExpression", - "start": 27209, - "end": 27213, + "start": 27560, + "end": 27564, "loc": { "start": { - "line": 883, + "line": 893, "column": 11 }, "end": { - "line": 883, + "line": 893, "column": 15 } } }, "property": { "type": "Identifier", - "start": 27214, - "end": 27229, + "start": 27565, + "end": 27580, "loc": { "start": { - "line": 883, + "line": 893, "column": 16 }, "end": { - "line": 883, + "line": 893, "column": 31 }, "identifierName": "undoRedoContext" @@ -54311,15 +54847,15 @@ }, "property": { "type": "Identifier", - "start": 27230, - "end": 27237, + "start": 27581, + "end": 27588, "loc": { "start": { - "line": 883, + "line": 893, "column": 32 }, "end": { - "line": 883, + "line": 893, "column": 39 }, "identifierName": "canRedo" @@ -54337,15 +54873,15 @@ { "type": "CommentBlock", "value": "*\n * True if can redo, false otherwise.\n * @return {Boolean}\n ", - "start": 27107, - "end": 27179, + "start": 27458, + "end": 27530, "loc": { "start": { - "line": 878, + "line": 888, "column": 2 }, "end": { - "line": 881, + "line": 891, "column": 5 } } @@ -54355,15 +54891,15 @@ { "type": "CommentBlock", "value": "*\n * Redo the last action.\n ", - "start": 27246, - "end": 27282, + "start": 27597, + "end": 27633, "loc": { "start": { - "line": 886, + "line": 896, "column": 2 }, "end": { - "line": 888, + "line": 898, "column": 5 } } @@ -54372,15 +54908,15 @@ }, { "type": "ClassMethod", - "start": 27285, - "end": 27562, + "start": 27636, + "end": 27913, "loc": { "start": { - "line": 889, + "line": 899, "column": 2 }, "end": { - "line": 895, + "line": 905, "column": 3 } }, @@ -54388,15 +54924,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 27285, - "end": 27289, + "start": 27636, + "end": 27640, "loc": { "start": { - "line": 889, + "line": 899, "column": 2 }, "end": { - "line": 889, + "line": 899, "column": 6 }, "identifierName": "redo" @@ -54412,72 +54948,72 @@ "params": [], "body": { "type": "BlockStatement", - "start": 27292, - "end": 27562, + "start": 27643, + "end": 27913, "loc": { "start": { - "line": 889, + "line": 899, "column": 9 }, "end": { - "line": 895, + "line": 905, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 27298, - "end": 27345, + "start": 27649, + "end": 27696, "loc": { "start": { - "line": 890, + "line": 900, "column": 4 }, "end": { - "line": 890, + "line": 900, "column": 51 } }, "expression": { "type": "CallExpression", - "start": 27298, - "end": 27344, + "start": 27649, + "end": 27695, "loc": { "start": { - "line": 890, + "line": 900, "column": 4 }, "end": { - "line": 890, + "line": 900, "column": 50 } }, "callee": { "type": "MemberExpression", - "start": 27298, - "end": 27310, + "start": 27649, + "end": 27661, "loc": { "start": { - "line": 890, + "line": 900, "column": 4 }, "end": { - "line": 890, + "line": 900, "column": 16 } }, "object": { "type": "Identifier", - "start": 27298, - "end": 27304, + "start": 27649, + "end": 27655, "loc": { "start": { - "line": 890, + "line": 900, "column": 4 }, "end": { - "line": 890, + "line": 900, "column": 10 }, "identifierName": "logger" @@ -54486,15 +55022,15 @@ }, "property": { "type": "Identifier", - "start": 27305, - "end": 27310, + "start": 27656, + "end": 27661, "loc": { "start": { - "line": 890, + "line": 900, "column": 11 }, "end": { - "line": 890, + "line": 900, "column": 16 }, "identifierName": "debug" @@ -54506,15 +55042,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 27311, - "end": 27331, + "start": 27662, + "end": 27682, "loc": { "start": { - "line": 890, + "line": 900, "column": 17 }, "end": { - "line": 890, + "line": 900, "column": 37 } }, @@ -54526,44 +55062,44 @@ }, { "type": "MemberExpression", - "start": 27333, - "end": 27343, + "start": 27684, + "end": 27694, "loc": { "start": { - "line": 890, + "line": 900, "column": 39 }, "end": { - "line": 890, + "line": 900, "column": 49 } }, "object": { "type": "ThisExpression", - "start": 27333, - "end": 27337, + "start": 27684, + "end": 27688, "loc": { "start": { - "line": 890, + "line": 900, "column": 39 }, "end": { - "line": 890, + "line": 900, "column": 43 } } }, "property": { "type": "Identifier", - "start": 27338, - "end": 27343, + "start": 27689, + "end": 27694, "loc": { "start": { - "line": 890, + "line": 900, "column": 44 }, "end": { - "line": 890, + "line": 900, "column": 49 }, "identifierName": "model" @@ -54577,43 +55113,43 @@ }, { "type": "ExpressionStatement", - "start": 27350, - "end": 27410, + "start": 27701, + "end": 27761, "loc": { "start": { - "line": 891, + "line": 901, "column": 4 }, "end": { - "line": 891, + "line": 901, "column": 64 } }, "expression": { "type": "CallExpression", - "start": 27350, - "end": 27409, + "start": 27701, + "end": 27760, "loc": { "start": { - "line": 891, + "line": 901, "column": 4 }, "end": { - "line": 891, + "line": 901, "column": 63 } }, "callee": { "type": "Identifier", - "start": 27350, - "end": 27366, + "start": 27701, + "end": 27717, "loc": { "start": { - "line": 891, + "line": 901, "column": 4 }, "end": { - "line": 891, + "line": 901, "column": 20 }, "identifierName": "triggerCallbacks" @@ -54623,30 +55159,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 27367, - "end": 27371, + "start": 27718, + "end": 27722, "loc": { "start": { - "line": 891, + "line": 901, "column": 21 }, "end": { - "line": 891, + "line": 901, "column": 25 } } }, { "type": "Identifier", - "start": 27373, - "end": 27382, + "start": 27724, + "end": 27733, "loc": { "start": { - "line": 891, + "line": 901, "column": 27 }, "end": { - "line": 891, + "line": 901, "column": 36 }, "identifierName": "undefined" @@ -54655,43 +55191,43 @@ }, { "type": "MemberExpression", - "start": 27384, - "end": 27408, + "start": 27735, + "end": 27759, "loc": { "start": { - "line": 891, + "line": 901, "column": 38 }, "end": { - "line": 891, + "line": 901, "column": 62 } }, "object": { "type": "MemberExpression", - "start": 27384, - "end": 27403, + "start": 27735, + "end": 27754, "loc": { "start": { - "line": 891, + "line": 901, "column": 38 }, "end": { - "line": 891, + "line": 901, "column": 57 } }, "object": { "type": "Identifier", - "start": 27384, - "end": 27393, + "start": 27735, + "end": 27744, "loc": { "start": { - "line": 891, + "line": 901, "column": 38 }, "end": { - "line": 891, + "line": 901, "column": 47 }, "identifierName": "Constants" @@ -54700,15 +55236,15 @@ }, "property": { "type": "Identifier", - "start": 27394, - "end": 27403, + "start": 27745, + "end": 27754, "loc": { "start": { - "line": 891, + "line": 901, "column": 48 }, "end": { - "line": 891, + "line": 901, "column": 57 }, "identifierName": "EventType" @@ -54719,15 +55255,15 @@ }, "property": { "type": "Identifier", - "start": 27404, - "end": 27408, + "start": 27755, + "end": 27759, "loc": { "start": { - "line": 891, + "line": 901, "column": 58 }, "end": { - "line": 891, + "line": 901, "column": 62 }, "identifierName": "REDO" @@ -54741,86 +55277,86 @@ }, { "type": "ExpressionStatement", - "start": 27415, - "end": 27558, + "start": 27766, + "end": 27909, "loc": { "start": { - "line": 892, + "line": 902, "column": 4 }, "end": { - "line": 894, + "line": 904, "column": 7 } }, "expression": { "type": "CallExpression", - "start": 27415, - "end": 27557, + "start": 27766, + "end": 27908, "loc": { "start": { - "line": 892, + "line": 902, "column": 4 }, "end": { - "line": 894, + "line": 904, "column": 6 } }, "callee": { "type": "MemberExpression", - "start": 27415, - "end": 27440, + "start": 27766, + "end": 27791, "loc": { "start": { - "line": 892, + "line": 902, "column": 4 }, "end": { - "line": 892, + "line": 902, "column": 29 } }, "object": { "type": "MemberExpression", - "start": 27415, - "end": 27435, + "start": 27766, + "end": 27786, "loc": { "start": { - "line": 892, + "line": 902, "column": 4 }, "end": { - "line": 892, + "line": 902, "column": 24 } }, "object": { "type": "ThisExpression", - "start": 27415, - "end": 27419, + "start": 27766, + "end": 27770, "loc": { "start": { - "line": 892, + "line": 902, "column": 4 }, "end": { - "line": 892, + "line": 902, "column": 8 } } }, "property": { "type": "Identifier", - "start": 27420, - "end": 27435, + "start": 27771, + "end": 27786, "loc": { "start": { - "line": 892, + "line": 902, "column": 9 }, "end": { - "line": 892, + "line": 902, "column": 24 }, "identifierName": "undoRedoManager" @@ -54831,15 +55367,15 @@ }, "property": { "type": "Identifier", - "start": 27436, - "end": 27440, + "start": 27787, + "end": 27791, "loc": { "start": { - "line": 892, + "line": 902, "column": 25 }, "end": { - "line": 892, + "line": 902, "column": 29 }, "identifierName": "redo" @@ -54851,44 +55387,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 27441, - "end": 27461, + "start": 27792, + "end": 27812, "loc": { "start": { - "line": 892, + "line": 902, "column": 30 }, "end": { - "line": 892, + "line": 902, "column": 50 } }, "object": { "type": "ThisExpression", - "start": 27441, - "end": 27445, + "start": 27792, + "end": 27796, "loc": { "start": { - "line": 892, + "line": 902, "column": 30 }, "end": { - "line": 892, + "line": 902, "column": 34 } } }, "property": { "type": "Identifier", - "start": 27446, - "end": 27461, + "start": 27797, + "end": 27812, "loc": { "start": { - "line": 892, + "line": 902, "column": 35 }, "end": { - "line": 892, + "line": 902, "column": 50 }, "identifierName": "undoRedoContext" @@ -54899,44 +55435,44 @@ }, { "type": "MemberExpression", - "start": 27463, - "end": 27473, + "start": 27814, + "end": 27824, "loc": { "start": { - "line": 892, + "line": 902, "column": 52 }, "end": { - "line": 892, + "line": 902, "column": 62 } }, "object": { "type": "ThisExpression", - "start": 27463, - "end": 27467, + "start": 27814, + "end": 27818, "loc": { "start": { - "line": 892, + "line": 902, "column": 52 }, "end": { - "line": 892, + "line": 902, "column": 56 } } }, "property": { "type": "Identifier", - "start": 27468, - "end": 27473, + "start": 27819, + "end": 27824, "loc": { "start": { - "line": 892, + "line": 902, "column": 57 }, "end": { - "line": 892, + "line": 902, "column": 62 }, "identifierName": "model" @@ -54947,15 +55483,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 27475, - "end": 27556, + "start": 27826, + "end": 27907, "loc": { "start": { - "line": 892, + "line": 902, "column": 64 }, "end": { - "line": 894, + "line": 904, "column": 5 } }, @@ -54966,15 +55502,15 @@ "params": [ { "type": "Identifier", - "start": 27476, - "end": 27479, + "start": 27827, + "end": 27830, "loc": { "start": { - "line": 892, + "line": 902, "column": 65 }, "end": { - "line": 892, + "line": 902, "column": 68 }, "identifierName": "err" @@ -54983,15 +55519,15 @@ }, { "type": "Identifier", - "start": 27481, - "end": 27484, + "start": 27832, + "end": 27835, "loc": { "start": { - "line": 892, + "line": 902, "column": 70 }, "end": { - "line": 892, + "line": 902, "column": 73 }, "identifierName": "res" @@ -55000,29 +55536,29 @@ }, { "type": "RestElement", - "start": 27486, - "end": 27494, + "start": 27837, + "end": 27845, "loc": { "start": { - "line": 892, + "line": 902, "column": 75 }, "end": { - "line": 892, + "line": 902, "column": 83 } }, "argument": { "type": "Identifier", - "start": 27489, - "end": 27494, + "start": 27840, + "end": 27845, "loc": { "start": { - "line": 892, + "line": 902, "column": 78 }, "end": { - "line": 892, + "line": 902, "column": 83 }, "identifierName": "types" @@ -55033,58 +55569,58 @@ ], "body": { "type": "BlockStatement", - "start": 27499, - "end": 27556, + "start": 27850, + "end": 27907, "loc": { "start": { - "line": 892, + "line": 902, "column": 88 }, "end": { - "line": 894, + "line": 904, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 27507, - "end": 27550, + "start": 27858, + "end": 27901, "loc": { "start": { - "line": 893, + "line": 903, "column": 6 }, "end": { - "line": 893, + "line": 903, "column": 49 } }, "expression": { "type": "CallExpression", - "start": 27507, - "end": 27549, + "start": 27858, + "end": 27900, "loc": { "start": { - "line": 893, + "line": 903, "column": 6 }, "end": { - "line": 893, + "line": 903, "column": 48 } }, "callee": { "type": "Identifier", - "start": 27507, - "end": 27528, + "start": 27858, + "end": 27879, "loc": { "start": { - "line": 893, + "line": 903, "column": 6 }, "end": { - "line": 893, + "line": 903, "column": 27 }, "identifierName": "manageRecognizedModel" @@ -55094,30 +55630,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 27529, - "end": 27533, + "start": 27880, + "end": 27884, "loc": { "start": { - "line": 893, + "line": 903, "column": 28 }, "end": { - "line": 893, + "line": 903, "column": 32 } } }, { "type": "Identifier", - "start": 27535, - "end": 27538, + "start": 27886, + "end": 27889, "loc": { "start": { - "line": 893, + "line": 903, "column": 34 }, "end": { - "line": 893, + "line": 903, "column": 37 }, "identifierName": "res" @@ -55126,29 +55662,29 @@ }, { "type": "SpreadElement", - "start": 27540, - "end": 27548, + "start": 27891, + "end": 27899, "loc": { "start": { - "line": 893, + "line": 903, "column": 39 }, "end": { - "line": 893, + "line": 903, "column": 47 } }, "argument": { "type": "Identifier", - "start": 27543, - "end": 27548, + "start": 27894, + "end": 27899, "loc": { "start": { - "line": 893, + "line": 903, "column": 42 }, "end": { - "line": 893, + "line": 903, "column": 47 }, "identifierName": "types" @@ -55174,15 +55710,15 @@ { "type": "CommentBlock", "value": "*\n * Redo the last action.\n ", - "start": 27246, - "end": 27282, + "start": 27597, + "end": 27633, "loc": { "start": { - "line": 886, + "line": 896, "column": 2 }, "end": { - "line": 888, + "line": 898, "column": 5 } } @@ -55192,15 +55728,15 @@ { "type": "CommentBlock", "value": "*\n * True if empty, false otherwise\n * @returns {boolean}\n ", - "start": 27566, - "end": 27635, + "start": 27917, + "end": 27986, "loc": { "start": { - "line": 897, + "line": 907, "column": 2 }, "end": { - "line": 900, + "line": 910, "column": 5 } } @@ -55209,15 +55745,15 @@ }, { "type": "ClassMethod", - "start": 27638, - "end": 27700, + "start": 27989, + "end": 28051, "loc": { "start": { - "line": 901, + "line": 911, "column": 2 }, "end": { - "line": 903, + "line": 913, "column": 3 } }, @@ -55225,15 +55761,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 27642, - "end": 27649, + "start": 27993, + "end": 28000, "loc": { "start": { - "line": 901, + "line": 911, "column": 6 }, "end": { - "line": 901, + "line": 911, "column": 13 }, "identifierName": "isEmpty" @@ -55248,87 +55784,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 27652, - "end": 27700, + "start": 28003, + "end": 28051, "loc": { "start": { - "line": 901, + "line": 911, "column": 16 }, "end": { - "line": 903, + "line": 913, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 27658, - "end": 27696, + "start": 28009, + "end": 28047, "loc": { "start": { - "line": 902, + "line": 912, "column": 4 }, "end": { - "line": 902, + "line": 912, "column": 42 } }, "argument": { "type": "MemberExpression", - "start": 27665, - "end": 27695, + "start": 28016, + "end": 28046, "loc": { "start": { - "line": 902, + "line": 912, "column": 11 }, "end": { - "line": 902, + "line": 912, "column": 41 } }, "object": { "type": "MemberExpression", - "start": 27665, - "end": 27687, + "start": 28016, + "end": 28038, "loc": { "start": { - "line": 902, + "line": 912, "column": 11 }, "end": { - "line": 902, + "line": 912, "column": 33 } }, "object": { "type": "ThisExpression", - "start": 27665, - "end": 27669, + "start": 28016, + "end": 28020, "loc": { "start": { - "line": 902, + "line": 912, "column": 11 }, "end": { - "line": 902, + "line": 912, "column": 15 } } }, "property": { "type": "Identifier", - "start": 27670, - "end": 27687, + "start": 28021, + "end": 28038, "loc": { "start": { - "line": 902, + "line": 912, "column": 16 }, "end": { - "line": 902, + "line": 912, "column": 33 }, "identifierName": "recognizerContext" @@ -55339,15 +55875,15 @@ }, "property": { "type": "Identifier", - "start": 27688, - "end": 27695, + "start": 28039, + "end": 28046, "loc": { "start": { - "line": 902, + "line": 912, "column": 34 }, "end": { - "line": 902, + "line": 912, "column": 41 }, "identifierName": "isEmpty" @@ -55365,15 +55901,15 @@ { "type": "CommentBlock", "value": "*\n * True if empty, false otherwise\n * @returns {boolean}\n ", - "start": 27566, - "end": 27635, + "start": 27917, + "end": 27986, "loc": { "start": { - "line": 897, + "line": 907, "column": 2 }, "end": { - "line": 900, + "line": 910, "column": 5 } } @@ -55383,15 +55919,15 @@ { "type": "CommentBlock", "value": "*\n * True if can clear, false otherwise.\n * @return {Boolean}\n ", - "start": 27704, - "end": 27777, + "start": 28055, + "end": 28128, "loc": { "start": { - "line": 905, + "line": 915, "column": 2 }, "end": { - "line": 908, + "line": 918, "column": 5 } } @@ -55400,15 +55936,15 @@ }, { "type": "ClassMethod", - "start": 27780, - "end": 27861, + "start": 28131, + "end": 28212, "loc": { "start": { - "line": 909, + "line": 919, "column": 2 }, "end": { - "line": 911, + "line": 921, "column": 3 } }, @@ -55416,15 +55952,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 27784, - "end": 27792, + "start": 28135, + "end": 28143, "loc": { "start": { - "line": 909, + "line": 919, "column": 6 }, "end": { - "line": 909, + "line": 919, "column": 14 }, "identifierName": "canClear" @@ -55439,87 +55975,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 27795, - "end": 27861, + "start": 28146, + "end": 28212, "loc": { "start": { - "line": 909, + "line": 919, "column": 17 }, "end": { - "line": 911, + "line": 921, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 27801, - "end": 27857, + "start": 28152, + "end": 28208, "loc": { "start": { - "line": 910, + "line": 920, "column": 4 }, "end": { - "line": 910, + "line": 920, "column": 60 } }, "argument": { "type": "LogicalExpression", - "start": 27808, - "end": 27856, + "start": 28159, + "end": 28207, "loc": { "start": { - "line": 910, + "line": 920, "column": 11 }, "end": { - "line": 910, + "line": 920, "column": 59 } }, "left": { "type": "MemberExpression", - "start": 27808, - "end": 27820, + "start": 28159, + "end": 28171, "loc": { "start": { - "line": 910, + "line": 920, "column": 11 }, "end": { - "line": 910, + "line": 920, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 27808, - "end": 27812, + "start": 28159, + "end": 28163, "loc": { "start": { - "line": 910, + "line": 920, "column": 11 }, "end": { - "line": 910, + "line": 920, "column": 15 } } }, "property": { "type": "Identifier", - "start": 27813, - "end": 27820, + "start": 28164, + "end": 28171, "loc": { "start": { - "line": 910, + "line": 920, "column": 16 }, "end": { - "line": 910, + "line": 920, "column": 23 }, "identifierName": "canUndo" @@ -55531,86 +56067,86 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 27824, - "end": 27856, + "start": 28175, + "end": 28207, "loc": { "start": { - "line": 910, + "line": 920, "column": 27 }, "end": { - "line": 910, + "line": 920, "column": 59 } }, "left": { "type": "MemberExpression", - "start": 27824, - "end": 27852, + "start": 28175, + "end": 28203, "loc": { "start": { - "line": 910, + "line": 920, "column": 27 }, "end": { - "line": 910, + "line": 920, "column": 55 } }, "object": { "type": "MemberExpression", - "start": 27824, - "end": 27845, + "start": 28175, + "end": 28196, "loc": { "start": { - "line": 910, + "line": 920, "column": 27 }, "end": { - "line": 910, + "line": 920, "column": 48 } }, "object": { "type": "MemberExpression", - "start": 27824, - "end": 27834, + "start": 28175, + "end": 28185, "loc": { "start": { - "line": 910, + "line": 920, "column": 27 }, "end": { - "line": 910, + "line": 920, "column": 37 } }, "object": { "type": "ThisExpression", - "start": 27824, - "end": 27828, + "start": 28175, + "end": 28179, "loc": { "start": { - "line": 910, + "line": 920, "column": 27 }, "end": { - "line": 910, + "line": 920, "column": 31 } } }, "property": { "type": "Identifier", - "start": 27829, - "end": 27834, + "start": 28180, + "end": 28185, "loc": { "start": { - "line": 910, + "line": 920, "column": 32 }, "end": { - "line": 910, + "line": 920, "column": 37 }, "identifierName": "model" @@ -55621,15 +56157,15 @@ }, "property": { "type": "Identifier", - "start": 27835, - "end": 27845, + "start": 28186, + "end": 28196, "loc": { "start": { - "line": 910, + "line": 920, "column": 38 }, "end": { - "line": 910, + "line": 920, "column": 48 }, "identifierName": "rawStrokes" @@ -55640,15 +56176,15 @@ }, "property": { "type": "Identifier", - "start": 27846, - "end": 27852, + "start": 28197, + "end": 28203, "loc": { "start": { - "line": 910, + "line": 920, "column": 49 }, "end": { - "line": 910, + "line": 920, "column": 55 }, "identifierName": "length" @@ -55660,15 +56196,15 @@ "operator": ">", "right": { "type": "NumericLiteral", - "start": 27855, - "end": 27856, + "start": 28206, + "end": 28207, "loc": { "start": { - "line": 910, + "line": 920, "column": 58 }, "end": { - "line": 910, + "line": 920, "column": 59 } }, @@ -55689,15 +56225,15 @@ { "type": "CommentBlock", "value": "*\n * True if can clear, false otherwise.\n * @return {Boolean}\n ", - "start": 27704, - "end": 27777, + "start": 28055, + "end": 28128, "loc": { "start": { - "line": 905, + "line": 915, "column": 2 }, "end": { - "line": 908, + "line": 918, "column": 5 } } @@ -55707,15 +56243,15 @@ { "type": "CommentBlock", "value": "*\n * Clear the output and the recognition result.\n ", - "start": 27865, - "end": 27924, + "start": 28216, + "end": 28275, "loc": { "start": { - "line": 913, + "line": 923, "column": 2 }, "end": { - "line": 915, + "line": 925, "column": 5 } } @@ -55724,15 +56260,15 @@ }, { "type": "ClassMethod", - "start": 27927, - "end": 28207, + "start": 28278, + "end": 28558, "loc": { "start": { - "line": 916, + "line": 926, "column": 2 }, "end": { - "line": 922, + "line": 932, "column": 3 } }, @@ -55740,15 +56276,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 27927, - "end": 27932, + "start": 28278, + "end": 28283, "loc": { "start": { - "line": 916, + "line": 926, "column": 2 }, "end": { - "line": 916, + "line": 926, "column": 7 }, "identifierName": "clear" @@ -55764,72 +56300,72 @@ "params": [], "body": { "type": "BlockStatement", - "start": 27935, - "end": 28207, + "start": 28286, + "end": 28558, "loc": { "start": { - "line": 916, + "line": 926, "column": 10 }, "end": { - "line": 922, + "line": 932, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 27941, - "end": 27989, + "start": 28292, + "end": 28340, "loc": { "start": { - "line": 917, + "line": 927, "column": 4 }, "end": { - "line": 917, + "line": 927, "column": 52 } }, "expression": { "type": "CallExpression", - "start": 27941, - "end": 27988, + "start": 28292, + "end": 28339, "loc": { "start": { - "line": 917, + "line": 927, "column": 4 }, "end": { - "line": 917, + "line": 927, "column": 51 } }, "callee": { "type": "MemberExpression", - "start": 27941, - "end": 27953, + "start": 28292, + "end": 28304, "loc": { "start": { - "line": 917, + "line": 927, "column": 4 }, "end": { - "line": 917, + "line": 927, "column": 16 } }, "object": { "type": "Identifier", - "start": 27941, - "end": 27947, + "start": 28292, + "end": 28298, "loc": { "start": { - "line": 917, + "line": 927, "column": 4 }, "end": { - "line": 917, + "line": 927, "column": 10 }, "identifierName": "logger" @@ -55838,15 +56374,15 @@ }, "property": { "type": "Identifier", - "start": 27948, - "end": 27953, + "start": 28299, + "end": 28304, "loc": { "start": { - "line": 917, + "line": 927, "column": 11 }, "end": { - "line": 917, + "line": 927, "column": 16 }, "identifierName": "debug" @@ -55858,15 +56394,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 27954, - "end": 27975, + "start": 28305, + "end": 28326, "loc": { "start": { - "line": 917, + "line": 927, "column": 17 }, "end": { - "line": 917, + "line": 927, "column": 38 } }, @@ -55878,44 +56414,44 @@ }, { "type": "MemberExpression", - "start": 27977, - "end": 27987, + "start": 28328, + "end": 28338, "loc": { "start": { - "line": 917, + "line": 927, "column": 40 }, "end": { - "line": 917, + "line": 927, "column": 50 } }, "object": { "type": "ThisExpression", - "start": 27977, - "end": 27981, + "start": 28328, + "end": 28332, "loc": { "start": { - "line": 917, + "line": 927, "column": 40 }, "end": { - "line": 917, + "line": 927, "column": 44 } } }, "property": { "type": "Identifier", - "start": 27982, - "end": 27987, + "start": 28333, + "end": 28338, "loc": { "start": { - "line": 917, + "line": 927, "column": 45 }, "end": { - "line": 917, + "line": 927, "column": 50 }, "identifierName": "model" @@ -55929,43 +56465,43 @@ }, { "type": "ExpressionStatement", - "start": 27994, - "end": 28055, + "start": 28345, + "end": 28406, "loc": { "start": { - "line": 918, + "line": 928, "column": 4 }, "end": { - "line": 918, + "line": 928, "column": 65 } }, "expression": { "type": "CallExpression", - "start": 27994, - "end": 28054, + "start": 28345, + "end": 28405, "loc": { "start": { - "line": 918, + "line": 928, "column": 4 }, "end": { - "line": 918, + "line": 928, "column": 64 } }, "callee": { "type": "Identifier", - "start": 27994, - "end": 28010, + "start": 28345, + "end": 28361, "loc": { "start": { - "line": 918, + "line": 928, "column": 4 }, "end": { - "line": 918, + "line": 928, "column": 20 }, "identifierName": "triggerCallbacks" @@ -55975,30 +56511,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 28011, - "end": 28015, + "start": 28362, + "end": 28366, "loc": { "start": { - "line": 918, + "line": 928, "column": 21 }, "end": { - "line": 918, + "line": 928, "column": 25 } } }, { "type": "Identifier", - "start": 28017, - "end": 28026, + "start": 28368, + "end": 28377, "loc": { "start": { - "line": 918, + "line": 928, "column": 27 }, "end": { - "line": 918, + "line": 928, "column": 36 }, "identifierName": "undefined" @@ -56007,43 +56543,43 @@ }, { "type": "MemberExpression", - "start": 28028, - "end": 28053, + "start": 28379, + "end": 28404, "loc": { "start": { - "line": 918, + "line": 928, "column": 38 }, "end": { - "line": 918, + "line": 928, "column": 63 } }, "object": { "type": "MemberExpression", - "start": 28028, - "end": 28047, + "start": 28379, + "end": 28398, "loc": { "start": { - "line": 918, + "line": 928, "column": 38 }, "end": { - "line": 918, + "line": 928, "column": 57 } }, "object": { "type": "Identifier", - "start": 28028, - "end": 28037, + "start": 28379, + "end": 28388, "loc": { "start": { - "line": 918, + "line": 928, "column": 38 }, "end": { - "line": 918, + "line": 928, "column": 47 }, "identifierName": "Constants" @@ -56052,15 +56588,15 @@ }, "property": { "type": "Identifier", - "start": 28038, - "end": 28047, + "start": 28389, + "end": 28398, "loc": { "start": { - "line": 918, + "line": 928, "column": 48 }, "end": { - "line": 918, + "line": 928, "column": 57 }, "identifierName": "EventType" @@ -56071,15 +56607,15 @@ }, "property": { "type": "Identifier", - "start": 28048, - "end": 28053, + "start": 28399, + "end": 28404, "loc": { "start": { - "line": 918, + "line": 928, "column": 58 }, "end": { - "line": 918, + "line": 928, "column": 63 }, "identifierName": "CLEAR" @@ -56093,86 +56629,86 @@ }, { "type": "ExpressionStatement", - "start": 28060, - "end": 28203, + "start": 28411, + "end": 28554, "loc": { "start": { - "line": 919, + "line": 929, "column": 4 }, "end": { - "line": 921, + "line": 931, "column": 7 } }, "expression": { "type": "CallExpression", - "start": 28060, - "end": 28202, + "start": 28411, + "end": 28553, "loc": { "start": { - "line": 919, + "line": 929, "column": 4 }, "end": { - "line": 921, + "line": 931, "column": 6 } }, "callee": { "type": "MemberExpression", - "start": 28060, - "end": 28081, + "start": 28411, + "end": 28432, "loc": { "start": { - "line": 919, + "line": 929, "column": 4 }, "end": { - "line": 919, + "line": 929, "column": 25 } }, "object": { "type": "MemberExpression", - "start": 28060, - "end": 28075, + "start": 28411, + "end": 28426, "loc": { "start": { - "line": 919, + "line": 929, "column": 4 }, "end": { - "line": 919, + "line": 929, "column": 19 } }, "object": { "type": "ThisExpression", - "start": 28060, - "end": 28064, + "start": 28411, + "end": 28415, "loc": { "start": { - "line": 919, + "line": 929, "column": 4 }, "end": { - "line": 919, + "line": 929, "column": 8 } } }, "property": { "type": "Identifier", - "start": 28065, - "end": 28075, + "start": 28416, + "end": 28426, "loc": { "start": { - "line": 919, + "line": 929, "column": 9 }, "end": { - "line": 919, + "line": 929, "column": 19 }, "identifierName": "recognizer" @@ -56183,15 +56719,15 @@ }, "property": { "type": "Identifier", - "start": 28076, - "end": 28081, + "start": 28427, + "end": 28432, "loc": { "start": { - "line": 919, + "line": 929, "column": 20 }, "end": { - "line": 919, + "line": 929, "column": 25 }, "identifierName": "clear" @@ -56203,44 +56739,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 28082, - "end": 28104, + "start": 28433, + "end": 28455, "loc": { "start": { - "line": 919, + "line": 929, "column": 26 }, "end": { - "line": 919, + "line": 929, "column": 48 } }, "object": { "type": "ThisExpression", - "start": 28082, - "end": 28086, + "start": 28433, + "end": 28437, "loc": { "start": { - "line": 919, + "line": 929, "column": 26 }, "end": { - "line": 919, + "line": 929, "column": 30 } } }, "property": { "type": "Identifier", - "start": 28087, - "end": 28104, + "start": 28438, + "end": 28455, "loc": { "start": { - "line": 919, + "line": 929, "column": 31 }, "end": { - "line": 919, + "line": 929, "column": 48 }, "identifierName": "recognizerContext" @@ -56251,44 +56787,44 @@ }, { "type": "MemberExpression", - "start": 28106, - "end": 28116, + "start": 28457, + "end": 28467, "loc": { "start": { - "line": 919, + "line": 929, "column": 50 }, "end": { - "line": 919, + "line": 929, "column": 60 } }, "object": { "type": "ThisExpression", - "start": 28106, - "end": 28110, + "start": 28457, + "end": 28461, "loc": { "start": { - "line": 919, + "line": 929, "column": 50 }, "end": { - "line": 919, + "line": 929, "column": 54 } } }, "property": { "type": "Identifier", - "start": 28111, - "end": 28116, + "start": 28462, + "end": 28467, "loc": { "start": { - "line": 919, + "line": 929, "column": 55 }, "end": { - "line": 919, + "line": 929, "column": 60 }, "identifierName": "model" @@ -56299,15 +56835,15 @@ }, { "type": "ArrowFunctionExpression", - "start": 28118, - "end": 28201, + "start": 28469, + "end": 28552, "loc": { "start": { - "line": 919, + "line": 929, "column": 62 }, "end": { - "line": 921, + "line": 931, "column": 5 } }, @@ -56318,15 +56854,15 @@ "params": [ { "type": "Identifier", - "start": 28119, - "end": 28122, + "start": 28470, + "end": 28473, "loc": { "start": { - "line": 919, + "line": 929, "column": 63 }, "end": { - "line": 919, + "line": 929, "column": 66 }, "identifierName": "err" @@ -56335,15 +56871,15 @@ }, { "type": "Identifier", - "start": 28124, - "end": 28127, + "start": 28475, + "end": 28478, "loc": { "start": { - "line": 919, + "line": 929, "column": 68 }, "end": { - "line": 919, + "line": 929, "column": 71 }, "identifierName": "res" @@ -56352,29 +56888,29 @@ }, { "type": "RestElement", - "start": 28129, - "end": 28137, + "start": 28480, + "end": 28488, "loc": { "start": { - "line": 919, + "line": 929, "column": 73 }, "end": { - "line": 919, + "line": 929, "column": 81 } }, "argument": { "type": "Identifier", - "start": 28132, - "end": 28137, + "start": 28483, + "end": 28488, "loc": { "start": { - "line": 919, + "line": 929, "column": 76 }, "end": { - "line": 919, + "line": 929, "column": 81 }, "identifierName": "types" @@ -56385,58 +56921,58 @@ ], "body": { "type": "BlockStatement", - "start": 28142, - "end": 28201, + "start": 28493, + "end": 28552, "loc": { "start": { - "line": 919, + "line": 929, "column": 86 }, "end": { - "line": 921, + "line": 931, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 28150, - "end": 28195, + "start": 28501, + "end": 28546, "loc": { "start": { - "line": 920, + "line": 930, "column": 6 }, "end": { - "line": 920, + "line": 930, "column": 51 } }, "expression": { "type": "CallExpression", - "start": 28150, - "end": 28194, + "start": 28501, + "end": 28545, "loc": { "start": { - "line": 920, + "line": 930, "column": 6 }, "end": { - "line": 920, + "line": 930, "column": 50 } }, "callee": { "type": "Identifier", - "start": 28150, - "end": 28168, + "start": 28501, + "end": 28519, "loc": { "start": { - "line": 920, + "line": 930, "column": 6 }, "end": { - "line": 920, + "line": 930, "column": 24 }, "identifierName": "recognizerCallback" @@ -56446,30 +56982,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 28169, - "end": 28173, + "start": 28520, + "end": 28524, "loc": { "start": { - "line": 920, + "line": 930, "column": 25 }, "end": { - "line": 920, + "line": 930, "column": 29 } } }, { "type": "Identifier", - "start": 28175, - "end": 28178, + "start": 28526, + "end": 28529, "loc": { "start": { - "line": 920, + "line": 930, "column": 31 }, "end": { - "line": 920, + "line": 930, "column": 34 }, "identifierName": "err" @@ -56478,15 +57014,15 @@ }, { "type": "Identifier", - "start": 28180, - "end": 28183, + "start": 28531, + "end": 28534, "loc": { "start": { - "line": 920, + "line": 930, "column": 36 }, "end": { - "line": 920, + "line": 930, "column": 39 }, "identifierName": "res" @@ -56495,29 +57031,29 @@ }, { "type": "SpreadElement", - "start": 28185, - "end": 28193, + "start": 28536, + "end": 28544, "loc": { "start": { - "line": 920, + "line": 930, "column": 41 }, "end": { - "line": 920, + "line": 930, "column": 49 } }, "argument": { "type": "Identifier", - "start": 28188, - "end": 28193, + "start": 28539, + "end": 28544, "loc": { "start": { - "line": 920, + "line": 930, "column": 44 }, "end": { - "line": 920, + "line": 930, "column": 49 }, "identifierName": "types" @@ -56543,15 +57079,15 @@ { "type": "CommentBlock", "value": "*\n * Clear the output and the recognition result.\n ", - "start": 27865, - "end": 27924, + "start": 28216, + "end": 28275, "loc": { "start": { - "line": 913, + "line": 923, "column": 2 }, "end": { - "line": 915, + "line": 925, "column": 5 } } @@ -56561,15 +57097,15 @@ { "type": "CommentBlock", "value": "*\n * True if can convert, false otherwise.\n * @return {Boolean}\n ", - "start": 28211, - "end": 28286, + "start": 28562, + "end": 28637, "loc": { "start": { - "line": 924, + "line": 934, "column": 2 }, "end": { - "line": 927, + "line": 937, "column": 5 } } @@ -56578,15 +57114,15 @@ }, { "type": "ClassMethod", - "start": 28289, - "end": 28399, + "start": 28640, + "end": 28750, "loc": { "start": { - "line": 928, + "line": 938, "column": 2 }, "end": { - "line": 930, + "line": 940, "column": 3 } }, @@ -56594,15 +57130,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 28293, - "end": 28303, + "start": 28644, + "end": 28654, "loc": { "start": { - "line": 928, + "line": 938, "column": 6 }, "end": { - "line": 928, + "line": 938, "column": 16 }, "identifierName": "canConvert" @@ -56617,115 +57153,115 @@ "params": [], "body": { "type": "BlockStatement", - "start": 28306, - "end": 28399, + "start": 28657, + "end": 28750, "loc": { "start": { - "line": 928, + "line": 938, "column": 19 }, "end": { - "line": 930, + "line": 940, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 28312, - "end": 28395, + "start": 28663, + "end": 28746, "loc": { "start": { - "line": 929, + "line": 939, "column": 4 }, "end": { - "line": 929, + "line": 939, "column": 87 } }, "argument": { "type": "LogicalExpression", - "start": 28319, - "end": 28394, + "start": 28670, + "end": 28745, "loc": { "start": { - "line": 929, + "line": 939, "column": 11 }, "end": { - "line": 929, + "line": 939, "column": 86 } }, "left": { "type": "LogicalExpression", - "start": 28319, - "end": 28367, + "start": 28670, + "end": 28718, "loc": { "start": { - "line": 929, + "line": 939, "column": 11 }, "end": { - "line": 929, + "line": 939, "column": 59 } }, "left": { "type": "LogicalExpression", - "start": 28319, - "end": 28348, + "start": 28670, + "end": 28699, "loc": { "start": { - "line": 929, + "line": 939, "column": 11 }, "end": { - "line": 929, + "line": 939, "column": 40 } }, "left": { "type": "MemberExpression", - "start": 28319, - "end": 28331, + "start": 28670, + "end": 28682, "loc": { "start": { - "line": 929, + "line": 939, "column": 11 }, "end": { - "line": 929, + "line": 939, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 28319, - "end": 28323, + "start": 28670, + "end": 28674, "loc": { "start": { - "line": 929, + "line": 939, "column": 11 }, "end": { - "line": 929, + "line": 939, "column": 15 } } }, "property": { "type": "Identifier", - "start": 28324, - "end": 28331, + "start": 28675, + "end": 28682, "loc": { "start": { - "line": 929, + "line": 939, "column": 16 }, "end": { - "line": 929, + "line": 939, "column": 23 }, "identifierName": "canUndo" @@ -56737,44 +57273,44 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 28335, - "end": 28348, + "start": 28686, + "end": 28699, "loc": { "start": { - "line": 929, + "line": 939, "column": 27 }, "end": { - "line": 929, + "line": 939, "column": 40 } }, "object": { "type": "ThisExpression", - "start": 28335, - "end": 28339, + "start": 28686, + "end": 28690, "loc": { "start": { - "line": 929, + "line": 939, "column": 27 }, "end": { - "line": 929, + "line": 939, "column": 31 } } }, "property": { "type": "Identifier", - "start": 28340, - "end": 28348, + "start": 28691, + "end": 28699, "loc": { "start": { - "line": 929, + "line": 939, "column": 32 }, "end": { - "line": 929, + "line": 939, "column": 40 }, "identifierName": "canClear" @@ -56787,44 +57323,44 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 28352, - "end": 28367, + "start": 28703, + "end": 28718, "loc": { "start": { - "line": 929, + "line": 939, "column": 44 }, "end": { - "line": 929, + "line": 939, "column": 59 } }, "object": { "type": "ThisExpression", - "start": 28352, - "end": 28356, + "start": 28703, + "end": 28707, "loc": { "start": { - "line": 929, + "line": 939, "column": 44 }, "end": { - "line": 929, + "line": 939, "column": 48 } } }, "property": { "type": "Identifier", - "start": 28357, - "end": 28367, + "start": 28708, + "end": 28718, "loc": { "start": { - "line": 929, + "line": 939, "column": 49 }, "end": { - "line": 929, + "line": 939, "column": 59 }, "identifierName": "recognizer" @@ -56837,58 +57373,58 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 28371, - "end": 28394, + "start": 28722, + "end": 28745, "loc": { "start": { - "line": 929, + "line": 939, "column": 63 }, "end": { - "line": 929, + "line": 939, "column": 86 } }, "object": { "type": "MemberExpression", - "start": 28371, - "end": 28386, + "start": 28722, + "end": 28737, "loc": { "start": { - "line": 929, + "line": 939, "column": 63 }, "end": { - "line": 929, + "line": 939, "column": 78 } }, "object": { "type": "ThisExpression", - "start": 28371, - "end": 28375, + "start": 28722, + "end": 28726, "loc": { "start": { - "line": 929, + "line": 939, "column": 63 }, "end": { - "line": 929, + "line": 939, "column": 67 } } }, "property": { "type": "Identifier", - "start": 28376, - "end": 28386, + "start": 28727, + "end": 28737, "loc": { "start": { - "line": 929, + "line": 939, "column": 68 }, "end": { - "line": 929, + "line": 939, "column": 78 }, "identifierName": "recognizer" @@ -56899,15 +57435,15 @@ }, "property": { "type": "Identifier", - "start": 28387, - "end": 28394, + "start": 28738, + "end": 28745, "loc": { "start": { - "line": 929, + "line": 939, "column": 79 }, "end": { - "line": 929, + "line": 939, "column": 86 }, "identifierName": "convert" @@ -56926,15 +57462,15 @@ { "type": "CommentBlock", "value": "*\n * True if can convert, false otherwise.\n * @return {Boolean}\n ", - "start": 28211, - "end": 28286, + "start": 28562, + "end": 28637, "loc": { "start": { - "line": 924, + "line": 934, "column": 2 }, "end": { - "line": 927, + "line": 937, "column": 5 } } @@ -56944,15 +57480,15 @@ { "type": "CommentBlock", "value": "*\n * Convert the current content\n ", - "start": 28403, - "end": 28445, + "start": 28754, + "end": 28796, "loc": { "start": { - "line": 932, + "line": 942, "column": 2 }, "end": { - "line": 934, + "line": 944, "column": 5 } } @@ -56961,15 +57497,15 @@ }, { "type": "ClassMethod", - "start": 28448, - "end": 28654, + "start": 28799, + "end": 29005, "loc": { "start": { - "line": 935, + "line": 945, "column": 2 }, "end": { - "line": 940, + "line": 950, "column": 3 } }, @@ -56977,15 +57513,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 28448, - "end": 28455, + "start": 28799, + "end": 28806, "loc": { "start": { - "line": 935, + "line": 945, "column": 2 }, "end": { - "line": 935, + "line": 945, "column": 9 }, "identifierName": "convert" @@ -57001,29 +57537,29 @@ "params": [ { "type": "AssignmentPattern", - "start": 28456, - "end": 28488, + "start": 28807, + "end": 28839, "loc": { "start": { - "line": 935, + "line": 945, "column": 10 }, "end": { - "line": 935, + "line": 945, "column": 42 } }, "left": { "type": "Identifier", - "start": 28456, - "end": 28471, + "start": 28807, + "end": 28822, "loc": { "start": { - "line": 935, + "line": 945, "column": 10 }, "end": { - "line": 935, + "line": 945, "column": 25 }, "identifierName": "conversionState" @@ -57032,15 +57568,15 @@ }, "right": { "type": "StringLiteral", - "start": 28474, - "end": 28488, + "start": 28825, + "end": 28839, "loc": { "start": { - "line": 935, + "line": 945, "column": 28 }, "end": { - "line": 935, + "line": 945, "column": 42 } }, @@ -57054,73 +57590,73 @@ ], "body": { "type": "BlockStatement", - "start": 28490, - "end": 28654, + "start": 28841, + "end": 29005, "loc": { "start": { - "line": 935, + "line": 945, "column": 44 }, "end": { - "line": 940, + "line": 950, "column": 3 } }, "body": [ { "type": "IfStatement", - "start": 28496, - "end": 28650, + "start": 28847, + "end": 29001, "loc": { "start": { - "line": 936, + "line": 946, "column": 4 }, "end": { - "line": 939, + "line": 949, "column": 5 } }, "test": { "type": "MemberExpression", - "start": 28500, - "end": 28515, + "start": 28851, + "end": 28866, "loc": { "start": { - "line": 936, + "line": 946, "column": 8 }, "end": { - "line": 936, + "line": 946, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 28500, - "end": 28504, + "start": 28851, + "end": 28855, "loc": { "start": { - "line": 936, + "line": 946, "column": 8 }, "end": { - "line": 936, + "line": 946, "column": 12 } } }, "property": { "type": "Identifier", - "start": 28505, - "end": 28515, + "start": 28856, + "end": 28866, "loc": { "start": { - "line": 936, + "line": 946, "column": 13 }, "end": { - "line": 936, + "line": 946, "column": 23 }, "identifierName": "canConvert" @@ -57131,58 +57667,58 @@ }, "consequent": { "type": "BlockStatement", - "start": 28517, - "end": 28650, + "start": 28868, + "end": 29001, "loc": { "start": { - "line": 936, + "line": 946, "column": 25 }, "end": { - "line": 939, + "line": 949, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 28525, - "end": 28588, + "start": 28876, + "end": 28939, "loc": { "start": { - "line": 937, + "line": 947, "column": 6 }, "end": { - "line": 937, + "line": 947, "column": 69 } }, "expression": { "type": "CallExpression", - "start": 28525, - "end": 28587, + "start": 28876, + "end": 28938, "loc": { "start": { - "line": 937, + "line": 947, "column": 6 }, "end": { - "line": 937, + "line": 947, "column": 68 } }, "callee": { "type": "Identifier", - "start": 28525, - "end": 28541, + "start": 28876, + "end": 28892, "loc": { "start": { - "line": 937, + "line": 947, "column": 6 }, "end": { - "line": 937, + "line": 947, "column": 22 }, "identifierName": "triggerCallbacks" @@ -57192,30 +57728,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 28542, - "end": 28546, + "start": 28893, + "end": 28897, "loc": { "start": { - "line": 937, + "line": 947, "column": 23 }, "end": { - "line": 937, + "line": 947, "column": 27 } } }, { "type": "Identifier", - "start": 28548, - "end": 28557, + "start": 28899, + "end": 28908, "loc": { "start": { - "line": 937, + "line": 947, "column": 29 }, "end": { - "line": 937, + "line": 947, "column": 38 }, "identifierName": "undefined" @@ -57224,43 +57760,43 @@ }, { "type": "MemberExpression", - "start": 28559, - "end": 28586, + "start": 28910, + "end": 28937, "loc": { "start": { - "line": 937, + "line": 947, "column": 40 }, "end": { - "line": 937, + "line": 947, "column": 67 } }, "object": { "type": "MemberExpression", - "start": 28559, - "end": 28578, + "start": 28910, + "end": 28929, "loc": { "start": { - "line": 937, + "line": 947, "column": 40 }, "end": { - "line": 937, + "line": 947, "column": 59 } }, "object": { "type": "Identifier", - "start": 28559, - "end": 28568, + "start": 28910, + "end": 28919, "loc": { "start": { - "line": 937, + "line": 947, "column": 40 }, "end": { - "line": 937, + "line": 947, "column": 49 }, "identifierName": "Constants" @@ -57269,15 +57805,15 @@ }, "property": { "type": "Identifier", - "start": 28569, - "end": 28578, + "start": 28920, + "end": 28929, "loc": { "start": { - "line": 937, + "line": 947, "column": 50 }, "end": { - "line": 937, + "line": 947, "column": 59 }, "identifierName": "EventType" @@ -57288,15 +57824,15 @@ }, "property": { "type": "Identifier", - "start": 28579, - "end": 28586, + "start": 28930, + "end": 28937, "loc": { "start": { - "line": 937, + "line": 947, "column": 60 }, "end": { - "line": 937, + "line": 947, "column": 67 }, "identifierName": "CONVERT" @@ -57310,43 +57846,43 @@ }, { "type": "ExpressionStatement", - "start": 28595, - "end": 28644, + "start": 28946, + "end": 28995, "loc": { "start": { - "line": 938, + "line": 948, "column": 6 }, "end": { - "line": 938, + "line": 948, "column": 55 } }, "expression": { "type": "CallExpression", - "start": 28595, - "end": 28643, + "start": 28946, + "end": 28994, "loc": { "start": { - "line": 938, + "line": 948, "column": 6 }, "end": { - "line": 938, + "line": 948, "column": 54 } }, "callee": { "type": "Identifier", - "start": 28595, - "end": 28608, + "start": 28946, + "end": 28959, "loc": { "start": { - "line": 938, + "line": 948, "column": 6 }, "end": { - "line": 938, + "line": 948, "column": 19 }, "identifierName": "launchConvert" @@ -57356,59 +57892,59 @@ "arguments": [ { "type": "ThisExpression", - "start": 28609, - "end": 28613, + "start": 28960, + "end": 28964, "loc": { "start": { - "line": 938, + "line": 948, "column": 20 }, "end": { - "line": 938, + "line": 948, "column": 24 } } }, { "type": "MemberExpression", - "start": 28615, - "end": 28625, + "start": 28966, + "end": 28976, "loc": { "start": { - "line": 938, + "line": 948, "column": 26 }, "end": { - "line": 938, + "line": 948, "column": 36 } }, "object": { "type": "ThisExpression", - "start": 28615, - "end": 28619, + "start": 28966, + "end": 28970, "loc": { "start": { - "line": 938, + "line": 948, "column": 26 }, "end": { - "line": 938, + "line": 948, "column": 30 } } }, "property": { "type": "Identifier", - "start": 28620, - "end": 28625, + "start": 28971, + "end": 28976, "loc": { "start": { - "line": 938, + "line": 948, "column": 31 }, "end": { - "line": 938, + "line": 948, "column": 36 }, "identifierName": "model" @@ -57419,15 +57955,15 @@ }, { "type": "Identifier", - "start": 28627, - "end": 28642, + "start": 28978, + "end": 28993, "loc": { "start": { - "line": 938, + "line": 948, "column": 38 }, "end": { - "line": 938, + "line": 948, "column": 53 }, "identifierName": "conversionState" @@ -57450,15 +57986,15 @@ { "type": "CommentBlock", "value": "*\n * Convert the current content\n ", - "start": 28403, - "end": 28445, + "start": 28754, + "end": 28796, "loc": { "start": { - "line": 932, + "line": 942, "column": 2 }, "end": { - "line": 934, + "line": 944, "column": 5 } } @@ -57468,15 +58004,15 @@ { "type": "CommentBlock", "value": "*\n * Set the guides for text\n * @param {Boolean} [enable]\n ", - "start": 28658, - "end": 28727, + "start": 29009, + "end": 29078, "loc": { "start": { - "line": 942, + "line": 952, "column": 2 }, "end": { - "line": 945, + "line": 955, "column": 5 } } @@ -57485,15 +58021,15 @@ }, { "type": "ClassMethod", - "start": 28730, - "end": 28869, + "start": 29081, + "end": 29220, "loc": { "start": { - "line": 946, + "line": 956, "column": 2 }, "end": { - "line": 949, + "line": 959, "column": 3 } }, @@ -57501,15 +58037,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 28730, - "end": 28739, + "start": 29081, + "end": 29090, "loc": { "start": { - "line": 946, + "line": 956, "column": 2 }, "end": { - "line": 946, + "line": 956, "column": 11 }, "identifierName": "setGuides" @@ -57525,29 +58061,29 @@ "params": [ { "type": "AssignmentPattern", - "start": 28740, - "end": 28753, + "start": 29091, + "end": 29104, "loc": { "start": { - "line": 946, + "line": 956, "column": 12 }, "end": { - "line": 946, + "line": 956, "column": 25 } }, "left": { "type": "Identifier", - "start": 28740, - "end": 28746, + "start": 29091, + "end": 29097, "loc": { "start": { - "line": 946, + "line": 956, "column": 12 }, "end": { - "line": 946, + "line": 956, "column": 18 }, "identifierName": "enable" @@ -57556,15 +58092,15 @@ }, "right": { "type": "BooleanLiteral", - "start": 28749, - "end": 28753, + "start": 29100, + "end": 29104, "loc": { "start": { - "line": 946, + "line": 956, "column": 21 }, "end": { - "line": 946, + "line": 956, "column": 25 } }, @@ -57574,158 +58110,158 @@ ], "body": { "type": "BlockStatement", - "start": 28755, - "end": 28869, + "start": 29106, + "end": 29220, "loc": { "start": { - "line": 946, + "line": 956, "column": 27 }, "end": { - "line": 949, + "line": 959, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 28761, - "end": 28829, + "start": 29112, + "end": 29180, "loc": { "start": { - "line": 947, + "line": 957, "column": 4 }, "end": { - "line": 947, + "line": 957, "column": 72 } }, "expression": { "type": "AssignmentExpression", - "start": 28761, - "end": 28828, + "start": 29112, + "end": 29179, "loc": { "start": { - "line": 947, + "line": 957, "column": 4 }, "end": { - "line": 947, + "line": 957, "column": 71 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 28761, - "end": 28819, + "start": 29112, + "end": 29170, "loc": { "start": { - "line": 947, + "line": 957, "column": 4 }, "end": { - "line": 947, + "line": 957, "column": 62 } }, "object": { "type": "MemberExpression", - "start": 28761, - "end": 28812, + "start": 29112, + "end": 29163, "loc": { "start": { - "line": 947, + "line": 957, "column": 4 }, "end": { - "line": 947, + "line": 957, "column": 55 } }, "object": { "type": "MemberExpression", - "start": 28761, - "end": 28805, + "start": 29112, + "end": 29156, "loc": { "start": { - "line": 947, + "line": 957, "column": 4 }, "end": { - "line": 947, + "line": 957, "column": 48 } }, "object": { "type": "MemberExpression", - "start": 28761, - "end": 28800, + "start": 29112, + "end": 29151, "loc": { "start": { - "line": 947, + "line": 957, "column": 4 }, "end": { - "line": 947, + "line": 957, "column": 43 } }, "object": { "type": "MemberExpression", - "start": 28761, - "end": 28797, + "start": 29112, + "end": 29148, "loc": { "start": { - "line": 947, + "line": 957, "column": 4 }, "end": { - "line": 947, + "line": 957, "column": 40 } }, "object": { "type": "MemberExpression", - "start": 28761, - "end": 28779, + "start": 29112, + "end": 29130, "loc": { "start": { - "line": 947, + "line": 957, "column": 4 }, "end": { - "line": 947, + "line": 957, "column": 22 } }, "object": { "type": "ThisExpression", - "start": 28761, - "end": 28765, + "start": 29112, + "end": 29116, "loc": { "start": { - "line": 947, + "line": 957, "column": 4 }, "end": { - "line": 947, + "line": 957, "column": 8 } } }, "property": { "type": "Identifier", - "start": 28766, - "end": 28779, + "start": 29117, + "end": 29130, "loc": { "start": { - "line": 947, + "line": 957, "column": 9 }, "end": { - "line": 947, + "line": 957, "column": 22 }, "identifierName": "configuration" @@ -57736,15 +58272,15 @@ }, "property": { "type": "Identifier", - "start": 28780, - "end": 28797, + "start": 29131, + "end": 29148, "loc": { "start": { - "line": 947, + "line": 957, "column": 23 }, "end": { - "line": 947, + "line": 957, "column": 40 }, "identifierName": "recognitionParams" @@ -57755,15 +58291,15 @@ }, "property": { "type": "Identifier", - "start": 28798, - "end": 28800, + "start": 29149, + "end": 29151, "loc": { "start": { - "line": 947, + "line": 957, "column": 41 }, "end": { - "line": 947, + "line": 957, "column": 43 }, "identifierName": "v4" @@ -57774,15 +58310,15 @@ }, "property": { "type": "Identifier", - "start": 28801, - "end": 28805, + "start": 29152, + "end": 29156, "loc": { "start": { - "line": 947, + "line": 957, "column": 44 }, "end": { - "line": 947, + "line": 957, "column": 48 }, "identifierName": "text" @@ -57793,15 +58329,15 @@ }, "property": { "type": "Identifier", - "start": 28806, - "end": 28812, + "start": 29157, + "end": 29163, "loc": { "start": { - "line": 947, + "line": 957, "column": 49 }, "end": { - "line": 947, + "line": 957, "column": 55 }, "identifierName": "guides" @@ -57812,15 +58348,15 @@ }, "property": { "type": "Identifier", - "start": 28813, - "end": 28819, + "start": 29164, + "end": 29170, "loc": { "start": { - "line": 947, + "line": 957, "column": 56 }, "end": { - "line": 947, + "line": 957, "column": 62 }, "identifierName": "enable" @@ -57831,15 +58367,15 @@ }, "right": { "type": "Identifier", - "start": 28822, - "end": 28828, + "start": 29173, + "end": 29179, "loc": { "start": { - "line": 947, + "line": 957, "column": 65 }, "end": { - "line": 947, + "line": 957, "column": 71 }, "identifierName": "enable" @@ -57850,43 +58386,43 @@ }, { "type": "ExpressionStatement", - "start": 28834, - "end": 28865, + "start": 29185, + "end": 29216, "loc": { "start": { - "line": 948, + "line": 958, "column": 4 }, "end": { - "line": 948, + "line": 958, "column": 35 } }, "expression": { "type": "CallExpression", - "start": 28834, - "end": 28864, + "start": 29185, + "end": 29215, "loc": { "start": { - "line": 948, + "line": 958, "column": 4 }, "end": { - "line": 948, + "line": 958, "column": 34 } }, "callee": { "type": "Identifier", - "start": 28834, - "end": 28846, + "start": 29185, + "end": 29197, "loc": { "start": { - "line": 948, + "line": 958, "column": 4 }, "end": { - "line": 948, + "line": 958, "column": 16 }, "identifierName": "launchConfig" @@ -57896,59 +58432,59 @@ "arguments": [ { "type": "ThisExpression", - "start": 28847, - "end": 28851, + "start": 29198, + "end": 29202, "loc": { "start": { - "line": 948, + "line": 958, "column": 17 }, "end": { - "line": 948, + "line": 958, "column": 21 } } }, { "type": "MemberExpression", - "start": 28853, - "end": 28863, + "start": 29204, + "end": 29214, "loc": { "start": { - "line": 948, + "line": 958, "column": 23 }, "end": { - "line": 948, + "line": 958, "column": 33 } }, "object": { "type": "ThisExpression", - "start": 28853, - "end": 28857, + "start": 29204, + "end": 29208, "loc": { "start": { - "line": 948, + "line": 958, "column": 23 }, "end": { - "line": 948, + "line": 958, "column": 27 } } }, "property": { "type": "Identifier", - "start": 28858, - "end": 28863, + "start": 29209, + "end": 29214, "loc": { "start": { - "line": 948, + "line": 958, "column": 28 }, "end": { - "line": 948, + "line": 958, "column": 33 }, "identifierName": "model" @@ -57968,15 +58504,15 @@ { "type": "CommentBlock", "value": "*\n * Set the guides for text\n * @param {Boolean} [enable]\n ", - "start": 28658, - "end": 28727, + "start": 29009, + "end": 29078, "loc": { "start": { - "line": 942, + "line": 952, "column": 2 }, "end": { - "line": 945, + "line": 955, "column": 5 } } @@ -57986,15 +58522,15 @@ { "type": "CommentBlock", "value": "*\n * Return the position of the cursor identifying the current state in the internal iink undo/redo stack.\n * @returns {Number}\n ", - "start": 28873, - "end": 29012, + "start": 29224, + "end": 29363, "loc": { "start": { - "line": 951, + "line": 961, "column": 2 }, "end": { - "line": 954, + "line": 964, "column": 5 } } @@ -58003,15 +58539,15 @@ }, { "type": "ClassMethod", - "start": 29015, - "end": 29097, + "start": 29366, + "end": 29448, "loc": { "start": { - "line": 955, + "line": 965, "column": 2 }, "end": { - "line": 957, + "line": 967, "column": 3 } }, @@ -58019,15 +58555,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 29019, - "end": 29036, + "start": 29370, + "end": 29387, "loc": { "start": { - "line": 955, + "line": 965, "column": 6 }, "end": { - "line": 955, + "line": 965, "column": 23 }, "identifierName": "possibleUndoCount" @@ -58042,87 +58578,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 29039, - "end": 29097, + "start": 29390, + "end": 29448, "loc": { "start": { - "line": 955, + "line": 965, "column": 26 }, "end": { - "line": 957, + "line": 967, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 29045, - "end": 29093, + "start": 29396, + "end": 29444, "loc": { "start": { - "line": 956, + "line": 966, "column": 4 }, "end": { - "line": 956, + "line": 966, "column": 52 } }, "argument": { "type": "MemberExpression", - "start": 29052, - "end": 29092, + "start": 29403, + "end": 29443, "loc": { "start": { - "line": 956, + "line": 966, "column": 11 }, "end": { - "line": 956, + "line": 966, "column": 51 } }, "object": { "type": "MemberExpression", - "start": 29052, - "end": 29074, + "start": 29403, + "end": 29425, "loc": { "start": { - "line": 956, + "line": 966, "column": 11 }, "end": { - "line": 956, + "line": 966, "column": 33 } }, "object": { "type": "ThisExpression", - "start": 29052, - "end": 29056, + "start": 29403, + "end": 29407, "loc": { "start": { - "line": 956, + "line": 966, "column": 11 }, "end": { - "line": 956, + "line": 966, "column": 15 } } }, "property": { "type": "Identifier", - "start": 29057, - "end": 29074, + "start": 29408, + "end": 29425, "loc": { "start": { - "line": 956, + "line": 966, "column": 16 }, "end": { - "line": 956, + "line": 966, "column": 33 }, "identifierName": "recognizerContext" @@ -58133,15 +58669,15 @@ }, "property": { "type": "Identifier", - "start": 29075, - "end": 29092, + "start": 29426, + "end": 29443, "loc": { "start": { - "line": 956, + "line": 966, "column": 34 }, "end": { - "line": 956, + "line": 966, "column": 51 }, "identifierName": "possibleUndoCount" @@ -58159,15 +58695,15 @@ { "type": "CommentBlock", "value": "*\n * Return the position of the cursor identifying the current state in the internal iink undo/redo stack.\n * @returns {Number}\n ", - "start": 28873, - "end": 29012, + "start": 29224, + "end": 29363, "loc": { "start": { - "line": 951, + "line": 961, "column": 2 }, "end": { - "line": 954, + "line": 964, "column": 5 } } @@ -58177,15 +58713,15 @@ { "type": "CommentBlock", "value": "*\n * The number of operations that it is currently possible to undo.\n * @returns {Number}\n ", - "start": 29101, - "end": 29202, + "start": 29452, + "end": 29553, "loc": { "start": { - "line": 959, + "line": 969, "column": 2 }, "end": { - "line": 962, + "line": 972, "column": 5 } } @@ -58194,15 +58730,15 @@ }, { "type": "ClassMethod", - "start": 29205, - "end": 29281, + "start": 29556, + "end": 29632, "loc": { "start": { - "line": 963, + "line": 973, "column": 2 }, "end": { - "line": 965, + "line": 975, "column": 3 } }, @@ -58210,15 +58746,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 29209, - "end": 29223, + "start": 29560, + "end": 29574, "loc": { "start": { - "line": 963, + "line": 973, "column": 6 }, "end": { - "line": 963, + "line": 973, "column": 20 }, "identifierName": "undoStackIndex" @@ -58233,87 +58769,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 29226, - "end": 29281, + "start": 29577, + "end": 29632, "loc": { "start": { - "line": 963, + "line": 973, "column": 23 }, "end": { - "line": 965, + "line": 975, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 29232, - "end": 29277, + "start": 29583, + "end": 29628, "loc": { "start": { - "line": 964, + "line": 974, "column": 4 }, "end": { - "line": 964, + "line": 974, "column": 49 } }, "argument": { "type": "MemberExpression", - "start": 29239, - "end": 29276, + "start": 29590, + "end": 29627, "loc": { "start": { - "line": 964, + "line": 974, "column": 11 }, "end": { - "line": 964, + "line": 974, "column": 48 } }, "object": { "type": "MemberExpression", - "start": 29239, - "end": 29261, + "start": 29590, + "end": 29612, "loc": { "start": { - "line": 964, + "line": 974, "column": 11 }, "end": { - "line": 964, + "line": 974, "column": 33 } }, "object": { "type": "ThisExpression", - "start": 29239, - "end": 29243, + "start": 29590, + "end": 29594, "loc": { "start": { - "line": 964, + "line": 974, "column": 11 }, "end": { - "line": 964, + "line": 974, "column": 15 } } }, "property": { "type": "Identifier", - "start": 29244, - "end": 29261, + "start": 29595, + "end": 29612, "loc": { "start": { - "line": 964, + "line": 974, "column": 16 }, "end": { - "line": 964, + "line": 974, "column": 33 }, "identifierName": "recognizerContext" @@ -58324,15 +58860,15 @@ }, "property": { "type": "Identifier", - "start": 29262, - "end": 29276, + "start": 29613, + "end": 29627, "loc": { "start": { - "line": 964, + "line": 974, "column": 34 }, "end": { - "line": 964, + "line": 974, "column": 48 }, "identifierName": "undoStackIndex" @@ -58350,15 +58886,15 @@ { "type": "CommentBlock", "value": "*\n * The number of operations that it is currently possible to undo.\n * @returns {Number}\n ", - "start": 29101, - "end": 29202, + "start": 29452, + "end": 29553, "loc": { "start": { - "line": 959, + "line": 969, "column": 2 }, "end": { - "line": 962, + "line": 972, "column": 5 } } @@ -58368,15 +58904,15 @@ { "type": "CommentBlock", "value": "*\n * True if can export, false otherwise.\n * @return {Boolean}\n ", - "start": 29285, - "end": 29359, + "start": 29636, + "end": 29710, "loc": { "start": { - "line": 967, + "line": 977, "column": 2 }, "end": { - "line": 970, + "line": 980, "column": 5 } } @@ -58385,15 +58921,15 @@ }, { "type": "ClassMethod", - "start": 29362, - "end": 29540, + "start": 29713, + "end": 29891, "loc": { "start": { - "line": 971, + "line": 981, "column": 2 }, "end": { - "line": 973, + "line": 983, "column": 3 } }, @@ -58401,15 +58937,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 29366, - "end": 29375, + "start": 29717, + "end": 29726, "loc": { "start": { - "line": 971, + "line": 981, "column": 6 }, "end": { - "line": 971, + "line": 981, "column": 15 }, "identifierName": "canExport" @@ -58424,115 +58960,115 @@ "params": [], "body": { "type": "BlockStatement", - "start": 29378, - "end": 29540, + "start": 29729, + "end": 29891, "loc": { "start": { - "line": 971, + "line": 981, "column": 18 }, "end": { - "line": 973, + "line": 983, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 29384, - "end": 29536, + "start": 29735, + "end": 29887, "loc": { "start": { - "line": 972, + "line": 982, "column": 4 }, "end": { - "line": 972, + "line": 982, "column": 156 } }, "argument": { "type": "LogicalExpression", - "start": 29391, - "end": 29535, + "start": 29742, + "end": 29886, "loc": { "start": { - "line": 972, + "line": 982, "column": 11 }, "end": { - "line": 972, + "line": 982, "column": 155 } }, "left": { "type": "LogicalExpression", - "start": 29391, - "end": 29439, + "start": 29742, + "end": 29790, "loc": { "start": { - "line": 972, + "line": 982, "column": 11 }, "end": { - "line": 972, + "line": 982, "column": 59 } }, "left": { "type": "LogicalExpression", - "start": 29391, - "end": 29420, + "start": 29742, + "end": 29771, "loc": { "start": { - "line": 972, + "line": 982, "column": 11 }, "end": { - "line": 972, + "line": 982, "column": 40 } }, "left": { "type": "MemberExpression", - "start": 29391, - "end": 29403, + "start": 29742, + "end": 29754, "loc": { "start": { - "line": 972, + "line": 982, "column": 11 }, "end": { - "line": 972, + "line": 982, "column": 23 } }, "object": { "type": "ThisExpression", - "start": 29391, - "end": 29395, + "start": 29742, + "end": 29746, "loc": { "start": { - "line": 972, + "line": 982, "column": 11 }, "end": { - "line": 972, + "line": 982, "column": 15 } } }, "property": { "type": "Identifier", - "start": 29396, - "end": 29403, + "start": 29747, + "end": 29754, "loc": { "start": { - "line": 972, + "line": 982, "column": 16 }, "end": { - "line": 972, + "line": 982, "column": 23 }, "identifierName": "canUndo" @@ -58544,44 +59080,44 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 29407, - "end": 29420, + "start": 29758, + "end": 29771, "loc": { "start": { - "line": 972, + "line": 982, "column": 27 }, "end": { - "line": 972, + "line": 982, "column": 40 } }, "object": { "type": "ThisExpression", - "start": 29407, - "end": 29411, + "start": 29758, + "end": 29762, "loc": { "start": { - "line": 972, + "line": 982, "column": 27 }, "end": { - "line": 972, + "line": 982, "column": 31 } } }, "property": { "type": "Identifier", - "start": 29412, - "end": 29420, + "start": 29763, + "end": 29771, "loc": { "start": { - "line": 972, + "line": 982, "column": 32 }, "end": { - "line": 972, + "line": 982, "column": 40 }, "identifierName": "canClear" @@ -58594,44 +59130,44 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 29424, - "end": 29439, + "start": 29775, + "end": 29790, "loc": { "start": { - "line": 972, + "line": 982, "column": 44 }, "end": { - "line": 972, + "line": 982, "column": 59 } }, "object": { "type": "ThisExpression", - "start": 29424, - "end": 29428, + "start": 29775, + "end": 29779, "loc": { "start": { - "line": 972, + "line": 982, "column": 44 }, "end": { - "line": 972, + "line": 982, "column": 48 } } }, "property": { "type": "Identifier", - "start": 29429, - "end": 29439, + "start": 29780, + "end": 29790, "loc": { "start": { - "line": 972, + "line": 982, "column": 49 }, "end": { - "line": 972, + "line": 982, "column": 59 }, "identifierName": "recognizer" @@ -58644,128 +59180,128 @@ "operator": "&&", "right": { "type": "CallExpression", - "start": 29443, - "end": 29535, + "start": 29794, + "end": 29886, "loc": { "start": { - "line": 972, + "line": 982, "column": 63 }, "end": { - "line": 972, + "line": 982, "column": 155 } }, "callee": { "type": "MemberExpression", - "start": 29443, - "end": 29509, + "start": 29794, + "end": 29860, "loc": { "start": { - "line": 972, + "line": 982, "column": 63 }, "end": { - "line": 972, + "line": 982, "column": 129 } }, "object": { "type": "MemberExpression", - "start": 29443, - "end": 29500, + "start": 29794, + "end": 29851, "loc": { "start": { - "line": 972, + "line": 982, "column": 63 }, "end": { - "line": 972, + "line": 982, "column": 120 } }, "object": { "type": "MemberExpression", - "start": 29443, - "end": 29486, + "start": 29794, + "end": 29837, "loc": { "start": { - "line": 972, + "line": 982, "column": 63 }, "end": { - "line": 972, + "line": 982, "column": 106 } }, "object": { "type": "CallExpression", - "start": 29443, - "end": 29468, + "start": 29794, + "end": 29819, "loc": { "start": { - "line": 972, + "line": 982, "column": 63 }, "end": { - "line": 972, + "line": 982, "column": 88 } }, "callee": { "type": "MemberExpression", - "start": 29443, - "end": 29466, + "start": 29794, + "end": 29817, "loc": { "start": { - "line": 972, + "line": 982, "column": 63 }, "end": { - "line": 972, + "line": 982, "column": 86 } }, "object": { "type": "MemberExpression", - "start": 29443, - "end": 29458, + "start": 29794, + "end": 29809, "loc": { "start": { - "line": 972, + "line": 982, "column": 63 }, "end": { - "line": 972, + "line": 982, "column": 78 } }, "object": { "type": "ThisExpression", - "start": 29443, - "end": 29447, + "start": 29794, + "end": 29798, "loc": { "start": { - "line": 972, + "line": 982, "column": 63 }, "end": { - "line": 972, + "line": 982, "column": 67 } } }, "property": { "type": "Identifier", - "start": 29448, - "end": 29458, + "start": 29799, + "end": 29809, "loc": { "start": { - "line": 972, + "line": 982, "column": 68 }, "end": { - "line": 972, + "line": 982, "column": 78 }, "identifierName": "recognizer" @@ -58776,15 +59312,15 @@ }, "property": { "type": "Identifier", - "start": 29459, - "end": 29466, + "start": 29810, + "end": 29817, "loc": { "start": { - "line": 972, + "line": 982, "column": 79 }, "end": { - "line": 972, + "line": 982, "column": 86 }, "identifierName": "getInfo" @@ -58797,15 +59333,15 @@ }, "property": { "type": "Identifier", - "start": 29469, - "end": 29486, + "start": 29820, + "end": 29837, "loc": { "start": { - "line": 972, + "line": 982, "column": 89 }, "end": { - "line": 972, + "line": 982, "column": 106 }, "identifierName": "availableTriggers" @@ -58816,15 +59352,15 @@ }, "property": { "type": "Identifier", - "start": 29487, - "end": 29500, + "start": 29838, + "end": 29851, "loc": { "start": { - "line": 972, + "line": 982, "column": 107 }, "end": { - "line": 972, + "line": 982, "column": 120 }, "identifierName": "exportContent" @@ -58835,15 +59371,15 @@ }, "property": { "type": "Identifier", - "start": 29501, - "end": 29509, + "start": 29852, + "end": 29860, "loc": { "start": { - "line": 972, + "line": 982, "column": 121 }, "end": { - "line": 972, + "line": 982, "column": 129 }, "identifierName": "includes" @@ -58855,43 +59391,43 @@ "arguments": [ { "type": "MemberExpression", - "start": 29510, - "end": 29534, + "start": 29861, + "end": 29885, "loc": { "start": { - "line": 972, + "line": 982, "column": 130 }, "end": { - "line": 972, + "line": 982, "column": 154 } }, "object": { "type": "MemberExpression", - "start": 29510, - "end": 29527, + "start": 29861, + "end": 29878, "loc": { "start": { - "line": 972, + "line": 982, "column": 130 }, "end": { - "line": 972, + "line": 982, "column": 147 } }, "object": { "type": "Identifier", - "start": 29510, - "end": 29519, + "start": 29861, + "end": 29870, "loc": { "start": { - "line": 972, + "line": 982, "column": 130 }, "end": { - "line": 972, + "line": 982, "column": 139 }, "identifierName": "Constants" @@ -58900,15 +59436,15 @@ }, "property": { "type": "Identifier", - "start": 29520, - "end": 29527, + "start": 29871, + "end": 29878, "loc": { "start": { - "line": 972, + "line": 982, "column": 140 }, "end": { - "line": 972, + "line": 982, "column": 147 }, "identifierName": "Trigger" @@ -58919,15 +59455,15 @@ }, "property": { "type": "Identifier", - "start": 29528, - "end": 29534, + "start": 29879, + "end": 29885, "loc": { "start": { - "line": 972, + "line": 982, "column": 148 }, "end": { - "line": 972, + "line": 982, "column": 154 }, "identifierName": "DEMAND" @@ -58948,15 +59484,15 @@ { "type": "CommentBlock", "value": "*\n * True if can export, false otherwise.\n * @return {Boolean}\n ", - "start": 29285, - "end": 29359, + "start": 29636, + "end": 29710, "loc": { "start": { - "line": 967, + "line": 977, "column": 2 }, "end": { - "line": 970, + "line": 980, "column": 5 } } @@ -58966,15 +59502,15 @@ { "type": "CommentBlock", "value": "*\n * Explicitly ask to perform an export. You have to listen to events to get the content as this function is non blocking and does not have a return type.\n * @param {Array} requestedMimeTypes Requested mime-types. Be sure to ask all the types required by the listeners of exported event.\n ", - "start": 29544, - "end": 29852, + "start": 29895, + "end": 30203, "loc": { "start": { - "line": 975, + "line": 985, "column": 2 }, "end": { - "line": 978, + "line": 988, "column": 5 } } @@ -58983,15 +59519,15 @@ }, { "type": "ClassMethod", - "start": 29855, - "end": 30073, + "start": 30206, + "end": 30424, "loc": { "start": { - "line": 979, + "line": 989, "column": 2 }, "end": { - "line": 984, + "line": 994, "column": 3 } }, @@ -58999,15 +59535,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 29855, - "end": 29862, + "start": 30206, + "end": 30213, "loc": { "start": { - "line": 979, + "line": 989, "column": 2 }, "end": { - "line": 979, + "line": 989, "column": 9 }, "identifierName": "export_" @@ -59023,15 +59559,15 @@ "params": [ { "type": "Identifier", - "start": 29863, - "end": 29881, + "start": 30214, + "end": 30232, "loc": { "start": { - "line": 979, + "line": 989, "column": 10 }, "end": { - "line": 979, + "line": 989, "column": 28 }, "identifierName": "requestedMimeTypes" @@ -59041,73 +59577,73 @@ ], "body": { "type": "BlockStatement", - "start": 29883, - "end": 30073, + "start": 30234, + "end": 30424, "loc": { "start": { - "line": 979, + "line": 989, "column": 30 }, "end": { - "line": 984, + "line": 994, "column": 3 } }, "body": [ { "type": "IfStatement", - "start": 29889, - "end": 30069, + "start": 30240, + "end": 30420, "loc": { "start": { - "line": 980, + "line": 990, "column": 4 }, "end": { - "line": 983, + "line": 993, "column": 5 } }, "test": { "type": "MemberExpression", - "start": 29893, - "end": 29907, + "start": 30244, + "end": 30258, "loc": { "start": { - "line": 980, + "line": 990, "column": 8 }, "end": { - "line": 980, + "line": 990, "column": 22 } }, "object": { "type": "ThisExpression", - "start": 29893, - "end": 29897, + "start": 30244, + "end": 30248, "loc": { "start": { - "line": 980, + "line": 990, "column": 8 }, "end": { - "line": 980, + "line": 990, "column": 12 } } }, "property": { "type": "Identifier", - "start": 29898, - "end": 29907, + "start": 30249, + "end": 30258, "loc": { "start": { - "line": 980, + "line": 990, "column": 13 }, "end": { - "line": 980, + "line": 990, "column": 22 }, "identifierName": "canExport" @@ -59118,58 +59654,58 @@ }, "consequent": { "type": "BlockStatement", - "start": 29909, - "end": 30069, + "start": 30260, + "end": 30420, "loc": { "start": { - "line": 980, + "line": 990, "column": 24 }, "end": { - "line": 983, + "line": 993, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 29917, - "end": 29979, + "start": 30268, + "end": 30330, "loc": { "start": { - "line": 981, + "line": 991, "column": 6 }, "end": { - "line": 981, + "line": 991, "column": 68 } }, "expression": { "type": "CallExpression", - "start": 29917, - "end": 29978, + "start": 30268, + "end": 30329, "loc": { "start": { - "line": 981, + "line": 991, "column": 6 }, "end": { - "line": 981, + "line": 991, "column": 67 } }, "callee": { "type": "Identifier", - "start": 29917, - "end": 29933, + "start": 30268, + "end": 30284, "loc": { "start": { - "line": 981, + "line": 991, "column": 6 }, "end": { - "line": 981, + "line": 991, "column": 22 }, "identifierName": "triggerCallbacks" @@ -59179,30 +59715,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 29934, - "end": 29938, + "start": 30285, + "end": 30289, "loc": { "start": { - "line": 981, + "line": 991, "column": 23 }, "end": { - "line": 981, + "line": 991, "column": 27 } } }, { "type": "Identifier", - "start": 29940, - "end": 29949, + "start": 30291, + "end": 30300, "loc": { "start": { - "line": 981, + "line": 991, "column": 29 }, "end": { - "line": 981, + "line": 991, "column": 38 }, "identifierName": "undefined" @@ -59211,43 +59747,43 @@ }, { "type": "MemberExpression", - "start": 29951, - "end": 29977, + "start": 30302, + "end": 30328, "loc": { "start": { - "line": 981, + "line": 991, "column": 40 }, "end": { - "line": 981, + "line": 991, "column": 66 } }, "object": { "type": "MemberExpression", - "start": 29951, - "end": 29970, + "start": 30302, + "end": 30321, "loc": { "start": { - "line": 981, + "line": 991, "column": 40 }, "end": { - "line": 981, + "line": 991, "column": 59 } }, "object": { "type": "Identifier", - "start": 29951, - "end": 29960, + "start": 30302, + "end": 30311, "loc": { "start": { - "line": 981, + "line": 991, "column": 40 }, "end": { - "line": 981, + "line": 991, "column": 49 }, "identifierName": "Constants" @@ -59256,15 +59792,15 @@ }, "property": { "type": "Identifier", - "start": 29961, - "end": 29970, + "start": 30312, + "end": 30321, "loc": { "start": { - "line": 981, + "line": 991, "column": 50 }, "end": { - "line": 981, + "line": 991, "column": 59 }, "identifierName": "EventType" @@ -59275,15 +59811,15 @@ }, "property": { "type": "Identifier", - "start": 29971, - "end": 29977, + "start": 30322, + "end": 30328, "loc": { "start": { - "line": 981, + "line": 991, "column": 60 }, "end": { - "line": 981, + "line": 991, "column": 66 }, "identifierName": "EXPORT" @@ -59297,43 +59833,43 @@ }, { "type": "ExpressionStatement", - "start": 29986, - "end": 30063, + "start": 30337, + "end": 30414, "loc": { "start": { - "line": 982, + "line": 992, "column": 6 }, "end": { - "line": 982, + "line": 992, "column": 83 } }, "expression": { "type": "CallExpression", - "start": 29986, - "end": 30062, + "start": 30337, + "end": 30413, "loc": { "start": { - "line": 982, + "line": 992, "column": 6 }, "end": { - "line": 982, + "line": 992, "column": 82 } }, "callee": { "type": "Identifier", - "start": 29986, - "end": 29998, + "start": 30337, + "end": 30349, "loc": { "start": { - "line": 982, + "line": 992, "column": 6 }, "end": { - "line": 982, + "line": 992, "column": 18 }, "identifierName": "launchExport" @@ -59343,59 +59879,59 @@ "arguments": [ { "type": "ThisExpression", - "start": 29999, - "end": 30003, + "start": 30350, + "end": 30354, "loc": { "start": { - "line": 982, + "line": 992, "column": 19 }, "end": { - "line": 982, + "line": 992, "column": 23 } } }, { "type": "MemberExpression", - "start": 30005, - "end": 30015, + "start": 30356, + "end": 30366, "loc": { "start": { - "line": 982, + "line": 992, "column": 25 }, "end": { - "line": 982, + "line": 992, "column": 35 } }, "object": { "type": "ThisExpression", - "start": 30005, - "end": 30009, + "start": 30356, + "end": 30360, "loc": { "start": { - "line": 982, + "line": 992, "column": 25 }, "end": { - "line": 982, + "line": 992, "column": 29 } } }, "property": { "type": "Identifier", - "start": 30010, - "end": 30015, + "start": 30361, + "end": 30366, "loc": { "start": { - "line": 982, + "line": 992, "column": 30 }, "end": { - "line": 982, + "line": 992, "column": 35 }, "identifierName": "model" @@ -59406,15 +59942,15 @@ }, { "type": "Identifier", - "start": 30017, - "end": 30035, + "start": 30368, + "end": 30386, "loc": { "start": { - "line": 982, + "line": 992, "column": 37 }, "end": { - "line": 982, + "line": 992, "column": 55 }, "identifierName": "requestedMimeTypes" @@ -59423,43 +59959,43 @@ }, { "type": "MemberExpression", - "start": 30037, - "end": 30061, + "start": 30388, + "end": 30412, "loc": { "start": { - "line": 982, + "line": 992, "column": 57 }, "end": { - "line": 982, + "line": 992, "column": 81 } }, "object": { "type": "MemberExpression", - "start": 30037, - "end": 30054, + "start": 30388, + "end": 30405, "loc": { "start": { - "line": 982, + "line": 992, "column": 57 }, "end": { - "line": 982, + "line": 992, "column": 74 } }, "object": { "type": "Identifier", - "start": 30037, - "end": 30046, + "start": 30388, + "end": 30397, "loc": { "start": { - "line": 982, + "line": 992, "column": 57 }, "end": { - "line": 982, + "line": 992, "column": 66 }, "identifierName": "Constants" @@ -59468,15 +60004,15 @@ }, "property": { "type": "Identifier", - "start": 30047, - "end": 30054, + "start": 30398, + "end": 30405, "loc": { "start": { - "line": 982, + "line": 992, "column": 67 }, "end": { - "line": 982, + "line": 992, "column": 74 }, "identifierName": "Trigger" @@ -59487,15 +60023,15 @@ }, "property": { "type": "Identifier", - "start": 30055, - "end": 30061, + "start": 30406, + "end": 30412, "loc": { "start": { - "line": 982, + "line": 992, "column": 75 }, "end": { - "line": 982, + "line": 992, "column": 81 }, "identifierName": "DEMAND" @@ -59520,15 +60056,15 @@ { "type": "CommentBlock", "value": "*\n * Explicitly ask to perform an export. You have to listen to events to get the content as this function is non blocking and does not have a return type.\n * @param {Array} requestedMimeTypes Requested mime-types. Be sure to ask all the types required by the listeners of exported event.\n ", - "start": 29544, - "end": 29852, + "start": 29895, + "end": 30203, "loc": { "start": { - "line": 975, + "line": 985, "column": 2 }, "end": { - "line": 978, + "line": 988, "column": 5 } } @@ -59538,15 +60074,15 @@ { "type": "CommentBlock", "value": "*\n * Import content.\n * @param {Blob|*} data Data to import\n * @param {String} [mimetype] Mimetype of the data, needed if data is not a Blob\n ", - "start": 30077, - "end": 30231, + "start": 30428, + "end": 30582, "loc": { "start": { - "line": 986, + "line": 996, "column": 2 }, "end": { - "line": 990, + "line": 1000, "column": 5 } } @@ -59555,15 +60091,15 @@ }, { "type": "ClassMethod", - "start": 30234, - "end": 30437, + "start": 30585, + "end": 30788, "loc": { "start": { - "line": 991, + "line": 1001, "column": 2 }, "end": { - "line": 994, + "line": 1004, "column": 3 } }, @@ -59571,15 +60107,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 30234, - "end": 30241, + "start": 30585, + "end": 30592, "loc": { "start": { - "line": 991, + "line": 1001, "column": 2 }, "end": { - "line": 991, + "line": 1001, "column": 9 }, "identifierName": "import_" @@ -59595,15 +60131,15 @@ "params": [ { "type": "Identifier", - "start": 30242, - "end": 30246, + "start": 30593, + "end": 30597, "loc": { "start": { - "line": 991, + "line": 1001, "column": 10 }, "end": { - "line": 991, + "line": 1001, "column": 14 }, "identifierName": "data" @@ -59612,15 +60148,15 @@ }, { "type": "Identifier", - "start": 30248, - "end": 30256, + "start": 30599, + "end": 30607, "loc": { "start": { - "line": 991, + "line": 1001, "column": 16 }, "end": { - "line": 991, + "line": 1001, "column": 24 }, "identifierName": "mimetype" @@ -59630,58 +60166,58 @@ ], "body": { "type": "BlockStatement", - "start": 30258, - "end": 30437, + "start": 30609, + "end": 30788, "loc": { "start": { - "line": 991, + "line": 1001, "column": 26 }, "end": { - "line": 994, + "line": 1004, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 30264, - "end": 30326, + "start": 30615, + "end": 30677, "loc": { "start": { - "line": 992, + "line": 1002, "column": 4 }, "end": { - "line": 992, + "line": 1002, "column": 66 } }, "expression": { "type": "CallExpression", - "start": 30264, - "end": 30325, + "start": 30615, + "end": 30676, "loc": { "start": { - "line": 992, + "line": 1002, "column": 4 }, "end": { - "line": 992, + "line": 1002, "column": 65 } }, "callee": { "type": "Identifier", - "start": 30264, - "end": 30280, + "start": 30615, + "end": 30631, "loc": { "start": { - "line": 992, + "line": 1002, "column": 4 }, "end": { - "line": 992, + "line": 1002, "column": 20 }, "identifierName": "triggerCallbacks" @@ -59691,30 +60227,30 @@ "arguments": [ { "type": "ThisExpression", - "start": 30281, - "end": 30285, + "start": 30632, + "end": 30636, "loc": { "start": { - "line": 992, + "line": 1002, "column": 21 }, "end": { - "line": 992, + "line": 1002, "column": 25 } } }, { "type": "Identifier", - "start": 30287, - "end": 30296, + "start": 30638, + "end": 30647, "loc": { "start": { - "line": 992, + "line": 1002, "column": 27 }, "end": { - "line": 992, + "line": 1002, "column": 36 }, "identifierName": "undefined" @@ -59723,43 +60259,43 @@ }, { "type": "MemberExpression", - "start": 30298, - "end": 30324, + "start": 30649, + "end": 30675, "loc": { "start": { - "line": 992, + "line": 1002, "column": 38 }, "end": { - "line": 992, + "line": 1002, "column": 64 } }, "object": { "type": "MemberExpression", - "start": 30298, - "end": 30317, + "start": 30649, + "end": 30668, "loc": { "start": { - "line": 992, + "line": 1002, "column": 38 }, "end": { - "line": 992, + "line": 1002, "column": 57 } }, "object": { "type": "Identifier", - "start": 30298, - "end": 30307, + "start": 30649, + "end": 30658, "loc": { "start": { - "line": 992, + "line": 1002, "column": 38 }, "end": { - "line": 992, + "line": 1002, "column": 47 }, "identifierName": "Constants" @@ -59768,15 +60304,15 @@ }, "property": { "type": "Identifier", - "start": 30308, - "end": 30317, + "start": 30659, + "end": 30668, "loc": { "start": { - "line": 992, + "line": 1002, "column": 48 }, "end": { - "line": 992, + "line": 1002, "column": 57 }, "identifierName": "EventType" @@ -59787,15 +60323,15 @@ }, "property": { "type": "Identifier", - "start": 30318, - "end": 30324, + "start": 30669, + "end": 30675, "loc": { "start": { - "line": 992, + "line": 1002, "column": 58 }, "end": { - "line": 992, + "line": 1002, "column": 64 }, "identifierName": "IMPORT" @@ -59809,43 +60345,43 @@ }, { "type": "ExpressionStatement", - "start": 30331, - "end": 30433, + "start": 30682, + "end": 30784, "loc": { "start": { - "line": 993, + "line": 1003, "column": 4 }, "end": { - "line": 993, + "line": 1003, "column": 106 } }, "expression": { "type": "CallExpression", - "start": 30331, - "end": 30432, + "start": 30682, + "end": 30783, "loc": { "start": { - "line": 993, + "line": 1003, "column": 4 }, "end": { - "line": 993, + "line": 1003, "column": 105 } }, "callee": { "type": "Identifier", - "start": 30331, - "end": 30343, + "start": 30682, + "end": 30694, "loc": { "start": { - "line": 993, + "line": 1003, "column": 4 }, "end": { - "line": 993, + "line": 1003, "column": 16 }, "identifierName": "launchImport" @@ -59855,59 +60391,59 @@ "arguments": [ { "type": "ThisExpression", - "start": 30344, - "end": 30348, + "start": 30695, + "end": 30699, "loc": { "start": { - "line": 993, + "line": 1003, "column": 17 }, "end": { - "line": 993, + "line": 1003, "column": 21 } } }, { "type": "MemberExpression", - "start": 30350, - "end": 30360, + "start": 30701, + "end": 30711, "loc": { "start": { - "line": 993, + "line": 1003, "column": 23 }, "end": { - "line": 993, + "line": 1003, "column": 33 } }, "object": { "type": "ThisExpression", - "start": 30350, - "end": 30354, + "start": 30701, + "end": 30705, "loc": { "start": { - "line": 993, + "line": 1003, "column": 23 }, "end": { - "line": 993, + "line": 1003, "column": 27 } } }, "property": { "type": "Identifier", - "start": 30355, - "end": 30360, + "start": 30706, + "end": 30711, "loc": { "start": { - "line": 993, + "line": 1003, "column": 28 }, "end": { - "line": 993, + "line": 1003, "column": 33 }, "identifierName": "model" @@ -59918,29 +60454,29 @@ }, { "type": "ConditionalExpression", - "start": 30362, - "end": 30431, + "start": 30713, + "end": 30782, "loc": { "start": { - "line": 993, + "line": 1003, "column": 35 }, "end": { - "line": 993, + "line": 1003, "column": 104 } }, "test": { "type": "UnaryExpression", - "start": 30362, - "end": 30385, + "start": 30713, + "end": 30736, "loc": { "start": { - "line": 993, + "line": 1003, "column": 35 }, "end": { - "line": 993, + "line": 1003, "column": 58 } }, @@ -59948,29 +60484,29 @@ "prefix": true, "argument": { "type": "BinaryExpression", - "start": 30364, - "end": 30384, + "start": 30715, + "end": 30735, "loc": { "start": { - "line": 993, + "line": 1003, "column": 37 }, "end": { - "line": 993, + "line": 1003, "column": 57 } }, "left": { "type": "Identifier", - "start": 30364, - "end": 30368, + "start": 30715, + "end": 30719, "loc": { "start": { - "line": 993, + "line": 1003, "column": 37 }, "end": { - "line": 993, + "line": 1003, "column": 41 }, "identifierName": "data" @@ -59980,15 +60516,15 @@ "operator": "instanceof", "right": { "type": "Identifier", - "start": 30380, - "end": 30384, + "start": 30731, + "end": 30735, "loc": { "start": { - "line": 993, + "line": 1003, "column": 53 }, "end": { - "line": 993, + "line": 1003, "column": 57 }, "identifierName": "Blob" @@ -59997,7 +60533,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 30363 + "parenStart": 30714 } }, "extra": { @@ -60006,29 +60542,29 @@ }, "consequent": { "type": "NewExpression", - "start": 30388, - "end": 30424, + "start": 30739, + "end": 30775, "loc": { "start": { - "line": 993, + "line": 1003, "column": 61 }, "end": { - "line": 993, + "line": 1003, "column": 97 } }, "callee": { "type": "Identifier", - "start": 30392, - "end": 30396, + "start": 30743, + "end": 30747, "loc": { "start": { - "line": 993, + "line": 1003, "column": 65 }, "end": { - "line": 993, + "line": 1003, "column": 69 }, "identifierName": "Blob" @@ -60038,30 +60574,30 @@ "arguments": [ { "type": "ArrayExpression", - "start": 30397, - "end": 30403, + "start": 30748, + "end": 30754, "loc": { "start": { - "line": 993, + "line": 1003, "column": 70 }, "end": { - "line": 993, + "line": 1003, "column": 76 } }, "elements": [ { "type": "Identifier", - "start": 30398, - "end": 30402, + "start": 30749, + "end": 30753, "loc": { "start": { - "line": 993, + "line": 1003, "column": 71 }, "end": { - "line": 993, + "line": 1003, "column": 75 }, "identifierName": "data" @@ -60072,30 +60608,30 @@ }, { "type": "ObjectExpression", - "start": 30405, - "end": 30423, + "start": 30756, + "end": 30774, "loc": { "start": { - "line": 993, + "line": 1003, "column": 78 }, "end": { - "line": 993, + "line": 1003, "column": 96 } }, "properties": [ { "type": "ObjectProperty", - "start": 30407, - "end": 30421, + "start": 30758, + "end": 30772, "loc": { "start": { - "line": 993, + "line": 1003, "column": 80 }, "end": { - "line": 993, + "line": 1003, "column": 94 } }, @@ -60104,15 +60640,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 30407, - "end": 30411, + "start": 30758, + "end": 30762, "loc": { "start": { - "line": 993, + "line": 1003, "column": 80 }, "end": { - "line": 993, + "line": 1003, "column": 84 }, "identifierName": "type" @@ -60121,15 +60657,15 @@ }, "value": { "type": "Identifier", - "start": 30413, - "end": 30421, + "start": 30764, + "end": 30772, "loc": { "start": { - "line": 993, + "line": 1003, "column": 86 }, "end": { - "line": 993, + "line": 1003, "column": 94 }, "identifierName": "mimetype" @@ -60143,15 +60679,15 @@ }, "alternate": { "type": "Identifier", - "start": 30427, - "end": 30431, + "start": 30778, + "end": 30782, "loc": { "start": { - "line": 993, + "line": 1003, "column": 100 }, "end": { - "line": 993, + "line": 1003, "column": 104 }, "identifierName": "data" @@ -60170,15 +60706,15 @@ { "type": "CommentBlock", "value": "*\n * Import content.\n * @param {Blob|*} data Data to import\n * @param {String} [mimetype] Mimetype of the data, needed if data is not a Blob\n ", - "start": 30077, - "end": 30231, + "start": 30428, + "end": 30582, "loc": { "start": { - "line": 986, + "line": 996, "column": 2 }, "end": { - "line": 990, + "line": 1000, "column": 5 } } @@ -60188,15 +60724,15 @@ { "type": "CommentBlock", "value": "*\n * Get supported import mime types\n ", - "start": 30441, - "end": 30487, + "start": 30792, + "end": 30838, "loc": { "start": { - "line": 996, + "line": 1006, "column": 2 }, "end": { - "line": 998, + "line": 1008, "column": 5 } } @@ -60205,15 +60741,15 @@ }, { "type": "ClassMethod", - "start": 30490, - "end": 30582, + "start": 30841, + "end": 30933, "loc": { "start": { - "line": 999, + "line": 1009, "column": 2 }, "end": { - "line": 1001, + "line": 1011, "column": 3 } }, @@ -60221,15 +60757,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 30490, - "end": 30517, + "start": 30841, + "end": 30868, "loc": { "start": { - "line": 999, + "line": 1009, "column": 2 }, "end": { - "line": 999, + "line": 1009, "column": 29 }, "identifierName": "getSupportedImportMimeTypes" @@ -60245,58 +60781,58 @@ "params": [], "body": { "type": "BlockStatement", - "start": 30520, - "end": 30582, + "start": 30871, + "end": 30933, "loc": { "start": { - "line": 999, + "line": 1009, "column": 32 }, "end": { - "line": 1001, + "line": 1011, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 30526, - "end": 30578, + "start": 30877, + "end": 30929, "loc": { "start": { - "line": 1000, + "line": 1010, "column": 4 }, "end": { - "line": 1000, + "line": 1010, "column": 56 } }, "expression": { "type": "CallExpression", - "start": 30526, - "end": 30577, + "start": 30877, + "end": 30928, "loc": { "start": { - "line": 1000, + "line": 1010, "column": 4 }, "end": { - "line": 1000, + "line": 1010, "column": 55 } }, "callee": { "type": "Identifier", - "start": 30526, - "end": 30559, + "start": 30877, + "end": 30910, "loc": { "start": { - "line": 1000, + "line": 1010, "column": 4 }, "end": { - "line": 1000, + "line": 1010, "column": 37 }, "identifierName": "launchGetSupportedImportMimeTypes" @@ -60306,59 +60842,59 @@ "arguments": [ { "type": "ThisExpression", - "start": 30560, - "end": 30564, + "start": 30911, + "end": 30915, "loc": { "start": { - "line": 1000, + "line": 1010, "column": 38 }, "end": { - "line": 1000, + "line": 1010, "column": 42 } } }, { "type": "MemberExpression", - "start": 30566, - "end": 30576, + "start": 30917, + "end": 30927, "loc": { "start": { - "line": 1000, + "line": 1010, "column": 44 }, "end": { - "line": 1000, + "line": 1010, "column": 54 } }, "object": { "type": "ThisExpression", - "start": 30566, - "end": 30570, + "start": 30917, + "end": 30921, "loc": { "start": { - "line": 1000, + "line": 1010, "column": 44 }, "end": { - "line": 1000, + "line": 1010, "column": 48 } } }, "property": { "type": "Identifier", - "start": 30571, - "end": 30576, + "start": 30922, + "end": 30927, "loc": { "start": { - "line": 1000, + "line": 1010, "column": 49 }, "end": { - "line": 1000, + "line": 1010, "column": 54 }, "identifierName": "model" @@ -60378,15 +60914,15 @@ { "type": "CommentBlock", "value": "*\n * Get supported import mime types\n ", - "start": 30441, - "end": 30487, + "start": 30792, + "end": 30838, "loc": { "start": { - "line": 996, + "line": 1006, "column": 2 }, "end": { - "line": 998, + "line": 1008, "column": 5 } } @@ -60396,15 +60932,15 @@ { "type": "CommentBlock", "value": "*\n * pointer events\n * @param {PointerEvents} events\n ", - "start": 30586, - "end": 30650, + "start": 30937, + "end": 31001, "loc": { "start": { - "line": 1003, + "line": 1013, "column": 2 }, "end": { - "line": 1006, + "line": 1016, "column": 5 } } @@ -60413,15 +60949,15 @@ }, { "type": "ClassMethod", - "start": 30653, - "end": 30731, + "start": 31004, + "end": 31082, "loc": { "start": { - "line": 1007, + "line": 1017, "column": 2 }, "end": { - "line": 1009, + "line": 1019, "column": 3 } }, @@ -60429,15 +60965,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 30653, - "end": 30666, + "start": 31004, + "end": 31017, "loc": { "start": { - "line": 1007, + "line": 1017, "column": 2 }, "end": { - "line": 1007, + "line": 1017, "column": 15 }, "identifierName": "pointerEvents" @@ -60453,15 +60989,15 @@ "params": [ { "type": "Identifier", - "start": 30667, - "end": 30673, + "start": 31018, + "end": 31024, "loc": { "start": { - "line": 1007, + "line": 1017, "column": 16 }, "end": { - "line": 1007, + "line": 1017, "column": 22 }, "identifierName": "events" @@ -60471,58 +61007,58 @@ ], "body": { "type": "BlockStatement", - "start": 30675, - "end": 30731, + "start": 31026, + "end": 31082, "loc": { "start": { - "line": 1007, + "line": 1017, "column": 24 }, "end": { - "line": 1009, + "line": 1019, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 30681, - "end": 30727, + "start": 31032, + "end": 31078, "loc": { "start": { - "line": 1008, + "line": 1018, "column": 4 }, "end": { - "line": 1008, + "line": 1018, "column": 50 } }, "expression": { "type": "CallExpression", - "start": 30681, - "end": 30726, + "start": 31032, + "end": 31077, "loc": { "start": { - "line": 1008, + "line": 1018, "column": 4 }, "end": { - "line": 1008, + "line": 1018, "column": 49 } }, "callee": { "type": "Identifier", - "start": 30681, - "end": 30700, + "start": 31032, + "end": 31051, "loc": { "start": { - "line": 1008, + "line": 1018, "column": 4 }, "end": { - "line": 1008, + "line": 1018, "column": 23 }, "identifierName": "launchPointerEvents" @@ -60532,59 +61068,59 @@ "arguments": [ { "type": "ThisExpression", - "start": 30701, - "end": 30705, + "start": 31052, + "end": 31056, "loc": { "start": { - "line": 1008, + "line": 1018, "column": 24 }, "end": { - "line": 1008, + "line": 1018, "column": 28 } } }, { "type": "MemberExpression", - "start": 30707, - "end": 30717, + "start": 31058, + "end": 31068, "loc": { "start": { - "line": 1008, + "line": 1018, "column": 30 }, "end": { - "line": 1008, + "line": 1018, "column": 40 } }, "object": { "type": "ThisExpression", - "start": 30707, - "end": 30711, + "start": 31058, + "end": 31062, "loc": { "start": { - "line": 1008, + "line": 1018, "column": 30 }, "end": { - "line": 1008, + "line": 1018, "column": 34 } } }, "property": { "type": "Identifier", - "start": 30712, - "end": 30717, + "start": 31063, + "end": 31068, "loc": { "start": { - "line": 1008, + "line": 1018, "column": 35 }, "end": { - "line": 1008, + "line": 1018, "column": 40 }, "identifierName": "model" @@ -60595,15 +61131,15 @@ }, { "type": "Identifier", - "start": 30719, - "end": 30725, + "start": 31070, + "end": 31076, "loc": { "start": { - "line": 1008, + "line": 1018, "column": 42 }, "end": { - "line": 1008, + "line": 1018, "column": 48 }, "identifierName": "events" @@ -60621,15 +61157,15 @@ { "type": "CommentBlock", "value": "*\n * pointer events\n * @param {PointerEvents} events\n ", - "start": 30586, - "end": 30650, + "start": 30937, + "end": 31001, "loc": { "start": { - "line": 1003, + "line": 1013, "column": 2 }, "end": { - "line": 1006, + "line": 1016, "column": 5 } } @@ -60639,15 +61175,15 @@ { "type": "CommentBlock", "value": "*\n * Get current state exports\n * @return {Object}\n ", - "start": 30735, - "end": 30797, + "start": 31086, + "end": 31148, "loc": { "start": { - "line": 1011, + "line": 1021, "column": 2 }, "end": { - "line": 1014, + "line": 1024, "column": 5 } } @@ -60656,15 +61192,15 @@ }, { "type": "ClassMethod", - "start": 30800, - "end": 30875, + "start": 31151, + "end": 31226, "loc": { "start": { - "line": 1015, + "line": 1025, "column": 2 }, "end": { - "line": 1017, + "line": 1027, "column": 3 } }, @@ -60672,15 +61208,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 30804, - "end": 30811, + "start": 31155, + "end": 31162, "loc": { "start": { - "line": 1015, + "line": 1025, "column": 6 }, "end": { - "line": 1015, + "line": 1025, "column": 13 }, "identifierName": "exports" @@ -60695,87 +61231,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 30814, - "end": 30875, + "start": 31165, + "end": 31226, "loc": { "start": { - "line": 1015, + "line": 1025, "column": 16 }, "end": { - "line": 1017, + "line": 1027, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 30820, - "end": 30871, + "start": 31171, + "end": 31222, "loc": { "start": { - "line": 1016, + "line": 1026, "column": 4 }, "end": { - "line": 1016, + "line": 1026, "column": 55 } }, "argument": { "type": "ConditionalExpression", - "start": 30827, - "end": 30870, + "start": 31178, + "end": 31221, "loc": { "start": { - "line": 1016, + "line": 1026, "column": 11 }, "end": { - "line": 1016, + "line": 1026, "column": 54 } }, "test": { "type": "MemberExpression", - "start": 30827, - "end": 30837, + "start": 31178, + "end": 31188, "loc": { "start": { - "line": 1016, + "line": 1026, "column": 11 }, "end": { - "line": 1016, + "line": 1026, "column": 21 } }, "object": { "type": "ThisExpression", - "start": 30827, - "end": 30831, + "start": 31178, + "end": 31182, "loc": { "start": { - "line": 1016, + "line": 1026, "column": 11 }, "end": { - "line": 1016, + "line": 1026, "column": 15 } } }, "property": { "type": "Identifier", - "start": 30832, - "end": 30837, + "start": 31183, + "end": 31188, "loc": { "start": { - "line": 1016, + "line": 1026, "column": 16 }, "end": { - "line": 1016, + "line": 1026, "column": 21 }, "identifierName": "model" @@ -60786,58 +61322,58 @@ }, "consequent": { "type": "MemberExpression", - "start": 30840, - "end": 30858, + "start": 31191, + "end": 31209, "loc": { "start": { - "line": 1016, + "line": 1026, "column": 24 }, "end": { - "line": 1016, + "line": 1026, "column": 42 } }, "object": { "type": "MemberExpression", - "start": 30840, - "end": 30850, + "start": 31191, + "end": 31201, "loc": { "start": { - "line": 1016, + "line": 1026, "column": 24 }, "end": { - "line": 1016, + "line": 1026, "column": 34 } }, "object": { "type": "ThisExpression", - "start": 30840, - "end": 30844, + "start": 31191, + "end": 31195, "loc": { "start": { - "line": 1016, + "line": 1026, "column": 24 }, "end": { - "line": 1016, + "line": 1026, "column": 28 } } }, "property": { "type": "Identifier", - "start": 30845, - "end": 30850, + "start": 31196, + "end": 31201, "loc": { "start": { - "line": 1016, + "line": 1026, "column": 29 }, "end": { - "line": 1016, + "line": 1026, "column": 34 }, "identifierName": "model" @@ -60848,15 +61384,15 @@ }, "property": { "type": "Identifier", - "start": 30851, - "end": 30858, + "start": 31202, + "end": 31209, "loc": { "start": { - "line": 1016, + "line": 1026, "column": 35 }, "end": { - "line": 1016, + "line": 1026, "column": 42 }, "identifierName": "exports" @@ -60867,15 +61403,15 @@ }, "alternate": { "type": "Identifier", - "start": 30861, - "end": 30870, + "start": 31212, + "end": 31221, "loc": { "start": { - "line": 1016, + "line": 1026, "column": 45 }, "end": { - "line": 1016, + "line": 1026, "column": 54 }, "identifierName": "undefined" @@ -60891,15 +61427,15 @@ { "type": "CommentBlock", "value": "*\n * Get current state exports\n * @return {Object}\n ", - "start": 30735, - "end": 30797, + "start": 31086, + "end": 31148, "loc": { "start": { - "line": 1011, + "line": 1021, "column": 2 }, "end": { - "line": 1014, + "line": 1024, "column": 5 } } @@ -60908,15 +61444,15 @@ }, { "type": "ClassMethod", - "start": 30879, - "end": 30975, + "start": 31230, + "end": 31326, "loc": { "start": { - "line": 1019, + "line": 1029, "column": 2 }, "end": { - "line": 1021, + "line": 1031, "column": 3 } }, @@ -60924,15 +61460,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 30883, - "end": 30907, + "start": 31234, + "end": 31258, "loc": { "start": { - "line": 1019, + "line": 1029, "column": 6 }, "end": { - "line": 1019, + "line": 1029, "column": 30 }, "identifierName": "supportedImportMimeTypes" @@ -60947,87 +61483,87 @@ "params": [], "body": { "type": "BlockStatement", - "start": 30910, - "end": 30975, + "start": 31261, + "end": 31326, "loc": { "start": { - "line": 1019, + "line": 1029, "column": 33 }, "end": { - "line": 1021, + "line": 1031, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 30916, - "end": 30971, + "start": 31267, + "end": 31322, "loc": { "start": { - "line": 1020, + "line": 1030, "column": 4 }, "end": { - "line": 1020, + "line": 1030, "column": 59 } }, "argument": { "type": "MemberExpression", - "start": 30923, - "end": 30970, + "start": 31274, + "end": 31321, "loc": { "start": { - "line": 1020, + "line": 1030, "column": 11 }, "end": { - "line": 1020, + "line": 1030, "column": 58 } }, "object": { "type": "MemberExpression", - "start": 30923, - "end": 30945, + "start": 31274, + "end": 31296, "loc": { "start": { - "line": 1020, + "line": 1030, "column": 11 }, "end": { - "line": 1020, + "line": 1030, "column": 33 } }, "object": { "type": "ThisExpression", - "start": 30923, - "end": 30927, + "start": 31274, + "end": 31278, "loc": { "start": { - "line": 1020, + "line": 1030, "column": 11 }, "end": { - "line": 1020, + "line": 1030, "column": 15 } } }, "property": { "type": "Identifier", - "start": 30928, - "end": 30945, + "start": 31279, + "end": 31296, "loc": { "start": { - "line": 1020, + "line": 1030, "column": 16 }, "end": { - "line": 1020, + "line": 1030, "column": 33 }, "identifierName": "recognizerContext" @@ -61038,15 +61574,15 @@ }, "property": { "type": "Identifier", - "start": 30946, - "end": 30970, + "start": 31297, + "end": 31321, "loc": { "start": { - "line": 1020, + "line": 1030, "column": 34 }, "end": { - "line": 1020, + "line": 1030, "column": 58 }, "identifierName": "supportedImportMimeTypes" @@ -61064,15 +61600,15 @@ { "type": "CommentBlock", "value": "*\n * Function to call when the dom element link to the current ink paper has been resize.\n ", - "start": 30979, - "end": 31078, + "start": 31330, + "end": 31429, "loc": { "start": { - "line": 1023, + "line": 1033, "column": 2 }, "end": { - "line": 1025, + "line": 1035, "column": 5 } } @@ -61081,15 +61617,15 @@ }, { "type": "ClassMethod", - "start": 31081, - "end": 31333, + "start": 31432, + "end": 31684, "loc": { "start": { - "line": 1026, + "line": 1036, "column": 2 }, "end": { - "line": 1030, + "line": 1040, "column": 3 } }, @@ -61097,15 +61633,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 31081, - "end": 31087, + "start": 31432, + "end": 31438, "loc": { "start": { - "line": 1026, + "line": 1036, "column": 2 }, "end": { - "line": 1026, + "line": 1036, "column": 8 }, "identifierName": "resize" @@ -61121,72 +61657,72 @@ "params": [], "body": { "type": "BlockStatement", - "start": 31090, - "end": 31333, + "start": 31441, + "end": 31684, "loc": { "start": { - "line": 1026, + "line": 1036, "column": 11 }, "end": { - "line": 1030, + "line": 1040, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 31096, - "end": 31128, + "start": 31447, + "end": 31479, "loc": { "start": { - "line": 1027, + "line": 1037, "column": 4 }, "end": { - "line": 1027, + "line": 1037, "column": 36 } }, "expression": { "type": "CallExpression", - "start": 31096, - "end": 31127, + "start": 31447, + "end": 31478, "loc": { "start": { - "line": 1027, + "line": 1037, "column": 4 }, "end": { - "line": 1027, + "line": 1037, "column": 35 } }, "callee": { "type": "MemberExpression", - "start": 31096, - "end": 31108, + "start": 31447, + "end": 31459, "loc": { "start": { - "line": 1027, + "line": 1037, "column": 4 }, "end": { - "line": 1027, + "line": 1037, "column": 16 } }, "object": { "type": "Identifier", - "start": 31096, - "end": 31102, + "start": 31447, + "end": 31453, "loc": { "start": { - "line": 1027, + "line": 1037, "column": 4 }, "end": { - "line": 1027, + "line": 1037, "column": 10 }, "identifierName": "logger" @@ -61195,15 +61731,15 @@ }, "property": { "type": "Identifier", - "start": 31103, - "end": 31108, + "start": 31454, + "end": 31459, "loc": { "start": { - "line": 1027, + "line": 1037, "column": 11 }, "end": { - "line": 1027, + "line": 1037, "column": 16 }, "identifierName": "debug" @@ -61215,15 +61751,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 31109, - "end": 31126, + "start": 31460, + "end": 31477, "loc": { "start": { - "line": 1027, + "line": 1037, "column": 17 }, "end": { - "line": 1027, + "line": 1037, "column": 34 } }, @@ -61238,86 +61774,86 @@ }, { "type": "ExpressionStatement", - "start": 31133, - "end": 31293, + "start": 31484, + "end": 31644, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 4 }, "end": { - "line": 1028, + "line": 1038, "column": 164 } }, "expression": { "type": "CallExpression", - "start": 31133, - "end": 31292, + "start": 31484, + "end": 31643, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 4 }, "end": { - "line": 1028, + "line": 1038, "column": 163 } }, "callee": { "type": "MemberExpression", - "start": 31133, - "end": 31153, + "start": 31484, + "end": 31504, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 4 }, "end": { - "line": 1028, + "line": 1038, "column": 24 } }, "object": { "type": "MemberExpression", - "start": 31133, - "end": 31146, + "start": 31484, + "end": 31497, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 4 }, "end": { - "line": 1028, + "line": 1038, "column": 17 } }, "object": { "type": "ThisExpression", - "start": 31133, - "end": 31137, + "start": 31484, + "end": 31488, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 4 }, "end": { - "line": 1028, + "line": 1038, "column": 8 } } }, "property": { "type": "Identifier", - "start": 31138, - "end": 31146, + "start": 31489, + "end": 31497, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 9 }, "end": { - "line": 1028, + "line": 1038, "column": 17 }, "identifierName": "renderer" @@ -61328,15 +61864,15 @@ }, "property": { "type": "Identifier", - "start": 31147, - "end": 31153, + "start": 31498, + "end": 31504, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 18 }, "end": { - "line": 1028, + "line": 1038, "column": 24 }, "identifierName": "resize" @@ -61348,44 +61884,44 @@ "arguments": [ { "type": "MemberExpression", - "start": 31154, - "end": 31174, + "start": 31505, + "end": 31525, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 25 }, "end": { - "line": 1028, + "line": 1038, "column": 45 } }, "object": { "type": "ThisExpression", - "start": 31154, - "end": 31158, + "start": 31505, + "end": 31509, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 25 }, "end": { - "line": 1028, + "line": 1038, "column": 29 } } }, "property": { "type": "Identifier", - "start": 31159, - "end": 31174, + "start": 31510, + "end": 31525, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 30 }, "end": { - "line": 1028, + "line": 1038, "column": 45 }, "identifierName": "rendererContext" @@ -61396,44 +61932,44 @@ }, { "type": "MemberExpression", - "start": 31176, - "end": 31186, + "start": 31527, + "end": 31537, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 47 }, "end": { - "line": 1028, + "line": 1038, "column": 57 } }, "object": { "type": "ThisExpression", - "start": 31176, - "end": 31180, + "start": 31527, + "end": 31531, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 47 }, "end": { - "line": 1028, + "line": 1038, "column": 51 } } }, "property": { "type": "Identifier", - "start": 31181, - "end": 31186, + "start": 31532, + "end": 31537, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 52 }, "end": { - "line": 1028, + "line": 1038, "column": 57 }, "identifierName": "model" @@ -61444,44 +61980,44 @@ }, { "type": "MemberExpression", - "start": 31188, - "end": 31200, + "start": 31539, + "end": 31551, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 59 }, "end": { - "line": 1028, + "line": 1038, "column": 71 } }, "object": { "type": "ThisExpression", - "start": 31188, - "end": 31192, + "start": 31539, + "end": 31543, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 59 }, "end": { - "line": 1028, + "line": 1038, "column": 63 } } }, "property": { "type": "Identifier", - "start": 31193, - "end": 31200, + "start": 31544, + "end": 31551, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 64 }, "end": { - "line": 1028, + "line": 1038, "column": 71 }, "identifierName": "stroker" @@ -61492,72 +62028,72 @@ }, { "type": "MemberExpression", - "start": 31202, - "end": 31246, + "start": 31553, + "end": 31597, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 73 }, "end": { - "line": 1028, + "line": 1038, "column": 117 } }, "object": { "type": "MemberExpression", - "start": 31202, - "end": 31236, + "start": 31553, + "end": 31587, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 73 }, "end": { - "line": 1028, + "line": 1038, "column": 107 } }, "object": { "type": "MemberExpression", - "start": 31202, - "end": 31220, + "start": 31553, + "end": 31571, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 73 }, "end": { - "line": 1028, + "line": 1038, "column": 91 } }, "object": { "type": "ThisExpression", - "start": 31202, - "end": 31206, + "start": 31553, + "end": 31557, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 73 }, "end": { - "line": 1028, + "line": 1038, "column": 77 } } }, "property": { "type": "Identifier", - "start": 31207, - "end": 31220, + "start": 31558, + "end": 31571, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 78 }, "end": { - "line": 1028, + "line": 1038, "column": 91 }, "identifierName": "configuration" @@ -61568,15 +62104,15 @@ }, "property": { "type": "Identifier", - "start": 31221, - "end": 31236, + "start": 31572, + "end": 31587, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 92 }, "end": { - "line": 1028, + "line": 1038, "column": 107 }, "identifierName": "renderingParams" @@ -61587,15 +62123,15 @@ }, "property": { "type": "Identifier", - "start": 31237, - "end": 31246, + "start": 31588, + "end": 31597, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 108 }, "end": { - "line": 1028, + "line": 1038, "column": 117 }, "identifierName": "minHeight" @@ -61606,72 +62142,72 @@ }, { "type": "MemberExpression", - "start": 31248, - "end": 31291, + "start": 31599, + "end": 31642, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 119 }, "end": { - "line": 1028, + "line": 1038, "column": 162 } }, "object": { "type": "MemberExpression", - "start": 31248, - "end": 31282, + "start": 31599, + "end": 31633, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 119 }, "end": { - "line": 1028, + "line": 1038, "column": 153 } }, "object": { "type": "MemberExpression", - "start": 31248, - "end": 31266, + "start": 31599, + "end": 31617, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 119 }, "end": { - "line": 1028, + "line": 1038, "column": 137 } }, "object": { "type": "ThisExpression", - "start": 31248, - "end": 31252, + "start": 31599, + "end": 31603, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 119 }, "end": { - "line": 1028, + "line": 1038, "column": 123 } } }, "property": { "type": "Identifier", - "start": 31253, - "end": 31266, + "start": 31604, + "end": 31617, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 124 }, "end": { - "line": 1028, + "line": 1038, "column": 137 }, "identifierName": "configuration" @@ -61682,15 +62218,15 @@ }, "property": { "type": "Identifier", - "start": 31267, - "end": 31282, + "start": 31618, + "end": 31633, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 138 }, "end": { - "line": 1028, + "line": 1038, "column": 153 }, "identifierName": "renderingParams" @@ -61701,15 +62237,15 @@ }, "property": { "type": "Identifier", - "start": 31283, - "end": 31291, + "start": 31634, + "end": 31642, "loc": { "start": { - "line": 1028, + "line": 1038, "column": 154 }, "end": { - "line": 1028, + "line": 1038, "column": 162 }, "identifierName": "minWidth" @@ -61723,43 +62259,43 @@ }, { "type": "ExpressionStatement", - "start": 31298, - "end": 31329, + "start": 31649, + "end": 31680, "loc": { "start": { - "line": 1029, + "line": 1039, "column": 4 }, "end": { - "line": 1029, + "line": 1039, "column": 35 } }, "expression": { "type": "CallExpression", - "start": 31298, - "end": 31328, + "start": 31649, + "end": 31679, "loc": { "start": { - "line": 1029, + "line": 1039, "column": 4 }, "end": { - "line": 1029, + "line": 1039, "column": 34 } }, "callee": { "type": "Identifier", - "start": 31298, - "end": 31310, + "start": 31649, + "end": 31661, "loc": { "start": { - "line": 1029, + "line": 1039, "column": 4 }, "end": { - "line": 1029, + "line": 1039, "column": 16 }, "identifierName": "launchResize" @@ -61769,59 +62305,59 @@ "arguments": [ { "type": "ThisExpression", - "start": 31311, - "end": 31315, + "start": 31662, + "end": 31666, "loc": { "start": { - "line": 1029, + "line": 1039, "column": 17 }, "end": { - "line": 1029, + "line": 1039, "column": 21 } } }, { "type": "MemberExpression", - "start": 31317, - "end": 31327, + "start": 31668, + "end": 31678, "loc": { "start": { - "line": 1029, + "line": 1039, "column": 23 }, "end": { - "line": 1029, + "line": 1039, "column": 33 } }, "object": { "type": "ThisExpression", - "start": 31317, - "end": 31321, + "start": 31668, + "end": 31672, "loc": { "start": { - "line": 1029, + "line": 1039, "column": 23 }, "end": { - "line": 1029, + "line": 1039, "column": 27 } } }, "property": { "type": "Identifier", - "start": 31322, - "end": 31327, + "start": 31673, + "end": 31678, "loc": { "start": { - "line": 1029, + "line": 1039, "column": 28 }, "end": { - "line": 1029, + "line": 1039, "column": 33 }, "identifierName": "model" @@ -61841,15 +62377,15 @@ { "type": "CommentBlock", "value": "*\n * Function to call when the dom element link to the current ink paper has been resize.\n ", - "start": 30979, - "end": 31078, + "start": 31330, + "end": 31429, "loc": { "start": { - "line": 1023, + "line": 1033, "column": 2 }, "end": { - "line": 1025, + "line": 1035, "column": 5 } } @@ -61859,15 +62395,15 @@ { "type": "CommentBlock", "value": "*\n * Set the theme (font family, font size and line height) depending on the language\n * @param lang\n ", - "start": 31337, - "end": 31449, + "start": 31688, + "end": 31800, "loc": { "start": { - "line": 1032, + "line": 1042, "column": 2 }, "end": { - "line": 1035, + "line": 1045, "column": 5 } } @@ -61876,15 +62412,15 @@ }, { "type": "ClassMethod", - "start": 31452, - "end": 31882, + "start": 31803, + "end": 32233, "loc": { "start": { - "line": 1036, + "line": 1046, "column": 2 }, "end": { - "line": 1047, + "line": 1057, "column": 3 } }, @@ -61892,15 +62428,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 31452, - "end": 31467, + "start": 31803, + "end": 31818, "loc": { "start": { - "line": 1036, + "line": 1046, "column": 2 }, "end": { - "line": 1036, + "line": 1046, "column": 17 }, "identifierName": "setThemeForFont" @@ -61916,15 +62452,15 @@ "params": [ { "type": "Identifier", - "start": 31468, - "end": 31472, + "start": 31819, + "end": 31823, "loc": { "start": { - "line": 1036, + "line": 1046, "column": 18 }, "end": { - "line": 1036, + "line": 1046, "column": 22 }, "identifierName": "lang" @@ -61934,59 +62470,59 @@ ], "body": { "type": "BlockStatement", - "start": 31474, - "end": 31882, + "start": 31825, + "end": 32233, "loc": { "start": { - "line": 1036, + "line": 1046, "column": 24 }, "end": { - "line": 1047, + "line": 1057, "column": 3 } }, "body": [ { "type": "VariableDeclaration", - "start": 31480, - "end": 31549, + "start": 31831, + "end": 31900, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 4 }, "end": { - "line": 1037, + "line": 1047, "column": 73 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 31486, - "end": 31548, + "start": 31837, + "end": 31899, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 10 }, "end": { - "line": 1037, + "line": 1047, "column": 72 } }, "id": { "type": "Identifier", - "start": 31486, - "end": 31497, + "start": 31837, + "end": 31848, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 10 }, "end": { - "line": 1037, + "line": 1047, "column": 21 }, "identifierName": "defaultLang" @@ -61995,15 +62531,15 @@ }, "init": { "type": "UnaryExpression", - "start": 31500, - "end": 31548, + "start": 31851, + "end": 31899, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 24 }, "end": { - "line": 1037, + "line": 1047, "column": 72 } }, @@ -62011,71 +62547,71 @@ "prefix": true, "argument": { "type": "CallExpression", - "start": 31501, - "end": 31548, + "start": 31852, + "end": 31899, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 25 }, "end": { - "line": 1037, + "line": 1047, "column": 72 } }, "callee": { "type": "MemberExpression", - "start": 31501, - "end": 31542, + "start": 31852, + "end": 31893, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 25 }, "end": { - "line": 1037, + "line": 1047, "column": 66 } }, "object": { "type": "CallExpression", - "start": 31501, - "end": 31533, + "start": 31852, + "end": 31884, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 25 }, "end": { - "line": 1037, + "line": 1047, "column": 57 } }, "callee": { "type": "MemberExpression", - "start": 31501, - "end": 31512, + "start": 31852, + "end": 31863, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 25 }, "end": { - "line": 1037, + "line": 1047, "column": 36 } }, "object": { "type": "Identifier", - "start": 31501, - "end": 31507, + "start": 31852, + "end": 31858, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 25 }, "end": { - "line": 1037, + "line": 1047, "column": 31 }, "identifierName": "Object" @@ -62084,15 +62620,15 @@ }, "property": { "type": "Identifier", - "start": 31508, - "end": 31512, + "start": 31859, + "end": 31863, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 32 }, "end": { - "line": 1037, + "line": 1047, "column": 36 }, "identifierName": "keys" @@ -62104,29 +62640,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 31513, - "end": 31532, + "start": 31864, + "end": 31883, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 37 }, "end": { - "line": 1037, + "line": 1047, "column": 56 } }, "object": { "type": "Identifier", - "start": 31513, - "end": 31522, + "start": 31864, + "end": 31873, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 37 }, "end": { - "line": 1037, + "line": 1047, "column": 46 }, "identifierName": "Constants" @@ -62135,15 +62671,15 @@ }, "property": { "type": "Identifier", - "start": 31523, - "end": 31532, + "start": 31874, + "end": 31883, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 47 }, "end": { - "line": 1037, + "line": 1047, "column": 56 }, "identifierName": "Languages" @@ -62156,15 +62692,15 @@ }, "property": { "type": "Identifier", - "start": 31534, - "end": 31542, + "start": 31885, + "end": 31893, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 58 }, "end": { - "line": 1037, + "line": 1047, "column": 66 }, "identifierName": "includes" @@ -62176,15 +62712,15 @@ "arguments": [ { "type": "Identifier", - "start": 31543, - "end": 31547, + "start": 31894, + "end": 31898, "loc": { "start": { - "line": 1037, + "line": 1047, "column": 67 }, "end": { - "line": 1037, + "line": 1047, "column": 71 }, "identifierName": "lang" @@ -62203,44 +62739,44 @@ }, { "type": "VariableDeclaration", - "start": 31554, - "end": 31588, + "start": 31905, + "end": 31939, "loc": { "start": { - "line": 1038, + "line": 1048, "column": 4 }, "end": { - "line": 1038, + "line": 1048, "column": 38 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 31560, - "end": 31587, + "start": 31911, + "end": 31938, "loc": { "start": { - "line": 1038, + "line": 1048, "column": 10 }, "end": { - "line": 1038, + "line": 1048, "column": 37 } }, "id": { "type": "Identifier", - "start": 31560, - "end": 31568, + "start": 31911, + "end": 31919, "loc": { "start": { - "line": 1038, + "line": 1048, "column": 10 }, "end": { - "line": 1038, + "line": 1048, "column": 18 }, "identifierName": "armenian" @@ -62249,29 +62785,29 @@ }, "init": { "type": "BinaryExpression", - "start": 31571, - "end": 31587, + "start": 31922, + "end": 31938, "loc": { "start": { - "line": 1038, + "line": 1048, "column": 21 }, "end": { - "line": 1038, + "line": 1048, "column": 37 } }, "left": { "type": "Identifier", - "start": 31571, - "end": 31575, + "start": 31922, + "end": 31926, "loc": { "start": { - "line": 1038, + "line": 1048, "column": 21 }, "end": { - "line": 1038, + "line": 1048, "column": 25 }, "identifierName": "lang" @@ -62281,15 +62817,15 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 31580, - "end": 31587, + "start": 31931, + "end": 31938, "loc": { "start": { - "line": 1038, + "line": 1048, "column": 30 }, "end": { - "line": 1038, + "line": 1048, "column": 37 } }, @@ -62306,44 +62842,44 @@ }, { "type": "VariableDeclaration", - "start": 31593, - "end": 31694, + "start": 31944, + "end": 32045, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 4 }, "end": { - "line": 1039, + "line": 1049, "column": 105 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 31599, - "end": 31693, + "start": 31950, + "end": 32044, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 10 }, "end": { - "line": 1039, + "line": 1049, "column": 104 } }, "id": { "type": "Identifier", - "start": 31599, - "end": 31609, + "start": 31950, + "end": 31960, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 10 }, "end": { - "line": 1039, + "line": 1049, "column": 20 }, "identifierName": "fontFamily" @@ -62352,43 +62888,43 @@ }, "init": { "type": "ConditionalExpression", - "start": 31612, - "end": 31693, + "start": 31963, + "end": 32044, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 23 }, "end": { - "line": 1039, + "line": 1049, "column": 104 } }, "test": { "type": "LogicalExpression", - "start": 31612, - "end": 31635, + "start": 31963, + "end": 31986, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 23 }, "end": { - "line": 1039, + "line": 1049, "column": 46 } }, "left": { "type": "Identifier", - "start": 31612, - "end": 31623, + "start": 31963, + "end": 31974, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 23 }, "end": { - "line": 1039, + "line": 1049, "column": 34 }, "identifierName": "defaultLang" @@ -62398,15 +62934,15 @@ "operator": "||", "right": { "type": "Identifier", - "start": 31627, - "end": 31635, + "start": 31978, + "end": 31986, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 38 }, "end": { - "line": 1039, + "line": 1049, "column": 46 }, "identifierName": "armenian" @@ -62416,43 +62952,43 @@ }, "consequent": { "type": "MemberExpression", - "start": 31638, - "end": 31665, + "start": 31989, + "end": 32016, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 49 }, "end": { - "line": 1039, + "line": 1049, "column": 76 } }, "object": { "type": "MemberExpression", - "start": 31638, - "end": 31657, + "start": 31989, + "end": 32008, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 49 }, "end": { - "line": 1039, + "line": 1049, "column": 68 } }, "object": { "type": "Identifier", - "start": 31638, - "end": 31647, + "start": 31989, + "end": 31998, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 49 }, "end": { - "line": 1039, + "line": 1049, "column": 58 }, "identifierName": "Constants" @@ -62461,15 +62997,15 @@ }, "property": { "type": "Identifier", - "start": 31648, - "end": 31657, + "start": 31999, + "end": 32008, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 59 }, "end": { - "line": 1039, + "line": 1049, "column": 68 }, "identifierName": "Languages" @@ -62480,15 +63016,15 @@ }, "property": { "type": "Identifier", - "start": 31658, - "end": 31665, + "start": 32009, + "end": 32016, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 69 }, "end": { - "line": 1039, + "line": 1049, "column": 76 }, "identifierName": "default" @@ -62499,43 +63035,43 @@ }, "alternate": { "type": "MemberExpression", - "start": 31668, - "end": 31693, + "start": 32019, + "end": 32044, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 79 }, "end": { - "line": 1039, + "line": 1049, "column": 104 } }, "object": { "type": "MemberExpression", - "start": 31668, - "end": 31687, + "start": 32019, + "end": 32038, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 79 }, "end": { - "line": 1039, + "line": 1049, "column": 98 } }, "object": { "type": "Identifier", - "start": 31668, - "end": 31677, + "start": 32019, + "end": 32028, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 79 }, "end": { - "line": 1039, + "line": 1049, "column": 88 }, "identifierName": "Constants" @@ -62544,15 +63080,15 @@ }, "property": { "type": "Identifier", - "start": 31678, - "end": 31687, + "start": 32029, + "end": 32038, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 89 }, "end": { - "line": 1039, + "line": 1049, "column": 98 }, "identifierName": "Languages" @@ -62563,15 +63099,15 @@ }, "property": { "type": "Identifier", - "start": 31688, - "end": 31692, + "start": 32039, + "end": 32043, "loc": { "start": { - "line": 1039, + "line": 1049, "column": 99 }, "end": { - "line": 1039, + "line": 1049, "column": 103 }, "identifierName": "lang" @@ -62587,44 +63123,44 @@ }, { "type": "VariableDeclaration", - "start": 31699, - "end": 31758, + "start": 32050, + "end": 32109, "loc": { "start": { - "line": 1040, + "line": 1050, "column": 4 }, "end": { - "line": 1040, + "line": 1050, "column": 63 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 31705, - "end": 31757, + "start": 32056, + "end": 32108, "loc": { "start": { - "line": 1040, + "line": 1050, "column": 10 }, "end": { - "line": 1040, + "line": 1050, "column": 62 } }, "id": { "type": "Identifier", - "start": 31705, - "end": 31715, + "start": 32056, + "end": 32066, "loc": { "start": { - "line": 1040, + "line": 1050, "column": 10 }, "end": { - "line": 1040, + "line": 1050, "column": 20 }, "identifierName": "lineHeight" @@ -62633,43 +63169,43 @@ }, "init": { "type": "ConditionalExpression", - "start": 31718, - "end": 31757, + "start": 32069, + "end": 32108, "loc": { "start": { - "line": 1040, + "line": 1050, "column": 23 }, "end": { - "line": 1040, + "line": 1050, "column": 62 } }, "test": { "type": "LogicalExpression", - "start": 31718, - "end": 31741, + "start": 32069, + "end": 32092, "loc": { "start": { - "line": 1040, + "line": 1050, "column": 23 }, "end": { - "line": 1040, + "line": 1050, "column": 46 } }, "left": { "type": "Identifier", - "start": 31718, - "end": 31729, + "start": 32069, + "end": 32080, "loc": { "start": { - "line": 1040, + "line": 1050, "column": 23 }, "end": { - "line": 1040, + "line": 1050, "column": 34 }, "identifierName": "defaultLang" @@ -62679,15 +63215,15 @@ "operator": "||", "right": { "type": "Identifier", - "start": 31733, - "end": 31741, + "start": 32084, + "end": 32092, "loc": { "start": { - "line": 1040, + "line": 1050, "column": 38 }, "end": { - "line": 1040, + "line": 1050, "column": 46 }, "identifierName": "armenian" @@ -62697,15 +63233,15 @@ }, "consequent": { "type": "StringLiteral", - "start": 31744, - "end": 31749, + "start": 32095, + "end": 32100, "loc": { "start": { - "line": 1040, + "line": 1050, "column": 49 }, "end": { - "line": 1040, + "line": 1050, "column": 54 } }, @@ -62717,15 +63253,15 @@ }, "alternate": { "type": "StringLiteral", - "start": 31752, - "end": 31757, + "start": 32103, + "end": 32108, "loc": { "start": { - "line": 1040, + "line": 1050, "column": 57 }, "end": { - "line": 1040, + "line": 1050, "column": 62 } }, @@ -62742,73 +63278,73 @@ }, { "type": "ExpressionStatement", - "start": 31763, - "end": 31878, + "start": 32114, + "end": 32229, "loc": { "start": { - "line": 1041, + "line": 1051, "column": 4 }, "end": { - "line": 1046, + "line": 1056, "column": 6 } }, "expression": { "type": "AssignmentExpression", - "start": 31763, - "end": 31877, + "start": 32114, + "end": 32228, "loc": { "start": { - "line": 1041, + "line": 1051, "column": 4 }, "end": { - "line": 1046, + "line": 1056, "column": 5 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 31763, - "end": 31773, + "start": 32114, + "end": 32124, "loc": { "start": { - "line": 1041, + "line": 1051, "column": 4 }, "end": { - "line": 1041, + "line": 1051, "column": 14 } }, "object": { "type": "ThisExpression", - "start": 31763, - "end": 31767, + "start": 32114, + "end": 32118, "loc": { "start": { - "line": 1041, + "line": 1051, "column": 4 }, "end": { - "line": 1041, + "line": 1051, "column": 8 } } }, "property": { "type": "Identifier", - "start": 31768, - "end": 31773, + "start": 32119, + "end": 32124, "loc": { "start": { - "line": 1041, + "line": 1051, "column": 9 }, "end": { - "line": 1041, + "line": 1051, "column": 14 }, "identifierName": "theme" @@ -62819,30 +63355,30 @@ }, "right": { "type": "ObjectExpression", - "start": 31776, - "end": 31877, + "start": 32127, + "end": 32228, "loc": { "start": { - "line": 1041, + "line": 1051, "column": 17 }, "end": { - "line": 1046, + "line": 1056, "column": 5 } }, "properties": [ { "type": "ObjectProperty", - "start": 31784, - "end": 31871, + "start": 32135, + "end": 32222, "loc": { "start": { - "line": 1042, + "line": 1052, "column": 6 }, "end": { - "line": 1045, + "line": 1055, "column": 7 } }, @@ -62851,15 +63387,15 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 31784, - "end": 31791, + "start": 32135, + "end": 32142, "loc": { "start": { - "line": 1042, + "line": 1052, "column": 6 }, "end": { - "line": 1042, + "line": 1052, "column": 13 } }, @@ -62871,30 +63407,30 @@ }, "value": { "type": "ObjectExpression", - "start": 31793, - "end": 31871, + "start": 32144, + "end": 32222, "loc": { "start": { - "line": 1042, + "line": 1052, "column": 15 }, "end": { - "line": 1045, + "line": 1055, "column": 7 } }, "properties": [ { "type": "ObjectProperty", - "start": 31803, - "end": 31828, + "start": 32154, + "end": 32179, "loc": { "start": { - "line": 1043, + "line": 1053, "column": 8 }, "end": { - "line": 1043, + "line": 1053, "column": 33 } }, @@ -62903,15 +63439,15 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 31803, - "end": 31816, + "start": 32154, + "end": 32167, "loc": { "start": { - "line": 1043, + "line": 1053, "column": 8 }, "end": { - "line": 1043, + "line": 1053, "column": 21 } }, @@ -62923,15 +63459,15 @@ }, "value": { "type": "Identifier", - "start": 31818, - "end": 31828, + "start": 32169, + "end": 32179, "loc": { "start": { - "line": 1043, + "line": 1053, "column": 23 }, "end": { - "line": 1043, + "line": 1053, "column": 33 }, "identifierName": "fontFamily" @@ -62941,15 +63477,15 @@ }, { "type": "ObjectProperty", - "start": 31838, - "end": 31863, + "start": 32189, + "end": 32214, "loc": { "start": { - "line": 1044, + "line": 1054, "column": 8 }, "end": { - "line": 1044, + "line": 1054, "column": 33 } }, @@ -62958,15 +63494,15 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 31838, - "end": 31851, + "start": 32189, + "end": 32202, "loc": { "start": { - "line": 1044, + "line": 1054, "column": 8 }, "end": { - "line": 1044, + "line": 1054, "column": 21 } }, @@ -62978,15 +63514,15 @@ }, "value": { "type": "Identifier", - "start": 31853, - "end": 31863, + "start": 32204, + "end": 32214, "loc": { "start": { - "line": 1044, + "line": 1054, "column": 23 }, "end": { - "line": 1044, + "line": 1054, "column": 33 }, "identifierName": "lineHeight" @@ -63009,15 +63545,15 @@ { "type": "CommentBlock", "value": "*\n * Set the theme (font family, font size and line height) depending on the language\n * @param lang\n ", - "start": 31337, - "end": 31449, + "start": 31688, + "end": 31800, "loc": { "start": { - "line": 1032, + "line": 1042, "column": 2 }, "end": { - "line": 1035, + "line": 1045, "column": 5 } } @@ -63026,32 +63562,716 @@ "trailingComments": [ { "type": "CommentBlock", - "value": " eslint-disable class-methods-use-this ", - "start": 31886, - "end": 31929, + "value": "*\n * Detach event listeners from the DOM element created at editor creation.\n ", + "start": 32237, + "end": 32323, "loc": { "start": { - "line": 1049, + "line": 1059, "column": 2 }, "end": { - "line": 1049, - "column": 45 + "line": 1061, + "column": 5 } } + } + ] + }, + { + "type": "ClassMethod", + "start": 32326, + "end": 32609, + "loc": { + "start": { + "line": 1062, + "column": 2 + }, + "end": { + "line": 1069, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 32326, + "end": 32332, + "loc": { + "start": { + "line": 1062, + "column": 2 + }, + "end": { + "line": 1062, + "column": 8 + }, + "identifierName": "unload" + }, + "name": "unload", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 32335, + "end": 32609, + "loc": { + "start": { + "line": 1062, + "column": 11 + }, + "end": { + "line": 1069, + "column": 3 + } }, + "body": [ + { + "type": "IfStatement", + "start": 32341, + "end": 32497, + "loc": { + "start": { + "line": 1063, + "column": 4 + }, + "end": { + "line": 1065, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 32345, + "end": 32357, + "loc": { + "start": { + "line": 1063, + "column": 8 + }, + "end": { + "line": 1063, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 32345, + "end": 32349, + "loc": { + "start": { + "line": 1063, + "column": 8 + }, + "end": { + "line": 1063, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 32350, + "end": 32357, + "loc": { + "start": { + "line": 1063, + "column": 13 + }, + "end": { + "line": 1063, + "column": 20 + }, + "identifierName": "grabber" + }, + "name": "grabber" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 32359, + "end": 32497, + "loc": { + "start": { + "line": 1063, + "column": 22 + }, + "end": { + "line": 1065, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 32433, + "end": 32491, + "loc": { + "start": { + "line": 1064, + "column": 6 + }, + "end": { + "line": 1064, + "column": 64 + } + }, + "expression": { + "type": "CallExpression", + "start": 32433, + "end": 32490, + "loc": { + "start": { + "line": 1064, + "column": 6 + }, + "end": { + "line": 1064, + "column": 63 + } + }, + "callee": { + "type": "MemberExpression", + "start": 32433, + "end": 32452, + "loc": { + "start": { + "line": 1064, + "column": 6 + }, + "end": { + "line": 1064, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 32433, + "end": 32445, + "loc": { + "start": { + "line": 1064, + "column": 6 + }, + "end": { + "line": 1064, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 32433, + "end": 32437, + "loc": { + "start": { + "line": 1064, + "column": 6 + }, + "end": { + "line": 1064, + "column": 10 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 32438, + "end": 32445, + "loc": { + "start": { + "line": 1064, + "column": 11 + }, + "end": { + "line": 1064, + "column": 18 + }, + "identifierName": "grabber" + }, + "name": "grabber" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 32446, + "end": 32452, + "loc": { + "start": { + "line": 1064, + "column": 19 + }, + "end": { + "line": 1064, + "column": 25 + }, + "identifierName": "detach" + }, + "name": "detach" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 32453, + "end": 32468, + "loc": { + "start": { + "line": 1064, + "column": 26 + }, + "end": { + "line": 1064, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 32453, + "end": 32457, + "loc": { + "start": { + "line": 1064, + "column": 26 + }, + "end": { + "line": 1064, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "start": 32458, + "end": 32468, + "loc": { + "start": { + "line": 1064, + "column": 31 + }, + "end": { + "line": 1064, + "column": 41 + }, + "identifierName": "domElement" + }, + "name": "domElement" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 32470, + "end": 32489, + "loc": { + "start": { + "line": 1064, + "column": 43 + }, + "end": { + "line": 1064, + "column": 62 + } + }, + "object": { + "type": "ThisExpression", + "start": 32470, + "end": 32474, + "loc": { + "start": { + "line": 1064, + "column": 43 + }, + "end": { + "line": 1064, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "start": 32475, + "end": 32489, + "loc": { + "start": { + "line": 1064, + "column": 48 + }, + "end": { + "line": 1064, + "column": 62 + }, + "identifierName": "grabberContext" + }, + "name": "grabberContext" + }, + "computed": false + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Remove event handlers to avoid multiplication (detach grabber)", + "start": 32361, + "end": 32426, + "loc": { + "start": { + "line": 1063, + "column": 24 + }, + "end": { + "line": 1063, + "column": 89 + } + } + } + ] + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 32502, + "end": 32605, + "loc": { + "start": { + "line": 1066, + "column": 4 + }, + "end": { + "line": 1068, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 32506, + "end": 32524, + "loc": { + "start": { + "line": 1066, + "column": 8 + }, + "end": { + "line": 1066, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 32506, + "end": 32510, + "loc": { + "start": { + "line": 1066, + "column": 8 + }, + "end": { + "line": 1066, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 32511, + "end": 32524, + "loc": { + "start": { + "line": 1066, + "column": 13 + }, + "end": { + "line": 1066, + "column": 26 + }, + "identifierName": "innerRenderer" + }, + "name": "innerRenderer" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 32526, + "end": 32605, + "loc": { + "start": { + "line": 1066, + "column": 28 + }, + "end": { + "line": 1068, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 32534, + "end": 32599, + "loc": { + "start": { + "line": 1067, + "column": 6 + }, + "end": { + "line": 1067, + "column": 71 + } + }, + "expression": { + "type": "CallExpression", + "start": 32534, + "end": 32598, + "loc": { + "start": { + "line": 1067, + "column": 6 + }, + "end": { + "line": 1067, + "column": 70 + } + }, + "callee": { + "type": "MemberExpression", + "start": 32534, + "end": 32559, + "loc": { + "start": { + "line": 1067, + "column": 6 + }, + "end": { + "line": 1067, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 32534, + "end": 32552, + "loc": { + "start": { + "line": 1067, + "column": 6 + }, + "end": { + "line": 1067, + "column": 24 + } + }, + "object": { + "type": "ThisExpression", + "start": 32534, + "end": 32538, + "loc": { + "start": { + "line": 1067, + "column": 6 + }, + "end": { + "line": 1067, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 32539, + "end": 32552, + "loc": { + "start": { + "line": 1067, + "column": 11 + }, + "end": { + "line": 1067, + "column": 24 + }, + "identifierName": "innerRenderer" + }, + "name": "innerRenderer" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 32553, + "end": 32559, + "loc": { + "start": { + "line": 1067, + "column": 25 + }, + "end": { + "line": 1067, + "column": 31 + }, + "identifierName": "detach" + }, + "name": "detach" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 32560, + "end": 32575, + "loc": { + "start": { + "line": 1067, + "column": 32 + }, + "end": { + "line": 1067, + "column": 47 + } + }, + "object": { + "type": "ThisExpression", + "start": 32560, + "end": 32564, + "loc": { + "start": { + "line": 1067, + "column": 32 + }, + "end": { + "line": 1067, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 32565, + "end": 32575, + "loc": { + "start": { + "line": 1067, + "column": 37 + }, + "end": { + "line": 1067, + "column": 47 + }, + "identifierName": "domElement" + }, + "name": "domElement" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 32577, + "end": 32597, + "loc": { + "start": { + "line": 1067, + "column": 49 + }, + "end": { + "line": 1067, + "column": 69 + } + }, + "object": { + "type": "ThisExpression", + "start": 32577, + "end": 32581, + "loc": { + "start": { + "line": 1067, + "column": 49 + }, + "end": { + "line": 1067, + "column": 53 + } + } + }, + "property": { + "type": "Identifier", + "start": 32582, + "end": 32597, + "loc": { + "start": { + "line": 1067, + "column": 54 + }, + "end": { + "line": 1067, + "column": 69 + }, + "identifierName": "rendererContext" + }, + "name": "rendererContext" + }, + "computed": false + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ { "type": "CommentBlock", - "value": "*\n * Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice).\n * @returns {{inkImporter: inkImporter}}\n ", - "start": 31932, - "end": 32118, + "value": "*\n * Detach event listeners from the DOM element created at editor creation.\n ", + "start": 32237, + "end": 32323, "loc": { "start": { - "line": 1050, + "line": 1059, "column": 2 }, "end": { - "line": 1053, + "line": 1061, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Trigger the change callbacks (and by default send a change event).\n ", + "start": 32613, + "end": 32694, + "loc": { + "start": { + "line": 1071, + "column": 2 + }, + "end": { + "line": 1073, "column": 5 } } @@ -63060,15 +64280,15 @@ }, { "type": "ClassMethod", - "start": 32121, - "end": 32171, + "start": 32697, + "end": 32784, "loc": { "start": { - "line": 1054, + "line": 1074, "column": 2 }, "end": { - "line": 1056, + "line": 1076, "column": 3 } }, @@ -63076,22 +64296,23 @@ "computed": false, "key": { "type": "Identifier", - "start": 32125, - "end": 32135, + "start": 32697, + "end": 32708, "loc": { "start": { - "line": 1054, - "column": 6 + "line": 1074, + "column": 2 }, "end": { - "line": 1054, - "column": 16 + "line": 1074, + "column": 13 }, - "identifierName": "eastereggs" + "identifierName": "forceChange" }, - "name": "eastereggs" + "name": "forceChange", + "leadingComments": null }, - "kind": "get", + "kind": "method", "id": null, "generator": false, "expression": false, @@ -63099,102 +64320,179 @@ "params": [], "body": { "type": "BlockStatement", - "start": 32138, - "end": 32171, + "start": 32711, + "end": 32784, "loc": { "start": { - "line": 1054, - "column": 19 + "line": 1074, + "column": 16 }, "end": { - "line": 1056, + "line": 1076, "column": 3 } }, "body": [ { - "type": "ReturnStatement", - "start": 32144, - "end": 32167, + "type": "ExpressionStatement", + "start": 32717, + "end": 32780, "loc": { "start": { - "line": 1055, + "line": 1075, "column": 4 }, "end": { - "line": 1055, - "column": 27 + "line": 1075, + "column": 67 } }, - "argument": { - "type": "ObjectExpression", - "start": 32151, - "end": 32166, + "expression": { + "type": "CallExpression", + "start": 32717, + "end": 32779, "loc": { "start": { - "line": 1055, - "column": 11 + "line": 1075, + "column": 4 }, "end": { - "line": 1055, - "column": 26 + "line": 1075, + "column": 66 } }, - "properties": [ + "callee": { + "type": "Identifier", + "start": 32717, + "end": 32733, + "loc": { + "start": { + "line": 1075, + "column": 4 + }, + "end": { + "line": 1075, + "column": 20 + }, + "identifierName": "triggerCallbacks" + }, + "name": "triggerCallbacks" + }, + "arguments": [ { - "type": "ObjectProperty", - "start": 32153, - "end": 32164, + "type": "ThisExpression", + "start": 32734, + "end": 32738, "loc": { "start": { - "line": 1055, - "column": 13 + "line": 1075, + "column": 21 }, "end": { - "line": 1055, - "column": 24 + "line": 1075, + "column": 25 } + } + }, + { + "type": "Identifier", + "start": 32740, + "end": 32749, + "loc": { + "start": { + "line": 1075, + "column": 27 + }, + "end": { + "line": 1075, + "column": 36 + }, + "identifierName": "undefined" }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 32153, - "end": 32164, + "name": "undefined" + }, + { + "type": "MemberExpression", + "start": 32751, + "end": 32778, + "loc": { + "start": { + "line": 1075, + "column": 38 + }, + "end": { + "line": 1075, + "column": 65 + } + }, + "object": { + "type": "MemberExpression", + "start": 32751, + "end": 32770, "loc": { "start": { - "line": 1055, - "column": 13 + "line": 1075, + "column": 38 }, "end": { - "line": 1055, - "column": 24 + "line": 1075, + "column": 57 + } + }, + "object": { + "type": "Identifier", + "start": 32751, + "end": 32760, + "loc": { + "start": { + "line": 1075, + "column": 38 + }, + "end": { + "line": 1075, + "column": 47 + }, + "identifierName": "Constants" }, - "identifierName": "inkImporter" + "name": "Constants" + }, + "property": { + "type": "Identifier", + "start": 32761, + "end": 32770, + "loc": { + "start": { + "line": 1075, + "column": 48 + }, + "end": { + "line": 1075, + "column": 57 + }, + "identifierName": "EventType" + }, + "name": "EventType" }, - "name": "inkImporter" + "computed": false }, - "value": { + "property": { "type": "Identifier", - "start": 32153, - "end": 32164, + "start": 32771, + "end": 32778, "loc": { "start": { - "line": 1055, - "column": 13 + "line": 1075, + "column": 58 }, "end": { - "line": 1055, - "column": 24 + "line": 1075, + "column": 65 }, - "identifierName": "inkImporter" + "identifierName": "CHANGED" }, - "name": "inkImporter" + "name": "CHANGED" }, - "extra": { - "shorthand": true - } + "computed": false } ] } @@ -63204,34 +64502,177 @@ "trailingComments": null }, "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Trigger the change callbacks (and by default send a change event).\n ", + "start": 32613, + "end": 32694, + "loc": { + "start": { + "line": 1071, + "column": 2 + }, + "end": { + "line": 1073, + "column": 5 + } + } + } + ], + "trailingComments": [ { "type": "CommentBlock", "value": " eslint-disable class-methods-use-this ", - "start": 31886, - "end": 31929, + "start": 32788, + "end": 32831, "loc": { "start": { - "line": 1049, + "line": 1078, "column": 2 }, "end": { - "line": 1049, + "line": 1078, "column": 45 } } }, { "type": "CommentBlock", - "value": "*\n * Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice).\n * @returns {{inkImporter: inkImporter}}\n ", - "start": 31932, - "end": 32118, + "value": "*\n * Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice).\n ", + "start": 32834, + "end": 32977, "loc": { "start": { - "line": 1050, + "line": 1079, "column": 2 }, "end": { - "line": 1053, + "line": 1081, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 32980, + "end": 33025, + "loc": { + "start": { + "line": 1082, + "column": 2 + }, + "end": { + "line": 1084, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 32984, + "end": 32994, + "loc": { + "start": { + "line": 1082, + "column": 6 + }, + "end": { + "line": 1082, + "column": 16 + }, + "identifierName": "eastereggs" + }, + "name": "eastereggs" + }, + "kind": "get", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 32997, + "end": 33025, + "loc": { + "start": { + "line": 1082, + "column": 19 + }, + "end": { + "line": 1084, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 33003, + "end": 33021, + "loc": { + "start": { + "line": 1083, + "column": 4 + }, + "end": { + "line": 1083, + "column": 22 + } + }, + "argument": { + "type": "Identifier", + "start": 33010, + "end": 33020, + "loc": { + "start": { + "line": 1083, + "column": 11 + }, + "end": { + "line": 1083, + "column": 21 + }, + "identifierName": "eastereggs" + }, + "name": "eastereggs" + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": " eslint-disable class-methods-use-this ", + "start": 32788, + "end": 32831, + "loc": { + "start": { + "line": 1078, + "column": 2 + }, + "end": { + "line": 1078, + "column": 45 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice).\n ", + "start": 32834, + "end": 32977, + "loc": { + "start": { + "line": 1079, + "column": 2 + }, + "end": { + "line": 1081, "column": 5 } } @@ -63241,15 +64682,15 @@ { "type": "CommentBlock", "value": " eslint-enable class-methods-use-this ", - "start": 32174, - "end": 32216, + "start": 33028, + "end": 33070, "loc": { "start": { - "line": 1057, + "line": 1085, "column": 2 }, "end": { - "line": 1057, + "line": 1085, "column": 44 } } @@ -63262,15 +64703,15 @@ { "type": "CommentBlock", "value": "*\n * Editor\n ", - "start": 15232, - "end": 15249, + "start": 15506, + "end": 15523, "loc": { "start": { - "line": 423, + "line": 428, "column": 0 }, "end": { - "line": 425, + "line": 430, "column": 3 } } @@ -63282,15 +64723,15 @@ { "type": "CommentBlock", "value": "*\n * Editor\n ", - "start": 15232, - "end": 15249, + "start": 15506, + "end": 15523, "loc": { "start": { - "line": 423, + "line": 428, "column": 0 }, "end": { - "line": 425, + "line": 430, "column": 3 } } @@ -63525,18 +64966,66 @@ } } }, + { + "type": "CommentLine", + "value": " IInk error managment before refactor", + "start": 6995, + "end": 7034, + "loc": { + "start": { + "line": 179, + "column": 8 + }, + "end": { + "line": 179, + "column": 47 + } + } + }, + { + "type": "CommentLine", + "value": " CDK error managment", + "start": 7135, + "end": 7157, + "loc": { + "start": { + "line": 181, + "column": 8 + }, + "end": { + "line": 181, + "column": 30 + } + } + }, + { + "type": "CommentLine", + "value": " IInk error managment after refactor", + "start": 7392, + "end": 7430, + "loc": { + "start": { + "line": 186, + "column": 8 + }, + "end": { + "line": 186, + "column": 46 + } + } + }, { "type": "CommentLine", "value": " Remove duplicate events", - "start": 8244, - "end": 8270, + "start": 8518, + "end": 8544, "loc": { "start": { - "line": 198, + "line": 203, "column": 113 }, "end": { - "line": 198, + "line": 203, "column": 139 } } @@ -63544,15 +65033,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [trigger]\n ", - "start": 8523, - "end": 8685, + "start": 8797, + "end": 8959, "loc": { "start": { - "line": 210, + "line": 215, "column": 0 }, "end": { - "line": 215, + "line": 220, "column": 3 } } @@ -63560,15 +65049,15 @@ { "type": "CommentLine", "value": " Firing addStrokes only if recognizer is configure to do it", - "start": 8903, - "end": 8964, + "start": 9177, + "end": 9238, "loc": { "start": { - "line": 220, + "line": 225, "column": 8 }, "end": { - "line": 220, + "line": 225, "column": 69 } } @@ -63576,15 +65065,15 @@ { "type": "CommentBlock", "value": "*\n * Launch smartguide.\n * @param {Editor} editor\n * @param {Object} exports\n ", - "start": 9268, - "end": 9350, + "start": 9542, + "end": 9624, "loc": { "start": { - "line": 230, + "line": 235, "column": 0 }, "end": { - "line": 234, + "line": 239, "column": 3 } } @@ -63592,15 +65081,15 @@ { "type": "CommentBlock", "value": "*\n * Launch ink import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {PointerEvents} events\n ", - "start": 9509, - "end": 9621, + "start": 9783, + "end": 9895, "loc": { "start": { - "line": 240, + "line": 245, "column": 0 }, "end": { - "line": 245, + "line": 250, "column": 3 } } @@ -63608,15 +65097,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [requestedMimeTypes]\n * @param {String} [trigger]\n ", - "start": 9993, - "end": 10195, + "start": 10267, + "end": 10469, "loc": { "start": { - "line": 257, + "line": 262, "column": 0 }, "end": { - "line": 263, + "line": 268, "column": 3 } } @@ -63624,15 +65113,15 @@ { "type": "CommentLine", "value": " Firing export only if recognizer is configure to do it", - "start": 10435, - "end": 10492, + "start": 10709, + "end": 10766, "loc": { "start": { - "line": 268, + "line": 273, "column": 8 }, "end": { - "line": 268, + "line": 273, "column": 65 } } @@ -63640,15 +65129,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {Blob} data\n ", - "start": 11067, - "end": 11168, + "start": 11341, + "end": 11442, "loc": { "start": { - "line": 282, + "line": 287, "column": 0 }, "end": { - "line": 287, + "line": 292, "column": 3 } } @@ -63656,15 +65145,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the convert with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} conversionState\n ", - "start": 11914, - "end": 12078, + "start": 12188, + "end": 12352, "loc": { "start": { - "line": 310, + "line": 315, "column": 0 }, "end": { - "line": 315, + "line": 320, "column": 3 } } @@ -63672,15 +65161,15 @@ { "type": "CommentBlock", "value": "*\n * Launch the resize.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 12806, - "end": 12885, + "start": 13080, + "end": 13159, "loc": { "start": { - "line": 338, + "line": 343, "column": 0 }, "end": { - "line": 342, + "line": 347, "column": 3 } } @@ -63688,15 +65177,15 @@ { "type": "CommentBlock", "value": "*\n * Launch wait for idle\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 13481, - "end": 13562, + "start": 13755, + "end": 13836, "loc": { "start": { - "line": 359, + "line": 364, "column": 0 }, "end": { - "line": 363, + "line": 368, "column": 3 } } @@ -63704,15 +65193,15 @@ { "type": "CommentBlock", "value": "*\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 13912, - "end": 13987, + "start": 14186, + "end": 14261, "loc": { "start": { - "line": 375, + "line": 380, "column": 0 }, "end": { - "line": 379, + "line": 384, "column": 3 } } @@ -63720,15 +65209,15 @@ { "type": "CommentBlock", "value": "*\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 14348, - "end": 14423, + "start": 14622, + "end": 14697, "loc": { "start": { - "line": 391, + "line": 396, "column": 0 }, "end": { - "line": 395, + "line": 400, "column": 3 } } @@ -63736,15 +65225,15 @@ { "type": "CommentBlock", "value": "*\n * Set theme.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 14812, - "end": 14883, + "start": 15086, + "end": 15157, "loc": { "start": { - "line": 407, + "line": 412, "column": 0 }, "end": { - "line": 411, + "line": 416, "column": 3 } } @@ -63752,15 +65241,15 @@ { "type": "CommentBlock", "value": "*\n * Editor\n ", - "start": 15232, - "end": 15249, + "start": 15506, + "end": 15523, "loc": { "start": { - "line": 423, + "line": 428, "column": 0 }, "end": { - "line": 425, + "line": 430, "column": 3 } } @@ -63768,15 +65257,15 @@ { "type": "CommentBlock", "value": "*\n * @param {Element} element DOM element to attach this editor\n * @param {Configuration} [configuration] Configuration to apply\n * @param {Theme} [theme] Custom theme to apply\n * @param {PenStyle} [penStyle] Custom style to apply\n * @param {Behaviors} [behaviors] Custom behaviors to apply\n ", - "start": 15274, - "end": 15582, + "start": 15548, + "end": 15856, "loc": { "start": { - "line": 427, + "line": 432, "column": 2 }, "end": { - "line": 433, + "line": 438, "column": 5 } } @@ -63784,15 +65273,15 @@ { "type": "CommentBlock", "value": "*\n * Inner reference to the DOM Element\n * @type {Element}\n ", - "start": 15655, - "end": 15731, + "start": 15929, + "end": 16005, "loc": { "start": { - "line": 435, + "line": 440, "column": 4 }, "end": { - "line": 438, + "line": 443, "column": 7 } } @@ -63800,15 +65289,15 @@ { "type": "CommentLine", "value": " eslint-disable-next-line no-undef", - "start": 15816, - "end": 15852, + "start": 16090, + "end": 16126, "loc": { "start": { - "line": 442, + "line": 447, "column": 4 }, "end": { - "line": 442, + "line": 447, "column": 40 } } @@ -63816,15 +65305,15 @@ { "type": "CommentLine", "value": " eslint-disable-next-line no-undef", - "start": 16008, - "end": 16044, + "start": 16282, + "end": 16318, "loc": { "start": { - "line": 447, + "line": 452, "column": 4 }, "end": { - "line": 447, + "line": 452, "column": 40 } } @@ -63832,15 +65321,15 @@ { "type": "CommentBlock", "value": "*\n * Launch export timer\n * @type {Number}\n ", - "start": 16199, - "end": 16259, + "start": 16473, + "end": 16533, "loc": { "start": { - "line": 452, + "line": 457, "column": 4 }, "end": { - "line": 455, + "line": 460, "column": 7 } } @@ -63848,15 +65337,15 @@ { "type": "CommentBlock", "value": "*\n * Launch resize timer\n * @type {Number}\n ", - "start": 16299, - "end": 16359, + "start": 16573, + "end": 16633, "loc": { "start": { - "line": 458, + "line": 463, "column": 4 }, "end": { - "line": 461, + "line": 466, "column": 7 } } @@ -63864,15 +65353,15 @@ { "type": "CommentBlock", "value": "*\n * Notify delay timer\n * @type {Number}\n ", - "start": 16399, - "end": 16458, + "start": 16673, + "end": 16732, "loc": { "start": { - "line": 464, + "line": 469, "column": 4 }, "end": { - "line": 467, + "line": 472, "column": 7 } } @@ -63880,15 +65369,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Behaviors}\n ", - "start": 16499, - "end": 16551, + "start": 16773, + "end": 16825, "loc": { "start": { - "line": 471, + "line": 476, "column": 4 }, "end": { - "line": 474, + "line": 479, "column": 7 } } @@ -63896,15 +65385,15 @@ { "type": "CommentBlock", "value": "*\n * Pen color used only for pending stroke\n * @type {string}\n ", - "start": 16734, - "end": 16813, + "start": 17008, + "end": 17087, "loc": { "start": { - "line": 479, + "line": 484, "column": 4 }, "end": { - "line": 482, + "line": 487, "column": 7 } } @@ -63912,15 +65401,15 @@ { "type": "CommentBlock", "value": "*\n * Set the recognition parameters\n * WARNING : Need to fire a clear if user have already input some strokes.\n * @param {Configuration} configuration\n ", - "start": 16969, - "end": 17133, + "start": 17243, + "end": 17407, "loc": { "start": { - "line": 492, + "line": 497, "column": 2 }, "end": { - "line": 496, + "line": 501, "column": 5 } } @@ -63928,15 +65417,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Configuration}\n ", - "start": 17257, - "end": 17313, + "start": 17531, + "end": 17587, "loc": { "start": { - "line": 500, + "line": 505, "column": 4 }, "end": { - "line": 503, + "line": 508, "column": 7 } } @@ -63944,15 +65433,15 @@ { "type": "CommentBlock", "value": "*\n * Get the current recognition parameters\n * @return {Configuration}\n ", - "start": 17600, - "end": 17682, + "start": 17874, + "end": 17956, "loc": { "start": { - "line": 509, + "line": 514, "column": 2 }, "end": { - "line": 512, + "line": 517, "column": 5 } } @@ -63960,15 +65449,15 @@ { "type": "CommentBlock", "value": "*\n * Set the pen style\n * @param {PenStyle} penStyle\n ", - "start": 17750, - "end": 17814, + "start": 18024, + "end": 18088, "loc": { "start": { - "line": 517, + "line": 522, "column": 2 }, "end": { - "line": 520, + "line": 525, "column": 5 } } @@ -63976,15 +65465,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {PenStyle}\n ", - "start": 17846, - "end": 17897, + "start": 18120, + "end": 18171, "loc": { "start": { - "line": 522, + "line": 527, "column": 4 }, "end": { - "line": 525, + "line": 530, "column": 7 } } @@ -63992,15 +65481,15 @@ { "type": "CommentBlock", "value": "*\n * Get the pen style\n * @return {PenStyle}\n ", - "start": 18059, - "end": 18115, + "start": 18333, + "end": 18389, "loc": { "start": { - "line": 531, + "line": 536, "column": 2 }, "end": { - "line": 534, + "line": 539, "column": 5 } } @@ -64008,15 +65497,15 @@ { "type": "CommentBlock", "value": "*\n * Set the pen style\n * @param {String} penStyleClasses\n ", - "start": 18173, - "end": 18242, + "start": 18447, + "end": 18516, "loc": { "start": { - "line": 539, + "line": 544, "column": 2 }, "end": { - "line": 542, + "line": 547, "column": 5 } } @@ -64024,15 +65513,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {String}\n ", - "start": 18288, - "end": 18337, + "start": 18562, + "end": 18611, "loc": { "start": { - "line": 544, + "line": 549, "column": 4 }, "end": { - "line": 547, + "line": 552, "column": 7 } } @@ -64040,15 +65529,15 @@ { "type": "CommentBlock", "value": "*\n * Get the pen style\n * @return {String}\n ", - "start": 18506, - "end": 18560, + "start": 18780, + "end": 18834, "loc": { "start": { - "line": 553, + "line": 558, "column": 2 }, "end": { - "line": 556, + "line": 561, "column": 5 } } @@ -64056,15 +65545,15 @@ { "type": "CommentBlock", "value": "*\n * Set the theme\n * @param {Theme} theme\n ", - "start": 18632, - "end": 18686, + "start": 18906, + "end": 18960, "loc": { "start": { - "line": 561, + "line": 566, "column": 2 }, "end": { - "line": 564, + "line": 569, "column": 5 } } @@ -64072,15 +65561,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Theme}\n ", - "start": 18712, - "end": 18760, + "start": 18986, + "end": 19034, "loc": { "start": { - "line": 566, + "line": 571, "column": 4 }, "end": { - "line": 569, + "line": 574, "column": 7 } } @@ -64088,15 +65577,15 @@ { "type": "CommentBlock", "value": "*\n * Get the theme\n * @return {Theme}\n ", - "start": 18864, - "end": 18913, + "start": 19138, + "end": 19187, "loc": { "start": { - "line": 574, + "line": 579, "column": 2 }, "end": { - "line": 577, + "line": 582, "column": 5 } } @@ -64104,15 +65593,15 @@ { "type": "CommentBlock", "value": "*\n * Get behaviors\n * @return {Behaviors}\n ", - "start": 18965, - "end": 19018, + "start": 19239, + "end": 19292, "loc": { "start": { - "line": 582, + "line": 587, "column": 2 }, "end": { - "line": 585, + "line": 590, "column": 5 } } @@ -64120,15 +65609,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @param {Behavior} behavior\n ", - "start": 19078, - "end": 19133, + "start": 19352, + "end": 19407, "loc": { "start": { - "line": 590, + "line": 595, "column": 2 }, "end": { - "line": 593, + "line": 598, "column": 5 } } @@ -64136,15 +65625,15 @@ { "type": "CommentLine", "value": " Remove event handlers to avoid multiplication (detach grabber)", - "start": 19207, - "end": 19272, + "start": 19481, + "end": 19546, "loc": { "start": { - "line": 596, + "line": 601, "column": 26 }, "end": { - "line": 596, + "line": 601, "column": 91 } } @@ -64152,15 +65641,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Behavior}\n ", - "start": 19354, - "end": 19411, + "start": 19628, + "end": 19685, "loc": { "start": { - "line": 599, + "line": 604, "column": 6 }, "end": { - "line": 602, + "line": 607, "column": 9 } } @@ -64168,15 +65657,15 @@ { "type": "CommentBlock", "value": "*\n * Current grabber context\n * @type {GrabberContext}\n ", - "start": 19561, - "end": 19639, + "start": 19835, + "end": 19913, "loc": { "start": { - "line": 606, + "line": 611, "column": 6 }, "end": { - "line": 609, + "line": 614, "column": 9 } } @@ -64184,15 +65673,15 @@ { "type": "CommentBlock", "value": "*\n * Get current behavior\n * @return {Behavior}\n ", - "start": 19725, - "end": 19784, + "start": 19999, + "end": 20058, "loc": { "start": { - "line": 614, + "line": 619, "column": 2 }, "end": { - "line": 617, + "line": 622, "column": 5 } } @@ -64200,15 +65689,15 @@ { "type": "CommentBlock", "value": "*\n * Set the current recognizer\n * @private\n * @param {Recognizer} recognizer\n ", - "start": 19842, - "end": 19933, + "start": 20116, + "end": 20207, "loc": { "start": { - "line": 622, + "line": 627, "column": 2 }, "end": { - "line": 626, + "line": 631, "column": 5 } } @@ -64216,15 +65705,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Recognizer}\n ", - "start": 20138, - "end": 20197, + "start": 20412, + "end": 20471, "loc": { "start": { - "line": 632, + "line": 637, "column": 6 }, "end": { - "line": 635, + "line": 640, "column": 9 } } @@ -64232,15 +65721,15 @@ { "type": "CommentBlock", "value": "*\n * Current recognition context\n * @type {RecognizerContext}\n ", - "start": 20281, - "end": 20372, + "start": 20555, + "end": 20646, "loc": { "start": { - "line": 638, + "line": 643, "column": 8 }, "end": { - "line": 641, + "line": 646, "column": 11 } } @@ -64248,15 +65737,15 @@ { "type": "CommentLine", "value": " FIXME: merge undo/redo manager with default recognizer", - "start": 20468, - "end": 20525, + "start": 20742, + "end": 20799, "loc": { "start": { - "line": 643, + "line": 648, "column": 8 }, "end": { - "line": 643, + "line": 648, "column": 65 } } @@ -64264,15 +65753,15 @@ { "type": "CommentBlock", "value": "*\n * Current model\n * @type {Model}\n ", - "start": 21361, - "end": 21426, + "start": 21635, + "end": 21700, "loc": { "start": { - "line": 665, + "line": 670, "column": 8 }, "end": { - "line": 668, + "line": 673, "column": 11 } } @@ -64280,15 +65769,15 @@ { "type": "CommentLine", "value": " INFO: Recognizer needs model to be initialized", - "start": 21499, - "end": 21548, + "start": 21773, + "end": 21822, "loc": { "start": { - "line": 671, + "line": 676, "column": 8 }, "end": { - "line": 671, + "line": 676, "column": 57 } } @@ -64296,15 +65785,15 @@ { "type": "CommentBlock", "value": "*\n * Get current recognizer\n * @return {Recognizer}\n ", - "start": 21602, - "end": 21665, + "start": 21876, + "end": 21939, "loc": { "start": { - "line": 677, + "line": 682, "column": 2 }, "end": { - "line": 680, + "line": 685, "column": 5 } } @@ -64312,15 +65801,15 @@ { "type": "CommentBlock", "value": "*\n * Set the current renderer\n * @private\n * @param {Renderer} renderer\n ", - "start": 21727, - "end": 21812, + "start": 22001, + "end": 22086, "loc": { "start": { - "line": 685, + "line": 690, "column": 2 }, "end": { - "line": 689, + "line": 694, "column": 5 } } @@ -64328,15 +65817,15 @@ { "type": "CommentBlock", "value": "*\n * @private\n * @type {Renderer}\n ", - "start": 21981, - "end": 22038, + "start": 22255, + "end": 22312, "loc": { "start": { - "line": 696, + "line": 701, "column": 6 }, "end": { - "line": 699, + "line": 704, "column": 9 } } @@ -64344,15 +65833,15 @@ { "type": "CommentBlock", "value": "*\n * Current rendering context\n * @type {Object}\n ", - "start": 22116, - "end": 22194, + "start": 22390, + "end": 22468, "loc": { "start": { - "line": 702, + "line": 707, "column": 8 }, "end": { - "line": 705, + "line": 710, "column": 11 } } @@ -64360,15 +65849,15 @@ { "type": "CommentBlock", "value": "*\n * Get current renderer\n * @return {Renderer}\n ", - "start": 22382, - "end": 22441, + "start": 22656, + "end": 22715, "loc": { "start": { - "line": 711, + "line": 716, "column": 2 }, "end": { - "line": 714, + "line": 719, "column": 5 } } @@ -64376,15 +65865,15 @@ { "type": "CommentBlock", "value": "*\n * Get current grabber\n * @return {Grabber}\n ", - "start": 22499, - "end": 22556, + "start": 22773, + "end": 22830, "loc": { "start": { - "line": 719, + "line": 724, "column": 2 }, "end": { - "line": 722, + "line": 727, "column": 5 } } @@ -64392,15 +65881,15 @@ { "type": "CommentBlock", "value": "*\n * Get current stroker\n * @return {Stroker}\n ", - "start": 22644, - "end": 22701, + "start": 22918, + "end": 22975, "loc": { "start": { - "line": 727, + "line": 732, "column": 2 }, "end": { - "line": 730, + "line": 735, "column": 5 } } @@ -64408,15 +65897,15 @@ { "type": "CommentBlock", "value": "*\n * Get current callbacks\n * @return {Array}\n ", - "start": 22789, - "end": 22846, + "start": 23063, + "end": 23120, "loc": { "start": { - "line": 735, + "line": 740, "column": 2 }, "end": { - "line": 738, + "line": 743, "column": 5 } } @@ -64424,15 +65913,15 @@ { "type": "CommentBlock", "value": "*\n * Get a PNG image data url from the data model\n * @return {String}\n ", - "start": 22938, - "end": 23019, + "start": 23212, + "end": 23293, "loc": { "start": { - "line": 743, + "line": 748, "column": 2 }, "end": { - "line": 746, + "line": 751, "column": 5 } } @@ -64440,15 +65929,15 @@ { "type": "CommentBlock", "value": "*\n * Get statistics to monitor what ink size is send to the server.\n * @return {Stats}\n ", - "start": 23102, - "end": 23200, + "start": 23376, + "end": 23474, "loc": { "start": { - "line": 751, + "line": 756, "column": 2 }, "end": { - "line": 754, + "line": 759, "column": 5 } } @@ -64456,15 +65945,15 @@ { "type": "CommentBlock", "value": "*\n * True if initialized, false otherwise\n * @return {Boolean}\n ", - "start": 23271, - "end": 23345, + "start": 23545, + "end": 23619, "loc": { "start": { - "line": 759, + "line": 764, "column": 2 }, "end": { - "line": 762, + "line": 767, "column": 5 } } @@ -64472,15 +65961,15 @@ { "type": "CommentBlock", "value": "*\n * Handle a pointer down\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n * @param {String} [pointerType=mouse] Current pointer type\n * @param {String} [pointerId] Current pointer id\n ", - "start": 23455, - "end": 23686, + "start": 23729, + "end": 23960, "loc": { "start": { - "line": 767, + "line": 772, "column": 2 }, "end": { - "line": 772, + "line": 777, "column": 5 } } @@ -64488,15 +65977,15 @@ { "type": "CommentLine", "value": " Currently no recognition on pointer down", - "start": 24101, - "end": 24144, + "start": 24375, + "end": 24418, "loc": { "start": { - "line": 779, + "line": 784, "column": 4 }, "end": { - "line": 779, + "line": 784, "column": 47 } } @@ -64504,15 +65993,15 @@ { "type": "CommentBlock", "value": "*\n * Handle a pointer move\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n ", - "start": 24152, - "end": 24269, + "start": 24426, + "end": 24543, "loc": { "start": { - "line": 782, + "line": 787, "column": 2 }, "end": { - "line": 785, + "line": 790, "column": 5 } } @@ -64520,15 +66009,15 @@ { "type": "CommentLine", "value": " Currently no recognition on pointer move", - "start": 24491, - "end": 24534, + "start": 24765, + "end": 24808, "loc": { "start": { - "line": 790, + "line": 795, "column": 4 }, "end": { - "line": 790, + "line": 795, "column": 47 } } @@ -64536,15 +66025,15 @@ { "type": "CommentBlock", "value": "*\n * Handle a pointer up\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n ", - "start": 24542, - "end": 24657, + "start": 24816, + "end": 24931, "loc": { "start": { - "line": 793, + "line": 798, "column": 2 }, "end": { - "line": 796, + "line": 801, "column": 5 } } @@ -64552,31 +66041,47 @@ { "type": "CommentLine", "value": " Push model in undo redo manager", - "start": 24967, - "end": 25001, + "start": 25241, + "end": 25275, "loc": { "start": { - "line": 805, + "line": 810, "column": 6 }, "end": { - "line": 805, + "line": 810, "column": 40 } } }, + { + "type": "CommentBlock", + "value": "*\n * @Deprecated\n * @param rawStrokes\n * @param strokeGroups\n ", + "start": 26186, + "end": 26260, + "loc": { + "start": { + "line": 835, + "column": 2 + }, + "end": { + "line": 839, + "column": 5 + } + } + }, { "type": "CommentBlock", "value": "*\n * True if idle state\n * @return {Boolean}\n ", - "start": 26362, - "end": 26418, + "start": 26713, + "end": 26769, "loc": { "start": { - "line": 843, + "line": 853, "column": 2 }, "end": { - "line": 846, + "line": 856, "column": 5 } } @@ -64584,15 +66089,15 @@ { "type": "CommentBlock", "value": "*\n * Wait for idle state.\n ", - "start": 26481, - "end": 26516, + "start": 26832, + "end": 26867, "loc": { "start": { - "line": 851, + "line": 861, "column": 2 }, "end": { - "line": 853, + "line": 863, "column": 5 } } @@ -64600,15 +66105,15 @@ { "type": "CommentBlock", "value": "*\n * True if can undo, false otherwise.\n * @return {Boolean}\n ", - "start": 26648, - "end": 26720, + "start": 26999, + "end": 27071, "loc": { "start": { - "line": 859, + "line": 869, "column": 2 }, "end": { - "line": 862, + "line": 872, "column": 5 } } @@ -64616,15 +66121,15 @@ { "type": "CommentBlock", "value": "*\n * Undo the last action.\n ", - "start": 26787, - "end": 26823, + "start": 27138, + "end": 27174, "loc": { "start": { - "line": 867, + "line": 877, "column": 2 }, "end": { - "line": 869, + "line": 879, "column": 5 } } @@ -64632,15 +66137,15 @@ { "type": "CommentBlock", "value": "*\n * True if can redo, false otherwise.\n * @return {Boolean}\n ", - "start": 27107, - "end": 27179, + "start": 27458, + "end": 27530, "loc": { "start": { - "line": 878, + "line": 888, "column": 2 }, "end": { - "line": 881, + "line": 891, "column": 5 } } @@ -64648,15 +66153,15 @@ { "type": "CommentBlock", "value": "*\n * Redo the last action.\n ", - "start": 27246, - "end": 27282, + "start": 27597, + "end": 27633, "loc": { "start": { - "line": 886, + "line": 896, "column": 2 }, "end": { - "line": 888, + "line": 898, "column": 5 } } @@ -64664,15 +66169,15 @@ { "type": "CommentBlock", "value": "*\n * True if empty, false otherwise\n * @returns {boolean}\n ", - "start": 27566, - "end": 27635, + "start": 27917, + "end": 27986, "loc": { "start": { - "line": 897, + "line": 907, "column": 2 }, "end": { - "line": 900, + "line": 910, "column": 5 } } @@ -64680,15 +66185,15 @@ { "type": "CommentBlock", "value": "*\n * True if can clear, false otherwise.\n * @return {Boolean}\n ", - "start": 27704, - "end": 27777, + "start": 28055, + "end": 28128, "loc": { "start": { - "line": 905, + "line": 915, "column": 2 }, "end": { - "line": 908, + "line": 918, "column": 5 } } @@ -64696,15 +66201,15 @@ { "type": "CommentBlock", "value": "*\n * Clear the output and the recognition result.\n ", - "start": 27865, - "end": 27924, + "start": 28216, + "end": 28275, "loc": { "start": { - "line": 913, + "line": 923, "column": 2 }, "end": { - "line": 915, + "line": 925, "column": 5 } } @@ -64712,15 +66217,15 @@ { "type": "CommentBlock", "value": "*\n * True if can convert, false otherwise.\n * @return {Boolean}\n ", - "start": 28211, - "end": 28286, + "start": 28562, + "end": 28637, "loc": { "start": { - "line": 924, + "line": 934, "column": 2 }, "end": { - "line": 927, + "line": 937, "column": 5 } } @@ -64728,15 +66233,15 @@ { "type": "CommentBlock", "value": "*\n * Convert the current content\n ", - "start": 28403, - "end": 28445, + "start": 28754, + "end": 28796, "loc": { "start": { - "line": 932, + "line": 942, "column": 2 }, "end": { - "line": 934, + "line": 944, "column": 5 } } @@ -64744,15 +66249,15 @@ { "type": "CommentBlock", "value": "*\n * Set the guides for text\n * @param {Boolean} [enable]\n ", - "start": 28658, - "end": 28727, + "start": 29009, + "end": 29078, "loc": { "start": { - "line": 942, + "line": 952, "column": 2 }, "end": { - "line": 945, + "line": 955, "column": 5 } } @@ -64760,15 +66265,15 @@ { "type": "CommentBlock", "value": "*\n * Return the position of the cursor identifying the current state in the internal iink undo/redo stack.\n * @returns {Number}\n ", - "start": 28873, - "end": 29012, + "start": 29224, + "end": 29363, "loc": { "start": { - "line": 951, + "line": 961, "column": 2 }, "end": { - "line": 954, + "line": 964, "column": 5 } } @@ -64776,15 +66281,15 @@ { "type": "CommentBlock", "value": "*\n * The number of operations that it is currently possible to undo.\n * @returns {Number}\n ", - "start": 29101, - "end": 29202, + "start": 29452, + "end": 29553, "loc": { "start": { - "line": 959, + "line": 969, "column": 2 }, "end": { - "line": 962, + "line": 972, "column": 5 } } @@ -64792,15 +66297,15 @@ { "type": "CommentBlock", "value": "*\n * True if can export, false otherwise.\n * @return {Boolean}\n ", - "start": 29285, - "end": 29359, + "start": 29636, + "end": 29710, "loc": { "start": { - "line": 967, + "line": 977, "column": 2 }, "end": { - "line": 970, + "line": 980, "column": 5 } } @@ -64808,15 +66313,15 @@ { "type": "CommentBlock", "value": "*\n * Explicitly ask to perform an export. You have to listen to events to get the content as this function is non blocking and does not have a return type.\n * @param {Array} requestedMimeTypes Requested mime-types. Be sure to ask all the types required by the listeners of exported event.\n ", - "start": 29544, - "end": 29852, + "start": 29895, + "end": 30203, "loc": { "start": { - "line": 975, + "line": 985, "column": 2 }, "end": { - "line": 978, + "line": 988, "column": 5 } } @@ -64824,15 +66329,15 @@ { "type": "CommentBlock", "value": "*\n * Import content.\n * @param {Blob|*} data Data to import\n * @param {String} [mimetype] Mimetype of the data, needed if data is not a Blob\n ", - "start": 30077, - "end": 30231, + "start": 30428, + "end": 30582, "loc": { "start": { - "line": 986, + "line": 996, "column": 2 }, "end": { - "line": 990, + "line": 1000, "column": 5 } } @@ -64840,15 +66345,15 @@ { "type": "CommentBlock", "value": "*\n * Get supported import mime types\n ", - "start": 30441, - "end": 30487, + "start": 30792, + "end": 30838, "loc": { "start": { - "line": 996, + "line": 1006, "column": 2 }, "end": { - "line": 998, + "line": 1008, "column": 5 } } @@ -64856,15 +66361,15 @@ { "type": "CommentBlock", "value": "*\n * pointer events\n * @param {PointerEvents} events\n ", - "start": 30586, - "end": 30650, + "start": 30937, + "end": 31001, "loc": { "start": { - "line": 1003, + "line": 1013, "column": 2 }, "end": { - "line": 1006, + "line": 1016, "column": 5 } } @@ -64872,15 +66377,15 @@ { "type": "CommentBlock", "value": "*\n * Get current state exports\n * @return {Object}\n ", - "start": 30735, - "end": 30797, + "start": 31086, + "end": 31148, "loc": { "start": { - "line": 1011, + "line": 1021, "column": 2 }, "end": { - "line": 1014, + "line": 1024, "column": 5 } } @@ -64888,15 +66393,15 @@ { "type": "CommentBlock", "value": "*\n * Function to call when the dom element link to the current ink paper has been resize.\n ", - "start": 30979, - "end": 31078, + "start": 31330, + "end": 31429, "loc": { "start": { - "line": 1023, + "line": 1033, "column": 2 }, "end": { - "line": 1025, + "line": 1035, "column": 5 } } @@ -64904,15 +66409,63 @@ { "type": "CommentBlock", "value": "*\n * Set the theme (font family, font size and line height) depending on the language\n * @param lang\n ", - "start": 31337, - "end": 31449, + "start": 31688, + "end": 31800, "loc": { "start": { - "line": 1032, + "line": 1042, "column": 2 }, "end": { - "line": 1035, + "line": 1045, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Detach event listeners from the DOM element created at editor creation.\n ", + "start": 32237, + "end": 32323, + "loc": { + "start": { + "line": 1059, + "column": 2 + }, + "end": { + "line": 1061, + "column": 5 + } + } + }, + { + "type": "CommentLine", + "value": " Remove event handlers to avoid multiplication (detach grabber)", + "start": 32361, + "end": 32426, + "loc": { + "start": { + "line": 1063, + "column": 24 + }, + "end": { + "line": 1063, + "column": 89 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Trigger the change callbacks (and by default send a change event).\n ", + "start": 32613, + "end": 32694, + "loc": { + "start": { + "line": 1071, + "column": 2 + }, + "end": { + "line": 1073, "column": 5 } } @@ -64920,31 +66473,31 @@ { "type": "CommentBlock", "value": " eslint-disable class-methods-use-this ", - "start": 31886, - "end": 31929, + "start": 32788, + "end": 32831, "loc": { "start": { - "line": 1049, + "line": 1078, "column": 2 }, "end": { - "line": 1049, + "line": 1078, "column": 45 } } }, { "type": "CommentBlock", - "value": "*\n * Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice).\n * @returns {{inkImporter: inkImporter}}\n ", - "start": 31932, - "end": 32118, + "value": "*\n * Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice).\n ", + "start": 32834, + "end": 32977, "loc": { "start": { - "line": 1050, + "line": 1079, "column": 2 }, "end": { - "line": 1053, + "line": 1081, "column": 5 } } @@ -64952,15 +66505,15 @@ { "type": "CommentBlock", "value": " eslint-enable class-methods-use-this ", - "start": 32174, - "end": 32216, + "start": 33028, + "end": 33070, "loc": { "start": { - "line": 1057, + "line": 1085, "column": 2 }, "end": { - "line": 1057, + "line": 1085, "column": 44 } } @@ -67427,16 +68980,18 @@ }, { "type": { - "label": "{", + "label": "*", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 10, + "updateContext": null }, + "value": "*", "start": 847, "end": 848, "loc": { @@ -67462,9 +69017,9 @@ "postfix": false, "binop": null }, - "value": "inkImporter", + "value": "as", "start": 849, - "end": 860, + "end": 851, "loc": { "start": { "line": 15, @@ -67472,15 +69027,15 @@ }, "end": { "line": 15, - "column": 20 + "column": 11 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -67488,12 +69043,13 @@ "postfix": false, "binop": null }, - "start": 861, + "value": "eastereggs", + "start": 852, "end": 862, "loc": { "start": { "line": 15, - "column": 21 + "column": 12 }, "end": { "line": 15, @@ -91788,211 +93344,18 @@ } }, { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 6986, - "end": 6987, - "loc": { - "start": { - "line": 178, - "column": 10 - }, - "end": { - "line": 178, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 6987, - "end": 6990, - "loc": { - "start": { - "line": 178, - "column": 11 - }, - "end": { - "line": 178, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 6990, - "end": 6991, - "loc": { - "start": { - "line": 178, - "column": 14 - }, - "end": { - "line": 178, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "message", - "start": 6991, - "end": 6998, - "loc": { - "start": { - "line": 178, - "column": 15 - }, - "end": { - "line": 178, - "column": 22 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 6999, - "end": 7002, - "loc": { - "start": { - "line": 178, - "column": 23 - }, - "end": { - "line": 178, - "column": 26 - } - } - }, - { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "Invalid application key.", - "start": 7003, - "end": 7029, - "loc": { - "start": { - "line": 178, - "column": 27 - }, - "end": { - "line": 178, - "column": 53 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 7029, - "end": 7030, - "loc": { - "start": { - "line": 178, - "column": 53 - }, - "end": { - "line": 178, - "column": 54 - } - } - }, - { - "type": { - "label": "||", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 1, - "updateContext": null - }, - "value": "||", - "start": 7031, - "end": 7033, + "type": "CommentLine", + "value": " IInk error managment before refactor", + "start": 6995, + "end": 7034, "loc": { "start": { - "line": 178, - "column": 55 + "line": 179, + "column": 8 }, "end": { - "line": 178, - "column": 57 + "line": 179, + "column": 47 } } }, @@ -92008,16 +93371,16 @@ "postfix": false, "binop": null }, - "start": 7034, - "end": 7035, + "start": 7043, + "end": 7044, "loc": { "start": { - "line": 178, - "column": 58 + "line": 180, + "column": 8 }, "end": { - "line": 178, - "column": 59 + "line": 180, + "column": 9 } } }, @@ -92034,16 +93397,16 @@ "binop": null }, "value": "err", - "start": 7035, - "end": 7038, + "start": 7044, + "end": 7047, "loc": { "start": { - "line": 178, - "column": 59 + "line": 180, + "column": 9 }, "end": { - "line": 178, - "column": 62 + "line": 180, + "column": 12 } } }, @@ -92060,16 +93423,16 @@ "binop": null, "updateContext": null }, - "start": 7038, - "end": 7039, + "start": 7047, + "end": 7048, "loc": { "start": { - "line": 178, - "column": 62 + "line": 180, + "column": 12 }, "end": { - "line": 178, - "column": 63 + "line": 180, + "column": 13 } } }, @@ -92086,16 +93449,16 @@ "binop": null }, "value": "message", - "start": 7039, - "end": 7046, + "start": 7048, + "end": 7055, "loc": { "start": { - "line": 178, - "column": 63 + "line": 180, + "column": 13 }, "end": { - "line": 178, - "column": 70 + "line": 180, + "column": 20 } } }, @@ -92113,16 +93476,16 @@ "updateContext": null }, "value": "===", - "start": 7047, - "end": 7050, + "start": 7056, + "end": 7059, "loc": { "start": { - "line": 178, - "column": 71 + "line": 180, + "column": 21 }, "end": { - "line": 178, - "column": 74 + "line": 180, + "column": 24 } } }, @@ -92139,17 +93502,17 @@ "binop": null, "updateContext": null }, - "value": "Invalid HMAC", - "start": 7051, - "end": 7065, + "value": "Invalid application key.", + "start": 7060, + "end": 7086, "loc": { "start": { - "line": 178, - "column": 75 + "line": 180, + "column": 25 }, "end": { - "line": 178, - "column": 89 + "line": 180, + "column": 51 } } }, @@ -92165,16 +93528,16 @@ "postfix": false, "binop": null }, - "start": 7065, - "end": 7066, + "start": 7086, + "end": 7087, "loc": { "start": { - "line": 178, - "column": 89 + "line": 180, + "column": 51 }, "end": { - "line": 178, - "column": 90 + "line": 180, + "column": 52 } } }, @@ -92192,16 +93555,16 @@ "updateContext": null }, "value": "||", - "start": 7067, - "end": 7069, + "start": 7088, + "end": 7090, "loc": { "start": { - "line": 178, - "column": 91 + "line": 180, + "column": 53 }, "end": { - "line": 178, - "column": 93 + "line": 180, + "column": 55 } } }, @@ -92217,16 +93580,16 @@ "postfix": false, "binop": null }, - "start": 7076, - "end": 7077, + "start": 7091, + "end": 7092, "loc": { "start": { - "line": 179, - "column": 6 + "line": 180, + "column": 56 }, "end": { - "line": 179, - "column": 7 + "line": 180, + "column": 57 } } }, @@ -92243,16 +93606,16 @@ "binop": null }, "value": "err", - "start": 7077, - "end": 7080, + "start": 7092, + "end": 7095, "loc": { "start": { - "line": 179, - "column": 7 + "line": 180, + "column": 57 }, "end": { - "line": 179, - "column": 10 + "line": 180, + "column": 60 } } }, @@ -92269,69 +93632,16 @@ "binop": null, "updateContext": null }, - "start": 7080, - "end": 7081, - "loc": { - "start": { - "line": 179, - "column": 10 - }, - "end": { - "line": 179, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 7081, - "end": 7086, - "loc": { - "start": { - "line": 179, - "column": 11 - }, - "end": { - "line": 179, - "column": 16 - } - } - }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 7087, - "end": 7089, + "start": 7095, + "end": 7096, "loc": { "start": { - "line": 179, - "column": 17 + "line": 180, + "column": 60 }, "end": { - "line": 179, - "column": 19 + "line": 180, + "column": 61 } } }, @@ -92347,77 +93657,52 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 7098, - "end": 7101, + "value": "message", + "start": 7096, + "end": 7103, "loc": { "start": { "line": 180, - "column": 8 + "column": 61 }, "end": { "line": 180, - "column": 11 + "column": 68 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "==/!=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 7101, - "end": 7102, - "loc": { - "start": { - "line": 180, - "column": 11 - }, - "end": { - "line": 180, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 7102, + "value": "===", + "start": 7104, "end": 7107, "loc": { "start": { "line": 180, - "column": 12 + "column": 69 }, "end": { "line": 180, - "column": 17 + "column": 72 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -92426,24 +93711,25 @@ "binop": null, "updateContext": null }, - "start": 7107, - "end": 7108, + "value": "Invalid HMAC", + "start": 7108, + "end": 7122, "loc": { "start": { "line": 180, - "column": 17 + "column": 73 }, "end": { "line": 180, - "column": 18 + "column": 87 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -92451,23 +93737,22 @@ "postfix": false, "binop": null }, - "value": "result", - "start": 7108, - "end": 7114, + "start": 7122, + "end": 7123, "loc": { "start": { "line": 180, - "column": 18 + "column": 87 }, "end": { "line": 180, - "column": 24 + "column": 88 } } }, { "type": { - "label": "&&", + "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -92475,198 +93760,32 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": 1, "updateContext": null }, - "value": "&&", - "start": 7115, - "end": 7117, + "value": "||", + "start": 7124, + "end": 7126, "loc": { "start": { "line": 180, - "column": 25 + "column": 89 }, "end": { "line": 180, - "column": 27 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 7126, - "end": 7129, - "loc": { - "start": { - "line": 181, - "column": 8 - }, - "end": { - "line": 181, - "column": 11 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7129, - "end": 7130, - "loc": { - "start": { - "line": 181, - "column": 11 - }, - "end": { - "line": 181, - "column": 12 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 7130, - "end": 7135, - "loc": { - "start": { - "line": 181, - "column": 12 - }, - "end": { - "line": 181, - "column": 17 + "column": 91 } } }, { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, + "type": "CommentLine", + "value": " CDK error managment", "start": 7135, - "end": 7136, - "loc": { - "start": { - "line": 181, - "column": 17 - }, - "end": { - "line": 181, - "column": 18 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "result", - "start": 7136, - "end": 7142, - "loc": { - "start": { - "line": 181, - "column": 18 - }, - "end": { - "line": 181, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 7142, - "end": 7143, + "end": 7157, "loc": { "start": { "line": 181, - "column": 24 - }, - "end": { - "line": 181, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "error", - "start": 7143, - "end": 7148, - "loc": { - "start": { - "line": 181, - "column": 25 + "column": 8 }, "end": { "line": 181, @@ -92674,33 +93793,6 @@ } } }, - { - "type": { - "label": "&&", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 2, - "updateContext": null - }, - "value": "&&", - "start": 7149, - "end": 7151, - "loc": { - "start": { - "line": 181, - "column": 31 - }, - "end": { - "line": 181, - "column": 33 - } - } - }, { "type": { "label": "(", @@ -92713,8 +93805,8 @@ "postfix": false, "binop": null }, - "start": 7160, - "end": 7161, + "start": 7166, + "end": 7167, "loc": { "start": { "line": 182, @@ -92739,8 +93831,8 @@ "binop": null }, "value": "err", - "start": 7161, - "end": 7164, + "start": 7167, + "end": 7170, "loc": { "start": { "line": 182, @@ -92765,8 +93857,8 @@ "binop": null, "updateContext": null }, - "start": 7164, - "end": 7165, + "start": 7170, + "end": 7171, "loc": { "start": { "line": 182, @@ -92791,8 +93883,8 @@ "binop": null }, "value": "error", - "start": 7165, - "end": 7170, + "start": 7171, + "end": 7176, "loc": { "start": { "line": 182, @@ -92806,27 +93898,28 @@ }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "&&", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "start": 7170, - "end": 7171, + "value": "&&", + "start": 7177, + "end": 7179, "loc": { "start": { "line": 182, - "column": 18 + "column": 19 }, "end": { "line": 182, - "column": 19 + "column": 21 } } }, @@ -92842,17 +93935,17 @@ "postfix": false, "binop": null }, - "value": "result", - "start": 7171, - "end": 7177, + "value": "err", + "start": 7190, + "end": 7193, "loc": { "start": { - "line": 182, - "column": 19 + "line": 183, + "column": 10 }, "end": { - "line": 182, - "column": 25 + "line": 183, + "column": 13 } } }, @@ -92869,16 +93962,16 @@ "binop": null, "updateContext": null }, - "start": 7177, - "end": 7178, + "start": 7193, + "end": 7194, "loc": { "start": { - "line": 182, - "column": 25 + "line": 183, + "column": 13 }, "end": { - "line": 182, - "column": 26 + "line": 183, + "column": 14 } } }, @@ -92895,49 +93988,48 @@ "binop": null }, "value": "error", - "start": 7178, - "end": 7183, + "start": 7194, + "end": 7199, "loc": { "start": { - "line": 182, - "column": 26 + "line": 183, + "column": 14 }, "end": { - "line": 182, - "column": 31 + "line": 183, + "column": 19 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 7184, - "end": 7187, + "start": 7199, + "end": 7200, "loc": { "start": { - "line": 182, - "column": 32 + "line": 183, + "column": 19 }, "end": { - "line": 182, - "column": 35 + "line": 183, + "column": 20 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -92945,26 +94037,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "InvalidApplicationKeyException", - "start": 7188, - "end": 7220, + "value": "result", + "start": 7200, + "end": 7206, "loc": { "start": { - "line": 182, - "column": 36 + "line": 183, + "column": 20 }, "end": { - "line": 182, - "column": 68 + "line": 183, + "column": 26 } } }, { "type": { - "label": "||", + "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -92972,20 +94063,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 1, + "binop": 2, "updateContext": null }, - "value": "||", - "start": 7221, - "end": 7223, + "value": "&&", + "start": 7207, + "end": 7209, "loc": { "start": { - "line": 182, - "column": 69 + "line": 183, + "column": 27 }, "end": { - "line": 182, - "column": 71 + "line": 183, + "column": 29 } } }, @@ -93002,16 +94093,16 @@ "binop": null }, "value": "err", - "start": 7224, - "end": 7227, + "start": 7220, + "end": 7223, "loc": { "start": { - "line": 182, - "column": 72 + "line": 184, + "column": 10 }, "end": { - "line": 182, - "column": 75 + "line": 184, + "column": 13 } } }, @@ -93028,16 +94119,16 @@ "binop": null, "updateContext": null }, - "start": 7227, - "end": 7228, + "start": 7223, + "end": 7224, "loc": { "start": { - "line": 182, - "column": 75 + "line": 184, + "column": 13 }, "end": { - "line": 182, - "column": 76 + "line": 184, + "column": 14 } } }, @@ -93054,16 +94145,16 @@ "binop": null }, "value": "error", - "start": 7228, - "end": 7233, + "start": 7224, + "end": 7229, "loc": { "start": { - "line": 182, - "column": 76 + "line": 184, + "column": 14 }, "end": { - "line": 182, - "column": 81 + "line": 184, + "column": 19 } } }, @@ -93080,16 +94171,16 @@ "binop": null, "updateContext": null }, - "start": 7233, - "end": 7234, + "start": 7229, + "end": 7230, "loc": { "start": { - "line": 182, - "column": 81 + "line": 184, + "column": 19 }, "end": { - "line": 182, - "column": 82 + "line": 184, + "column": 20 } } }, @@ -93106,16 +94197,16 @@ "binop": null }, "value": "result", - "start": 7234, - "end": 7240, + "start": 7230, + "end": 7236, "loc": { "start": { - "line": 182, - "column": 82 + "line": 184, + "column": 20 }, "end": { - "line": 182, - "column": 88 + "line": 184, + "column": 26 } } }, @@ -93132,16 +94223,16 @@ "binop": null, "updateContext": null }, - "start": 7240, - "end": 7241, + "start": 7236, + "end": 7237, "loc": { "start": { - "line": 182, - "column": 88 + "line": 184, + "column": 26 }, "end": { - "line": 182, - "column": 89 + "line": 184, + "column": 27 } } }, @@ -93158,22 +94249,22 @@ "binop": null }, "value": "error", - "start": 7241, - "end": 7246, + "start": 7237, + "end": 7242, "loc": { "start": { - "line": 182, - "column": 89 + "line": 184, + "column": 27 }, "end": { - "line": 182, - "column": 94 + "line": 184, + "column": 32 } } }, { "type": { - "label": "==/!=", + "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -93181,55 +94272,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": 2, "updateContext": null }, - "value": "===", - "start": 7247, - "end": 7250, + "value": "&&", + "start": 7243, + "end": 7245, "loc": { "start": { - "line": 182, - "column": 95 + "line": 184, + "column": 33 }, "end": { - "line": 182, - "column": 98 + "line": 184, + "column": 35 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "InvalidHMACSignatureException", - "start": 7251, - "end": 7282, + "start": 7256, + "end": 7257, "loc": { "start": { - "line": 182, - "column": 99 + "line": 185, + "column": 10 }, "end": { - "line": 182, - "column": 130 + "line": 185, + "column": 11 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -93237,22 +94326,23 @@ "postfix": false, "binop": null }, - "start": 7282, - "end": 7283, + "value": "err", + "start": 7257, + "end": 7260, "loc": { "start": { - "line": 182, - "column": 130 + "line": 185, + "column": 11 }, "end": { - "line": 182, - "column": 131 + "line": 185, + "column": 14 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -93260,26 +94350,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7290, - "end": 7291, + "start": 7260, + "end": 7261, "loc": { "start": { - "line": 183, - "column": 6 + "line": 185, + "column": 14 }, "end": { - "line": 183, - "column": 7 + "line": 185, + "column": 15 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -93287,41 +94378,43 @@ "postfix": false, "binop": null }, - "start": 7291, - "end": 7292, + "value": "error", + "start": 7261, + "end": 7266, "loc": { "start": { - "line": 183, - "column": 7 + "line": 185, + "column": 15 }, "end": { - "line": 183, - "column": 8 + "line": 185, + "column": 20 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7293, - "end": 7294, + "start": 7266, + "end": 7267, "loc": { "start": { - "line": 183, - "column": 9 + "line": 185, + "column": 20 }, "end": { - "line": 183, - "column": 10 + "line": 185, + "column": 21 } } }, @@ -93337,17 +94430,17 @@ "postfix": false, "binop": null }, - "value": "editorRef", - "start": 7303, - "end": 7312, + "value": "result", + "start": 7267, + "end": 7273, "loc": { "start": { - "line": 184, - "column": 8 + "line": 185, + "column": 21 }, "end": { - "line": 184, - "column": 17 + "line": 185, + "column": 27 } } }, @@ -93364,16 +94457,16 @@ "binop": null, "updateContext": null }, - "start": 7312, - "end": 7313, + "start": 7273, + "end": 7274, "loc": { "start": { - "line": 184, - "column": 17 + "line": 185, + "column": 27 }, "end": { - "line": 184, - "column": 18 + "line": 185, + "column": 28 } } }, @@ -93390,42 +94483,97 @@ "binop": null }, "value": "error", - "start": 7313, - "end": 7318, + "start": 7274, + "end": 7279, "loc": { "start": { - "line": 184, - "column": 18 + "line": 185, + "column": 28 }, "end": { - "line": 184, - "column": 23 + "line": 185, + "column": 33 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "==/!=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 7280, + "end": 7283, + "loc": { + "start": { + "line": 185, + "column": 34 + }, + "end": { + "line": 185, + "column": 37 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "start": 7318, + "value": "InvalidApplicationKeyException", + "start": 7284, + "end": 7316, + "loc": { + "start": { + "line": 185, + "column": 38 + }, + "end": { + "line": 185, + "column": 70 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 7317, "end": 7319, "loc": { "start": { - "line": 184, - "column": 23 + "line": 185, + "column": 71 }, "end": { - "line": 184, - "column": 24 + "line": 185, + "column": 73 } } }, @@ -93441,44 +94589,43 @@ "postfix": false, "binop": null }, - "value": "innerText", - "start": 7319, - "end": 7328, + "value": "err", + "start": 7320, + "end": 7323, "loc": { "start": { - "line": 184, - "column": 24 + "line": 185, + "column": 74 }, "end": { - "line": 184, - "column": 33 + "line": 185, + "column": 77 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 7329, - "end": 7330, + "start": 7323, + "end": 7324, "loc": { "start": { - "line": 184, - "column": 34 + "line": 185, + "column": 77 }, "end": { - "line": 184, - "column": 35 + "line": 185, + "column": 78 } } }, @@ -93494,17 +94641,17 @@ "postfix": false, "binop": null }, - "value": "Constants", - "start": 7331, - "end": 7340, + "value": "error", + "start": 7324, + "end": 7329, "loc": { "start": { - "line": 184, - "column": 36 + "line": 185, + "column": 78 }, "end": { - "line": 184, - "column": 45 + "line": 185, + "column": 83 } } }, @@ -93521,16 +94668,16 @@ "binop": null, "updateContext": null }, - "start": 7340, - "end": 7341, + "start": 7329, + "end": 7330, "loc": { "start": { - "line": 184, - "column": 45 + "line": 185, + "column": 83 }, "end": { - "line": 184, - "column": 46 + "line": 185, + "column": 84 } } }, @@ -93546,17 +94693,17 @@ "postfix": false, "binop": null }, - "value": "Error", - "start": 7341, - "end": 7346, + "value": "result", + "start": 7330, + "end": 7336, "loc": { "start": { - "line": 184, - "column": 46 + "line": 185, + "column": 84 }, "end": { - "line": 184, - "column": 51 + "line": 185, + "column": 90 } } }, @@ -93573,16 +94720,16 @@ "binop": null, "updateContext": null }, - "start": 7346, - "end": 7347, + "start": 7336, + "end": 7337, "loc": { "start": { - "line": 184, - "column": 51 + "line": 185, + "column": 90 }, "end": { - "line": 184, - "column": 52 + "line": 185, + "column": 91 } } }, @@ -93598,23 +94745,23 @@ "postfix": false, "binop": null }, - "value": "WRONG_CREDENTIALS", - "start": 7347, - "end": 7364, + "value": "error", + "start": 7337, + "end": 7342, "loc": { "start": { - "line": 184, - "column": 52 + "line": 185, + "column": 91 }, "end": { - "line": 184, - "column": 69 + "line": 185, + "column": 96 } } }, { "type": { - "label": ";", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -93622,25 +94769,53 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 7343, + "end": 7346, + "loc": { + "start": { + "line": 185, + "column": 97 + }, + "end": { + "line": 185, + "column": 100 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "start": 7364, - "end": 7365, + "value": "InvalidHMACSignatureException", + "start": 7347, + "end": 7378, "loc": { "start": { - "line": 184, - "column": 69 + "line": 185, + "column": 101 }, "end": { - "line": 184, - "column": 70 + "line": 185, + "column": 132 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -93650,72 +94825,84 @@ "postfix": false, "binop": null }, - "start": 7372, - "end": 7373, + "start": 7378, + "end": 7379, "loc": { "start": { "line": 185, - "column": 6 + "column": 132 }, "end": { "line": 185, - "column": 7 + "column": 133 } } }, { "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "else", - "start": 7374, - "end": 7378, + "start": 7379, + "end": 7380, "loc": { "start": { "line": 185, - "column": 8 + "column": 133 }, "end": { "line": 185, - "column": 12 + "column": 134 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, + "label": "||", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 1, "updateContext": null }, - "value": "if", - "start": 7379, - "end": 7381, + "value": "||", + "start": 7381, + "end": 7383, "loc": { "start": { "line": 185, - "column": 13 + "column": 135 }, "end": { "line": 185, - "column": 15 + "column": 137 + } + } + }, + { + "type": "CommentLine", + "value": " IInk error managment after refactor", + "start": 7392, + "end": 7430, + "loc": { + "start": { + "line": 186, + "column": 8 + }, + "end": { + "line": 186, + "column": 46 } } }, @@ -93731,16 +94918,16 @@ "postfix": false, "binop": null }, - "start": 7382, - "end": 7383, + "start": 7439, + "end": 7440, "loc": { "start": { - "line": 185, - "column": 16 + "line": 187, + "column": 8 }, "end": { - "line": 185, - "column": 17 + "line": 187, + "column": 9 } } }, @@ -93757,19 +94944,124 @@ "binop": null }, "value": "err", - "start": 7383, - "end": 7386, + "start": 7440, + "end": 7443, "loc": { "start": { - "line": 185, + "line": 187, + "column": 9 + }, + "end": { + "line": 187, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7443, + "end": 7444, + "loc": { + "start": { + "line": 187, + "column": 12 + }, + "end": { + "line": 187, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "code", + "start": 7444, + "end": 7448, + "loc": { + "start": { + "line": 187, + "column": 13 + }, + "end": { + "line": 187, "column": 17 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 7449, + "end": 7451, + "loc": { + "start": { + "line": 187, + "column": 18 }, "end": { - "line": 185, + "line": 187, "column": 20 } } }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "err", + "start": 7452, + "end": 7455, + "loc": { + "start": { + "line": 187, + "column": 21 + }, + "end": { + "line": 187, + "column": 24 + } + } + }, { "type": { "label": ".", @@ -93783,16 +95075,16 @@ "binop": null, "updateContext": null }, - "start": 7386, - "end": 7387, + "start": 7455, + "end": 7456, "loc": { "start": { - "line": 185, - "column": 20 + "line": 187, + "column": 24 }, "end": { - "line": 185, - "column": 21 + "line": 187, + "column": 25 } } }, @@ -93808,17 +95100,17 @@ "postfix": false, "binop": null }, - "value": "message", - "start": 7387, - "end": 7394, + "value": "code", + "start": 7456, + "end": 7460, "loc": { "start": { - "line": 185, - "column": 21 + "line": 187, + "column": 25 }, "end": { - "line": 185, - "column": 28 + "line": 187, + "column": 29 } } }, @@ -93836,16 +95128,16 @@ "updateContext": null }, "value": "===", - "start": 7395, - "end": 7398, + "start": 7461, + "end": 7464, "loc": { "start": { - "line": 185, - "column": 29 + "line": 187, + "column": 30 }, "end": { - "line": 185, - "column": 32 + "line": 187, + "column": 33 } } }, @@ -93862,17 +95154,17 @@ "binop": null, "updateContext": null }, - "value": "Session is too old. Max Session Duration Reached", - "start": 7399, - "end": 7449, + "value": "access.not.granted", + "start": 7465, + "end": 7485, "loc": { "start": { - "line": 185, - "column": 33 + "line": 187, + "column": 34 }, "end": { - "line": 185, - "column": 83 + "line": 187, + "column": 54 } } }, @@ -93888,16 +95180,41 @@ "postfix": false, "binop": null }, - "start": 7449, - "end": 7450, + "start": 7485, + "end": 7486, "loc": { "start": { - "line": 185, - "column": 83 + "line": 187, + "column": 54 }, "end": { - "line": 185, - "column": 84 + "line": 187, + "column": 55 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7486, + "end": 7487, + "loc": { + "start": { + "line": 187, + "column": 55 + }, + "end": { + "line": 187, + "column": 56 } } }, @@ -93913,16 +95230,16 @@ "postfix": false, "binop": null }, - "start": 7451, - "end": 7452, + "start": 7488, + "end": 7489, "loc": { "start": { - "line": 185, - "column": 85 + "line": 187, + "column": 57 }, "end": { - "line": 185, - "column": 86 + "line": 187, + "column": 58 } } }, @@ -93939,15 +95256,15 @@ "binop": null }, "value": "editorRef", - "start": 7461, - "end": 7470, + "start": 7498, + "end": 7507, "loc": { "start": { - "line": 186, + "line": 188, "column": 8 }, "end": { - "line": 186, + "line": 188, "column": 17 } } @@ -93965,15 +95282,15 @@ "binop": null, "updateContext": null }, - "start": 7470, - "end": 7471, + "start": 7507, + "end": 7508, "loc": { "start": { - "line": 186, + "line": 188, "column": 17 }, "end": { - "line": 186, + "line": 188, "column": 18 } } @@ -93991,15 +95308,15 @@ "binop": null }, "value": "error", - "start": 7471, - "end": 7476, + "start": 7508, + "end": 7513, "loc": { "start": { - "line": 186, + "line": 188, "column": 18 }, "end": { - "line": 186, + "line": 188, "column": 23 } } @@ -94017,15 +95334,15 @@ "binop": null, "updateContext": null }, - "start": 7476, - "end": 7477, + "start": 7513, + "end": 7514, "loc": { "start": { - "line": 186, + "line": 188, "column": 23 }, "end": { - "line": 186, + "line": 188, "column": 24 } } @@ -94043,15 +95360,15 @@ "binop": null }, "value": "innerText", - "start": 7477, - "end": 7486, + "start": 7514, + "end": 7523, "loc": { "start": { - "line": 186, + "line": 188, "column": 24 }, "end": { - "line": 186, + "line": 188, "column": 33 } } @@ -94070,15 +95387,15 @@ "updateContext": null }, "value": "=", - "start": 7487, - "end": 7488, + "start": 7524, + "end": 7525, "loc": { "start": { - "line": 186, + "line": 188, "column": 34 }, "end": { - "line": 186, + "line": 188, "column": 35 } } @@ -94096,15 +95413,15 @@ "binop": null }, "value": "Constants", - "start": 7489, - "end": 7498, + "start": 7526, + "end": 7535, "loc": { "start": { - "line": 186, + "line": 188, "column": 36 }, "end": { - "line": 186, + "line": 188, "column": 45 } } @@ -94122,15 +95439,15 @@ "binop": null, "updateContext": null }, - "start": 7498, - "end": 7499, + "start": 7535, + "end": 7536, "loc": { "start": { - "line": 186, + "line": 188, "column": 45 }, "end": { - "line": 186, + "line": 188, "column": 46 } } @@ -94148,15 +95465,15 @@ "binop": null }, "value": "Error", - "start": 7499, - "end": 7504, + "start": 7536, + "end": 7541, "loc": { "start": { - "line": 186, + "line": 188, "column": 46 }, "end": { - "line": 186, + "line": 188, "column": 51 } } @@ -94174,15 +95491,15 @@ "binop": null, "updateContext": null }, - "start": 7504, - "end": 7505, + "start": 7541, + "end": 7542, "loc": { "start": { - "line": 186, + "line": 188, "column": 51 }, "end": { - "line": 186, + "line": 188, "column": 52 } } @@ -94199,17 +95516,17 @@ "postfix": false, "binop": null }, - "value": "TOO_OLD", - "start": 7505, - "end": 7512, + "value": "WRONG_CREDENTIALS", + "start": 7542, + "end": 7559, "loc": { "start": { - "line": 186, + "line": 188, "column": 52 }, "end": { - "line": 186, - "column": 59 + "line": 188, + "column": 69 } } }, @@ -94226,16 +95543,16 @@ "binop": null, "updateContext": null }, - "start": 7512, - "end": 7513, + "start": 7559, + "end": 7560, "loc": { "start": { - "line": 186, - "column": 59 + "line": 188, + "column": 69 }, "end": { - "line": 186, - "column": 60 + "line": 188, + "column": 70 } } }, @@ -94251,15 +95568,15 @@ "postfix": false, "binop": null }, - "start": 7520, - "end": 7521, + "start": 7567, + "end": 7568, "loc": { "start": { - "line": 187, + "line": 189, "column": 6 }, "end": { - "line": 187, + "line": 189, "column": 7 } } @@ -94279,15 +95596,15 @@ "updateContext": null }, "value": "else", - "start": 7522, - "end": 7526, + "start": 7569, + "end": 7573, "loc": { "start": { - "line": 187, + "line": 189, "column": 8 }, "end": { - "line": 187, + "line": 189, "column": 12 } } @@ -94307,15 +95624,15 @@ "updateContext": null }, "value": "if", - "start": 7527, - "end": 7529, + "start": 7574, + "end": 7576, "loc": { "start": { - "line": 187, + "line": 189, "column": 13 }, "end": { - "line": 187, + "line": 189, "column": 15 } } @@ -94332,15 +95649,15 @@ "postfix": false, "binop": null }, - "start": 7530, - "end": 7531, + "start": 7577, + "end": 7578, "loc": { "start": { - "line": 187, + "line": 189, "column": 16 }, "end": { - "line": 187, + "line": 189, "column": 17 } } @@ -94358,15 +95675,15 @@ "binop": null }, "value": "err", - "start": 7531, - "end": 7534, + "start": 7578, + "end": 7581, "loc": { "start": { - "line": 187, + "line": 189, "column": 17 }, "end": { - "line": 187, + "line": 189, "column": 20 } } @@ -94384,15 +95701,15 @@ "binop": null, "updateContext": null }, - "start": 7534, - "end": 7535, + "start": 7581, + "end": 7582, "loc": { "start": { - "line": 187, + "line": 189, "column": 20 }, "end": { - "line": 187, + "line": 189, "column": 21 } } @@ -94410,22 +95727,22 @@ "binop": null }, "value": "message", - "start": 7535, - "end": 7542, + "start": 7582, + "end": 7589, "loc": { "start": { - "line": 187, + "line": 189, "column": 21 }, "end": { - "line": 187, + "line": 189, "column": 28 } } }, { "type": { - "label": "&&", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -94433,20 +95750,99 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": 6, "updateContext": null }, - "value": "&&", - "start": 7543, - "end": 7545, + "value": "===", + "start": 7590, + "end": 7593, "loc": { "start": { - "line": 187, + "line": 189, "column": 29 }, "end": { - "line": 187, - "column": 31 + "line": 189, + "column": 32 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Session is too old. Max Session Duration Reached", + "start": 7594, + "end": 7644, + "loc": { + "start": { + "line": 189, + "column": 33 + }, + "end": { + "line": 189, + "column": 83 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 7645, + "end": 7647, + "loc": { + "start": { + "line": 189, + "column": 84 + }, + "end": { + "line": 189, + "column": 86 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7656, + "end": 7657, + "loc": { + "start": { + "line": 190, + "column": 8 + }, + "end": { + "line": 190, + "column": 9 } } }, @@ -94462,17 +95858,17 @@ "postfix": false, "binop": null }, - "value": "editorRef", - "start": 7546, - "end": 7555, + "value": "err", + "start": 7657, + "end": 7660, "loc": { "start": { - "line": 187, - "column": 32 + "line": 190, + "column": 9 }, "end": { - "line": 187, - "column": 41 + "line": 190, + "column": 12 } } }, @@ -94489,16 +95885,16 @@ "binop": null, "updateContext": null }, - "start": 7555, - "end": 7556, + "start": 7660, + "end": 7661, "loc": { "start": { - "line": 187, - "column": 41 + "line": 190, + "column": 12 }, "end": { - "line": 187, - "column": 42 + "line": 190, + "column": 13 } } }, @@ -94514,43 +95910,44 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 7556, - "end": 7561, + "value": "code", + "start": 7661, + "end": 7665, "loc": { "start": { - "line": 187, - "column": 42 + "line": 190, + "column": 13 }, "end": { - "line": 187, - "column": 47 + "line": 190, + "column": 17 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "&&", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "start": 7561, - "end": 7562, + "value": "&&", + "start": 7666, + "end": 7668, "loc": { "start": { - "line": 187, - "column": 47 + "line": 190, + "column": 18 }, "end": { - "line": 187, - "column": 48 + "line": 190, + "column": 20 } } }, @@ -94566,17 +95963,17 @@ "postfix": false, "binop": null }, - "value": "style", - "start": 7562, - "end": 7567, + "value": "err", + "start": 7669, + "end": 7672, "loc": { "start": { - "line": 187, - "column": 48 + "line": 190, + "column": 21 }, "end": { - "line": 187, - "column": 53 + "line": 190, + "column": 24 } } }, @@ -94593,16 +95990,16 @@ "binop": null, "updateContext": null }, - "start": 7567, - "end": 7568, + "start": 7672, + "end": 7673, "loc": { "start": { - "line": 187, - "column": 53 + "line": 190, + "column": 24 }, "end": { - "line": 187, - "column": 54 + "line": 190, + "column": 25 } } }, @@ -94618,17 +96015,17 @@ "postfix": false, "binop": null }, - "value": "display", - "start": 7568, - "end": 7575, + "value": "code", + "start": 7673, + "end": 7677, "loc": { "start": { - "line": 187, - "column": 54 + "line": 190, + "column": 25 }, "end": { - "line": 187, - "column": 61 + "line": 190, + "column": 29 } } }, @@ -94646,16 +96043,16 @@ "updateContext": null }, "value": "===", - "start": 7576, - "end": 7579, + "start": 7678, + "end": 7681, "loc": { "start": { - "line": 187, - "column": 62 + "line": 190, + "column": 30 }, "end": { - "line": 187, - "column": 65 + "line": 190, + "column": 33 } } }, @@ -94672,17 +96069,17 @@ "binop": null, "updateContext": null }, - "value": "none", - "start": 7580, - "end": 7586, + "value": "session.too.old", + "start": 7682, + "end": 7699, "loc": { "start": { - "line": 187, - "column": 66 + "line": 190, + "column": 34 }, "end": { - "line": 187, - "column": 72 + "line": 190, + "column": 51 } } }, @@ -94698,16 +96095,41 @@ "postfix": false, "binop": null }, - "start": 7586, - "end": 7587, + "start": 7699, + "end": 7700, "loc": { "start": { - "line": 187, - "column": 72 + "line": 190, + "column": 51 }, "end": { - "line": 187, - "column": 73 + "line": 190, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7700, + "end": 7701, + "loc": { + "start": { + "line": 190, + "column": 52 + }, + "end": { + "line": 190, + "column": 53 } } }, @@ -94723,16 +96145,16 @@ "postfix": false, "binop": null }, - "start": 7588, - "end": 7589, + "start": 7702, + "end": 7703, "loc": { "start": { - "line": 187, - "column": 74 + "line": 190, + "column": 54 }, "end": { - "line": 187, - "column": 75 + "line": 190, + "column": 55 } } }, @@ -94749,15 +96171,15 @@ "binop": null }, "value": "editorRef", - "start": 7598, - "end": 7607, + "start": 7712, + "end": 7721, "loc": { "start": { - "line": 188, + "line": 191, "column": 8 }, "end": { - "line": 188, + "line": 191, "column": 17 } } @@ -94775,15 +96197,15 @@ "binop": null, "updateContext": null }, - "start": 7607, - "end": 7608, + "start": 7721, + "end": 7722, "loc": { "start": { - "line": 188, + "line": 191, "column": 17 }, "end": { - "line": 188, + "line": 191, "column": 18 } } @@ -94801,15 +96223,15 @@ "binop": null }, "value": "error", - "start": 7608, - "end": 7613, + "start": 7722, + "end": 7727, "loc": { "start": { - "line": 188, + "line": 191, "column": 18 }, "end": { - "line": 188, + "line": 191, "column": 23 } } @@ -94827,15 +96249,15 @@ "binop": null, "updateContext": null }, - "start": 7613, - "end": 7614, + "start": 7727, + "end": 7728, "loc": { "start": { - "line": 188, + "line": 191, "column": 23 }, "end": { - "line": 188, + "line": 191, "column": 24 } } @@ -94853,15 +96275,15 @@ "binop": null }, "value": "innerText", - "start": 7614, - "end": 7623, + "start": 7728, + "end": 7737, "loc": { "start": { - "line": 188, + "line": 191, "column": 24 }, "end": { - "line": 188, + "line": 191, "column": 33 } } @@ -94880,15 +96302,15 @@ "updateContext": null }, "value": "=", - "start": 7624, - "end": 7625, + "start": 7738, + "end": 7739, "loc": { "start": { - "line": 188, + "line": 191, "column": 34 }, "end": { - "line": 188, + "line": 191, "column": 35 } } @@ -94906,15 +96328,15 @@ "binop": null }, "value": "Constants", - "start": 7626, - "end": 7635, + "start": 7740, + "end": 7749, "loc": { "start": { - "line": 188, + "line": 191, "column": 36 }, "end": { - "line": 188, + "line": 191, "column": 45 } } @@ -94932,15 +96354,15 @@ "binop": null, "updateContext": null }, - "start": 7635, - "end": 7636, + "start": 7749, + "end": 7750, "loc": { "start": { - "line": 188, + "line": 191, "column": 45 }, "end": { - "line": 188, + "line": 191, "column": 46 } } @@ -94958,15 +96380,15 @@ "binop": null }, "value": "Error", - "start": 7636, - "end": 7641, + "start": 7750, + "end": 7755, "loc": { "start": { - "line": 188, + "line": 191, "column": 46 }, "end": { - "line": 188, + "line": 191, "column": 51 } } @@ -94984,15 +96406,15 @@ "binop": null, "updateContext": null }, - "start": 7641, - "end": 7642, + "start": 7755, + "end": 7756, "loc": { "start": { - "line": 188, + "line": 191, "column": 51 }, "end": { - "line": 188, + "line": 191, "column": 52 } } @@ -95009,17 +96431,17 @@ "postfix": false, "binop": null }, - "value": "NOT_REACHABLE", - "start": 7642, - "end": 7655, + "value": "TOO_OLD", + "start": 7756, + "end": 7763, "loc": { "start": { - "line": 188, + "line": 191, "column": 52 }, "end": { - "line": 188, - "column": 65 + "line": 191, + "column": 59 } } }, @@ -95036,16 +96458,16 @@ "binop": null, "updateContext": null }, - "start": 7655, - "end": 7656, + "start": 7763, + "end": 7764, "loc": { "start": { - "line": 188, - "column": 65 + "line": 191, + "column": 59 }, "end": { - "line": 188, - "column": 66 + "line": 191, + "column": 60 } } }, @@ -95061,19 +96483,47 @@ "postfix": false, "binop": null }, - "start": 7663, - "end": 7664, + "start": 7771, + "end": 7772, "loc": { "start": { - "line": 189, + "line": 192, "column": 6 }, "end": { - "line": 189, + "line": 192, "column": 7 } } }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 7773, + "end": 7777, + "loc": { + "start": { + "line": 192, + "column": 8 + }, + "end": { + "line": 192, + "column": 12 + } + } + }, { "type": { "label": "if", @@ -95089,16 +96539,16 @@ "updateContext": null }, "value": "if", - "start": 7671, - "end": 7673, + "start": 7778, + "end": 7780, "loc": { "start": { - "line": 190, - "column": 6 + "line": 192, + "column": 13 }, "end": { - "line": 190, - "column": 8 + "line": 192, + "column": 15 } } }, @@ -95114,16 +96564,16 @@ "postfix": false, "binop": null }, - "start": 7674, - "end": 7675, + "start": 7781, + "end": 7782, "loc": { "start": { - "line": 190, - "column": 9 + "line": 192, + "column": 16 }, "end": { - "line": 190, - "column": 10 + "line": 192, + "column": 17 } } }, @@ -95139,16 +96589,16 @@ "postfix": false, "binop": null }, - "start": 7675, - "end": 7676, + "start": 7782, + "end": 7783, "loc": { "start": { - "line": 190, - "column": 10 + "line": 192, + "column": 17 }, "end": { - "line": 190, - "column": 11 + "line": 192, + "column": 18 } } }, @@ -95164,17 +96614,17 @@ "postfix": false, "binop": null }, - "value": "editorRef", - "start": 7676, - "end": 7685, + "value": "err", + "start": 7783, + "end": 7786, "loc": { "start": { - "line": 190, - "column": 11 + "line": 192, + "column": 18 }, "end": { - "line": 190, - "column": 20 + "line": 192, + "column": 21 } } }, @@ -95191,16 +96641,16 @@ "binop": null, "updateContext": null }, - "start": 7685, - "end": 7686, + "start": 7786, + "end": 7787, "loc": { "start": { - "line": 190, - "column": 20 + "line": 192, + "column": 21 }, "end": { - "line": 190, - "column": 21 + "line": 192, + "column": 22 } } }, @@ -95216,43 +96666,44 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 7686, - "end": 7691, + "value": "message", + "start": 7787, + "end": 7794, "loc": { "start": { - "line": 190, - "column": 21 + "line": 192, + "column": 22 }, "end": { - "line": 190, - "column": 26 + "line": 192, + "column": 29 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "||", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 1, "updateContext": null }, - "start": 7691, - "end": 7692, + "value": "||", + "start": 7795, + "end": 7797, "loc": { "start": { - "line": 190, - "column": 26 + "line": 192, + "column": 30 }, "end": { - "line": 190, - "column": 27 + "line": 192, + "column": 32 } } }, @@ -95268,44 +96719,43 @@ "postfix": false, "binop": null }, - "value": "innerText", - "start": 7692, - "end": 7701, + "value": "err", + "start": 7798, + "end": 7801, "loc": { "start": { - "line": 190, - "column": 27 + "line": 192, + "column": 33 }, "end": { - "line": 190, + "line": 192, "column": 36 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 7702, - "end": 7705, + "start": 7801, + "end": 7802, "loc": { "start": { - "line": 190, - "column": 37 + "line": 192, + "column": 36 }, "end": { - "line": 190, - "column": 40 + "line": 192, + "column": 37 } } }, @@ -95321,49 +96771,50 @@ "postfix": false, "binop": null }, - "value": "Constants", - "start": 7706, - "end": 7715, + "value": "code", + "start": 7802, + "end": 7806, "loc": { "start": { - "line": 190, - "column": 41 + "line": 192, + "column": 37 }, "end": { - "line": 190, - "column": 50 + "line": 192, + "column": 41 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "==/!=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 7715, - "end": 7716, + "value": "===", + "start": 7807, + "end": 7810, "loc": { "start": { - "line": 190, - "column": 50 + "line": 192, + "column": 42 }, "end": { - "line": 190, - "column": 51 + "line": 192, + "column": 45 } } }, { "type": { - "label": "name", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -95371,53 +96822,28 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "value": "Error", - "start": 7716, - "end": 7721, - "loc": { - "start": { - "line": 190, - "column": 51 - }, - "end": { - "line": 190, - "column": 56 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null, "updateContext": null }, - "start": 7721, - "end": 7722, + "value": 1006, + "start": 7811, + "end": 7815, "loc": { "start": { - "line": 190, - "column": 56 + "line": 192, + "column": 46 }, "end": { - "line": 190, - "column": 57 + "line": 192, + "column": 50 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -95425,23 +96851,22 @@ "postfix": false, "binop": null }, - "value": "TOO_OLD", - "start": 7722, - "end": 7729, + "start": 7815, + "end": 7816, "loc": { "start": { - "line": 190, - "column": 57 + "line": 192, + "column": 50 }, "end": { - "line": 190, - "column": 64 + "line": 192, + "column": 51 } } }, { "type": { - "label": "||", + "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -95449,20 +96874,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 1, + "binop": 2, "updateContext": null }, - "value": "||", - "start": 7730, - "end": 7732, + "value": "&&", + "start": 7817, + "end": 7819, "loc": { "start": { - "line": 190, - "column": 65 + "line": 192, + "column": 52 }, "end": { - "line": 190, - "column": 67 + "line": 192, + "column": 54 } } }, @@ -95478,17 +96903,17 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 7733, - "end": 7736, + "value": "editorRef", + "start": 7820, + "end": 7829, "loc": { "start": { - "line": 190, - "column": 68 + "line": 192, + "column": 55 }, "end": { - "line": 190, - "column": 71 + "line": 192, + "column": 64 } } }, @@ -95505,16 +96930,16 @@ "binop": null, "updateContext": null }, - "start": 7736, - "end": 7737, + "start": 7829, + "end": 7830, "loc": { "start": { - "line": 190, - "column": 71 + "line": 192, + "column": 64 }, "end": { - "line": 190, - "column": 72 + "line": 192, + "column": 65 } } }, @@ -95530,50 +96955,49 @@ "postfix": false, "binop": null }, - "value": "code", - "start": 7737, - "end": 7741, + "value": "error", + "start": 7830, + "end": 7835, "loc": { "start": { - "line": 190, - "column": 72 + "line": 192, + "column": 65 }, "end": { - "line": 190, - "column": 76 + "line": 192, + "column": 70 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 7742, - "end": 7745, + "start": 7835, + "end": 7836, "loc": { "start": { - "line": 190, - "column": 77 + "line": 192, + "column": 70 }, "end": { - "line": 190, - "column": 80 + "line": 192, + "column": 71 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -95581,47 +97005,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 1006, - "start": 7746, - "end": 7750, + "value": "style", + "start": 7836, + "end": 7841, "loc": { "start": { - "line": 190, - "column": 81 + "line": 192, + "column": 71 }, "end": { - "line": 190, - "column": 85 + "line": 192, + "column": 76 } } }, { "type": { - "label": "||", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 1, + "binop": null, "updateContext": null }, - "value": "||", - "start": 7751, - "end": 7753, + "start": 7841, + "end": 7842, "loc": { "start": { - "line": 190, - "column": 86 + "line": 192, + "column": 76 }, "end": { - "line": 190, - "column": 88 + "line": 192, + "column": 77 } } }, @@ -95637,49 +97059,50 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 7754, - "end": 7757, + "value": "display", + "start": 7842, + "end": 7849, "loc": { "start": { - "line": 190, - "column": 89 + "line": 192, + "column": 77 }, "end": { - "line": 190, - "column": 92 + "line": 192, + "column": 84 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "==/!=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 7757, - "end": 7758, + "value": "===", + "start": 7850, + "end": 7853, "loc": { "start": { - "line": 190, - "column": 92 + "line": 192, + "column": 85 }, "end": { - "line": 190, - "column": 93 + "line": 192, + "column": 88 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -95687,81 +97110,78 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "reason", - "start": 7758, - "end": 7764, + "value": "none", + "start": 7854, + "end": 7860, "loc": { "start": { - "line": 190, - "column": 93 + "line": 192, + "column": 89 }, "end": { - "line": 190, - "column": 99 + "line": 192, + "column": 95 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "===", - "start": 7765, - "end": 7768, + "start": 7860, + "end": 7861, "loc": { "start": { - "line": 190, - "column": 100 + "line": 192, + "column": 95 }, "end": { - "line": 190, - "column": 103 + "line": 192, + "column": 96 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "CLOSE_RECOGNIZER", - "start": 7769, - "end": 7787, + "start": 7862, + "end": 7863, "loc": { "start": { - "line": 190, - "column": 104 + "line": 192, + "column": 97 }, "end": { - "line": 190, - "column": 122 + "line": 192, + "column": 98 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -95769,43 +97189,43 @@ "postfix": false, "binop": null }, - "start": 7787, - "end": 7788, + "value": "editorRef", + "start": 7872, + "end": 7881, "loc": { "start": { - "line": 190, - "column": 122 + "line": 193, + "column": 8 }, "end": { - "line": 190, - "column": 123 + "line": 193, + "column": 17 } } }, { "type": { - "label": "&&", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 7789, - "end": 7791, + "start": 7881, + "end": 7882, "loc": { "start": { - "line": 190, - "column": 124 + "line": 193, + "column": 17 }, "end": { - "line": 190, - "column": 126 + "line": 193, + "column": 18 } } }, @@ -95821,17 +97241,17 @@ "postfix": false, "binop": null }, - "value": "RecognizerContext", - "start": 7792, - "end": 7809, + "value": "error", + "start": 7882, + "end": 7887, "loc": { "start": { - "line": 190, - "column": 127 + "line": 193, + "column": 18 }, "end": { - "line": 190, - "column": 144 + "line": 193, + "column": 23 } } }, @@ -95848,16 +97268,16 @@ "binop": null, "updateContext": null }, - "start": 7809, - "end": 7810, + "start": 7887, + "end": 7888, "loc": { "start": { - "line": 190, - "column": 144 + "line": 193, + "column": 23 }, "end": { - "line": 190, - "column": 145 + "line": 193, + "column": 24 } } }, @@ -95873,42 +97293,44 @@ "postfix": false, "binop": null }, - "value": "canReconnect", - "start": 7810, - "end": 7822, + "value": "innerText", + "start": 7888, + "end": 7897, "loc": { "start": { - "line": 190, - "column": 145 + "line": 193, + "column": 24 }, "end": { - "line": 190, - "column": 157 + "line": 193, + "column": 33 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7822, - "end": 7823, + "value": "=", + "start": 7898, + "end": 7899, "loc": { "start": { - "line": 190, - "column": 157 + "line": 193, + "column": 34 }, "end": { - "line": 190, - "column": 158 + "line": 193, + "column": 35 } } }, @@ -95924,17 +97346,17 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 7823, - "end": 7829, + "value": "Constants", + "start": 7900, + "end": 7909, "loc": { "start": { - "line": 190, - "column": 158 + "line": 193, + "column": 36 }, "end": { - "line": 190, - "column": 164 + "line": 193, + "column": 45 } } }, @@ -95951,16 +97373,16 @@ "binop": null, "updateContext": null }, - "start": 7829, - "end": 7830, + "start": 7909, + "end": 7910, "loc": { "start": { - "line": 190, - "column": 164 + "line": 193, + "column": 45 }, "end": { - "line": 190, - "column": 165 + "line": 193, + "column": 46 } } }, @@ -95976,23 +97398,23 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 7830, - "end": 7847, + "value": "Error", + "start": 7910, + "end": 7915, "loc": { "start": { - "line": 190, - "column": 165 + "line": 193, + "column": 46 }, "end": { - "line": 190, - "column": 182 + "line": 193, + "column": 51 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -96000,26 +97422,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7847, - "end": 7848, + "start": 7915, + "end": 7916, "loc": { "start": { - "line": 190, - "column": 182 + "line": 193, + "column": 51 }, "end": { - "line": 190, - "column": 183 + "line": 193, + "column": 52 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -96027,49 +97450,51 @@ "postfix": false, "binop": null }, - "start": 7848, - "end": 7849, + "value": "NOT_REACHABLE", + "start": 7916, + "end": 7929, "loc": { "start": { - "line": 190, - "column": 183 + "line": 193, + "column": 52 }, "end": { - "line": 190, - "column": 184 + "line": 193, + "column": 65 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 7850, - "end": 7851, + "start": 7929, + "end": 7930, "loc": { "start": { - "line": 190, - "column": 185 + "line": 193, + "column": 65 }, "end": { - "line": 190, - "column": 186 + "line": 193, + "column": 66 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -96077,23 +97502,23 @@ "postfix": false, "binop": null }, - "value": "logger", - "start": 7860, - "end": 7866, + "start": 7937, + "end": 7938, "loc": { "start": { - "line": 191, - "column": 8 + "line": 194, + "column": 6 }, "end": { - "line": 191, - "column": 14 + "line": 194, + "column": 7 } } }, { "type": { - "label": ".", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -96104,23 +97529,24 @@ "binop": null, "updateContext": null }, - "start": 7866, - "end": 7867, + "value": "if", + "start": 7945, + "end": 7947, "loc": { "start": { - "line": 191, - "column": 14 + "line": 195, + "column": 6 }, "end": { - "line": 191, - "column": 15 + "line": 195, + "column": 8 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -96129,17 +97555,16 @@ "postfix": false, "binop": null }, - "value": "info", - "start": 7867, - "end": 7871, + "start": 7948, + "end": 7949, "loc": { "start": { - "line": 191, - "column": 15 + "line": 195, + "column": 9 }, "end": { - "line": 191, - "column": 19 + "line": 195, + "column": 10 } } }, @@ -96155,22 +97580,22 @@ "postfix": false, "binop": null }, - "start": 7871, - "end": 7872, + "start": 7949, + "end": 7950, "loc": { "start": { - "line": 191, - "column": 19 + "line": 195, + "column": 10 }, "end": { - "line": 191, - "column": 20 + "line": 195, + "column": 11 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -96178,27 +97603,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "Reconnection is available", - "start": 7872, - "end": 7899, + "value": "editorRef", + "start": 7950, + "end": 7959, "loc": { "start": { - "line": 191, - "column": 20 + "line": 195, + "column": 11 }, "end": { - "line": 191, - "column": 47 + "line": 195, + "column": 20 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -96208,16 +97632,16 @@ "binop": null, "updateContext": null }, - "start": 7899, - "end": 7900, + "start": 7959, + "end": 7960, "loc": { "start": { - "line": 191, - "column": 47 + "line": 195, + "column": 20 }, "end": { - "line": 191, - "column": 48 + "line": 195, + "column": 21 } } }, @@ -96233,17 +97657,17 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 7901, - "end": 7904, + "value": "error", + "start": 7960, + "end": 7965, "loc": { "start": { - "line": 191, - "column": 49 + "line": 195, + "column": 21 }, "end": { - "line": 191, - "column": 52 + "line": 195, + "column": 26 } } }, @@ -96260,16 +97684,16 @@ "binop": null, "updateContext": null }, - "start": 7904, - "end": 7905, + "start": 7965, + "end": 7966, "loc": { "start": { - "line": 191, - "column": 52 + "line": 195, + "column": 26 }, "end": { - "line": 191, - "column": 53 + "line": 195, + "column": 27 } } }, @@ -96285,23 +97709,23 @@ "postfix": false, "binop": null }, - "value": "stack", - "start": 7905, - "end": 7910, + "value": "innerText", + "start": 7966, + "end": 7975, "loc": { "start": { - "line": 191, - "column": 53 + "line": 195, + "column": 27 }, "end": { - "line": 191, - "column": 58 + "line": 195, + "column": 36 } } }, { "type": { - "label": "||", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -96309,20 +97733,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 1, + "binop": 6, "updateContext": null }, - "value": "||", - "start": 7911, - "end": 7913, + "value": "===", + "start": 7976, + "end": 7979, "loc": { "start": { - "line": 191, - "column": 59 + "line": 195, + "column": 37 }, "end": { - "line": 191, - "column": 61 + "line": 195, + "column": 40 } } }, @@ -96338,23 +97762,23 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 7914, - "end": 7917, + "value": "Constants", + "start": 7980, + "end": 7989, "loc": { "start": { - "line": 191, - "column": 62 + "line": 195, + "column": 41 }, "end": { - "line": 191, - "column": 65 + "line": 195, + "column": 50 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -96362,44 +97786,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 7917, - "end": 7918, - "loc": { - "start": { - "line": 191, - "column": 65 - }, - "end": { - "line": 191, - "column": 66 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null, "updateContext": null }, - "start": 7918, - "end": 7919, + "start": 7989, + "end": 7990, "loc": { "start": { - "line": 191, - "column": 66 + "line": 195, + "column": 50 }, "end": { - "line": 191, - "column": 67 + "line": 195, + "column": 51 } } }, @@ -96415,17 +97814,17 @@ "postfix": false, "binop": null }, - "value": "editorRef", - "start": 7928, - "end": 7937, + "value": "Error", + "start": 7990, + "end": 7995, "loc": { "start": { - "line": 192, - "column": 8 + "line": 195, + "column": 51 }, "end": { - "line": 192, - "column": 17 + "line": 195, + "column": 56 } } }, @@ -96442,16 +97841,16 @@ "binop": null, "updateContext": null }, - "start": 7937, - "end": 7938, + "start": 7995, + "end": 7996, "loc": { "start": { - "line": 192, - "column": 17 + "line": 195, + "column": 56 }, "end": { - "line": 192, - "column": 18 + "line": 195, + "column": 57 } } }, @@ -96467,43 +97866,44 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 7938, - "end": 7943, + "value": "TOO_OLD", + "start": 7996, + "end": 8003, "loc": { "start": { - "line": 192, - "column": 18 + "line": 195, + "column": 57 }, "end": { - "line": 192, - "column": 23 + "line": 195, + "column": 64 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "||", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 1, "updateContext": null }, - "start": 7943, - "end": 7944, + "value": "||", + "start": 8004, + "end": 8006, "loc": { "start": { - "line": 192, - "column": 23 + "line": 195, + "column": 65 }, "end": { - "line": 192, - "column": 24 + "line": 195, + "column": 67 } } }, @@ -96519,17 +97919,17 @@ "postfix": false, "binop": null }, - "value": "style", - "start": 7944, - "end": 7949, + "value": "err", + "start": 8007, + "end": 8010, "loc": { "start": { - "line": 192, - "column": 24 + "line": 195, + "column": 68 }, "end": { - "line": 192, - "column": 29 + "line": 195, + "column": 71 } } }, @@ -96546,16 +97946,16 @@ "binop": null, "updateContext": null }, - "start": 7949, - "end": 7950, + "start": 8010, + "end": 8011, "loc": { "start": { - "line": 192, - "column": 29 + "line": 195, + "column": 71 }, "end": { - "line": 192, - "column": 30 + "line": 195, + "column": 72 } } }, @@ -96571,50 +97971,50 @@ "postfix": false, "binop": null }, - "value": "display", - "start": 7950, - "end": 7957, + "value": "code", + "start": 8011, + "end": 8015, "loc": { "start": { - "line": 192, - "column": 30 + "line": 195, + "column": 72 }, "end": { - "line": 192, - "column": 37 + "line": 195, + "column": 76 } } }, { "type": { - "label": "=", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "value": "=", - "start": 7958, - "end": 7959, + "value": "===", + "start": 8016, + "end": 8019, "loc": { "start": { - "line": 192, - "column": 38 + "line": 195, + "column": 77 }, "end": { - "line": 192, - "column": 39 + "line": 195, + "column": 80 } } }, { "type": { - "label": "string", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -96625,23 +98025,23 @@ "binop": null, "updateContext": null }, - "value": "none", - "start": 7960, - "end": 7966, + "value": 1000, + "start": 8020, + "end": 8024, "loc": { "start": { - "line": 192, - "column": 40 + "line": 195, + "column": 81 }, "end": { - "line": 192, - "column": 46 + "line": 195, + "column": 85 } } }, { "type": { - "label": ";", + "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -96649,27 +98049,28 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 1, "updateContext": null }, - "start": 7966, - "end": 7967, + "value": "||", + "start": 8025, + "end": 8027, "loc": { "start": { - "line": 192, - "column": 46 + "line": 195, + "column": 86 }, "end": { - "line": 192, - "column": 47 + "line": 195, + "column": 88 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -96677,24 +98078,24 @@ "postfix": false, "binop": null }, - "start": 7974, - "end": 7975, + "value": "err", + "start": 8028, + "end": 8031, "loc": { "start": { - "line": 193, - "column": 6 + "line": 195, + "column": 89 }, "end": { - "line": 193, - "column": 7 + "line": 195, + "column": 92 } } }, { "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -96704,24 +98105,23 @@ "binop": null, "updateContext": null }, - "value": "else", - "start": 7976, - "end": 7980, + "start": 8031, + "end": 8032, "loc": { "start": { - "line": 193, - "column": 8 + "line": 195, + "column": 92 }, "end": { - "line": 193, - "column": 12 + "line": 195, + "column": 93 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -96730,50 +98130,52 @@ "postfix": false, "binop": null }, - "start": 7981, - "end": 7982, + "value": "reason", + "start": 8032, + "end": 8038, "loc": { "start": { - "line": 193, - "column": 13 + "line": 195, + "column": 93 }, "end": { - "line": 193, - "column": 14 + "line": 195, + "column": 99 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "value": "editorRef", - "start": 7991, - "end": 8000, + "value": "===", + "start": 8039, + "end": 8042, "loc": { "start": { - "line": 194, - "column": 8 + "line": 195, + "column": 100 }, "end": { - "line": 194, - "column": 17 + "line": 195, + "column": 103 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -96782,24 +98184,25 @@ "binop": null, "updateContext": null }, - "start": 8000, - "end": 8001, + "value": "CLOSE_RECOGNIZER", + "start": 8043, + "end": 8061, "loc": { "start": { - "line": 194, - "column": 17 + "line": 195, + "column": 104 }, "end": { - "line": 194, - "column": 18 + "line": 195, + "column": 122 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -96807,43 +98210,43 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 8001, - "end": 8006, + "start": 8061, + "end": 8062, "loc": { "start": { - "line": 194, - "column": 18 + "line": 195, + "column": 122 }, "end": { - "line": 194, - "column": 23 + "line": 195, + "column": 123 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "&&", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "start": 8006, - "end": 8007, + "value": "&&", + "start": 8063, + "end": 8065, "loc": { "start": { - "line": 194, - "column": 23 + "line": 195, + "column": 124 }, "end": { - "line": 194, - "column": 24 + "line": 195, + "column": 126 } } }, @@ -96859,17 +98262,17 @@ "postfix": false, "binop": null }, - "value": "style", - "start": 8007, - "end": 8012, + "value": "RecognizerContext", + "start": 8066, + "end": 8083, "loc": { "start": { - "line": 194, - "column": 24 + "line": 195, + "column": 127 }, "end": { - "line": 194, - "column": 29 + "line": 195, + "column": 144 } } }, @@ -96886,16 +98289,16 @@ "binop": null, "updateContext": null }, - "start": 8012, - "end": 8013, + "start": 8083, + "end": 8084, "loc": { "start": { - "line": 194, - "column": 29 + "line": 195, + "column": 144 }, "end": { - "line": 194, - "column": 30 + "line": 195, + "column": 145 } } }, @@ -96911,50 +98314,48 @@ "postfix": false, "binop": null }, - "value": "display", - "start": 8013, - "end": 8020, + "value": "canReconnect", + "start": 8084, + "end": 8096, "loc": { "start": { - "line": 194, - "column": 30 + "line": 195, + "column": 145 }, "end": { - "line": 194, - "column": 37 + "line": 195, + "column": 157 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 8021, - "end": 8022, + "start": 8096, + "end": 8097, "loc": { "start": { - "line": 194, - "column": 38 + "line": 195, + "column": 157 }, "end": { - "line": 194, - "column": 39 + "line": 195, + "column": 158 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -96962,27 +98363,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "initial", - "start": 8023, - "end": 8032, + "value": "editor", + "start": 8097, + "end": 8103, "loc": { "start": { - "line": 194, - "column": 40 - }, + "line": 195, + "column": 158 + }, "end": { - "line": 194, - "column": 49 + "line": 195, + "column": 164 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -96992,16 +98392,16 @@ "binop": null, "updateContext": null }, - "start": 8032, - "end": 8033, + "start": 8103, + "end": 8104, "loc": { "start": { - "line": 194, - "column": 49 + "line": 195, + "column": 164 }, "end": { - "line": 194, - "column": 50 + "line": 195, + "column": 165 } } }, @@ -97017,25 +98417,25 @@ "postfix": false, "binop": null }, - "value": "triggerCallbacks", - "start": 8042, - "end": 8058, + "value": "recognizerContext", + "start": 8104, + "end": 8121, "loc": { "start": { "line": 195, - "column": 8 + "column": 165 }, "end": { "line": 195, - "column": 24 + "column": 182 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -97043,24 +98443,24 @@ "postfix": false, "binop": null }, - "start": 8058, - "end": 8059, + "start": 8121, + "end": 8122, "loc": { "start": { "line": 195, - "column": 24 + "column": 182 }, "end": { "line": 195, - "column": 25 + "column": 183 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -97068,43 +98468,41 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 8059, - "end": 8065, + "start": 8122, + "end": 8123, "loc": { "start": { "line": 195, - "column": 25 + "column": 183 }, "end": { "line": 195, - "column": 31 + "column": 184 } } }, { "type": { - "label": ",", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8065, - "end": 8066, + "start": 8124, + "end": 8125, "loc": { "start": { "line": 195, - "column": 31 + "column": 185 }, "end": { "line": 195, - "column": 32 + "column": 186 } } }, @@ -97120,24 +98518,24 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 8067, - "end": 8070, + "value": "logger", + "start": 8134, + "end": 8140, "loc": { "start": { - "line": 195, - "column": 33 + "line": 196, + "column": 8 }, "end": { - "line": 195, - "column": 36 + "line": 196, + "column": 14 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -97147,16 +98545,16 @@ "binop": null, "updateContext": null }, - "start": 8070, - "end": 8071, + "start": 8140, + "end": 8141, "loc": { "start": { - "line": 195, - "column": 36 + "line": 196, + "column": 14 }, "end": { - "line": 195, - "column": 37 + "line": 196, + "column": 15 } } }, @@ -97172,49 +98570,48 @@ "postfix": false, "binop": null }, - "value": "Constants", - "start": 8072, - "end": 8081, + "value": "info", + "start": 8141, + "end": 8145, "loc": { "start": { - "line": 195, - "column": 38 + "line": 196, + "column": 15 }, "end": { - "line": 195, - "column": 47 + "line": 196, + "column": 19 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8081, - "end": 8082, + "start": 8145, + "end": 8146, "loc": { "start": { - "line": 195, - "column": 47 + "line": 196, + "column": 19 }, "end": { - "line": 195, - "column": 48 + "line": 196, + "column": 20 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -97222,26 +98619,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "EventType", - "start": 8082, - "end": 8091, + "value": "Reconnection is available", + "start": 8146, + "end": 8173, "loc": { "start": { - "line": 195, - "column": 48 + "line": 196, + "column": 20 }, "end": { - "line": 195, - "column": 57 + "line": 196, + "column": 47 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -97251,16 +98649,16 @@ "binop": null, "updateContext": null }, - "start": 8091, - "end": 8092, + "start": 8173, + "end": 8174, "loc": { "start": { - "line": 195, - "column": 57 + "line": 196, + "column": 47 }, "end": { - "line": 195, - "column": 58 + "line": 196, + "column": 48 } } }, @@ -97276,24 +98674,24 @@ "postfix": false, "binop": null }, - "value": "ERROR", - "start": 8092, - "end": 8097, + "value": "err", + "start": 8175, + "end": 8178, "loc": { "start": { - "line": 195, - "column": 58 + "line": 196, + "column": 49 }, "end": { - "line": 195, - "column": 63 + "line": 196, + "column": 52 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -97303,76 +98701,77 @@ "binop": null, "updateContext": null }, - "start": 8097, - "end": 8098, + "start": 8178, + "end": 8179, "loc": { "start": { - "line": 195, - "column": 63 + "line": 196, + "column": 52 }, "end": { - "line": 195, - "column": 64 + "line": 196, + "column": 53 } } }, { "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8099, - "end": 8102, + "value": "stack", + "start": 8179, + "end": 8184, "loc": { "start": { - "line": 195, - "column": 65 + "line": 196, + "column": 53 }, "end": { - "line": 195, - "column": 68 + "line": 196, + "column": 58 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "||", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 1, + "updateContext": null }, - "value": "types", - "start": 8102, - "end": 8107, + "value": "||", + "start": 8185, + "end": 8187, "loc": { "start": { - "line": 195, - "column": 68 + "line": 196, + "column": 59 }, "end": { - "line": 195, - "column": 73 + "line": 196, + "column": 61 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -97380,75 +98779,76 @@ "postfix": false, "binop": null }, - "start": 8107, - "end": 8108, + "value": "err", + "start": 8188, + "end": 8191, "loc": { "start": { - "line": 195, - "column": 73 + "line": 196, + "column": 62 }, "end": { - "line": 195, - "column": 74 + "line": 196, + "column": 65 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8108, - "end": 8109, + "start": 8191, + "end": 8192, "loc": { "start": { - "line": 195, - "column": 74 + "line": 196, + "column": 65 }, "end": { - "line": 195, - "column": 75 + "line": 196, + "column": 66 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8116, - "end": 8117, + "start": 8192, + "end": 8193, "loc": { "start": { "line": 196, - "column": 6 + "column": 66 }, "end": { "line": 196, - "column": 7 + "column": 67 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -97456,24 +98856,24 @@ "postfix": false, "binop": null }, - "start": 8122, - "end": 8123, + "value": "editorRef", + "start": 8202, + "end": 8211, "loc": { "start": { "line": 197, - "column": 4 + "column": 8 }, "end": { "line": 197, - "column": 5 + "column": 17 } } }, { "type": { - "label": "else", - "keyword": "else", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -97483,24 +98883,23 @@ "binop": null, "updateContext": null }, - "value": "else", - "start": 8124, - "end": 8128, + "start": 8211, + "end": 8212, "loc": { "start": { "line": 197, - "column": 6 + "column": 17 }, "end": { "line": 197, - "column": 10 + "column": 18 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -97509,67 +98908,43 @@ "postfix": false, "binop": null }, - "start": 8129, - "end": 8130, + "value": "error", + "start": 8212, + "end": 8217, "loc": { "start": { "line": 197, - "column": 11 + "column": 18 }, "end": { "line": 197, - "column": 12 + "column": 23 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "manageRecognizedModel", - "start": 8137, - "end": 8158, - "loc": { - "start": { - "line": 198, - "column": 6 - }, - "end": { - "line": 198, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8158, - "end": 8159, + "start": 8217, + "end": 8218, "loc": { "start": { - "line": 198, - "column": 27 + "line": 197, + "column": 23 }, "end": { - "line": 198, - "column": 28 + "line": 197, + "column": 24 } } }, @@ -97585,24 +98960,24 @@ "postfix": false, "binop": null }, - "value": "editorRef", - "start": 8159, - "end": 8168, + "value": "style", + "start": 8218, + "end": 8223, "loc": { "start": { - "line": 198, - "column": 28 + "line": 197, + "column": 24 }, "end": { - "line": 198, - "column": 37 + "line": 197, + "column": 29 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -97612,16 +98987,16 @@ "binop": null, "updateContext": null }, - "start": 8168, - "end": 8169, + "start": 8223, + "end": 8224, "loc": { "start": { - "line": 198, - "column": 37 + "line": 197, + "column": 29 }, "end": { - "line": 198, - "column": 38 + "line": 197, + "column": 30 } } }, @@ -97637,76 +99012,51 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 8170, - "end": 8173, - "loc": { - "start": { - "line": 198, - "column": 39 - }, - "end": { - "line": 198, - "column": 42 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 8173, - "end": 8174, + "value": "display", + "start": 8224, + "end": 8231, "loc": { "start": { - "line": 198, - "column": 42 + "line": 197, + "column": 30 }, "end": { - "line": 198, - "column": 43 + "line": 197, + "column": 37 } } }, { "type": { - "label": "...", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 8175, - "end": 8178, + "value": "=", + "start": 8232, + "end": 8233, "loc": { "start": { - "line": 198, - "column": 44 + "line": 197, + "column": 38 }, "end": { - "line": 198, - "column": 47 + "line": 197, + "column": 39 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -97716,22 +99066,23 @@ "binop": null, "updateContext": null }, - "start": 8178, - "end": 8179, + "value": "none", + "start": 8234, + "end": 8240, "loc": { "start": { - "line": 198, - "column": 47 + "line": 197, + "column": 40 }, "end": { - "line": 198, - "column": 48 + "line": 197, + "column": 46 } } }, { "type": { - "label": "...", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -97742,24 +99093,24 @@ "binop": null, "updateContext": null }, - "start": 8179, - "end": 8182, + "start": 8240, + "end": 8241, "loc": { "start": { - "line": 198, - "column": 48 + "line": 197, + "column": 46 }, "end": { - "line": 198, - "column": 51 + "line": 197, + "column": 47 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -97767,23 +99118,23 @@ "postfix": false, "binop": null }, - "value": "events", - "start": 8182, - "end": 8188, + "start": 8248, + "end": 8249, "loc": { "start": { "line": 198, - "column": 51 + "column": 6 }, "end": { "line": 198, - "column": 57 + "column": 7 } } }, { "type": { - "label": ",", + "label": "else", + "keyword": "else", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -97794,42 +99145,42 @@ "binop": null, "updateContext": null }, - "start": 8188, - "end": 8189, + "value": "else", + "start": 8250, + "end": 8254, "loc": { "start": { "line": 198, - "column": 57 + "column": 8 }, "end": { "line": 198, - "column": 58 + "column": 12 } } }, { "type": { - "label": "...", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8190, - "end": 8193, + "start": 8255, + "end": 8256, "loc": { "start": { "line": 198, - "column": 59 + "column": 13 }, "end": { "line": 198, - "column": 62 + "column": 14 } } }, @@ -97845,23 +99196,23 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 8193, - "end": 8198, + "value": "editorRef", + "start": 8265, + "end": 8274, "loc": { "start": { - "line": 198, - "column": 62 + "line": 199, + "column": 8 }, "end": { - "line": 198, - "column": 67 + "line": 199, + "column": 17 } } }, { "type": { - "label": "]", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -97872,75 +99223,75 @@ "binop": null, "updateContext": null }, - "start": 8198, - "end": 8199, + "start": 8274, + "end": 8275, "loc": { "start": { - "line": 198, - "column": 67 + "line": 199, + "column": 17 }, "end": { - "line": 198, - "column": 68 + "line": 199, + "column": 18 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8199, - "end": 8200, + "value": "error", + "start": 8275, + "end": 8280, "loc": { "start": { - "line": 198, - "column": 68 + "line": 199, + "column": 18 }, "end": { - "line": 198, - "column": 69 + "line": 199, + "column": 23 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "filter", - "start": 8200, - "end": 8206, + "start": 8280, + "end": 8281, "loc": { "start": { - "line": 198, - "column": 69 + "line": 199, + "column": 23 }, "end": { - "line": 198, - "column": 75 + "line": 199, + "column": 24 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -97949,41 +99300,43 @@ "postfix": false, "binop": null }, - "start": 8206, - "end": 8207, + "value": "style", + "start": 8281, + "end": 8286, "loc": { "start": { - "line": 198, - "column": 75 + "line": 199, + "column": 24 }, "end": { - "line": 198, - "column": 76 + "line": 199, + "column": 29 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8207, - "end": 8208, + "start": 8286, + "end": 8287, "loc": { "start": { - "line": 198, - "column": 76 + "line": 199, + "column": 29 }, "end": { - "line": 198, - "column": 77 + "line": 199, + "column": 30 } } }, @@ -97999,49 +99352,50 @@ "postfix": false, "binop": null }, - "value": "el", - "start": 8208, - "end": 8210, + "value": "display", + "start": 8287, + "end": 8294, "loc": { "start": { - "line": 198, - "column": 77 + "line": 199, + "column": 30 }, "end": { - "line": 198, - "column": 79 + "line": 199, + "column": 37 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 8210, - "end": 8211, + "value": "=", + "start": 8295, + "end": 8296, "loc": { "start": { - "line": 198, - "column": 79 + "line": 199, + "column": 38 }, "end": { - "line": 198, - "column": 80 + "line": 199, + "column": 39 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -98049,25 +99403,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "i", - "start": 8212, - "end": 8213, + "value": "initial", + "start": 8297, + "end": 8306, "loc": { "start": { - "line": 198, - "column": 81 + "line": 199, + "column": 40 }, "end": { - "line": 198, - "column": 82 + "line": 199, + "column": 49 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -98078,16 +99433,16 @@ "binop": null, "updateContext": null }, - "start": 8213, - "end": 8214, + "start": 8306, + "end": 8307, "loc": { "start": { - "line": 198, - "column": 82 + "line": 199, + "column": 49 }, "end": { - "line": 198, - "column": 83 + "line": 199, + "column": 50 } } }, @@ -98103,68 +99458,42 @@ "postfix": false, "binop": null }, - "value": "a", - "start": 8215, - "end": 8216, - "loc": { - "start": { - "line": 198, - "column": 84 - }, - "end": { - "line": 198, - "column": 85 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 8216, - "end": 8217, + "value": "triggerCallbacks", + "start": 8316, + "end": 8332, "loc": { "start": { - "line": 198, - "column": 85 + "line": 200, + "column": 8 }, "end": { - "line": 198, - "column": 86 + "line": 200, + "column": 24 } } }, { "type": { - "label": "=>", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8218, - "end": 8220, + "start": 8332, + "end": 8333, "loc": { "start": { - "line": 198, - "column": 87 + "line": 200, + "column": 24 }, "end": { - "line": 198, - "column": 89 + "line": 200, + "column": 25 } } }, @@ -98180,23 +99509,23 @@ "postfix": false, "binop": null }, - "value": "i", - "start": 8221, - "end": 8222, + "value": "editor", + "start": 8333, + "end": 8339, "loc": { "start": { - "line": 198, - "column": 90 + "line": 200, + "column": 25 }, "end": { - "line": 198, - "column": 91 + "line": 200, + "column": 31 } } }, { "type": { - "label": "==/!=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -98204,20 +99533,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 8223, - "end": 8226, + "start": 8339, + "end": 8340, "loc": { "start": { - "line": 198, - "column": 92 + "line": 200, + "column": 31 }, "end": { - "line": 198, - "column": 95 + "line": 200, + "column": 32 } } }, @@ -98233,24 +99561,24 @@ "postfix": false, "binop": null }, - "value": "a", - "start": 8227, - "end": 8228, + "value": "err", + "start": 8341, + "end": 8344, "loc": { "start": { - "line": 198, - "column": 96 + "line": 200, + "column": 33 }, "end": { - "line": 198, - "column": 97 + "line": 200, + "column": 36 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -98260,16 +99588,16 @@ "binop": null, "updateContext": null }, - "start": 8228, - "end": 8229, + "start": 8344, + "end": 8345, "loc": { "start": { - "line": 198, - "column": 97 + "line": 200, + "column": 36 }, "end": { - "line": 198, - "column": 98 + "line": 200, + "column": 37 } } }, @@ -98285,42 +99613,43 @@ "postfix": false, "binop": null }, - "value": "indexOf", - "start": 8229, - "end": 8236, + "value": "Constants", + "start": 8346, + "end": 8355, "loc": { "start": { - "line": 198, - "column": 98 + "line": 200, + "column": 38 }, "end": { - "line": 198, - "column": 105 + "line": 200, + "column": 47 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8236, - "end": 8237, + "start": 8355, + "end": 8356, "loc": { "start": { - "line": 198, - "column": 105 + "line": 200, + "column": 47 }, "end": { - "line": 198, - "column": 106 + "line": 200, + "column": 48 } } }, @@ -98336,23 +99665,23 @@ "postfix": false, "binop": null }, - "value": "el", - "start": 8237, - "end": 8239, + "value": "EventType", + "start": 8356, + "end": 8365, "loc": { "start": { - "line": 198, - "column": 106 + "line": 200, + "column": 48 }, "end": { - "line": 198, - "column": 108 + "line": 200, + "column": 57 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -98360,26 +99689,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8239, - "end": 8240, + "start": 8365, + "end": 8366, "loc": { "start": { - "line": 198, - "column": 108 + "line": 200, + "column": 57 }, "end": { - "line": 198, - "column": 109 + "line": 200, + "column": 58 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -98387,47 +99717,49 @@ "postfix": false, "binop": null }, - "start": 8240, - "end": 8241, + "value": "ERROR", + "start": 8366, + "end": 8371, "loc": { "start": { - "line": 198, - "column": 109 + "line": 200, + "column": 58 }, "end": { - "line": 198, - "column": 110 + "line": 200, + "column": 63 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8241, - "end": 8242, + "start": 8371, + "end": 8372, "loc": { "start": { - "line": 198, - "column": 110 + "line": 200, + "column": 63 }, "end": { - "line": 198, - "column": 111 + "line": 200, + "column": 64 } } }, { "type": { - "label": ";", + "label": "...", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -98438,40 +99770,24 @@ "binop": null, "updateContext": null }, - "start": 8242, - "end": 8243, - "loc": { - "start": { - "line": 198, - "column": 111 - }, - "end": { - "line": 198, - "column": 112 - } - } - }, - { - "type": "CommentLine", - "value": " Remove duplicate events", - "start": 8244, - "end": 8270, + "start": 8373, + "end": 8376, "loc": { "start": { - "line": 198, - "column": 113 + "line": 200, + "column": 65 }, "end": { - "line": 198, - "column": 139 + "line": 200, + "column": 68 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -98479,22 +99795,23 @@ "postfix": false, "binop": null }, - "start": 8275, - "end": 8276, + "value": "types", + "start": 8376, + "end": 8381, "loc": { "start": { - "line": 199, - "column": 4 + "line": 200, + "column": 68 }, "end": { - "line": 199, - "column": 5 + "line": 200, + "column": 73 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -98504,16 +99821,16 @@ "postfix": false, "binop": null }, - "start": 8279, - "end": 8280, + "start": 8381, + "end": 8382, "loc": { "start": { "line": 200, - "column": 2 + "column": 73 }, "end": { "line": 200, - "column": 3 + "column": 74 } } }, @@ -98530,24 +99847,24 @@ "binop": null, "updateContext": null }, - "start": 8280, - "end": 8281, + "start": 8382, + "end": 8383, "loc": { "start": { "line": 200, - "column": 3 + "column": 74 }, "end": { "line": 200, - "column": 4 + "column": 75 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -98555,23 +99872,22 @@ "postfix": false, "binop": null }, - "value": "logger", - "start": 8285, - "end": 8291, + "start": 8390, + "end": 8391, "loc": { "start": { - "line": 202, - "column": 2 + "line": 201, + "column": 6 }, "end": { - "line": 202, - "column": 8 + "line": 201, + "column": 7 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -98579,51 +99895,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8291, - "end": 8292, + "start": 8396, + "end": 8397, "loc": { "start": { "line": 202, - "column": 8 + "column": 4 }, "end": { "line": 202, - "column": 9 + "column": 5 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "debug", - "start": 8292, - "end": 8297, + "value": "else", + "start": 8398, + "end": 8402, "loc": { "start": { "line": 202, - "column": 9 + "column": 6 }, "end": { "line": 202, - "column": 14 + "column": 10 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -98633,22 +99950,22 @@ "postfix": false, "binop": null }, - "start": 8297, - "end": 8298, + "start": 8403, + "end": 8404, "loc": { "start": { "line": 202, - "column": 14 + "column": 11 }, "end": { "line": 202, - "column": 15 + "column": 12 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -98656,28 +99973,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "recognition callback", - "start": 8298, - "end": 8320, + "value": "manageRecognizedModel", + "start": 8411, + "end": 8432, "loc": { "start": { - "line": 202, - "column": 15 + "line": 203, + "column": 6 }, "end": { - "line": 202, - "column": 37 + "line": 203, + "column": 27 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -98685,50 +100001,49 @@ "postfix": false, "binop": null }, - "start": 8320, - "end": 8321, + "start": 8432, + "end": 8433, "loc": { "start": { - "line": 202, - "column": 37 + "line": 203, + "column": 27 }, "end": { - "line": 202, - "column": 38 + "line": 203, + "column": 28 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8321, - "end": 8322, + "value": "editorRef", + "start": 8433, + "end": 8442, "loc": { "start": { - "line": 202, - "column": 38 + "line": 203, + "column": 28 }, "end": { - "line": 202, - "column": 39 + "line": 203, + "column": 37 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -98738,24 +100053,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 8325, - "end": 8327, + "start": 8442, + "end": 8443, "loc": { "start": { "line": 203, - "column": 2 + "column": 37 }, "end": { "line": 203, - "column": 4 + "column": 38 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -98764,49 +100078,50 @@ "postfix": false, "binop": null }, - "start": 8328, - "end": 8329, + "value": "res", + "start": 8444, + "end": 8447, "loc": { "start": { "line": 203, - "column": 5 + "column": 39 }, "end": { "line": 203, - "column": 6 + "column": 42 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "editor", - "start": 8329, - "end": 8335, + "start": 8447, + "end": 8448, "loc": { "start": { "line": 203, - "column": 6 + "column": 42 }, "end": { "line": 203, - "column": 12 + "column": 43 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "...", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -98816,49 +100131,49 @@ "binop": null, "updateContext": null }, - "start": 8335, - "end": 8336, + "start": 8449, + "end": 8452, "loc": { "start": { "line": 203, - "column": 12 + "column": 44 }, "end": { "line": 203, - "column": 13 + "column": 47 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "[", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "undoRedoManager", - "start": 8336, - "end": 8351, + "start": 8452, + "end": 8453, "loc": { "start": { "line": 203, - "column": 13 + "column": 47 }, "end": { "line": 203, - "column": 28 + "column": 48 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "...", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -98868,16 +100183,16 @@ "binop": null, "updateContext": null }, - "start": 8351, - "end": 8352, + "start": 8453, + "end": 8456, "loc": { "start": { "line": 203, - "column": 28 + "column": 48 }, "end": { "line": 203, - "column": 29 + "column": 51 } } }, @@ -98893,23 +100208,23 @@ "postfix": false, "binop": null }, - "value": "updateModel", - "start": 8352, - "end": 8363, + "value": "events", + "start": 8456, + "end": 8462, "loc": { "start": { "line": 203, - "column": 29 + "column": 51 }, "end": { "line": 203, - "column": 40 + "column": 57 } } }, { "type": { - "label": "&&", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -98917,47 +100232,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 8364, - "end": 8366, + "start": 8462, + "end": 8463, "loc": { "start": { "line": 203, - "column": 41 + "column": 57 }, "end": { "line": 203, - "column": 43 + "column": 58 } } }, { "type": { - "label": "prefix", + "label": "...", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "!", - "start": 8367, - "end": 8368, + "start": 8464, + "end": 8467, "loc": { "start": { "line": 203, - "column": 44 + "column": 59 }, "end": { "line": 203, - "column": 45 + "column": 62 } } }, @@ -98973,23 +100286,23 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 8368, - "end": 8373, + "value": "types", + "start": 8467, + "end": 8472, "loc": { "start": { "line": 203, - "column": 45 + "column": 62 }, "end": { "line": 203, - "column": 50 + "column": 67 } } }, { "type": { - "label": ")", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -98997,43 +100310,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8373, - "end": 8374, + "start": 8472, + "end": 8473, "loc": { "start": { "line": 203, - "column": 50 + "column": 67 }, "end": { "line": 203, - "column": 51 + "column": 68 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8375, - "end": 8376, + "start": 8473, + "end": 8474, "loc": { "start": { "line": 203, - "column": 52 + "column": 68 }, "end": { "line": 203, - "column": 53 + "column": 69 } } }, @@ -99049,50 +100364,49 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 8381, - "end": 8387, + "value": "filter", + "start": 8474, + "end": 8480, "loc": { "start": { - "line": 204, - "column": 4 + "line": 203, + "column": 69 }, "end": { - "line": 204, - "column": 10 + "line": 203, + "column": 75 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8387, - "end": 8388, + "start": 8480, + "end": 8481, "loc": { "start": { - "line": 204, - "column": 10 + "line": 203, + "column": 75 }, "end": { - "line": 204, - "column": 11 + "line": 203, + "column": 76 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -99101,76 +100415,75 @@ "postfix": false, "binop": null }, - "value": "undoRedoManager", - "start": 8388, - "end": 8403, + "start": 8481, + "end": 8482, "loc": { "start": { - "line": 204, - "column": 11 + "line": 203, + "column": 76 }, "end": { - "line": 204, - "column": 26 + "line": 203, + "column": 77 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8403, - "end": 8404, + "value": "el", + "start": 8482, + "end": 8484, "loc": { "start": { - "line": 204, - "column": 26 + "line": 203, + "column": 77 }, "end": { - "line": 204, - "column": 27 + "line": 203, + "column": 79 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "updateModel", - "start": 8404, - "end": 8415, + "start": 8484, + "end": 8485, "loc": { "start": { - "line": 204, - "column": 27 + "line": 203, + "column": 79 }, "end": { - "line": 204, - "column": 38 + "line": 203, + "column": 80 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -99179,76 +100492,77 @@ "postfix": false, "binop": null }, - "start": 8415, - "end": 8416, + "value": "i", + "start": 8486, + "end": 8487, "loc": { "start": { - "line": 204, - "column": 38 + "line": 203, + "column": 81 }, "end": { - "line": 204, - "column": 39 + "line": 203, + "column": 82 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "editor", - "start": 8416, - "end": 8422, + "start": 8487, + "end": 8488, "loc": { "start": { - "line": 204, - "column": 39 + "line": 203, + "column": 82 }, "end": { - "line": 204, - "column": 45 + "line": 203, + "column": 83 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8422, - "end": 8423, + "value": "a", + "start": 8489, + "end": 8490, "loc": { "start": { - "line": 204, - "column": 45 + "line": 203, + "column": 84 }, "end": { - "line": 204, - "column": 46 + "line": 203, + "column": 85 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -99256,23 +100570,22 @@ "postfix": false, "binop": null }, - "value": "undoRedoContext", - "start": 8423, - "end": 8438, + "start": 8490, + "end": 8491, "loc": { "start": { - "line": 204, - "column": 46 + "line": 203, + "column": 85 }, "end": { - "line": 204, - "column": 61 + "line": 203, + "column": 86 } } }, { "type": { - "label": ",", + "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -99283,16 +100596,16 @@ "binop": null, "updateContext": null }, - "start": 8438, - "end": 8439, + "start": 8492, + "end": 8494, "loc": { "start": { - "line": 204, - "column": 61 + "line": 203, + "column": 87 }, "end": { - "line": 204, - "column": 62 + "line": 203, + "column": 89 } } }, @@ -99308,23 +100621,23 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 8440, - "end": 8445, + "value": "i", + "start": 8495, + "end": 8496, "loc": { "start": { - "line": 204, - "column": 63 + "line": 203, + "column": 90 }, "end": { - "line": 204, - "column": 68 + "line": 203, + "column": 91 } } }, { "type": { - "label": ",", + "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -99332,19 +100645,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 8445, - "end": 8446, + "value": "===", + "start": 8497, + "end": 8500, "loc": { "start": { - "line": 204, - "column": 68 + "line": 203, + "column": 92 }, "end": { - "line": 204, - "column": 69 + "line": 203, + "column": 95 } } }, @@ -99360,23 +100674,23 @@ "postfix": false, "binop": null }, - "value": "handleResult", - "start": 8447, - "end": 8459, + "value": "a", + "start": 8501, + "end": 8502, "loc": { "start": { - "line": 204, - "column": 70 + "line": 203, + "column": 96 }, "end": { - "line": 204, - "column": 82 + "line": 203, + "column": 97 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -99384,52 +100698,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 8459, - "end": 8460, - "loc": { - "start": { - "line": 204, - "column": 82 - }, - "end": { - "line": 204, - "column": 83 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null, "updateContext": null }, - "start": 8460, - "end": 8461, + "start": 8502, + "end": 8503, "loc": { "start": { - "line": 204, - "column": 83 + "line": 203, + "column": 97 }, "end": { - "line": 204, - "column": 84 + "line": 203, + "column": 98 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -99437,51 +100726,49 @@ "postfix": false, "binop": null }, - "start": 8464, - "end": 8465, + "value": "indexOf", + "start": 8503, + "end": 8510, "loc": { "start": { - "line": 205, - "column": 2 + "line": 203, + "column": 98 }, "end": { - "line": 205, - "column": 3 + "line": 203, + "column": 105 } } }, { "type": { - "label": "else", - "keyword": "else", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "else", - "start": 8466, - "end": 8470, + "start": 8510, + "end": 8511, "loc": { "start": { - "line": 205, - "column": 4 + "line": 203, + "column": 105 }, "end": { - "line": 205, - "column": 8 + "line": 203, + "column": 106 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -99490,24 +100777,25 @@ "postfix": false, "binop": null }, - "start": 8471, - "end": 8472, + "value": "el", + "start": 8511, + "end": 8513, "loc": { "start": { - "line": 205, - "column": 9 + "line": 203, + "column": 106 }, "end": { - "line": 205, - "column": 10 + "line": 203, + "column": 108 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -99515,25 +100803,24 @@ "postfix": false, "binop": null }, - "value": "handleResult", - "start": 8477, - "end": 8489, + "start": 8513, + "end": 8514, "loc": { "start": { - "line": 206, - "column": 4 + "line": 203, + "column": 108 }, "end": { - "line": 206, - "column": 16 + "line": 203, + "column": 109 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -99541,24 +100828,24 @@ "postfix": false, "binop": null }, - "start": 8489, - "end": 8490, + "start": 8514, + "end": 8515, "loc": { "start": { - "line": 206, - "column": 16 + "line": 203, + "column": 109 }, "end": { - "line": 206, - "column": 17 + "line": 203, + "column": 110 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -99566,23 +100853,22 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 8490, - "end": 8495, + "start": 8515, + "end": 8516, "loc": { "start": { - "line": 206, - "column": 17 + "line": 203, + "column": 110 }, "end": { - "line": 206, - "column": 22 + "line": 203, + "column": 111 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -99593,24 +100879,40 @@ "binop": null, "updateContext": null }, - "start": 8495, - "end": 8496, + "start": 8516, + "end": 8517, "loc": { "start": { - "line": 206, - "column": 22 + "line": 203, + "column": 111 }, "end": { - "line": 206, - "column": 23 + "line": 203, + "column": 112 + } + } + }, + { + "type": "CommentLine", + "value": " Remove duplicate events", + "start": 8518, + "end": 8544, + "loc": { + "start": { + "line": 203, + "column": 113 + }, + "end": { + "line": 203, + "column": 139 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -99618,49 +100920,47 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 8497, - "end": 8502, + "start": 8549, + "end": 8550, "loc": { "start": { - "line": 206, - "column": 24 + "line": 204, + "column": 4 }, "end": { - "line": 206, - "column": 29 + "line": 204, + "column": 5 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8502, - "end": 8503, + "start": 8553, + "end": 8554, "loc": { "start": { - "line": 206, - "column": 29 + "line": 205, + "column": 2 }, "end": { - "line": 206, - "column": 30 + "line": 205, + "column": 3 } } }, { "type": { - "label": "...", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -99671,16 +100971,16 @@ "binop": null, "updateContext": null }, - "start": 8504, - "end": 8507, + "start": 8554, + "end": 8555, "loc": { "start": { - "line": 206, - "column": 31 + "line": 205, + "column": 3 }, "end": { - "line": 206, - "column": 34 + "line": 205, + "column": 4 } } }, @@ -99696,23 +100996,23 @@ "postfix": false, "binop": null }, - "value": "events", - "start": 8507, - "end": 8513, + "value": "logger", + "start": 8559, + "end": 8565, "loc": { "start": { - "line": 206, - "column": 34 + "line": 207, + "column": 2 }, "end": { - "line": 206, - "column": 40 + "line": 207, + "column": 8 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -99720,52 +101020,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8513, - "end": 8514, + "start": 8565, + "end": 8566, "loc": { "start": { - "line": 206, - "column": 40 + "line": 207, + "column": 8 }, "end": { - "line": 206, - "column": 41 + "line": 207, + "column": 9 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8514, - "end": 8515, + "value": "debug", + "start": 8566, + "end": 8571, "loc": { "start": { - "line": 206, - "column": 41 + "line": 207, + "column": 9 }, "end": { - "line": 206, - "column": 42 + "line": 207, + "column": 14 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -99773,110 +101074,122 @@ "postfix": false, "binop": null }, - "start": 8518, - "end": 8519, + "start": 8571, + "end": 8572, "loc": { "start": { "line": 207, - "column": 2 + "column": 14 }, "end": { "line": 207, - "column": 3 + "column": 15 } } }, { "type": { - "label": "}", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8520, - "end": 8521, + "value": "recognition callback", + "start": 8572, + "end": 8594, "loc": { "start": { - "line": 208, - "column": 0 + "line": 207, + "column": 15 }, "end": { - "line": 208, - "column": 1 + "line": 207, + "column": 37 } } }, { - "type": "CommentBlock", - "value": "*\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [trigger]\n ", - "start": 8523, - "end": 8685, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8594, + "end": 8595, "loc": { "start": { - "line": 210, - "column": 0 + "line": 207, + "column": 37 }, "end": { - "line": 215, - "column": 3 + "line": 207, + "column": 38 } } }, { "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "function", - "start": 8686, - "end": 8694, + "start": 8595, + "end": 8596, "loc": { "start": { - "line": 216, - "column": 0 + "line": 207, + "column": 38 }, "end": { - "line": 216, - "column": 8 + "line": 207, + "column": 39 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "addStrokes", - "start": 8695, - "end": 8705, + "value": "if", + "start": 8599, + "end": 8601, "loc": { "start": { - "line": 216, - "column": 9 + "line": 208, + "column": 2 }, "end": { - "line": 216, - "column": 19 + "line": 208, + "column": 4 } } }, @@ -99892,16 +101205,16 @@ "postfix": false, "binop": null }, - "start": 8705, - "end": 8706, + "start": 8602, + "end": 8603, "loc": { "start": { - "line": 216, - "column": 19 + "line": 208, + "column": 5 }, "end": { - "line": 216, - "column": 20 + "line": 208, + "column": 6 } } }, @@ -99918,23 +101231,23 @@ "binop": null }, "value": "editor", - "start": 8706, - "end": 8712, + "start": 8603, + "end": 8609, "loc": { "start": { - "line": 216, - "column": 20 + "line": 208, + "column": 6 }, "end": { - "line": 216, - "column": 26 + "line": 208, + "column": 12 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -99944,16 +101257,16 @@ "binop": null, "updateContext": null }, - "start": 8712, - "end": 8713, + "start": 8609, + "end": 8610, "loc": { "start": { - "line": 216, - "column": 26 + "line": 208, + "column": 12 }, "end": { - "line": 216, - "column": 27 + "line": 208, + "column": 13 } } }, @@ -99969,24 +101282,24 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 8714, - "end": 8719, + "value": "undoRedoManager", + "start": 8610, + "end": 8625, "loc": { "start": { - "line": 216, - "column": 28 + "line": 208, + "column": 13 }, "end": { - "line": 216, - "column": 33 + "line": 208, + "column": 28 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -99996,16 +101309,16 @@ "binop": null, "updateContext": null }, - "start": 8719, - "end": 8720, + "start": 8625, + "end": 8626, "loc": { "start": { - "line": 216, - "column": 33 + "line": 208, + "column": 28 }, "end": { - "line": 216, - "column": 34 + "line": 208, + "column": 29 } } }, @@ -100021,104 +101334,105 @@ "postfix": false, "binop": null }, - "value": "trigger", - "start": 8721, - "end": 8728, + "value": "updateModel", + "start": 8626, + "end": 8637, "loc": { "start": { - "line": 216, - "column": 35 + "line": 208, + "column": 29 }, "end": { - "line": 216, - "column": 42 + "line": 208, + "column": 40 } } }, { "type": { - "label": "=", + "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "value": "=", - "start": 8729, - "end": 8730, + "value": "&&", + "start": 8638, + "end": 8640, "loc": { "start": { - "line": 216, - "column": 43 + "line": 208, + "column": 41 }, "end": { - "line": 216, - "column": 44 + "line": 208, + "column": 43 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "prefix", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "editor", - "start": 8731, - "end": 8737, + "value": "!", + "start": 8641, + "end": 8642, "loc": { "start": { - "line": 216, - "column": 45 + "line": 208, + "column": 44 }, "end": { - "line": 216, - "column": 51 + "line": 208, + "column": 45 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8737, - "end": 8738, + "value": "error", + "start": 8642, + "end": 8647, "loc": { "start": { - "line": 216, - "column": 51 + "line": 208, + "column": 45 }, "end": { - "line": 216, - "column": 52 + "line": 208, + "column": 50 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -100126,43 +101440,41 @@ "postfix": false, "binop": null }, - "value": "configuration", - "start": 8738, - "end": 8751, + "start": 8647, + "end": 8648, "loc": { "start": { - "line": 216, - "column": 52 + "line": 208, + "column": 50 }, "end": { - "line": 216, - "column": 65 + "line": 208, + "column": 51 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8751, - "end": 8752, + "start": 8649, + "end": 8650, "loc": { "start": { - "line": 216, - "column": 65 + "line": 208, + "column": 52 }, "end": { - "line": 216, - "column": 66 + "line": 208, + "column": 53 } } }, @@ -100178,17 +101490,17 @@ "postfix": false, "binop": null }, - "value": "triggers", - "start": 8752, - "end": 8760, + "value": "editor", + "start": 8655, + "end": 8661, "loc": { "start": { - "line": 216, - "column": 66 + "line": 209, + "column": 4 }, "end": { - "line": 216, - "column": 74 + "line": 209, + "column": 10 } } }, @@ -100205,16 +101517,16 @@ "binop": null, "updateContext": null }, - "start": 8760, - "end": 8761, + "start": 8661, + "end": 8662, "loc": { "start": { - "line": 216, - "column": 74 + "line": 209, + "column": 10 }, "end": { - "line": 216, - "column": 75 + "line": 209, + "column": 11 } } }, @@ -100230,23 +101542,23 @@ "postfix": false, "binop": null }, - "value": "addStrokes", - "start": 8761, - "end": 8771, + "value": "undoRedoManager", + "start": 8662, + "end": 8677, "loc": { "start": { - "line": 216, - "column": 75 + "line": 209, + "column": 11 }, "end": { - "line": 216, - "column": 85 + "line": 209, + "column": 26 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -100254,25 +101566,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8771, - "end": 8772, + "start": 8677, + "end": 8678, "loc": { "start": { - "line": 216, - "column": 85 + "line": 209, + "column": 26 }, "end": { - "line": 216, - "column": 86 + "line": 209, + "column": 27 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -100281,44 +101594,17 @@ "postfix": false, "binop": null }, - "start": 8773, - "end": 8774, - "loc": { - "start": { - "line": 216, - "column": 87 - }, - "end": { - "line": 216, - "column": 88 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 8777, - "end": 8779, + "value": "updateModel", + "start": 8678, + "end": 8689, "loc": { "start": { - "line": 217, - "column": 2 + "line": 209, + "column": 27 }, "end": { - "line": 217, - "column": 4 + "line": 209, + "column": 38 } } }, @@ -100334,16 +101620,16 @@ "postfix": false, "binop": null }, - "start": 8780, - "end": 8781, + "start": 8689, + "end": 8690, "loc": { "start": { - "line": 217, - "column": 5 + "line": 209, + "column": 38 }, "end": { - "line": 217, - "column": 6 + "line": 209, + "column": 39 } } }, @@ -100360,16 +101646,16 @@ "binop": null }, "value": "editor", - "start": 8781, - "end": 8787, + "start": 8690, + "end": 8696, "loc": { "start": { - "line": 217, - "column": 6 + "line": 209, + "column": 39 }, "end": { - "line": 217, - "column": 12 + "line": 209, + "column": 45 } } }, @@ -100386,16 +101672,16 @@ "binop": null, "updateContext": null }, - "start": 8787, - "end": 8788, + "start": 8696, + "end": 8697, "loc": { "start": { - "line": 217, - "column": 12 + "line": 209, + "column": 45 }, "end": { - "line": 217, - "column": 13 + "line": 209, + "column": 46 } } }, @@ -100411,23 +101697,23 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 8788, - "end": 8798, + "value": "undoRedoContext", + "start": 8697, + "end": 8712, "loc": { "start": { - "line": 217, - "column": 13 + "line": 209, + "column": 46 }, "end": { - "line": 217, - "column": 23 + "line": 209, + "column": 61 } } }, { "type": { - "label": "&&", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -100435,20 +101721,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 8799, - "end": 8801, + "start": 8712, + "end": 8713, "loc": { "start": { - "line": 217, - "column": 24 + "line": 209, + "column": 61 }, "end": { - "line": 217, - "column": 26 + "line": 209, + "column": 62 } } }, @@ -100464,24 +101749,24 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 8802, - "end": 8808, + "value": "model", + "start": 8714, + "end": 8719, "loc": { "start": { - "line": 217, - "column": 27 + "line": 209, + "column": 63 }, "end": { - "line": 217, - "column": 33 + "line": 209, + "column": 68 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -100491,16 +101776,16 @@ "binop": null, "updateContext": null }, - "start": 8808, - "end": 8809, + "start": 8719, + "end": 8720, "loc": { "start": { - "line": 217, - "column": 33 + "line": 209, + "column": 68 }, "end": { - "line": 217, - "column": 34 + "line": 209, + "column": 69 } } }, @@ -100516,23 +101801,23 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 8809, - "end": 8819, + "value": "handleResult", + "start": 8721, + "end": 8733, "loc": { "start": { - "line": 217, - "column": 34 + "line": 209, + "column": 70 }, "end": { - "line": 217, - "column": 44 + "line": 209, + "column": 82 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -100540,27 +101825,52 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "start": 8733, + "end": 8734, + "loc": { + "start": { + "line": 209, + "column": 82 + }, + "end": { + "line": 209, + "column": 83 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "start": 8819, - "end": 8820, + "start": 8734, + "end": 8735, "loc": { "start": { - "line": 217, - "column": 44 + "line": 209, + "column": 83 }, "end": { - "line": 217, - "column": 45 + "line": 209, + "column": 84 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -100568,42 +101878,44 @@ "postfix": false, "binop": null }, - "value": "addStrokes", - "start": 8820, - "end": 8830, + "start": 8738, + "end": 8739, "loc": { "start": { - "line": 217, - "column": 45 + "line": 210, + "column": 2 }, "end": { - "line": 217, - "column": 55 + "line": 210, + "column": 3 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "else", + "keyword": "else", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8830, - "end": 8831, + "value": "else", + "start": 8740, + "end": 8744, "loc": { "start": { - "line": 217, - "column": 55 + "line": 210, + "column": 4 }, "end": { - "line": 217, - "column": 56 + "line": 210, + "column": 8 } } }, @@ -100619,16 +101931,16 @@ "postfix": false, "binop": null }, - "start": 8832, - "end": 8833, + "start": 8745, + "end": 8746, "loc": { "start": { - "line": 217, - "column": 57 + "line": 210, + "column": 9 }, "end": { - "line": 217, - "column": 58 + "line": 210, + "column": 10 } } }, @@ -100644,43 +101956,42 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 8838, - "end": 8844, + "value": "handleResult", + "start": 8751, + "end": 8763, "loc": { "start": { - "line": 218, + "line": 211, "column": 4 }, "end": { - "line": 218, - "column": 10 + "line": 211, + "column": 16 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8844, - "end": 8845, + "start": 8763, + "end": 8764, "loc": { "start": { - "line": 218, - "column": 10 + "line": 211, + "column": 16 }, "end": { - "line": 218, - "column": 11 + "line": 211, + "column": 17 } } }, @@ -100696,24 +102007,24 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 8845, - "end": 8862, + "value": "error", + "start": 8764, + "end": 8769, "loc": { "start": { - "line": 218, - "column": 11 + "line": 211, + "column": 17 }, "end": { - "line": 218, - "column": 28 + "line": 211, + "column": 22 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -100723,16 +102034,16 @@ "binop": null, "updateContext": null }, - "start": 8862, - "end": 8863, + "start": 8769, + "end": 8770, "loc": { "start": { - "line": 218, - "column": 28 + "line": 211, + "column": 22 }, "end": { - "line": 218, - "column": 29 + "line": 211, + "column": 23 } } }, @@ -100748,24 +102059,24 @@ "postfix": false, "binop": null }, - "value": "initPromise", - "start": 8863, - "end": 8874, + "value": "model", + "start": 8771, + "end": 8776, "loc": { "start": { - "line": 218, - "column": 29 + "line": 211, + "column": 24 }, "end": { - "line": 218, - "column": 40 + "line": 211, + "column": 29 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -100775,49 +102086,49 @@ "binop": null, "updateContext": null }, - "start": 8881, - "end": 8882, + "start": 8776, + "end": 8777, "loc": { "start": { - "line": 219, - "column": 6 + "line": 211, + "column": 29 }, "end": { - "line": 219, - "column": 7 + "line": 211, + "column": 30 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "...", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "then", - "start": 8882, - "end": 8886, + "start": 8778, + "end": 8781, "loc": { "start": { - "line": 219, - "column": 7 + "line": 211, + "column": 31 }, "end": { - "line": 219, - "column": 11 + "line": 211, + "column": 34 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -100826,24 +102137,25 @@ "postfix": false, "binop": null }, - "start": 8886, - "end": 8887, + "value": "events", + "start": 8781, + "end": 8787, "loc": { "start": { - "line": 219, - "column": 11 + "line": 211, + "column": 34 }, "end": { - "line": 219, - "column": 12 + "line": 211, + "column": 40 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -100851,75 +102163,75 @@ "postfix": false, "binop": null }, - "start": 8887, - "end": 8888, + "start": 8787, + "end": 8788, "loc": { "start": { - "line": 219, - "column": 12 + "line": 211, + "column": 40 }, "end": { - "line": 219, - "column": 13 + "line": 211, + "column": 41 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8888, - "end": 8889, + "start": 8788, + "end": 8789, "loc": { "start": { - "line": 219, - "column": 13 + "line": 211, + "column": 41 }, "end": { - "line": 219, - "column": 14 + "line": 211, + "column": 42 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 8890, - "end": 8892, + "start": 8792, + "end": 8793, "loc": { "start": { - "line": 219, - "column": 15 + "line": 212, + "column": 2 }, "end": { - "line": 219, - "column": 17 + "line": 212, + "column": 3 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -100927,60 +102239,85 @@ "postfix": false, "binop": null }, - "start": 8893, - "end": 8894, + "start": 8794, + "end": 8795, "loc": { "start": { - "line": 219, - "column": 18 + "line": 213, + "column": 0 }, "end": { - "line": 219, - "column": 19 + "line": 213, + "column": 1 } } }, { - "type": "CommentLine", - "value": " Firing addStrokes only if recognizer is configure to do it", - "start": 8903, - "end": 8964, + "type": "CommentBlock", + "value": "*\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [trigger]\n ", + "start": 8797, + "end": 8959, "loc": { "start": { - "line": 220, - "column": 8 + "line": 215, + "column": 0 }, "end": { "line": 220, - "column": 69 + "column": 3 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "function", + "keyword": "function", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 8973, - "end": 8975, + "value": "function", + "start": 8960, + "end": 8968, "loc": { "start": { + "line": 221, + "column": 0 + }, + "end": { "line": 221, "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addStrokes", + "start": 8969, + "end": 8979, + "loc": { + "start": { + "line": 221, + "column": 9 }, "end": { "line": 221, - "column": 10 + "column": 19 } } }, @@ -100996,16 +102333,16 @@ "postfix": false, "binop": null }, - "start": 8976, - "end": 8977, + "start": 8979, + "end": 8980, "loc": { "start": { "line": 221, - "column": 11 + "column": 19 }, "end": { "line": 221, - "column": 12 + "column": 20 } } }, @@ -101021,13 +102358,13 @@ "postfix": false, "binop": null }, - "value": "isTriggerValid", - "start": 8977, - "end": 8991, + "value": "editor", + "start": 8980, + "end": 8986, "loc": { "start": { "line": 221, - "column": 12 + "column": 20 }, "end": { "line": 221, @@ -101037,18 +102374,19 @@ }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 8991, - "end": 8992, + "start": 8986, + "end": 8987, "loc": { "start": { "line": 221, @@ -101072,13 +102410,13 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 8992, - "end": 8998, + "value": "model", + "start": 8988, + "end": 8993, "loc": { "start": { "line": 221, - "column": 27 + "column": 28 }, "end": { "line": 221, @@ -101099,8 +102437,8 @@ "binop": null, "updateContext": null }, - "start": 8998, - "end": 8999, + "start": 8993, + "end": 8994, "loc": { "start": { "line": 221, @@ -101114,7 +102452,7 @@ }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -101122,12 +102460,11 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "addStrokes", - "start": 9000, - "end": 9012, + "value": "trigger", + "start": 8995, + "end": 9002, "loc": { "start": { "line": 221, @@ -101135,33 +102472,34 @@ }, "end": { "line": 221, - "column": 47 + "column": 42 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 9012, - "end": 9013, + "value": "=", + "start": 9003, + "end": 9004, "loc": { "start": { "line": 221, - "column": 47 + "column": 43 }, "end": { "line": 221, - "column": 48 + "column": 44 } } }, @@ -101177,23 +102515,23 @@ "postfix": false, "binop": null }, - "value": "trigger", - "start": 9014, - "end": 9021, + "value": "editor", + "start": 9005, + "end": 9011, "loc": { "start": { "line": 221, - "column": 49 + "column": 45 }, "end": { "line": 221, - "column": 56 + "column": 51 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -101201,26 +102539,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9021, - "end": 9022, + "start": 9011, + "end": 9012, "loc": { "start": { "line": 221, - "column": 56 + "column": 51 }, "end": { "line": 221, - "column": 57 + "column": 52 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -101228,41 +102567,43 @@ "postfix": false, "binop": null }, - "start": 9022, - "end": 9023, + "value": "configuration", + "start": 9012, + "end": 9025, "loc": { "start": { "line": 221, - "column": 57 + "column": 52 }, "end": { "line": 221, - "column": 58 + "column": 65 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9024, - "end": 9025, + "start": 9025, + "end": 9026, "loc": { "start": { "line": 221, - "column": 59 + "column": 65 }, "end": { "line": 221, - "column": 60 + "column": 66 } } }, @@ -101278,42 +102619,43 @@ "postfix": false, "binop": null }, - "value": "manageResetState", - "start": 9036, - "end": 9052, + "value": "triggers", + "start": 9026, + "end": 9034, "loc": { "start": { - "line": 222, - "column": 10 + "line": 221, + "column": 66 }, "end": { - "line": 222, - "column": 26 + "line": 221, + "column": 74 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9052, - "end": 9053, + "start": 9034, + "end": 9035, "loc": { "start": { - "line": 222, - "column": 26 + "line": 221, + "column": 74 }, "end": { - "line": 222, - "column": 27 + "line": 221, + "column": 75 } } }, @@ -101329,23 +102671,23 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 9053, - "end": 9059, + "value": "addStrokes", + "start": 9035, + "end": 9045, "loc": { "start": { - "line": 222, - "column": 27 + "line": 221, + "column": 75 }, "end": { - "line": 222, - "column": 33 + "line": 221, + "column": 85 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -101353,26 +102695,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9059, - "end": 9060, + "start": 9045, + "end": 9046, "loc": { "start": { - "line": 222, - "column": 33 + "line": 221, + "column": 85 }, "end": { - "line": 222, - "column": 34 + "line": 221, + "column": 86 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -101381,23 +102722,23 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 9060, - "end": 9070, + "start": 9047, + "end": 9048, "loc": { "start": { - "line": 222, - "column": 34 + "line": 221, + "column": 87 }, "end": { - "line": 222, - "column": 44 + "line": 221, + "column": 88 } } }, { "type": { - "label": ".", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -101408,23 +102749,24 @@ "binop": null, "updateContext": null }, - "start": 9070, - "end": 9071, + "value": "if", + "start": 9051, + "end": 9053, "loc": { "start": { "line": 222, - "column": 44 + "column": 2 }, "end": { "line": 222, - "column": 45 + "column": 4 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -101433,43 +102775,16 @@ "postfix": false, "binop": null }, - "value": "reset", - "start": 9071, - "end": 9076, - "loc": { - "start": { - "line": 222, - "column": 45 - }, - "end": { - "line": 222, - "column": 50 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 9076, - "end": 9077, + "start": 9054, + "end": 9055, "loc": { "start": { "line": 222, - "column": 50 + "column": 5 }, "end": { "line": 222, - "column": 51 + "column": 6 } } }, @@ -101486,16 +102801,16 @@ "binop": null }, "value": "editor", - "start": 9078, - "end": 9084, + "start": 9055, + "end": 9061, "loc": { "start": { "line": 222, - "column": 52 + "column": 6 }, "end": { "line": 222, - "column": 58 + "column": 12 } } }, @@ -101512,16 +102827,16 @@ "binop": null, "updateContext": null }, - "start": 9084, - "end": 9085, + "start": 9061, + "end": 9062, "loc": { "start": { "line": 222, - "column": 58 + "column": 12 }, "end": { "line": 222, - "column": 59 + "column": 13 } } }, @@ -101538,42 +102853,43 @@ "binop": null }, "value": "recognizer", - "start": 9085, - "end": 9095, + "start": 9062, + "end": 9072, "loc": { "start": { "line": 222, - "column": 59 + "column": 13 }, "end": { "line": 222, - "column": 69 + "column": 23 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "&&", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "start": 9095, - "end": 9096, + "value": "&&", + "start": 9073, + "end": 9075, "loc": { "start": { "line": 222, - "column": 69 + "column": 24 }, "end": { "line": 222, - "column": 70 + "column": 26 } } }, @@ -101589,24 +102905,24 @@ "postfix": false, "binop": null }, - "value": "addStrokes", - "start": 9096, - "end": 9106, + "value": "editor", + "start": 9076, + "end": 9082, "loc": { "start": { "line": 222, - "column": 70 + "column": 27 }, "end": { "line": 222, - "column": 80 + "column": 33 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -101616,16 +102932,16 @@ "binop": null, "updateContext": null }, - "start": 9106, - "end": 9107, + "start": 9082, + "end": 9083, "loc": { "start": { "line": 222, - "column": 80 + "column": 33 }, "end": { "line": 222, - "column": 81 + "column": 34 } } }, @@ -101641,17 +102957,17 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 9108, - "end": 9114, + "value": "recognizer", + "start": 9083, + "end": 9093, "loc": { "start": { "line": 222, - "column": 82 + "column": 34 }, "end": { "line": 222, - "column": 88 + "column": 44 } } }, @@ -101668,16 +102984,16 @@ "binop": null, "updateContext": null }, - "start": 9114, - "end": 9115, + "start": 9093, + "end": 9094, "loc": { "start": { "line": 222, - "column": 88 + "column": 44 }, "end": { "line": 222, - "column": 89 + "column": 45 } } }, @@ -101693,50 +103009,49 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 9115, - "end": 9132, + "value": "addStrokes", + "start": 9094, + "end": 9104, "loc": { "start": { "line": 222, - "column": 89 + "column": 45 }, "end": { "line": 222, - "column": 106 + "column": 55 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9132, - "end": 9133, + "start": 9104, + "end": 9105, "loc": { "start": { "line": 222, - "column": 106 + "column": 55 }, "end": { "line": 222, - "column": 107 + "column": 56 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -101745,68 +103060,68 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 9134, - "end": 9139, + "start": 9106, + "end": 9107, "loc": { "start": { "line": 222, - "column": 108 + "column": 57 }, "end": { "line": 222, - "column": 113 + "column": 58 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9139, - "end": 9140, + "value": "editor", + "start": 9112, + "end": 9118, "loc": { "start": { - "line": 222, - "column": 113 + "line": 223, + "column": 4 }, "end": { - "line": 222, - "column": 114 + "line": 223, + "column": 10 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9141, - "end": 9142, + "start": 9118, + "end": 9119, "loc": { "start": { - "line": 222, - "column": 115 + "line": 223, + "column": 10 }, "end": { - "line": 222, - "column": 116 + "line": 223, + "column": 11 } } }, @@ -101822,24 +103137,24 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 9142, - "end": 9145, + "value": "recognizerContext", + "start": 9119, + "end": 9136, "loc": { "start": { - "line": 222, - "column": 116 + "line": 223, + "column": 11 }, "end": { - "line": 222, - "column": 119 + "line": 223, + "column": 28 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -101849,16 +103164,16 @@ "binop": null, "updateContext": null }, - "start": 9145, - "end": 9146, + "start": 9136, + "end": 9137, "loc": { "start": { - "line": 222, - "column": 119 + "line": 223, + "column": 28 }, "end": { - "line": 222, - "column": 120 + "line": 223, + "column": 29 } } }, @@ -101874,24 +103189,24 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 9147, - "end": 9150, + "value": "initPromise", + "start": 9137, + "end": 9148, "loc": { "start": { - "line": 222, - "column": 121 + "line": 223, + "column": 29 }, "end": { - "line": 222, - "column": 124 + "line": 223, + "column": 40 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -101901,49 +103216,74 @@ "binop": null, "updateContext": null }, - "start": 9150, - "end": 9151, + "start": 9155, + "end": 9156, "loc": { "start": { - "line": 222, - "column": 124 + "line": 224, + "column": 6 }, "end": { - "line": 222, - "column": 125 + "line": 224, + "column": 7 } } }, { "type": { - "label": "...", + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "then", + "start": 9156, + "end": 9160, + "loc": { + "start": { + "line": 224, + "column": 7 + }, + "end": { + "line": 224, + "column": 11 + } + } + }, + { + "type": { + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9152, - "end": 9155, + "start": 9160, + "end": 9161, "loc": { "start": { - "line": 222, - "column": 126 + "line": 224, + "column": 11 }, "end": { - "line": 222, - "column": 129 + "line": 224, + "column": 12 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -101952,17 +103292,16 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 9155, - "end": 9160, + "start": 9161, + "end": 9162, "loc": { "start": { - "line": 222, - "column": 129 + "line": 224, + "column": 12 }, "end": { - "line": 222, - "column": 134 + "line": 224, + "column": 13 } } }, @@ -101978,16 +103317,16 @@ "postfix": false, "binop": null }, - "start": 9160, - "end": 9161, + "start": 9162, + "end": 9163, "loc": { "start": { - "line": 222, - "column": 134 + "line": 224, + "column": 13 }, "end": { - "line": 222, - "column": 135 + "line": 224, + "column": 14 } } }, @@ -102004,16 +103343,16 @@ "binop": null, "updateContext": null }, - "start": 9162, - "end": 9164, + "start": 9164, + "end": 9166, "loc": { "start": { - "line": 222, - "column": 136 + "line": 224, + "column": 15 }, "end": { - "line": 222, - "column": 138 + "line": 224, + "column": 17 } } }, @@ -102029,42 +103368,60 @@ "postfix": false, "binop": null }, - "start": 9165, - "end": 9166, + "start": 9167, + "end": 9168, "loc": { "start": { - "line": 222, - "column": 139 + "line": 224, + "column": 18 }, "end": { - "line": 222, - "column": 140 + "line": 224, + "column": 19 + } + } + }, + { + "type": "CommentLine", + "value": " Firing addStrokes only if recognizer is configure to do it", + "start": 9177, + "end": 9238, + "loc": { + "start": { + "line": 225, + "column": 8 + }, + "end": { + "line": 225, + "column": 69 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "recognizerCallback", - "start": 9179, - "end": 9197, + "value": "if", + "start": 9247, + "end": 9249, "loc": { "start": { - "line": 223, - "column": 12 + "line": 226, + "column": 8 }, "end": { - "line": 223, - "column": 30 + "line": 226, + "column": 10 } } }, @@ -102080,16 +103437,16 @@ "postfix": false, "binop": null }, - "start": 9197, - "end": 9198, + "start": 9250, + "end": 9251, "loc": { "start": { - "line": 223, - "column": 30 + "line": 226, + "column": 11 }, "end": { - "line": 223, - "column": 31 + "line": 226, + "column": 12 } } }, @@ -102105,43 +103462,42 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 9198, - "end": 9204, + "value": "isTriggerValid", + "start": 9251, + "end": 9265, "loc": { "start": { - "line": 223, - "column": 31 + "line": 226, + "column": 12 }, "end": { - "line": 223, - "column": 37 + "line": 226, + "column": 26 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9204, - "end": 9205, + "start": 9265, + "end": 9266, "loc": { "start": { - "line": 223, - "column": 37 + "line": 226, + "column": 26 }, "end": { - "line": 223, - "column": 38 + "line": 226, + "column": 27 } } }, @@ -102157,17 +103513,17 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 9206, - "end": 9209, + "value": "editor", + "start": 9266, + "end": 9272, "loc": { "start": { - "line": 223, - "column": 39 + "line": 226, + "column": 27 }, "end": { - "line": 223, - "column": 42 + "line": 226, + "column": 33 } } }, @@ -102184,22 +103540,22 @@ "binop": null, "updateContext": null }, - "start": 9209, - "end": 9210, + "start": 9272, + "end": 9273, "loc": { "start": { - "line": 223, - "column": 42 + "line": 226, + "column": 33 }, "end": { - "line": 223, - "column": 43 + "line": 226, + "column": 34 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -102207,18 +103563,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "res", - "start": 9211, - "end": 9214, + "value": "addStrokes", + "start": 9274, + "end": 9286, "loc": { "start": { - "line": 223, - "column": 44 + "line": 226, + "column": 35 }, "end": { - "line": 223, + "line": 226, "column": 47 } } @@ -102236,50 +103593,50 @@ "binop": null, "updateContext": null }, - "start": 9214, - "end": 9215, + "start": 9286, + "end": 9287, "loc": { "start": { - "line": 223, + "line": 226, "column": 47 }, "end": { - "line": 223, + "line": 226, "column": 48 } } }, { "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9216, - "end": 9219, + "value": "trigger", + "start": 9288, + "end": 9295, "loc": { "start": { - "line": 223, + "line": 226, "column": 49 }, "end": { - "line": 223, - "column": 52 + "line": 226, + "column": 56 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -102287,16 +103644,15 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 9219, - "end": 9224, + "start": 9295, + "end": 9296, "loc": { "start": { - "line": 223, - "column": 52 + "line": 226, + "column": 56 }, "end": { - "line": 223, + "line": 226, "column": 57 } } @@ -102313,50 +103669,49 @@ "postfix": false, "binop": null }, - "start": 9224, - "end": 9225, + "start": 9296, + "end": 9297, "loc": { "start": { - "line": 223, + "line": 226, "column": 57 }, "end": { - "line": 223, + "line": 226, "column": 58 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9225, - "end": 9226, + "start": 9298, + "end": 9299, "loc": { "start": { - "line": 223, - "column": 58 + "line": 226, + "column": 59 }, "end": { - "line": 223, - "column": 59 + "line": 226, + "column": 60 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -102364,24 +103719,25 @@ "postfix": false, "binop": null }, - "start": 9237, - "end": 9238, + "value": "manageResetState", + "start": 9310, + "end": 9326, "loc": { "start": { - "line": 224, + "line": 227, "column": 10 }, "end": { - "line": 224, - "column": 11 + "line": 227, + "column": 26 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -102389,48 +103745,48 @@ "postfix": false, "binop": null }, - "start": 9238, - "end": 9239, + "start": 9326, + "end": 9327, "loc": { "start": { - "line": 224, - "column": 11 + "line": 227, + "column": 26 }, "end": { - "line": 224, - "column": 12 + "line": 227, + "column": 27 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9239, - "end": 9240, + "value": "editor", + "start": 9327, + "end": 9333, "loc": { "start": { - "line": 224, - "column": 12 + "line": 227, + "column": 27 }, "end": { - "line": 224, - "column": 13 + "line": 227, + "column": 33 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -102438,26 +103794,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9249, - "end": 9250, + "start": 9333, + "end": 9334, "loc": { "start": { - "line": 225, - "column": 8 + "line": 227, + "column": 33 }, "end": { - "line": 225, - "column": 9 + "line": 227, + "column": 34 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -102465,22 +103822,23 @@ "postfix": false, "binop": null }, - "start": 9257, - "end": 9258, + "value": "recognizer", + "start": 9334, + "end": 9344, "loc": { "start": { - "line": 226, - "column": 6 + "line": 227, + "column": 34 }, "end": { - "line": 226, - "column": 7 + "line": 227, + "column": 44 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -102488,77 +103846,79 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9258, - "end": 9259, + "start": 9344, + "end": 9345, "loc": { "start": { - "line": 226, - "column": 7 + "line": 227, + "column": 44 }, "end": { - "line": 226, - "column": 8 + "line": 227, + "column": 45 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9259, - "end": 9260, + "value": "reset", + "start": 9345, + "end": 9350, "loc": { "start": { - "line": 226, - "column": 8 + "line": 227, + "column": 45 }, "end": { - "line": 226, - "column": 9 + "line": 227, + "column": 50 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9263, - "end": 9264, + "start": 9350, + "end": 9351, "loc": { "start": { "line": 227, - "column": 2 + "column": 50 }, "end": { "line": 227, - "column": 3 + "column": 51 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -102566,59 +103926,43 @@ "postfix": false, "binop": null }, - "start": 9265, - "end": 9266, - "loc": { - "start": { - "line": 228, - "column": 0 - }, - "end": { - "line": 228, - "column": 1 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Launch smartguide.\n * @param {Editor} editor\n * @param {Object} exports\n ", - "start": 9268, - "end": 9350, + "value": "editor", + "start": 9352, + "end": 9358, "loc": { "start": { - "line": 230, - "column": 0 + "line": 227, + "column": 52 }, "end": { - "line": 234, - "column": 3 + "line": 227, + "column": 58 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "function", - "start": 9351, + "start": 9358, "end": 9359, "loc": { "start": { - "line": 235, - "column": 0 + "line": 227, + "column": 58 }, "end": { - "line": 235, - "column": 8 + "line": 227, + "column": 59 } } }, @@ -102634,42 +103978,43 @@ "postfix": false, "binop": null }, - "value": "launchSmartGuide", - "start": 9360, - "end": 9376, + "value": "recognizer", + "start": 9359, + "end": 9369, "loc": { "start": { - "line": 235, - "column": 9 + "line": 227, + "column": 59 }, "end": { - "line": 235, - "column": 25 + "line": 227, + "column": 69 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9376, - "end": 9377, + "start": 9369, + "end": 9370, "loc": { "start": { - "line": 235, - "column": 25 + "line": 227, + "column": 69 }, "end": { - "line": 235, - "column": 26 + "line": 227, + "column": 70 } } }, @@ -102685,17 +104030,17 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 9377, - "end": 9383, + "value": "addStrokes", + "start": 9370, + "end": 9380, "loc": { "start": { - "line": 235, - "column": 26 + "line": 227, + "column": 70 }, "end": { - "line": 235, - "column": 32 + "line": 227, + "column": 80 } } }, @@ -102712,16 +104057,16 @@ "binop": null, "updateContext": null }, - "start": 9383, - "end": 9384, + "start": 9380, + "end": 9381, "loc": { "start": { - "line": 235, - "column": 32 + "line": 227, + "column": 80 }, "end": { - "line": 235, - "column": 33 + "line": 227, + "column": 81 } } }, @@ -102737,23 +104082,23 @@ "postfix": false, "binop": null }, - "value": "exports", - "start": 9385, - "end": 9392, + "value": "editor", + "start": 9382, + "end": 9388, "loc": { "start": { - "line": 235, - "column": 34 + "line": 227, + "column": 82 }, "end": { - "line": 235, - "column": 41 + "line": 227, + "column": 88 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -102761,25 +104106,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9392, - "end": 9393, + "start": 9388, + "end": 9389, "loc": { "start": { - "line": 235, - "column": 41 + "line": 227, + "column": 88 }, "end": { - "line": 235, - "column": 42 + "line": 227, + "column": 89 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -102788,24 +104134,24 @@ "postfix": false, "binop": null }, - "start": 9394, - "end": 9395, + "value": "recognizerContext", + "start": 9389, + "end": 9406, "loc": { "start": { - "line": 235, - "column": 43 + "line": 227, + "column": 89 }, "end": { - "line": 235, - "column": 44 + "line": 227, + "column": 106 } } }, { "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -102815,17 +104161,16 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 9398, - "end": 9403, + "start": 9406, + "end": 9407, "loc": { "start": { - "line": 236, - "column": 2 + "line": 227, + "column": 106 }, "end": { - "line": 236, - "column": 7 + "line": 227, + "column": 107 } } }, @@ -102841,44 +104186,68 @@ "postfix": false, "binop": null }, - "value": "editorRef", - "start": 9404, + "value": "model", + "start": 9408, "end": 9413, "loc": { "start": { - "line": 236, - "column": 8 + "line": 227, + "column": 108 }, "end": { - "line": 236, - "column": 17 + "line": 227, + "column": 113 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 9414, - "end": 9415, + "start": 9413, + "end": 9414, "loc": { "start": { - "line": 236, - "column": 18 + "line": 227, + "column": 113 }, "end": { - "line": 236, - "column": 19 + "line": 227, + "column": 114 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9415, + "end": 9416, + "loc": { + "start": { + "line": 227, + "column": 115 + }, + "end": { + "line": 227, + "column": 116 } } }, @@ -102894,23 +104263,23 @@ "postfix": false, "binop": null }, - "value": "editor", + "value": "err", "start": 9416, - "end": 9422, + "end": 9419, "loc": { "start": { - "line": 236, - "column": 20 + "line": 227, + "column": 116 }, "end": { - "line": 236, - "column": 26 + "line": 227, + "column": 119 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -102921,16 +104290,16 @@ "binop": null, "updateContext": null }, - "start": 9422, - "end": 9423, + "start": 9419, + "end": 9420, "loc": { "start": { - "line": 236, - "column": 26 + "line": 227, + "column": 119 }, "end": { - "line": 236, - "column": 27 + "line": 227, + "column": 120 } } }, @@ -102946,24 +104315,24 @@ "postfix": false, "binop": null }, - "value": "editorRef", - "start": 9426, - "end": 9435, + "value": "res", + "start": 9421, + "end": 9424, "loc": { "start": { - "line": 237, - "column": 2 + "line": 227, + "column": 121 }, "end": { - "line": 237, - "column": 11 + "line": 227, + "column": 124 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -102973,77 +104342,76 @@ "binop": null, "updateContext": null }, - "start": 9435, - "end": 9436, + "start": 9424, + "end": 9425, "loc": { "start": { - "line": 237, - "column": 11 + "line": 227, + "column": 124 }, "end": { - "line": 237, - "column": 12 + "line": 227, + "column": 125 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "...", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "smartGuide", - "start": 9436, - "end": 9446, + "start": 9426, + "end": 9429, "loc": { "start": { - "line": 237, - "column": 12 + "line": 227, + "column": 126 }, "end": { - "line": 237, - "column": 22 + "line": 227, + "column": 129 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 9447, - "end": 9448, + "value": "types", + "start": 9429, + "end": 9434, "loc": { "start": { - "line": 237, - "column": 23 + "line": 227, + "column": 129 }, "end": { - "line": 237, - "column": 24 + "line": 227, + "column": 134 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -103051,24 +104419,23 @@ "postfix": false, "binop": null }, - "value": "SmartGuide", - "start": 9449, - "end": 9459, + "start": 9434, + "end": 9435, "loc": { "start": { - "line": 237, - "column": 25 + "line": 227, + "column": 134 }, "end": { - "line": 237, - "column": 35 + "line": 227, + "column": 135 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -103078,16 +104445,41 @@ "binop": null, "updateContext": null }, - "start": 9459, - "end": 9460, + "start": 9436, + "end": 9438, "loc": { "start": { - "line": 237, - "column": 35 + "line": 227, + "column": 136 }, "end": { - "line": 237, - "column": 36 + "line": 227, + "column": 138 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9439, + "end": 9440, + "loc": { + "start": { + "line": 227, + "column": 139 + }, + "end": { + "line": 227, + "column": 140 } } }, @@ -103103,17 +104495,17 @@ "postfix": false, "binop": null }, - "value": "launchSmartGuide", - "start": 9460, - "end": 9476, + "value": "recognizerCallback", + "start": 9453, + "end": 9471, "loc": { "start": { - "line": 237, - "column": 36 + "line": 228, + "column": 12 }, "end": { - "line": 237, - "column": 52 + "line": 228, + "column": 30 } } }, @@ -103129,16 +104521,16 @@ "postfix": false, "binop": null }, - "start": 9476, - "end": 9477, + "start": 9471, + "end": 9472, "loc": { "start": { - "line": 237, - "column": 52 + "line": 228, + "column": 30 }, "end": { - "line": 237, - "column": 53 + "line": 228, + "column": 31 } } }, @@ -103155,23 +104547,23 @@ "binop": null }, "value": "editor", - "start": 9477, - "end": 9483, + "start": 9472, + "end": 9478, "loc": { "start": { - "line": 237, - "column": 53 + "line": 228, + "column": 31 }, "end": { - "line": 237, - "column": 59 + "line": 228, + "column": 37 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -103181,16 +104573,16 @@ "binop": null, "updateContext": null }, - "start": 9483, - "end": 9484, + "start": 9478, + "end": 9479, "loc": { "start": { - "line": 237, - "column": 59 + "line": 228, + "column": 37 }, "end": { - "line": 237, - "column": 60 + "line": 228, + "column": 38 } } }, @@ -103206,17 +104598,17 @@ "postfix": false, "binop": null }, - "value": "smartGuide", - "start": 9484, - "end": 9494, + "value": "err", + "start": 9480, + "end": 9483, "loc": { "start": { - "line": 237, - "column": 60 + "line": 228, + "column": 39 }, "end": { - "line": 237, - "column": 70 + "line": 228, + "column": 42 } } }, @@ -103233,16 +104625,16 @@ "binop": null, "updateContext": null }, - "start": 9494, - "end": 9495, + "start": 9483, + "end": 9484, "loc": { "start": { - "line": 237, - "column": 70 + "line": 228, + "column": 42 }, "end": { - "line": 237, - "column": 71 + "line": 228, + "column": 43 } } }, @@ -103258,48 +104650,49 @@ "postfix": false, "binop": null }, - "value": "exports", - "start": 9496, - "end": 9503, + "value": "res", + "start": 9485, + "end": 9488, "loc": { "start": { - "line": 237, - "column": 72 + "line": 228, + "column": 44 }, "end": { - "line": 237, - "column": 79 + "line": 228, + "column": 47 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9503, - "end": 9504, + "start": 9488, + "end": 9489, "loc": { "start": { - "line": 237, - "column": 79 + "line": 228, + "column": 47 }, "end": { - "line": 237, - "column": 80 + "line": 228, + "column": 48 } } }, { "type": { - "label": ";", + "label": "...", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -103310,24 +104703,24 @@ "binop": null, "updateContext": null }, - "start": 9504, - "end": 9505, + "start": 9490, + "end": 9493, "loc": { "start": { - "line": 237, - "column": 80 + "line": 228, + "column": 49 }, "end": { - "line": 237, - "column": 81 + "line": 228, + "column": 52 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -103335,41 +104728,25 @@ "postfix": false, "binop": null }, - "start": 9506, - "end": 9507, - "loc": { - "start": { - "line": 238, - "column": 0 - }, - "end": { - "line": 238, - "column": 1 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Launch ink import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {PointerEvents} events\n ", - "start": 9509, - "end": 9621, + "value": "types", + "start": 9493, + "end": 9498, "loc": { "start": { - "line": 240, - "column": 0 + "line": 228, + "column": 52 }, "end": { - "line": 245, - "column": 3 + "line": 228, + "column": 57 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -103377,51 +104754,50 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 9622, - "end": 9630, + "start": 9498, + "end": 9499, "loc": { "start": { - "line": 246, - "column": 0 + "line": 228, + "column": 57 }, "end": { - "line": 246, - "column": 8 + "line": 228, + "column": 58 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "launchPointerEvents", - "start": 9631, - "end": 9650, + "start": 9499, + "end": 9500, "loc": { "start": { - "line": 246, - "column": 9 + "line": 228, + "column": 58 }, "end": { - "line": 246, - "column": 28 + "line": 228, + "column": 59 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -103429,24 +104805,24 @@ "postfix": false, "binop": null }, - "start": 9650, - "end": 9651, + "start": 9511, + "end": 9512, "loc": { "start": { - "line": 246, - "column": 28 + "line": 229, + "column": 10 }, "end": { - "line": 246, - "column": 29 + "line": 229, + "column": 11 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -103454,23 +104830,22 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 9651, - "end": 9657, + "start": 9512, + "end": 9513, "loc": { "start": { - "line": 246, - "column": 29 + "line": 229, + "column": 11 }, "end": { - "line": 246, - "column": 35 + "line": 229, + "column": 12 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -103481,24 +104856,24 @@ "binop": null, "updateContext": null }, - "start": 9657, - "end": 9658, + "start": 9513, + "end": 9514, "loc": { "start": { - "line": 246, - "column": 35 + "line": 229, + "column": 12 }, "end": { - "line": 246, - "column": 36 + "line": 229, + "column": 13 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -103506,51 +104881,49 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 9659, - "end": 9664, + "start": 9523, + "end": 9524, "loc": { "start": { - "line": 246, - "column": 37 + "line": 230, + "column": 8 }, "end": { - "line": 246, - "column": 42 + "line": 230, + "column": 9 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9664, - "end": 9665, + "start": 9531, + "end": 9532, "loc": { "start": { - "line": 246, - "column": 42 + "line": 231, + "column": 6 }, "end": { - "line": 246, - "column": 43 + "line": 231, + "column": 7 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -103558,50 +104931,50 @@ "postfix": false, "binop": null }, - "value": "events", - "start": 9666, - "end": 9672, + "start": 9532, + "end": 9533, "loc": { "start": { - "line": 246, - "column": 44 + "line": 231, + "column": 7 }, "end": { - "line": 246, - "column": 50 + "line": 231, + "column": 8 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9672, - "end": 9673, + "start": 9533, + "end": 9534, "loc": { "start": { - "line": 246, - "column": 50 + "line": 231, + "column": 8 }, "end": { - "line": 246, - "column": 51 + "line": 231, + "column": 9 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -103609,23 +104982,22 @@ "postfix": false, "binop": null }, - "start": 9674, - "end": 9675, + "start": 9537, + "end": 9538, "loc": { "start": { - "line": 246, - "column": 52 + "line": 232, + "column": 2 }, "end": { - "line": 246, - "column": 53 + "line": 232, + "column": 3 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -103633,27 +105005,42 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 9678, - "end": 9680, + "start": 9539, + "end": 9540, "loc": { "start": { - "line": 247, - "column": 2 + "line": 233, + "column": 0 }, "end": { - "line": 247, - "column": 4 + "line": 233, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Launch smartguide.\n * @param {Editor} editor\n * @param {Object} exports\n ", + "start": 9542, + "end": 9624, + "loc": { + "start": { + "line": 235, + "column": 0 + }, + "end": { + "line": 239, + "column": 3 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "function", + "keyword": "function", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -103662,16 +105049,17 @@ "postfix": false, "binop": null }, - "start": 9681, - "end": 9682, + "value": "function", + "start": 9625, + "end": 9633, "loc": { "start": { - "line": 247, - "column": 5 + "line": 240, + "column": 0 }, "end": { - "line": 247, - "column": 6 + "line": 240, + "column": 8 } } }, @@ -103687,43 +105075,42 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 9682, - "end": 9688, + "value": "launchSmartGuide", + "start": 9634, + "end": 9650, "loc": { "start": { - "line": 247, - "column": 6 + "line": 240, + "column": 9 }, "end": { - "line": 247, - "column": 12 + "line": 240, + "column": 25 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9688, - "end": 9689, + "start": 9650, + "end": 9651, "loc": { "start": { - "line": 247, - "column": 12 + "line": 240, + "column": 25 }, "end": { - "line": 247, - "column": 13 + "line": 240, + "column": 26 } } }, @@ -103739,23 +105126,23 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 9689, - "end": 9699, + "value": "editor", + "start": 9651, + "end": 9657, "loc": { "start": { - "line": 247, - "column": 13 + "line": 240, + "column": 26 }, "end": { - "line": 247, - "column": 23 + "line": 240, + "column": 32 } } }, { "type": { - "label": "&&", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -103763,20 +105150,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 9700, - "end": 9702, + "start": 9657, + "end": 9658, "loc": { "start": { - "line": 247, - "column": 24 + "line": 240, + "column": 32 }, "end": { - "line": 247, - "column": 26 + "line": 240, + "column": 33 } } }, @@ -103792,23 +105178,23 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 9703, - "end": 9709, + "value": "exports", + "start": 9659, + "end": 9666, "loc": { "start": { - "line": 247, - "column": 27 + "line": 240, + "column": 34 }, "end": { - "line": 247, - "column": 33 + "line": 240, + "column": 41 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -103816,26 +105202,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9709, - "end": 9710, + "start": 9666, + "end": 9667, "loc": { "start": { - "line": 247, - "column": 33 + "line": 240, + "column": 41 }, "end": { - "line": 247, - "column": 34 + "line": 240, + "column": 42 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -103844,23 +105229,23 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 9710, - "end": 9720, + "start": 9668, + "end": 9669, "loc": { "start": { - "line": 247, - "column": 34 + "line": 240, + "column": 43 }, "end": { - "line": 247, + "line": 240, "column": 44 } } }, { "type": { - "label": ".", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -103871,16 +105256,17 @@ "binop": null, "updateContext": null }, - "start": 9720, - "end": 9721, + "value": "const", + "start": 9672, + "end": 9677, "loc": { "start": { - "line": 247, - "column": 44 + "line": 241, + "column": 2 }, "end": { - "line": 247, - "column": 45 + "line": 241, + "column": 7 } } }, @@ -103896,67 +105282,96 @@ "postfix": false, "binop": null }, - "value": "pointerEvents", - "start": 9721, - "end": 9734, + "value": "editorRef", + "start": 9678, + "end": 9687, "loc": { "start": { - "line": 247, - "column": 45 + "line": 241, + "column": 8 }, "end": { - "line": 247, - "column": 58 + "line": 241, + "column": 17 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9688, + "end": 9689, + "loc": { + "start": { + "line": 241, + "column": 18 + }, + "end": { + "line": 241, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, - "start": 9734, - "end": 9735, + "value": "editor", + "start": 9690, + "end": 9696, "loc": { "start": { - "line": 247, - "column": 58 + "line": 241, + "column": 20 }, "end": { - "line": 247, - "column": 59 + "line": 241, + "column": 26 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9736, - "end": 9737, + "start": 9696, + "end": 9697, "loc": { "start": { - "line": 247, - "column": 60 + "line": 241, + "column": 26 }, "end": { - "line": 247, - "column": 61 + "line": 241, + "column": 27 } } }, @@ -103972,17 +105387,17 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 9742, - "end": 9748, + "value": "editorRef", + "start": 9700, + "end": 9709, "loc": { "start": { - "line": 248, - "column": 4 + "line": 242, + "column": 2 }, "end": { - "line": 248, - "column": 10 + "line": 242, + "column": 11 } } }, @@ -103999,16 +105414,16 @@ "binop": null, "updateContext": null }, - "start": 9748, - "end": 9749, + "start": 9709, + "end": 9710, "loc": { "start": { - "line": 248, - "column": 10 + "line": 242, + "column": 11 }, "end": { - "line": 248, - "column": 11 + "line": 242, + "column": 12 } } }, @@ -104024,43 +105439,44 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 9749, - "end": 9766, + "value": "smartGuide", + "start": 9710, + "end": 9720, "loc": { "start": { - "line": 248, - "column": 11 + "line": 242, + "column": 12 }, "end": { - "line": 248, - "column": 28 + "line": 242, + "column": 22 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 9766, - "end": 9767, + "value": "=", + "start": 9721, + "end": 9722, "loc": { "start": { - "line": 248, - "column": 28 + "line": 242, + "column": 23 }, "end": { - "line": 248, - "column": 29 + "line": 242, + "column": 24 } } }, @@ -104076,17 +105492,17 @@ "postfix": false, "binop": null }, - "value": "initPromise", - "start": 9767, - "end": 9778, + "value": "SmartGuide", + "start": 9723, + "end": 9733, "loc": { "start": { - "line": 248, - "column": 29 + "line": 242, + "column": 25 }, "end": { - "line": 248, - "column": 40 + "line": 242, + "column": 35 } } }, @@ -104103,16 +105519,16 @@ "binop": null, "updateContext": null }, - "start": 9785, - "end": 9786, + "start": 9733, + "end": 9734, "loc": { "start": { - "line": 249, - "column": 6 + "line": 242, + "column": 35 }, "end": { - "line": 249, - "column": 7 + "line": 242, + "column": 36 } } }, @@ -104128,17 +105544,17 @@ "postfix": false, "binop": null }, - "value": "then", - "start": 9786, - "end": 9790, + "value": "launchSmartGuide", + "start": 9734, + "end": 9750, "loc": { "start": { - "line": 249, - "column": 7 + "line": 242, + "column": 36 }, "end": { - "line": 249, - "column": 11 + "line": 242, + "column": 52 } } }, @@ -104154,23 +105570,23 @@ "postfix": false, "binop": null }, - "start": 9790, - "end": 9791, + "start": 9750, + "end": 9751, "loc": { "start": { - "line": 249, - "column": 11 + "line": 242, + "column": 52 }, "end": { - "line": 249, - "column": 12 + "line": 242, + "column": 53 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -104179,22 +105595,23 @@ "postfix": false, "binop": null }, - "start": 9791, - "end": 9792, + "value": "editor", + "start": 9751, + "end": 9757, "loc": { "start": { - "line": 249, - "column": 12 + "line": 242, + "column": 53 }, "end": { - "line": 249, - "column": 13 + "line": 242, + "column": 59 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -104202,24 +105619,51 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9757, + "end": 9758, + "loc": { + "start": { + "line": 242, + "column": 59 + }, + "end": { + "line": 242, + "column": 60 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null }, - "start": 9792, - "end": 9793, + "value": "smartGuide", + "start": 9758, + "end": 9768, "loc": { "start": { - "line": 249, - "column": 13 + "line": 242, + "column": 60 }, "end": { - "line": 249, - "column": 14 + "line": 242, + "column": 70 } } }, { "type": { - "label": "=>", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -104230,23 +105674,23 @@ "binop": null, "updateContext": null }, - "start": 9794, - "end": 9796, + "start": 9768, + "end": 9769, "loc": { "start": { - "line": 249, - "column": 15 + "line": 242, + "column": 70 }, "end": { - "line": 249, - "column": 17 + "line": 242, + "column": 71 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -104255,24 +105699,25 @@ "postfix": false, "binop": null }, - "start": 9797, - "end": 9798, + "value": "exports", + "start": 9770, + "end": 9777, "loc": { "start": { - "line": 249, - "column": 18 + "line": 242, + "column": 72 }, "end": { - "line": 249, - "column": 19 + "line": 242, + "column": 79 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -104280,24 +105725,23 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 9807, - "end": 9813, + "start": 9777, + "end": 9778, "loc": { "start": { - "line": 250, - "column": 8 + "line": 242, + "column": 79 }, "end": { - "line": 250, - "column": 14 + "line": 242, + "column": 80 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -104307,24 +105751,24 @@ "binop": null, "updateContext": null }, - "start": 9813, - "end": 9814, + "start": 9778, + "end": 9779, "loc": { "start": { - "line": 250, - "column": 14 + "line": 242, + "column": 80 }, "end": { - "line": 250, - "column": 15 + "line": 242, + "column": 81 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -104332,43 +105776,59 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 9814, - "end": 9824, + "start": 9780, + "end": 9781, "loc": { "start": { - "line": 250, - "column": 15 + "line": 243, + "column": 0 + }, + "end": { + "line": 243, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Launch ink import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {PointerEvents} events\n ", + "start": 9783, + "end": 9895, + "loc": { + "start": { + "line": 245, + "column": 0 }, "end": { "line": 250, - "column": 25 + "column": 3 } } }, { "type": { - "label": ".", + "label": "function", + "keyword": "function", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9824, - "end": 9825, + "value": "function", + "start": 9896, + "end": 9904, "loc": { "start": { - "line": 250, - "column": 25 + "line": 251, + "column": 0 }, "end": { - "line": 250, - "column": 26 + "line": 251, + "column": 8 } } }, @@ -104384,17 +105844,17 @@ "postfix": false, "binop": null }, - "value": "pointerEvents", - "start": 9825, - "end": 9838, + "value": "launchPointerEvents", + "start": 9905, + "end": 9924, "loc": { "start": { - "line": 250, - "column": 26 + "line": 251, + "column": 9 }, "end": { - "line": 250, - "column": 39 + "line": 251, + "column": 28 } } }, @@ -104410,16 +105870,16 @@ "postfix": false, "binop": null }, - "start": 9838, - "end": 9839, + "start": 9924, + "end": 9925, "loc": { "start": { - "line": 250, - "column": 39 + "line": 251, + "column": 28 }, "end": { - "line": 250, - "column": 40 + "line": 251, + "column": 29 } } }, @@ -104436,23 +105896,23 @@ "binop": null }, "value": "editor", - "start": 9839, - "end": 9845, + "start": 9925, + "end": 9931, "loc": { "start": { - "line": 250, - "column": 40 + "line": 251, + "column": 29 }, "end": { - "line": 250, - "column": 46 + "line": 251, + "column": 35 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -104462,16 +105922,16 @@ "binop": null, "updateContext": null }, - "start": 9845, - "end": 9846, + "start": 9931, + "end": 9932, "loc": { "start": { - "line": 250, - "column": 46 + "line": 251, + "column": 35 }, "end": { - "line": 250, - "column": 47 + "line": 251, + "column": 36 } } }, @@ -104487,17 +105947,17 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 9846, - "end": 9863, + "value": "model", + "start": 9933, + "end": 9938, "loc": { "start": { - "line": 250, - "column": 47 + "line": 251, + "column": 37 }, "end": { - "line": 250, - "column": 64 + "line": 251, + "column": 42 } } }, @@ -104514,16 +105974,16 @@ "binop": null, "updateContext": null }, - "start": 9863, - "end": 9864, + "start": 9938, + "end": 9939, "loc": { "start": { - "line": 250, - "column": 64 + "line": 251, + "column": 42 }, "end": { - "line": 250, - "column": 65 + "line": 251, + "column": 43 } } }, @@ -104539,50 +105999,49 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 9865, - "end": 9870, + "value": "events", + "start": 9940, + "end": 9946, "loc": { "start": { - "line": 250, - "column": 66 + "line": 251, + "column": 44 }, "end": { - "line": 250, - "column": 71 + "line": 251, + "column": 50 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9870, - "end": 9871, + "start": 9946, + "end": 9947, "loc": { "start": { - "line": 250, - "column": 71 + "line": 251, + "column": 50 }, "end": { - "line": 250, - "column": 72 + "line": 251, + "column": 51 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -104591,24 +106050,24 @@ "postfix": false, "binop": null }, - "value": "events", - "start": 9872, - "end": 9878, + "start": 9948, + "end": 9949, "loc": { "start": { - "line": 250, - "column": 73 + "line": 251, + "column": 52 }, "end": { - "line": 250, - "column": 79 + "line": 251, + "column": 53 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -104618,16 +106077,17 @@ "binop": null, "updateContext": null }, - "start": 9878, - "end": 9879, + "value": "if", + "start": 9952, + "end": 9954, "loc": { "start": { - "line": 250, - "column": 79 + "line": 252, + "column": 2 }, "end": { - "line": 250, - "column": 80 + "line": 252, + "column": 4 } } }, @@ -104643,16 +106103,16 @@ "postfix": false, "binop": null }, - "start": 9880, - "end": 9881, + "start": 9955, + "end": 9956, "loc": { "start": { - "line": 250, - "column": 81 + "line": 252, + "column": 5 }, "end": { - "line": 250, - "column": 82 + "line": 252, + "column": 6 } } }, @@ -104668,24 +106128,24 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 9881, - "end": 9884, + "value": "editor", + "start": 9956, + "end": 9962, "loc": { "start": { - "line": 250, - "column": 82 + "line": 252, + "column": 6 }, "end": { - "line": 250, - "column": 85 + "line": 252, + "column": 12 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -104695,16 +106155,16 @@ "binop": null, "updateContext": null }, - "start": 9884, - "end": 9885, + "start": 9962, + "end": 9963, "loc": { "start": { - "line": 250, - "column": 85 + "line": 252, + "column": 12 }, "end": { - "line": 250, - "column": 86 + "line": 252, + "column": 13 } } }, @@ -104720,23 +106180,23 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 9886, - "end": 9889, + "value": "recognizer", + "start": 9963, + "end": 9973, "loc": { "start": { - "line": 250, - "column": 87 + "line": 252, + "column": 13 }, "end": { - "line": 250, - "column": 90 + "line": 252, + "column": 23 } } }, { "type": { - "label": ",", + "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -104744,79 +106204,80 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "start": 9889, - "end": 9890, + "value": "&&", + "start": 9974, + "end": 9976, "loc": { "start": { - "line": 250, - "column": 90 + "line": 252, + "column": 24 }, "end": { - "line": 250, - "column": 91 + "line": 252, + "column": 26 } } }, { "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9891, - "end": 9894, + "value": "editor", + "start": 9977, + "end": 9983, "loc": { "start": { - "line": 250, - "column": 92 + "line": 252, + "column": 27 }, "end": { - "line": 250, - "column": 95 + "line": 252, + "column": 33 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "types", - "start": 9894, - "end": 9899, + "start": 9983, + "end": 9984, "loc": { "start": { - "line": 250, - "column": 95 + "line": 252, + "column": 33 }, "end": { - "line": 250, - "column": 100 + "line": 252, + "column": 34 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -104824,23 +106285,24 @@ "postfix": false, "binop": null }, - "start": 9899, - "end": 9900, + "value": "recognizer", + "start": 9984, + "end": 9994, "loc": { "start": { - "line": 250, - "column": 100 + "line": 252, + "column": 34 }, "end": { - "line": 250, - "column": 101 + "line": 252, + "column": 44 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -104850,23 +106312,23 @@ "binop": null, "updateContext": null }, - "start": 9901, - "end": 9903, + "start": 9994, + "end": 9995, "loc": { "start": { - "line": 250, - "column": 102 + "line": 252, + "column": 44 }, "end": { - "line": 250, - "column": 104 + "line": 252, + "column": 45 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -104875,24 +106337,25 @@ "postfix": false, "binop": null }, - "start": 9904, - "end": 9905, + "value": "pointerEvents", + "start": 9995, + "end": 10008, "loc": { "start": { - "line": 250, - "column": 105 + "line": 252, + "column": 45 }, "end": { - "line": 250, - "column": 106 + "line": 252, + "column": 58 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -104900,23 +106363,22 @@ "postfix": false, "binop": null }, - "value": "recognizerCallback", - "start": 9916, - "end": 9934, + "start": 10008, + "end": 10009, "loc": { "start": { - "line": 251, - "column": 10 + "line": 252, + "column": 58 }, "end": { - "line": 251, - "column": 28 + "line": 252, + "column": 59 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -104926,16 +106388,16 @@ "postfix": false, "binop": null }, - "start": 9934, - "end": 9935, + "start": 10010, + "end": 10011, "loc": { "start": { - "line": 251, - "column": 28 + "line": 252, + "column": 60 }, "end": { - "line": 251, - "column": 29 + "line": 252, + "column": 61 } } }, @@ -104952,23 +106414,23 @@ "binop": null }, "value": "editor", - "start": 9935, - "end": 9941, + "start": 10016, + "end": 10022, "loc": { "start": { - "line": 251, - "column": 29 + "line": 253, + "column": 4 }, "end": { - "line": 251, - "column": 35 + "line": 253, + "column": 10 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -104978,16 +106440,16 @@ "binop": null, "updateContext": null }, - "start": 9941, - "end": 9942, + "start": 10022, + "end": 10023, "loc": { "start": { - "line": 251, - "column": 35 + "line": 253, + "column": 10 }, "end": { - "line": 251, - "column": 36 + "line": 253, + "column": 11 } } }, @@ -105003,24 +106465,24 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 9943, - "end": 9946, + "value": "recognizerContext", + "start": 10023, + "end": 10040, "loc": { "start": { - "line": 251, - "column": 37 + "line": 253, + "column": 11 }, "end": { - "line": 251, - "column": 40 + "line": 253, + "column": 28 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -105030,16 +106492,16 @@ "binop": null, "updateContext": null }, - "start": 9946, - "end": 9947, + "start": 10040, + "end": 10041, "loc": { "start": { - "line": 251, - "column": 40 + "line": 253, + "column": 28 }, "end": { - "line": 251, - "column": 41 + "line": 253, + "column": 29 } } }, @@ -105055,24 +106517,24 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 9948, - "end": 9951, + "value": "initPromise", + "start": 10041, + "end": 10052, "loc": { "start": { - "line": 251, - "column": 42 + "line": 253, + "column": 29 }, "end": { - "line": 251, - "column": 45 + "line": 253, + "column": 40 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -105082,49 +106544,49 @@ "binop": null, "updateContext": null }, - "start": 9951, - "end": 9952, + "start": 10059, + "end": 10060, "loc": { "start": { - "line": 251, - "column": 45 + "line": 254, + "column": 6 }, "end": { - "line": 251, - "column": 46 + "line": 254, + "column": 7 } } }, { "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9953, - "end": 9956, + "value": "then", + "start": 10060, + "end": 10064, "loc": { "start": { - "line": 251, - "column": 47 + "line": 254, + "column": 7 }, "end": { - "line": 251, - "column": 50 + "line": 254, + "column": 11 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -105133,25 +106595,24 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 9956, - "end": 9961, + "start": 10064, + "end": 10065, "loc": { "start": { - "line": 251, - "column": 50 + "line": 254, + "column": 11 }, "end": { - "line": 251, - "column": 55 + "line": 254, + "column": 12 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -105159,75 +106620,75 @@ "postfix": false, "binop": null }, - "start": 9961, - "end": 9962, + "start": 10065, + "end": 10066, "loc": { "start": { - "line": 251, - "column": 55 + "line": 254, + "column": 12 }, "end": { - "line": 251, - "column": 56 + "line": 254, + "column": 13 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9962, - "end": 9963, + "start": 10066, + "end": 10067, "loc": { "start": { - "line": 251, - "column": 56 + "line": 254, + "column": 13 }, "end": { - "line": 251, - "column": 57 + "line": 254, + "column": 14 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9972, - "end": 9973, + "start": 10068, + "end": 10070, "loc": { "start": { - "line": 252, - "column": 8 + "line": 254, + "column": 15 }, "end": { - "line": 252, - "column": 9 + "line": 254, + "column": 17 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -105235,48 +106696,48 @@ "postfix": false, "binop": null }, - "start": 9973, - "end": 9974, + "start": 10071, + "end": 10072, "loc": { "start": { - "line": 252, - "column": 9 + "line": 254, + "column": 18 }, "end": { - "line": 252, - "column": 10 + "line": 254, + "column": 19 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 9974, - "end": 9975, + "value": "editor", + "start": 10081, + "end": 10087, "loc": { "start": { - "line": 252, - "column": 10 + "line": 255, + "column": 8 }, "end": { - "line": 252, - "column": 11 + "line": 255, + "column": 14 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -105284,26 +106745,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 9982, - "end": 9983, + "start": 10087, + "end": 10088, "loc": { "start": { - "line": 253, - "column": 6 + "line": 255, + "column": 14 }, "end": { - "line": 253, - "column": 7 + "line": 255, + "column": 15 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -105311,23 +106773,24 @@ "postfix": false, "binop": null }, - "start": 9983, - "end": 9984, + "value": "recognizer", + "start": 10088, + "end": 10098, "loc": { "start": { - "line": 253, - "column": 7 + "line": 255, + "column": 15 }, "end": { - "line": 253, - "column": 8 + "line": 255, + "column": 25 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -105337,24 +106800,24 @@ "binop": null, "updateContext": null }, - "start": 9984, - "end": 9985, + "start": 10098, + "end": 10099, "loc": { "start": { - "line": 253, - "column": 8 + "line": 255, + "column": 25 }, "end": { - "line": 253, - "column": 9 + "line": 255, + "column": 26 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -105362,24 +106825,25 @@ "postfix": false, "binop": null }, - "start": 9988, - "end": 9989, + "value": "pointerEvents", + "start": 10099, + "end": 10112, "loc": { "start": { - "line": 254, - "column": 2 + "line": 255, + "column": 26 }, "end": { - "line": 254, - "column": 3 + "line": 255, + "column": 39 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -105387,59 +106851,16 @@ "postfix": false, "binop": null }, - "start": 9990, - "end": 9991, + "start": 10112, + "end": 10113, "loc": { "start": { "line": 255, - "column": 0 + "column": 39 }, "end": { "line": 255, - "column": 1 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [requestedMimeTypes]\n * @param {String} [trigger]\n ", - "start": 9993, - "end": 10195, - "loc": { - "start": { - "line": 257, - "column": 0 - }, - "end": { - "line": 263, - "column": 3 - } - } - }, - { - "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "function", - "start": 10196, - "end": 10204, - "loc": { - "start": { - "line": 264, - "column": 0 - }, - "end": { - "line": 264, - "column": 8 + "column": 40 } } }, @@ -105455,42 +106876,43 @@ "postfix": false, "binop": null }, - "value": "launchExport", - "start": 10205, - "end": 10217, + "value": "editor", + "start": 10113, + "end": 10119, "loc": { "start": { - "line": 264, - "column": 9 + "line": 255, + "column": 40 }, "end": { - "line": 264, - "column": 21 + "line": 255, + "column": 46 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 10217, - "end": 10218, + "start": 10119, + "end": 10120, "loc": { "start": { - "line": 264, - "column": 21 + "line": 255, + "column": 46 }, "end": { - "line": 264, - "column": 22 + "line": 255, + "column": 47 } } }, @@ -105506,17 +106928,17 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 10218, - "end": 10224, + "value": "recognizerContext", + "start": 10120, + "end": 10137, "loc": { "start": { - "line": 264, - "column": 22 + "line": 255, + "column": 47 }, "end": { - "line": 264, - "column": 28 + "line": 255, + "column": 64 } } }, @@ -105533,16 +106955,16 @@ "binop": null, "updateContext": null }, - "start": 10224, - "end": 10225, + "start": 10137, + "end": 10138, "loc": { "start": { - "line": 264, - "column": 28 + "line": 255, + "column": 64 }, "end": { - "line": 264, - "column": 29 + "line": 255, + "column": 65 } } }, @@ -105559,16 +106981,16 @@ "binop": null }, "value": "model", - "start": 10226, - "end": 10231, + "start": 10139, + "end": 10144, "loc": { "start": { - "line": 264, - "column": 30 + "line": 255, + "column": 66 }, "end": { - "line": 264, - "column": 35 + "line": 255, + "column": 71 } } }, @@ -105585,16 +107007,16 @@ "binop": null, "updateContext": null }, - "start": 10231, - "end": 10232, + "start": 10144, + "end": 10145, "loc": { "start": { - "line": 264, - "column": 35 + "line": 255, + "column": 71 }, "end": { - "line": 264, - "column": 36 + "line": 255, + "column": 72 } } }, @@ -105610,17 +107032,17 @@ "postfix": false, "binop": null }, - "value": "requestedMimeTypes", - "start": 10233, - "end": 10251, + "value": "events", + "start": 10146, + "end": 10152, "loc": { "start": { - "line": 264, - "column": 37 + "line": 255, + "column": 73 }, "end": { - "line": 264, - "column": 55 + "line": 255, + "column": 79 } } }, @@ -105637,23 +107059,23 @@ "binop": null, "updateContext": null }, - "start": 10251, - "end": 10252, + "start": 10152, + "end": 10153, "loc": { "start": { - "line": 264, - "column": 55 + "line": 255, + "column": 79 }, "end": { - "line": 264, - "column": 56 + "line": 255, + "column": 80 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -105662,44 +107084,16 @@ "postfix": false, "binop": null }, - "value": "trigger", - "start": 10253, - "end": 10260, - "loc": { - "start": { - "line": 264, - "column": 57 - }, - "end": { - "line": 264, - "column": 64 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 10261, - "end": 10262, + "start": 10154, + "end": 10155, "loc": { "start": { - "line": 264, - "column": 65 + "line": 255, + "column": 81 }, "end": { - "line": 264, - "column": 66 + "line": 255, + "column": 82 } } }, @@ -105715,24 +107109,24 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 10263, - "end": 10269, + "value": "err", + "start": 10155, + "end": 10158, "loc": { "start": { - "line": 264, - "column": 67 + "line": 255, + "column": 82 }, "end": { - "line": 264, - "column": 73 + "line": 255, + "column": 85 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -105742,16 +107136,16 @@ "binop": null, "updateContext": null }, - "start": 10269, - "end": 10270, + "start": 10158, + "end": 10159, "loc": { "start": { - "line": 264, - "column": 73 + "line": 255, + "column": 85 }, "end": { - "line": 264, - "column": 74 + "line": 255, + "column": 86 } } }, @@ -105767,24 +107161,24 @@ "postfix": false, "binop": null }, - "value": "configuration", - "start": 10270, - "end": 10283, + "value": "res", + "start": 10160, + "end": 10163, "loc": { "start": { - "line": 264, - "column": 74 + "line": 255, + "column": 87 }, "end": { - "line": 264, - "column": 87 + "line": 255, + "column": 90 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -105794,76 +107188,76 @@ "binop": null, "updateContext": null }, - "start": 10283, - "end": 10284, + "start": 10163, + "end": 10164, "loc": { "start": { - "line": 264, - "column": 87 + "line": 255, + "column": 90 }, "end": { - "line": 264, - "column": 88 + "line": 255, + "column": 91 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "...", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "triggers", - "start": 10284, - "end": 10292, + "start": 10165, + "end": 10168, "loc": { "start": { - "line": 264, - "column": 88 + "line": 255, + "column": 92 }, "end": { - "line": 264, - "column": 96 + "line": 255, + "column": 95 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 10292, - "end": 10293, + "value": "types", + "start": 10168, + "end": 10173, "loc": { "start": { - "line": 264, - "column": 96 + "line": 255, + "column": 95 }, "end": { - "line": 264, - "column": 97 + "line": 255, + "column": 100 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -105871,42 +107265,42 @@ "postfix": false, "binop": null }, - "value": "exportContent", - "start": 10293, - "end": 10306, + "start": 10173, + "end": 10174, "loc": { "start": { - "line": 264, - "column": 97 + "line": 255, + "column": 100 }, "end": { - "line": 264, - "column": 110 + "line": 255, + "column": 101 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 10306, - "end": 10307, + "start": 10175, + "end": 10177, "loc": { "start": { - "line": 264, - "column": 110 + "line": 255, + "column": 102 }, "end": { - "line": 264, - "column": 111 + "line": 255, + "column": 104 } } }, @@ -105922,44 +107316,42 @@ "postfix": false, "binop": null }, - "start": 10308, - "end": 10309, + "start": 10178, + "end": 10179, "loc": { "start": { - "line": 264, - "column": 112 + "line": 255, + "column": 105 }, "end": { - "line": 264, - "column": 113 + "line": 255, + "column": 106 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 10312, - "end": 10314, + "value": "recognizerCallback", + "start": 10190, + "end": 10208, "loc": { "start": { - "line": 265, - "column": 2 + "line": 256, + "column": 10 }, "end": { - "line": 265, - "column": 4 + "line": 256, + "column": 28 } } }, @@ -105975,16 +107367,16 @@ "postfix": false, "binop": null }, - "start": 10315, - "end": 10316, + "start": 10208, + "end": 10209, "loc": { "start": { - "line": 265, - "column": 5 + "line": 256, + "column": 28 }, "end": { - "line": 265, - "column": 6 + "line": 256, + "column": 29 } } }, @@ -106001,23 +107393,23 @@ "binop": null }, "value": "editor", - "start": 10316, - "end": 10322, + "start": 10209, + "end": 10215, "loc": { "start": { - "line": 265, - "column": 6 + "line": 256, + "column": 29 }, "end": { - "line": 265, - "column": 12 + "line": 256, + "column": 35 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -106027,16 +107419,16 @@ "binop": null, "updateContext": null }, - "start": 10322, - "end": 10323, + "start": 10215, + "end": 10216, "loc": { "start": { - "line": 265, - "column": 12 + "line": 256, + "column": 35 }, "end": { - "line": 265, - "column": 13 + "line": 256, + "column": 36 } } }, @@ -106052,23 +107444,23 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 10323, - "end": 10333, + "value": "err", + "start": 10217, + "end": 10220, "loc": { "start": { - "line": 265, - "column": 13 + "line": 256, + "column": 37 }, "end": { - "line": 265, - "column": 23 + "line": 256, + "column": 40 } } }, { "type": { - "label": "&&", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -106076,20 +107468,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 10334, - "end": 10336, + "start": 10220, + "end": 10221, "loc": { "start": { - "line": 265, - "column": 24 + "line": 256, + "column": 40 }, "end": { - "line": 265, - "column": 26 + "line": 256, + "column": 41 } } }, @@ -106105,24 +107496,24 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 10337, - "end": 10343, + "value": "res", + "start": 10222, + "end": 10225, "loc": { "start": { - "line": 265, - "column": 27 + "line": 256, + "column": 42 }, "end": { - "line": 265, - "column": 33 + "line": 256, + "column": 45 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -106132,76 +107523,76 @@ "binop": null, "updateContext": null }, - "start": 10343, - "end": 10344, + "start": 10225, + "end": 10226, "loc": { "start": { - "line": 265, - "column": 33 + "line": 256, + "column": 45 }, "end": { - "line": 265, - "column": 34 + "line": 256, + "column": 46 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "...", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "recognizer", - "start": 10344, - "end": 10354, + "start": 10227, + "end": 10230, "loc": { "start": { - "line": 265, - "column": 34 + "line": 256, + "column": 47 }, "end": { - "line": 265, - "column": 44 + "line": 256, + "column": 50 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 10354, - "end": 10355, + "value": "types", + "start": 10230, + "end": 10235, "loc": { "start": { - "line": 265, - "column": 44 + "line": 256, + "column": 50 }, "end": { - "line": 265, - "column": 45 + "line": 256, + "column": 55 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -106209,50 +107600,50 @@ "postfix": false, "binop": null }, - "value": "export_", - "start": 10355, - "end": 10362, + "start": 10235, + "end": 10236, "loc": { "start": { - "line": 265, - "column": 45 + "line": 256, + "column": 55 }, "end": { - "line": 265, - "column": 52 + "line": 256, + "column": 56 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 10362, - "end": 10363, + "start": 10236, + "end": 10237, "loc": { "start": { - "line": 265, - "column": 52 + "line": 256, + "column": 56 }, "end": { - "line": 265, - "column": 53 + "line": 256, + "column": 57 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -106260,24 +107651,24 @@ "postfix": false, "binop": null }, - "start": 10364, - "end": 10365, + "start": 10246, + "end": 10247, "loc": { "start": { - "line": 265, - "column": 54 + "line": 257, + "column": 8 }, "end": { - "line": 265, - "column": 55 + "line": 257, + "column": 9 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -106285,24 +107676,23 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 10370, - "end": 10376, + "start": 10247, + "end": 10248, "loc": { "start": { - "line": 266, - "column": 4 + "line": 257, + "column": 9 }, "end": { - "line": 266, + "line": 257, "column": 10 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -106312,24 +107702,24 @@ "binop": null, "updateContext": null }, - "start": 10376, - "end": 10377, + "start": 10248, + "end": 10249, "loc": { "start": { - "line": 266, + "line": 257, "column": 10 }, "end": { - "line": 266, + "line": 257, "column": 11 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -106337,23 +107727,22 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 10377, - "end": 10394, + "start": 10256, + "end": 10257, "loc": { "start": { - "line": 266, - "column": 11 + "line": 258, + "column": 6 }, "end": { - "line": 266, - "column": 28 + "line": 258, + "column": 7 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -106361,27 +107750,52 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "start": 10257, + "end": 10258, + "loc": { + "start": { + "line": 258, + "column": 7 + }, + "end": { + "line": 258, + "column": 8 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "start": 10394, - "end": 10395, + "start": 10258, + "end": 10259, "loc": { "start": { - "line": 266, - "column": 28 + "line": 258, + "column": 8 }, "end": { - "line": 266, - "column": 29 + "line": 258, + "column": 9 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -106389,23 +107803,22 @@ "postfix": false, "binop": null }, - "value": "initPromise", - "start": 10395, - "end": 10406, + "start": 10262, + "end": 10263, "loc": { "start": { - "line": 266, - "column": 29 + "line": 259, + "column": 2 }, "end": { - "line": 266, - "column": 40 + "line": 259, + "column": 3 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -106413,25 +107826,41 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 10413, - "end": 10414, + "start": 10264, + "end": 10265, "loc": { "start": { - "line": 267, - "column": 6 + "line": 260, + "column": 0 }, "end": { - "line": 267, - "column": 7 + "line": 260, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [requestedMimeTypes]\n * @param {String} [trigger]\n ", + "start": 10267, + "end": 10469, + "loc": { + "start": { + "line": 262, + "column": 0 + }, + "end": { + "line": 268, + "column": 3 } } }, { "type": { - "label": "name", + "label": "function", + "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -106441,24 +107870,24 @@ "postfix": false, "binop": null }, - "value": "then", - "start": 10414, - "end": 10418, + "value": "function", + "start": 10470, + "end": 10478, "loc": { "start": { - "line": 267, - "column": 7 + "line": 269, + "column": 0 }, "end": { - "line": 267, - "column": 11 + "line": 269, + "column": 8 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -106467,16 +107896,17 @@ "postfix": false, "binop": null }, - "start": 10418, - "end": 10419, + "value": "launchExport", + "start": 10479, + "end": 10491, "loc": { "start": { - "line": 267, - "column": 11 + "line": 269, + "column": 9 }, "end": { - "line": 267, - "column": 12 + "line": 269, + "column": 21 } } }, @@ -106492,24 +107922,24 @@ "postfix": false, "binop": null }, - "start": 10419, - "end": 10420, + "start": 10491, + "end": 10492, "loc": { "start": { - "line": 267, - "column": 12 + "line": 269, + "column": 21 }, "end": { - "line": 267, - "column": 13 + "line": 269, + "column": 22 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -106517,22 +107947,23 @@ "postfix": false, "binop": null }, - "start": 10420, - "end": 10421, + "value": "editor", + "start": 10492, + "end": 10498, "loc": { "start": { - "line": 267, - "column": 13 + "line": 269, + "column": 22 }, "end": { - "line": 267, - "column": 14 + "line": 269, + "column": 28 } } }, { "type": { - "label": "=>", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -106543,23 +107974,23 @@ "binop": null, "updateContext": null }, - "start": 10422, - "end": 10424, + "start": 10498, + "end": 10499, "loc": { "start": { - "line": 267, - "column": 15 + "line": 269, + "column": 28 }, "end": { - "line": 267, - "column": 17 + "line": 269, + "column": 29 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -106568,85 +107999,95 @@ "postfix": false, "binop": null }, - "start": 10425, - "end": 10426, + "value": "model", + "start": 10500, + "end": 10505, "loc": { "start": { - "line": 267, - "column": 18 + "line": 269, + "column": 30 }, "end": { - "line": 267, - "column": 19 + "line": 269, + "column": 35 } } }, { - "type": "CommentLine", - "value": " Firing export only if recognizer is configure to do it", - "start": 10435, - "end": 10492, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10505, + "end": 10506, "loc": { "start": { - "line": 268, - "column": 8 + "line": 269, + "column": 35 }, "end": { - "line": 268, - "column": 65 + "line": 269, + "column": 36 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 10501, - "end": 10503, + "value": "requestedMimeTypes", + "start": 10507, + "end": 10525, "loc": { "start": { "line": 269, - "column": 8 + "column": 37 }, "end": { "line": 269, - "column": 10 + "column": 55 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 10504, - "end": 10505, + "start": 10525, + "end": 10526, "loc": { "start": { "line": 269, - "column": 11 + "column": 55 }, "end": { "line": 269, - "column": 12 + "column": 56 } } }, @@ -106662,42 +108103,44 @@ "postfix": false, "binop": null }, - "value": "isTriggerValid", - "start": 10505, - "end": 10519, + "value": "trigger", + "start": 10527, + "end": 10534, "loc": { "start": { "line": 269, - "column": 12 + "column": 57 }, "end": { "line": 269, - "column": 26 + "column": 64 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 10519, - "end": 10520, + "value": "=", + "start": 10535, + "end": 10536, "loc": { "start": { "line": 269, - "column": 26 + "column": 65 }, "end": { "line": 269, - "column": 27 + "column": 66 } } }, @@ -106714,23 +108157,23 @@ "binop": null }, "value": "editor", - "start": 10520, - "end": 10526, + "start": 10537, + "end": 10543, "loc": { "start": { "line": 269, - "column": 27 + "column": 67 }, "end": { "line": 269, - "column": 33 + "column": 73 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -106740,22 +108183,22 @@ "binop": null, "updateContext": null }, - "start": 10526, - "end": 10527, + "start": 10543, + "end": 10544, "loc": { "start": { "line": 269, - "column": 33 + "column": 73 }, "end": { "line": 269, - "column": 34 + "column": 74 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -106763,27 +108206,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "exportContent", - "start": 10528, - "end": 10543, + "value": "configuration", + "start": 10544, + "end": 10557, "loc": { "start": { "line": 269, - "column": 35 + "column": 74 }, "end": { "line": 269, - "column": 50 + "column": 87 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -106793,16 +108235,16 @@ "binop": null, "updateContext": null }, - "start": 10543, - "end": 10544, + "start": 10557, + "end": 10558, "loc": { "start": { "line": 269, - "column": 50 + "column": 87 }, "end": { "line": 269, - "column": 51 + "column": 88 } } }, @@ -106818,23 +108260,23 @@ "postfix": false, "binop": null }, - "value": "trigger", - "start": 10545, - "end": 10552, + "value": "triggers", + "start": 10558, + "end": 10566, "loc": { "start": { "line": 269, - "column": 52 + "column": 88 }, "end": { "line": 269, - "column": 59 + "column": 96 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -106842,26 +108284,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 10552, - "end": 10553, + "start": 10566, + "end": 10567, "loc": { "start": { "line": 269, - "column": 59 + "column": 96 }, "end": { "line": 269, - "column": 60 + "column": 97 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -106869,24 +108312,25 @@ "postfix": false, "binop": null }, - "start": 10553, - "end": 10554, + "value": "exportContent", + "start": 10567, + "end": 10580, "loc": { "start": { "line": 269, - "column": 60 + "column": 97 }, "end": { "line": 269, - "column": 61 + "column": 110 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -106894,97 +108338,94 @@ "postfix": false, "binop": null }, - "start": 10555, - "end": 10556, + "start": 10580, + "end": 10581, "loc": { "start": { "line": 269, - "column": 62 + "column": 110 }, "end": { "line": 269, - "column": 63 + "column": 111 } } }, { "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "const", - "start": 10567, - "end": 10572, + "start": 10582, + "end": 10583, "loc": { "start": { - "line": 270, - "column": 10 + "line": 269, + "column": 112 }, "end": { - "line": 270, - "column": 15 + "line": 269, + "column": 113 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "editorRef", - "start": 10573, - "end": 10582, + "value": "if", + "start": 10586, + "end": 10588, "loc": { "start": { "line": 270, - "column": 16 + "column": 2 }, "end": { "line": 270, - "column": 25 + "column": 4 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 10583, - "end": 10584, + "start": 10589, + "end": 10590, "loc": { "start": { "line": 270, - "column": 26 + "column": 5 }, "end": { "line": 270, - "column": 27 + "column": 6 } } }, @@ -107001,23 +108442,23 @@ "binop": null }, "value": "editor", - "start": 10585, - "end": 10591, + "start": 10590, + "end": 10596, "loc": { "start": { "line": 270, - "column": 28 + "column": 6 }, "end": { "line": 270, - "column": 34 + "column": 12 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -107027,16 +108468,16 @@ "binop": null, "updateContext": null }, - "start": 10591, - "end": 10592, + "start": 10596, + "end": 10597, "loc": { "start": { "line": 270, - "column": 34 + "column": 12 }, "end": { "line": 270, - "column": 35 + "column": 13 } } }, @@ -107052,43 +108493,44 @@ "postfix": false, "binop": null }, - "value": "window", - "start": 10603, - "end": 10609, + "value": "recognizer", + "start": 10597, + "end": 10607, "loc": { "start": { - "line": 271, - "column": 10 + "line": 270, + "column": 13 }, "end": { - "line": 271, - "column": 16 + "line": 270, + "column": 23 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "&&", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "start": 10609, + "value": "&&", + "start": 10608, "end": 10610, "loc": { "start": { - "line": 271, - "column": 16 + "line": 270, + "column": 24 }, "end": { - "line": 271, - "column": 17 + "line": 270, + "column": 26 } } }, @@ -107104,42 +108546,43 @@ "postfix": false, "binop": null }, - "value": "clearTimeout", - "start": 10610, - "end": 10622, + "value": "editor", + "start": 10611, + "end": 10617, "loc": { "start": { - "line": 271, - "column": 17 + "line": 270, + "column": 27 }, "end": { - "line": 271, - "column": 29 + "line": 270, + "column": 33 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 10622, - "end": 10623, + "start": 10617, + "end": 10618, "loc": { "start": { - "line": 271, - "column": 29 + "line": 270, + "column": 33 }, "end": { - "line": 271, - "column": 30 + "line": 270, + "column": 34 } } }, @@ -107155,17 +108598,17 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 10623, - "end": 10629, + "value": "recognizer", + "start": 10618, + "end": 10628, "loc": { "start": { - "line": 271, - "column": 30 + "line": 270, + "column": 34 }, "end": { - "line": 271, - "column": 36 + "line": 270, + "column": 44 } } }, @@ -107182,16 +108625,16 @@ "binop": null, "updateContext": null }, - "start": 10629, - "end": 10630, + "start": 10628, + "end": 10629, "loc": { "start": { - "line": 271, - "column": 36 + "line": 270, + "column": 44 }, "end": { - "line": 271, - "column": 37 + "line": 270, + "column": 45 } } }, @@ -107207,17 +108650,17 @@ "postfix": false, "binop": null }, - "value": "exportTimer", - "start": 10630, - "end": 10641, + "value": "export_", + "start": 10629, + "end": 10636, "loc": { "start": { - "line": 271, - "column": 37 + "line": 270, + "column": 45 }, "end": { - "line": 271, - "column": 48 + "line": 270, + "column": 52 } } }, @@ -107233,42 +108676,41 @@ "postfix": false, "binop": null }, - "start": 10641, - "end": 10642, + "start": 10636, + "end": 10637, "loc": { "start": { - "line": 271, - "column": 48 + "line": 270, + "column": 52 }, "end": { - "line": 271, - "column": 49 + "line": 270, + "column": 53 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 10642, - "end": 10643, + "start": 10638, + "end": 10639, "loc": { "start": { - "line": 271, - "column": 49 + "line": 270, + "column": 54 }, "end": { - "line": 271, - "column": 50 + "line": 270, + "column": 55 } } }, @@ -107284,17 +108726,17 @@ "postfix": false, "binop": null }, - "value": "editorRef", - "start": 10654, - "end": 10663, + "value": "editor", + "start": 10644, + "end": 10650, "loc": { "start": { - "line": 272, - "column": 10 + "line": 271, + "column": 4 }, "end": { - "line": 272, - "column": 19 + "line": 271, + "column": 10 } } }, @@ -107311,16 +108753,16 @@ "binop": null, "updateContext": null }, - "start": 10663, - "end": 10664, + "start": 10650, + "end": 10651, "loc": { "start": { - "line": 272, - "column": 19 + "line": 271, + "column": 10 }, "end": { - "line": 272, - "column": 20 + "line": 271, + "column": 11 } } }, @@ -107336,44 +108778,43 @@ "postfix": false, "binop": null }, - "value": "exportTimer", - "start": 10664, - "end": 10675, + "value": "recognizerContext", + "start": 10651, + "end": 10668, "loc": { "start": { - "line": 272, - "column": 20 + "line": 271, + "column": 11 }, "end": { - "line": 272, - "column": 31 + "line": 271, + "column": 28 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 10676, - "end": 10677, + "start": 10668, + "end": 10669, "loc": { "start": { - "line": 272, - "column": 32 + "line": 271, + "column": 28 }, "end": { - "line": 272, - "column": 33 + "line": 271, + "column": 29 } } }, @@ -107389,16 +108830,16 @@ "postfix": false, "binop": null }, - "value": "window", - "start": 10678, - "end": 10684, + "value": "initPromise", + "start": 10669, + "end": 10680, "loc": { "start": { - "line": 272, - "column": 34 + "line": 271, + "column": 29 }, "end": { - "line": 272, + "line": 271, "column": 40 } } @@ -107416,16 +108857,16 @@ "binop": null, "updateContext": null }, - "start": 10684, - "end": 10685, + "start": 10687, + "end": 10688, "loc": { "start": { "line": 272, - "column": 40 + "column": 6 }, "end": { "line": 272, - "column": 41 + "column": 7 } } }, @@ -107441,17 +108882,17 @@ "postfix": false, "binop": null }, - "value": "setTimeout", - "start": 10685, - "end": 10695, + "value": "then", + "start": 10688, + "end": 10692, "loc": { "start": { "line": 272, - "column": 41 + "column": 7 }, "end": { "line": 272, - "column": 51 + "column": 11 } } }, @@ -107467,16 +108908,16 @@ "postfix": false, "binop": null }, - "start": 10695, - "end": 10696, + "start": 10692, + "end": 10693, "loc": { "start": { "line": 272, - "column": 51 + "column": 11 }, "end": { "line": 272, - "column": 52 + "column": 12 } } }, @@ -107492,16 +108933,16 @@ "postfix": false, "binop": null }, - "start": 10696, - "end": 10697, + "start": 10693, + "end": 10694, "loc": { "start": { "line": 272, - "column": 52 + "column": 12 }, "end": { "line": 272, - "column": 53 + "column": 13 } } }, @@ -107517,16 +108958,16 @@ "postfix": false, "binop": null }, - "start": 10697, - "end": 10698, + "start": 10694, + "end": 10695, "loc": { "start": { "line": 272, - "column": 53 + "column": 13 }, "end": { "line": 272, - "column": 54 + "column": 14 } } }, @@ -107543,16 +108984,16 @@ "binop": null, "updateContext": null }, - "start": 10699, - "end": 10701, + "start": 10696, + "end": 10698, "loc": { "start": { "line": 272, - "column": 55 + "column": 15 }, "end": { "line": 272, - "column": 57 + "column": 17 } } }, @@ -107568,42 +109009,60 @@ "postfix": false, "binop": null }, - "start": 10702, - "end": 10703, + "start": 10699, + "end": 10700, "loc": { "start": { "line": 272, - "column": 58 + "column": 18 }, "end": { "line": 272, - "column": 59 + "column": 19 + } + } + }, + { + "type": "CommentLine", + "value": " Firing export only if recognizer is configure to do it", + "start": 10709, + "end": 10766, + "loc": { + "start": { + "line": 273, + "column": 8 + }, + "end": { + "line": 273, + "column": 65 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "manageResetState", - "start": 10716, - "end": 10732, + "value": "if", + "start": 10775, + "end": 10777, "loc": { "start": { - "line": 273, - "column": 12 + "line": 274, + "column": 8 }, "end": { - "line": 273, - "column": 28 + "line": 274, + "column": 10 } } }, @@ -107619,16 +109078,16 @@ "postfix": false, "binop": null }, - "start": 10732, - "end": 10733, + "start": 10778, + "end": 10779, "loc": { "start": { - "line": 273, - "column": 28 + "line": 274, + "column": 11 }, "end": { - "line": 273, - "column": 29 + "line": 274, + "column": 12 } } }, @@ -107644,43 +109103,42 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 10733, - "end": 10739, + "value": "isTriggerValid", + "start": 10779, + "end": 10793, "loc": { "start": { - "line": 273, - "column": 29 + "line": 274, + "column": 12 }, "end": { - "line": 273, - "column": 35 + "line": 274, + "column": 26 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 10739, - "end": 10740, + "start": 10793, + "end": 10794, "loc": { "start": { - "line": 273, - "column": 35 + "line": 274, + "column": 26 }, "end": { - "line": 273, - "column": 36 + "line": 274, + "column": 27 } } }, @@ -107696,24 +109154,24 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 10740, - "end": 10750, + "value": "editor", + "start": 10794, + "end": 10800, "loc": { "start": { - "line": 273, - "column": 36 + "line": 274, + "column": 27 }, "end": { - "line": 273, - "column": 46 + "line": 274, + "column": 33 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -107723,22 +109181,22 @@ "binop": null, "updateContext": null }, - "start": 10750, - "end": 10751, + "start": 10800, + "end": 10801, "loc": { "start": { - "line": 273, - "column": 46 + "line": 274, + "column": 33 }, "end": { - "line": 273, - "column": 47 + "line": 274, + "column": 34 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -107746,19 +109204,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "reset", - "start": 10751, - "end": 10756, + "value": "exportContent", + "start": 10802, + "end": 10817, "loc": { "start": { - "line": 273, - "column": 47 + "line": 274, + "column": 35 }, "end": { - "line": 273, - "column": 52 + "line": 274, + "column": 50 } } }, @@ -107775,16 +109234,16 @@ "binop": null, "updateContext": null }, - "start": 10756, - "end": 10757, + "start": 10817, + "end": 10818, "loc": { "start": { - "line": 273, - "column": 52 + "line": 274, + "column": 50 }, "end": { - "line": 273, - "column": 53 + "line": 274, + "column": 51 } } }, @@ -107800,23 +109259,23 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 10758, - "end": 10764, + "value": "trigger", + "start": 10819, + "end": 10826, "loc": { "start": { - "line": 273, - "column": 54 + "line": 274, + "column": 52 }, "end": { - "line": 273, - "column": 60 + "line": 274, + "column": 59 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -107824,51 +109283,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 10764, - "end": 10765, + "start": 10826, + "end": 10827, "loc": { "start": { - "line": 273, - "column": 60 - }, - "end": { - "line": 273, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "recognizer", - "start": 10765, - "end": 10775, - "loc": { - "start": { - "line": 273, - "column": 61 + "line": 274, + "column": 59 }, "end": { - "line": 273, - "column": 71 + "line": 274, + "column": 60 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -107876,26 +109308,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 10775, - "end": 10776, + "start": 10827, + "end": 10828, "loc": { "start": { - "line": 273, - "column": 71 + "line": 274, + "column": 60 }, "end": { - "line": 273, - "column": 72 + "line": 274, + "column": 61 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -107904,24 +109335,24 @@ "postfix": false, "binop": null }, - "value": "export_", - "start": 10776, - "end": 10783, + "start": 10829, + "end": 10830, "loc": { "start": { - "line": 273, - "column": 72 + "line": 274, + "column": 62 }, "end": { - "line": 273, - "column": 79 + "line": 274, + "column": 63 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "const", + "keyword": "const", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -107931,16 +109362,17 @@ "binop": null, "updateContext": null }, - "start": 10783, - "end": 10784, + "value": "const", + "start": 10841, + "end": 10846, "loc": { "start": { - "line": 273, - "column": 79 + "line": 275, + "column": 10 }, "end": { - "line": 273, - "column": 80 + "line": 275, + "column": 15 } } }, @@ -107956,43 +109388,44 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 10785, - "end": 10791, + "value": "editorRef", + "start": 10847, + "end": 10856, "loc": { "start": { - "line": 273, - "column": 81 + "line": 275, + "column": 16 }, "end": { - "line": 273, - "column": 87 + "line": 275, + "column": 25 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 10791, - "end": 10792, + "value": "=", + "start": 10857, + "end": 10858, "loc": { "start": { - "line": 273, - "column": 87 + "line": 275, + "column": 26 }, "end": { - "line": 273, - "column": 88 + "line": 275, + "column": 27 } } }, @@ -108008,23 +109441,23 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 10792, - "end": 10809, + "value": "editor", + "start": 10859, + "end": 10865, "loc": { "start": { - "line": 273, - "column": 88 + "line": 275, + "column": 28 }, "end": { - "line": 273, - "column": 105 + "line": 275, + "column": 34 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -108035,16 +109468,16 @@ "binop": null, "updateContext": null }, - "start": 10809, - "end": 10810, + "start": 10865, + "end": 10866, "loc": { "start": { - "line": 273, - "column": 105 + "line": 275, + "column": 34 }, "end": { - "line": 273, - "column": 106 + "line": 275, + "column": 35 } } }, @@ -108060,24 +109493,24 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 10811, - "end": 10816, + "value": "window", + "start": 10877, + "end": 10883, "loc": { "start": { - "line": 273, - "column": 107 + "line": 276, + "column": 10 }, "end": { - "line": 273, - "column": 112 + "line": 276, + "column": 16 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -108087,41 +109520,16 @@ "binop": null, "updateContext": null }, - "start": 10816, - "end": 10817, - "loc": { - "start": { - "line": 273, - "column": 112 - }, - "end": { - "line": 273, - "column": 113 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10818, - "end": 10819, + "start": 10883, + "end": 10884, "loc": { "start": { - "line": 273, - "column": 114 + "line": 276, + "column": 16 }, "end": { - "line": 273, - "column": 115 + "line": 276, + "column": 17 } } }, @@ -108137,43 +109545,42 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 10819, - "end": 10822, + "value": "clearTimeout", + "start": 10884, + "end": 10896, "loc": { "start": { - "line": 273, - "column": 115 + "line": 276, + "column": 17 }, "end": { - "line": 273, - "column": 118 + "line": 276, + "column": 29 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 10822, - "end": 10823, + "start": 10896, + "end": 10897, "loc": { "start": { - "line": 273, - "column": 118 + "line": 276, + "column": 29 }, "end": { - "line": 273, - "column": 119 + "line": 276, + "column": 30 } } }, @@ -108189,50 +109596,24 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 10824, - "end": 10827, - "loc": { - "start": { - "line": 273, - "column": 120 - }, - "end": { - "line": 273, - "column": 123 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10827, - "end": 10828, + "value": "editor", + "start": 10897, + "end": 10903, "loc": { "start": { - "line": 273, - "column": 123 + "line": 276, + "column": 30 }, "end": { - "line": 273, - "column": 124 + "line": 276, + "column": 36 } } }, { "type": { - "label": "...", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -108242,16 +109623,16 @@ "binop": null, "updateContext": null }, - "start": 10829, - "end": 10832, + "start": 10903, + "end": 10904, "loc": { "start": { - "line": 273, - "column": 125 + "line": 276, + "column": 36 }, "end": { - "line": 273, - "column": 128 + "line": 276, + "column": 37 } } }, @@ -108267,17 +109648,17 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 10832, - "end": 10837, + "value": "exportTimer", + "start": 10904, + "end": 10915, "loc": { "start": { - "line": 273, - "column": 128 + "line": 276, + "column": 37 }, "end": { - "line": 273, - "column": 133 + "line": 276, + "column": 48 } } }, @@ -108293,22 +109674,22 @@ "postfix": false, "binop": null }, - "start": 10837, - "end": 10838, + "start": 10915, + "end": 10916, "loc": { "start": { - "line": 273, - "column": 133 + "line": 276, + "column": 48 }, "end": { - "line": 273, - "column": 134 + "line": 276, + "column": 49 } } }, { "type": { - "label": "=>", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -108319,41 +109700,16 @@ "binop": null, "updateContext": null }, - "start": 10839, - "end": 10841, - "loc": { - "start": { - "line": 273, - "column": 135 - }, - "end": { - "line": 273, - "column": 137 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 10842, - "end": 10843, + "start": 10916, + "end": 10917, "loc": { "start": { - "line": 273, - "column": 138 + "line": 276, + "column": 49 }, "end": { - "line": 273, - "column": 139 + "line": 276, + "column": 50 } } }, @@ -108369,42 +109725,43 @@ "postfix": false, "binop": null }, - "value": "recognizerCallback", - "start": 10858, - "end": 10876, + "value": "editorRef", + "start": 10928, + "end": 10937, "loc": { "start": { - "line": 274, - "column": 14 + "line": 277, + "column": 10 }, "end": { - "line": 274, - "column": 32 + "line": 277, + "column": 19 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 10876, - "end": 10877, + "start": 10937, + "end": 10938, "loc": { "start": { - "line": 274, - "column": 32 + "line": 277, + "column": 19 }, "end": { - "line": 274, - "column": 33 + "line": 277, + "column": 20 } } }, @@ -108420,43 +109777,44 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 10877, - "end": 10883, + "value": "exportTimer", + "start": 10938, + "end": 10949, "loc": { "start": { - "line": 274, - "column": 33 + "line": 277, + "column": 20 }, "end": { - "line": 274, - "column": 39 + "line": 277, + "column": 31 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 10883, - "end": 10884, + "value": "=", + "start": 10950, + "end": 10951, "loc": { "start": { - "line": 274, - "column": 39 + "line": 277, + "column": 32 }, "end": { - "line": 274, - "column": 40 + "line": 277, + "column": 33 } } }, @@ -108472,24 +109830,24 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 10885, - "end": 10888, + "value": "window", + "start": 10952, + "end": 10958, "loc": { "start": { - "line": 274, - "column": 41 + "line": 277, + "column": 34 }, "end": { - "line": 274, - "column": 44 + "line": 277, + "column": 40 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -108499,16 +109857,16 @@ "binop": null, "updateContext": null }, - "start": 10888, - "end": 10889, + "start": 10958, + "end": 10959, "loc": { "start": { - "line": 274, - "column": 44 + "line": 277, + "column": 40 }, "end": { - "line": 274, - "column": 45 + "line": 277, + "column": 41 } } }, @@ -108524,76 +109882,49 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 10890, - "end": 10893, - "loc": { - "start": { - "line": 274, - "column": 46 - }, - "end": { - "line": 274, - "column": 49 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 10893, - "end": 10894, + "value": "setTimeout", + "start": 10959, + "end": 10969, "loc": { "start": { - "line": 274, - "column": 49 + "line": 277, + "column": 41 }, "end": { - "line": 274, - "column": 50 + "line": 277, + "column": 51 } } }, { "type": { - "label": "...", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 10895, - "end": 10898, + "start": 10969, + "end": 10970, "loc": { "start": { - "line": 274, + "line": 277, "column": 51 }, "end": { - "line": 274, - "column": 54 + "line": 277, + "column": 52 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -108602,17 +109933,16 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 10898, - "end": 10903, + "start": 10970, + "end": 10971, "loc": { "start": { - "line": 274, - "column": 54 + "line": 277, + "column": 52 }, "end": { - "line": 274, - "column": 59 + "line": 277, + "column": 53 } } }, @@ -108628,22 +109958,22 @@ "postfix": false, "binop": null }, - "start": 10903, - "end": 10904, + "start": 10971, + "end": 10972, "loc": { "start": { - "line": 274, - "column": 59 + "line": 277, + "column": 53 }, "end": { - "line": 274, - "column": 60 + "line": 277, + "column": 54 } } }, { "type": { - "label": ";", + "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -108654,24 +109984,24 @@ "binop": null, "updateContext": null }, - "start": 10904, - "end": 10905, + "start": 10973, + "end": 10975, "loc": { "start": { - "line": 274, - "column": 60 + "line": 277, + "column": 55 }, "end": { - "line": 274, - "column": 61 + "line": 277, + "column": 57 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -108679,49 +110009,49 @@ "postfix": false, "binop": null }, - "start": 10918, - "end": 10919, + "start": 10976, + "end": 10977, "loc": { "start": { - "line": 275, - "column": 12 + "line": 277, + "column": 58 }, "end": { - "line": 275, - "column": 13 + "line": 277, + "column": 59 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 10919, - "end": 10920, + "value": "manageResetState", + "start": 10990, + "end": 11006, "loc": { "start": { - "line": 275, - "column": 13 + "line": 278, + "column": 12 }, "end": { - "line": 275, - "column": 14 + "line": 278, + "column": 28 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -108730,25 +110060,24 @@ "postfix": false, "binop": null }, - "value": "requestedMimeTypes", - "start": 10921, - "end": 10939, + "start": 11006, + "end": 11007, "loc": { "start": { - "line": 275, - "column": 15 + "line": 278, + "column": 28 }, "end": { - "line": 275, - "column": 33 + "line": 278, + "column": 29 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -108756,23 +110085,24 @@ "postfix": false, "binop": null }, - "start": 10939, - "end": 10940, + "value": "editor", + "start": 11007, + "end": 11013, "loc": { "start": { - "line": 275, - "column": 33 + "line": 278, + "column": 29 }, "end": { - "line": 275, - "column": 34 + "line": 278, + "column": 35 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -108782,24 +110112,24 @@ "binop": null, "updateContext": null }, - "start": 10940, - "end": 10941, + "start": 11013, + "end": 11014, "loc": { "start": { - "line": 275, - "column": 34 + "line": 278, + "column": 35 }, "end": { - "line": 275, - "column": 35 + "line": 278, + "column": 36 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -108807,23 +110137,24 @@ "postfix": false, "binop": null }, - "start": 10952, - "end": 10953, + "value": "recognizer", + "start": 11014, + "end": 11024, "loc": { "start": { - "line": 276, - "column": 10 + "line": 278, + "column": 36 }, "end": { - "line": 276, - "column": 11 + "line": 278, + "column": 46 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -108833,16 +110164,16 @@ "binop": null, "updateContext": null }, - "start": 10953, - "end": 10954, + "start": 11024, + "end": 11025, "loc": { "start": { - "line": 276, - "column": 11 + "line": 278, + "column": 46 }, "end": { - "line": 276, - "column": 12 + "line": 278, + "column": 47 } } }, @@ -108858,23 +110189,23 @@ "postfix": false, "binop": null }, - "value": "trigger", - "start": 10955, - "end": 10962, + "value": "reset", + "start": 11025, + "end": 11030, "loc": { "start": { - "line": 276, - "column": 13 + "line": 278, + "column": 47 }, "end": { - "line": 276, - "column": 20 + "line": 278, + "column": 52 } } }, { "type": { - "label": "==/!=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -108882,20 +110213,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 10963, - "end": 10966, + "start": 11030, + "end": 11031, "loc": { "start": { - "line": 276, - "column": 21 + "line": 278, + "column": 52 }, "end": { - "line": 276, - "column": 24 + "line": 278, + "column": 53 } } }, @@ -108911,17 +110241,17 @@ "postfix": false, "binop": null }, - "value": "Constants", - "start": 10967, - "end": 10976, + "value": "editor", + "start": 11032, + "end": 11038, "loc": { "start": { - "line": 276, - "column": 25 + "line": 278, + "column": 54 }, "end": { - "line": 276, - "column": 34 + "line": 278, + "column": 60 } } }, @@ -108938,16 +110268,16 @@ "binop": null, "updateContext": null }, - "start": 10976, - "end": 10977, + "start": 11038, + "end": 11039, "loc": { "start": { - "line": 276, - "column": 34 + "line": 278, + "column": 60 }, "end": { - "line": 276, - "column": 35 + "line": 278, + "column": 61 } } }, @@ -108963,17 +110293,17 @@ "postfix": false, "binop": null }, - "value": "Trigger", - "start": 10977, - "end": 10984, + "value": "recognizer", + "start": 11039, + "end": 11049, "loc": { "start": { - "line": 276, - "column": 35 + "line": 278, + "column": 61 }, "end": { - "line": 276, - "column": 42 + "line": 278, + "column": 71 } } }, @@ -108990,16 +110320,16 @@ "binop": null, "updateContext": null }, - "start": 10984, - "end": 10985, + "start": 11049, + "end": 11050, "loc": { "start": { - "line": 276, - "column": 42 + "line": 278, + "column": 71 }, "end": { - "line": 276, - "column": 43 + "line": 278, + "column": 72 } } }, @@ -109015,23 +110345,23 @@ "postfix": false, "binop": null }, - "value": "QUIET_PERIOD", - "start": 10985, - "end": 10997, + "value": "export_", + "start": 11050, + "end": 11057, "loc": { "start": { - "line": 276, - "column": 43 + "line": 278, + "column": 72 }, "end": { - "line": 276, - "column": 55 + "line": 278, + "column": 79 } } }, { "type": { - "label": "?", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -109042,16 +110372,16 @@ "binop": null, "updateContext": null }, - "start": 10998, - "end": 10999, + "start": 11057, + "end": 11058, "loc": { "start": { - "line": 276, - "column": 56 + "line": 278, + "column": 79 }, "end": { - "line": 276, - "column": 57 + "line": 278, + "column": 80 } } }, @@ -109068,16 +110398,16 @@ "binop": null }, "value": "editor", - "start": 11000, - "end": 11006, + "start": 11059, + "end": 11065, "loc": { "start": { - "line": 276, - "column": 58 + "line": 278, + "column": 81 }, "end": { - "line": 276, - "column": 64 + "line": 278, + "column": 87 } } }, @@ -109094,16 +110424,16 @@ "binop": null, "updateContext": null }, - "start": 11006, - "end": 11007, + "start": 11065, + "end": 11066, "loc": { "start": { - "line": 276, - "column": 64 + "line": 278, + "column": 87 }, "end": { - "line": 276, - "column": 65 + "line": 278, + "column": 88 } } }, @@ -109119,24 +110449,24 @@ "postfix": false, "binop": null }, - "value": "configuration", - "start": 11007, - "end": 11020, + "value": "recognizerContext", + "start": 11066, + "end": 11083, "loc": { "start": { - "line": 276, - "column": 65 + "line": 278, + "column": 88 }, "end": { - "line": 276, - "column": 78 + "line": 278, + "column": 105 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -109146,16 +110476,16 @@ "binop": null, "updateContext": null }, - "start": 11020, - "end": 11021, + "start": 11083, + "end": 11084, "loc": { "start": { - "line": 276, - "column": 78 + "line": 278, + "column": 105 }, "end": { - "line": 276, - "column": 79 + "line": 278, + "column": 106 } } }, @@ -109171,23 +110501,23 @@ "postfix": false, "binop": null }, - "value": "triggerDelay", - "start": 11021, - "end": 11033, + "value": "model", + "start": 11085, + "end": 11090, "loc": { "start": { - "line": 276, - "column": 79 + "line": 278, + "column": 107 }, "end": { - "line": 276, - "column": 91 + "line": 278, + "column": 112 } } }, { "type": { - "label": ":", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -109198,51 +110528,49 @@ "binop": null, "updateContext": null }, - "start": 11034, - "end": 11035, + "start": 11090, + "end": 11091, "loc": { "start": { - "line": 276, - "column": 92 + "line": 278, + "column": 112 }, "end": { - "line": 276, - "column": 93 + "line": 278, + "column": 113 } } }, { "type": { - "label": "num", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 0, - "start": 11036, - "end": 11037, + "start": 11092, + "end": 11093, "loc": { "start": { - "line": 276, - "column": 94 + "line": 278, + "column": 114 }, "end": { - "line": 276, - "column": 95 + "line": 278, + "column": 115 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -109250,22 +110578,23 @@ "postfix": false, "binop": null }, - "start": 11037, - "end": 11038, + "value": "err", + "start": 11093, + "end": 11096, "loc": { "start": { - "line": 276, - "column": 95 + "line": 278, + "column": 115 }, "end": { - "line": 276, - "column": 96 + "line": 278, + "column": 118 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -109276,24 +110605,24 @@ "binop": null, "updateContext": null }, - "start": 11038, - "end": 11039, + "start": 11096, + "end": 11097, "loc": { "start": { - "line": 276, - "column": 96 + "line": 278, + "column": 118 }, "end": { - "line": 276, - "column": 97 + "line": 278, + "column": 119 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -109301,98 +110630,101 @@ "postfix": false, "binop": null }, - "start": 11048, - "end": 11049, + "value": "res", + "start": 11098, + "end": 11101, "loc": { "start": { - "line": 277, - "column": 8 + "line": 278, + "column": 120 }, "end": { - "line": 277, - "column": 9 + "line": 278, + "column": 123 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 11056, - "end": 11057, + "start": 11101, + "end": 11102, "loc": { "start": { "line": 278, - "column": 6 + "column": 123 }, "end": { "line": 278, - "column": 7 + "column": 124 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "...", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 11057, - "end": 11058, + "start": 11103, + "end": 11106, "loc": { "start": { "line": 278, - "column": 7 + "column": 125 }, "end": { "line": 278, - "column": 8 + "column": 128 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 11058, - "end": 11059, + "value": "types", + "start": 11106, + "end": 11111, "loc": { "start": { "line": 278, - "column": 8 + "column": 128 }, "end": { "line": 278, - "column": 9 + "column": 133 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -109402,65 +110734,49 @@ "postfix": false, "binop": null }, - "start": 11062, - "end": 11063, + "start": 11111, + "end": 11112, "loc": { "start": { - "line": 279, - "column": 2 + "line": 278, + "column": 133 }, "end": { - "line": 279, - "column": 3 + "line": 278, + "column": 134 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 11064, - "end": 11065, - "loc": { - "start": { - "line": 280, - "column": 0 - }, - "end": { - "line": 280, - "column": 1 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Launch the import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {Blob} data\n ", - "start": 11067, - "end": 11168, + "start": 11113, + "end": 11115, "loc": { "start": { - "line": 282, - "column": 0 + "line": 278, + "column": 135 }, "end": { - "line": 287, - "column": 3 + "line": 278, + "column": 137 } } }, { "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -109469,17 +110785,16 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 11169, - "end": 11177, + "start": 11116, + "end": 11117, "loc": { "start": { - "line": 288, - "column": 0 + "line": 278, + "column": 138 }, "end": { - "line": 288, - "column": 8 + "line": 278, + "column": 139 } } }, @@ -109495,17 +110810,17 @@ "postfix": false, "binop": null }, - "value": "launchImport", - "start": 11178, - "end": 11190, + "value": "recognizerCallback", + "start": 11132, + "end": 11150, "loc": { "start": { - "line": 288, - "column": 9 + "line": 279, + "column": 14 }, "end": { - "line": 288, - "column": 21 + "line": 279, + "column": 32 } } }, @@ -109521,16 +110836,16 @@ "postfix": false, "binop": null }, - "start": 11190, - "end": 11191, + "start": 11150, + "end": 11151, "loc": { "start": { - "line": 288, - "column": 21 + "line": 279, + "column": 32 }, "end": { - "line": 288, - "column": 22 + "line": 279, + "column": 33 } } }, @@ -109547,16 +110862,16 @@ "binop": null }, "value": "editor", - "start": 11191, - "end": 11197, + "start": 11151, + "end": 11157, "loc": { "start": { - "line": 288, - "column": 22 + "line": 279, + "column": 33 }, "end": { - "line": 288, - "column": 28 + "line": 279, + "column": 39 } } }, @@ -109573,16 +110888,16 @@ "binop": null, "updateContext": null }, - "start": 11197, - "end": 11198, + "start": 11157, + "end": 11158, "loc": { "start": { - "line": 288, - "column": 28 + "line": 279, + "column": 39 }, "end": { - "line": 288, - "column": 29 + "line": 279, + "column": 40 } } }, @@ -109598,17 +110913,17 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 11199, - "end": 11204, + "value": "err", + "start": 11159, + "end": 11162, "loc": { "start": { - "line": 288, - "column": 30 + "line": 279, + "column": 41 }, "end": { - "line": 288, - "column": 35 + "line": 279, + "column": 44 } } }, @@ -109625,16 +110940,16 @@ "binop": null, "updateContext": null }, - "start": 11204, - "end": 11205, + "start": 11162, + "end": 11163, "loc": { "start": { - "line": 288, - "column": 35 + "line": 279, + "column": 44 }, "end": { - "line": 288, - "column": 36 + "line": 279, + "column": 45 } } }, @@ -109650,75 +110965,50 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 11206, - "end": 11210, + "value": "res", + "start": 11164, + "end": 11167, "loc": { "start": { - "line": 288, - "column": 37 + "line": 279, + "column": 46 }, "end": { - "line": 288, - "column": 41 + "line": 279, + "column": 49 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 11210, - "end": 11211, + "start": 11167, + "end": 11168, "loc": { "start": { - "line": 288, - "column": 41 + "line": 279, + "column": 49 }, "end": { - "line": 288, - "column": 42 + "line": 279, + "column": 50 } } }, { "type": { - "label": "{", + "label": "...", "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11212, - "end": 11213, - "loc": { - "start": { - "line": 288, - "column": 43 - }, - "end": { - "line": 288, - "column": 44 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -109728,24 +111018,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 11216, - "end": 11218, + "start": 11169, + "end": 11172, "loc": { "start": { - "line": 289, - "column": 2 + "line": 279, + "column": 51 }, "end": { - "line": 289, - "column": 4 + "line": 279, + "column": 54 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -109754,24 +111043,25 @@ "postfix": false, "binop": null }, - "start": 11219, - "end": 11220, + "value": "types", + "start": 11172, + "end": 11177, "loc": { "start": { - "line": 289, - "column": 5 + "line": 279, + "column": 54 }, "end": { - "line": 289, - "column": 6 + "line": 279, + "column": 59 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -109779,24 +111069,23 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 11220, - "end": 11226, + "start": 11177, + "end": 11178, "loc": { "start": { - "line": 289, - "column": 6 + "line": 279, + "column": 59 }, "end": { - "line": 289, - "column": 12 + "line": 279, + "column": 60 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -109806,24 +111095,24 @@ "binop": null, "updateContext": null }, - "start": 11226, - "end": 11227, + "start": 11178, + "end": 11179, "loc": { "start": { - "line": 289, - "column": 12 + "line": 279, + "column": 60 }, "end": { - "line": 289, - "column": 13 + "line": 279, + "column": 61 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -109831,23 +111120,22 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 11227, - "end": 11237, + "start": 11192, + "end": 11193, "loc": { "start": { - "line": 289, - "column": 13 + "line": 280, + "column": 12 }, "end": { - "line": 289, - "column": 23 + "line": 280, + "column": 13 } } }, { "type": { - "label": "&&", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -109855,20 +111143,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 11238, - "end": 11240, + "start": 11193, + "end": 11194, "loc": { "start": { - "line": 289, - "column": 24 + "line": 280, + "column": 13 }, "end": { - "line": 289, - "column": 26 + "line": 280, + "column": 14 } } }, @@ -109884,23 +111171,23 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 11241, - "end": 11247, + "value": "requestedMimeTypes", + "start": 11195, + "end": 11213, "loc": { "start": { - "line": 289, - "column": 27 + "line": 280, + "column": 15 }, "end": { - "line": 289, + "line": 280, "column": 33 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -109908,51 +111195,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 11247, - "end": 11248, + "start": 11213, + "end": 11214, "loc": { "start": { - "line": 289, + "line": 280, "column": 33 }, "end": { - "line": 289, + "line": 280, "column": 34 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "recognizer", - "start": 11248, - "end": 11258, + "start": 11214, + "end": 11215, "loc": { "start": { - "line": 289, + "line": 280, "column": 34 }, "end": { - "line": 289, - "column": 44 + "line": 280, + "column": 35 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -109960,53 +111246,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 11258, - "end": 11259, + "start": 11226, + "end": 11227, "loc": { "start": { - "line": 289, - "column": 44 + "line": 281, + "column": 10 }, "end": { - "line": 289, - "column": 45 + "line": 281, + "column": 11 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "import_", - "start": 11259, - "end": 11266, + "start": 11227, + "end": 11228, "loc": { "start": { - "line": 289, - "column": 45 + "line": 281, + "column": 11 }, "end": { - "line": 289, - "column": 52 + "line": 281, + "column": 12 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -110014,41 +111299,44 @@ "postfix": false, "binop": null }, - "start": 11266, - "end": 11267, + "value": "trigger", + "start": 11229, + "end": 11236, "loc": { "start": { - "line": 289, - "column": 52 + "line": 281, + "column": 13 }, "end": { - "line": 289, - "column": 53 + "line": 281, + "column": 20 } } }, { "type": { - "label": "{", + "label": "==/!=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "start": 11268, - "end": 11269, + "value": "===", + "start": 11237, + "end": 11240, "loc": { "start": { - "line": 289, - "column": 54 + "line": 281, + "column": 21 }, "end": { - "line": 289, - "column": 55 + "line": 281, + "column": 24 } } }, @@ -110064,17 +111352,17 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 11274, - "end": 11280, + "value": "Constants", + "start": 11241, + "end": 11250, "loc": { "start": { - "line": 290, - "column": 4 + "line": 281, + "column": 25 }, "end": { - "line": 290, - "column": 10 + "line": 281, + "column": 34 } } }, @@ -110091,16 +111379,16 @@ "binop": null, "updateContext": null }, - "start": 11280, - "end": 11281, + "start": 11250, + "end": 11251, "loc": { "start": { - "line": 290, - "column": 10 + "line": 281, + "column": 34 }, "end": { - "line": 290, - "column": 11 + "line": 281, + "column": 35 } } }, @@ -110116,17 +111404,17 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 11281, - "end": 11298, + "value": "Trigger", + "start": 11251, + "end": 11258, "loc": { "start": { - "line": 290, - "column": 11 + "line": 281, + "column": 35 }, "end": { - "line": 290, - "column": 28 + "line": 281, + "column": 42 } } }, @@ -110143,16 +111431,16 @@ "binop": null, "updateContext": null }, - "start": 11298, - "end": 11299, + "start": 11258, + "end": 11259, "loc": { "start": { - "line": 290, - "column": 28 + "line": 281, + "column": 42 }, "end": { - "line": 290, - "column": 29 + "line": 281, + "column": 43 } } }, @@ -110168,24 +111456,24 @@ "postfix": false, "binop": null }, - "value": "initPromise", - "start": 11299, - "end": 11310, + "value": "QUIET_PERIOD", + "start": 11259, + "end": 11271, "loc": { "start": { - "line": 290, - "column": 29 + "line": 281, + "column": 43 }, "end": { - "line": 290, - "column": 40 + "line": 281, + "column": 55 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "?", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -110195,16 +111483,16 @@ "binop": null, "updateContext": null }, - "start": 11317, - "end": 11318, + "start": 11272, + "end": 11273, "loc": { "start": { - "line": 291, - "column": 6 + "line": 281, + "column": 56 }, "end": { - "line": 291, - "column": 7 + "line": 281, + "column": 57 } } }, @@ -110220,49 +111508,50 @@ "postfix": false, "binop": null }, - "value": "then", - "start": 11318, - "end": 11322, + "value": "editor", + "start": 11274, + "end": 11280, "loc": { "start": { - "line": 291, - "column": 7 + "line": 281, + "column": 58 }, "end": { - "line": 291, - "column": 11 + "line": 281, + "column": 64 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 11322, - "end": 11323, + "start": 11280, + "end": 11281, "loc": { "start": { - "line": 291, - "column": 11 + "line": 281, + "column": 64 }, "end": { - "line": 291, - "column": 12 + "line": 281, + "column": 65 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -110271,22 +111560,23 @@ "postfix": false, "binop": null }, - "start": 11323, - "end": 11324, + "value": "configuration", + "start": 11281, + "end": 11294, "loc": { "start": { - "line": 291, - "column": 12 + "line": 281, + "column": 65 }, "end": { - "line": 291, - "column": 13 + "line": 281, + "column": 78 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -110294,51 +111584,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 11324, - "end": 11325, - "loc": { - "start": { - "line": 291, - "column": 13 - }, - "end": { - "line": 291, - "column": 14 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null, "updateContext": null }, - "start": 11326, - "end": 11328, + "start": 11294, + "end": 11295, "loc": { "start": { - "line": 291, - "column": 15 + "line": 281, + "column": 78 }, "end": { - "line": 291, - "column": 17 + "line": 281, + "column": 79 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -110347,50 +111612,51 @@ "postfix": false, "binop": null }, - "start": 11329, - "end": 11330, + "value": "triggerDelay", + "start": 11295, + "end": 11307, "loc": { "start": { - "line": 291, - "column": 18 + "line": 281, + "column": 79 }, "end": { - "line": 291, - "column": 19 + "line": 281, + "column": 91 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ":", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "editor", - "start": 11339, - "end": 11345, + "start": 11308, + "end": 11309, "loc": { "start": { - "line": 292, - "column": 8 + "line": 281, + "column": 92 }, "end": { - "line": 292, - "column": 14 + "line": 281, + "column": 93 } } }, { "type": { - "label": ".", + "label": "num", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -110399,24 +111665,25 @@ "binop": null, "updateContext": null }, - "start": 11345, - "end": 11346, + "value": 0, + "start": 11310, + "end": 11311, "loc": { "start": { - "line": 292, - "column": 14 + "line": 281, + "column": 94 }, "end": { - "line": 292, - "column": 15 + "line": 281, + "column": 95 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -110424,24 +111691,23 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 11346, - "end": 11356, + "start": 11311, + "end": 11312, "loc": { "start": { - "line": 292, - "column": 15 + "line": 281, + "column": 95 }, "end": { - "line": 292, - "column": 25 + "line": 281, + "column": 96 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -110451,24 +111717,24 @@ "binop": null, "updateContext": null }, - "start": 11356, - "end": 11357, + "start": 11312, + "end": 11313, "loc": { "start": { - "line": 292, - "column": 25 + "line": 281, + "column": 96 }, "end": { - "line": 292, - "column": 26 + "line": 281, + "column": 97 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -110476,25 +111742,24 @@ "postfix": false, "binop": null }, - "value": "import_", - "start": 11357, - "end": 11364, + "start": 11322, + "end": 11323, "loc": { "start": { - "line": 292, - "column": 26 + "line": 282, + "column": 8 }, "end": { - "line": 292, - "column": 33 + "line": 282, + "column": 9 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -110502,24 +111767,24 @@ "postfix": false, "binop": null }, - "start": 11364, - "end": 11365, + "start": 11330, + "end": 11331, "loc": { "start": { - "line": 292, - "column": 33 + "line": 283, + "column": 6 }, "end": { - "line": 292, - "column": 34 + "line": 283, + "column": 7 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -110527,24 +111792,23 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 11365, - "end": 11371, + "start": 11331, + "end": 11332, "loc": { "start": { - "line": 292, - "column": 34 + "line": 283, + "column": 7 }, "end": { - "line": 292, - "column": 40 + "line": 283, + "column": 8 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -110554,76 +111818,49 @@ "binop": null, "updateContext": null }, - "start": 11371, - "end": 11372, + "start": 11332, + "end": 11333, "loc": { "start": { - "line": 292, - "column": 40 + "line": 283, + "column": 8 }, "end": { - "line": 292, - "column": 41 + "line": 283, + "column": 9 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "recognizerContext", - "start": 11372, - "end": 11389, - "loc": { - "start": { - "line": 292, - "column": 41 - }, - "end": { - "line": 292, - "column": 58 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 11389, - "end": 11390, + "start": 11336, + "end": 11337, "loc": { "start": { - "line": 292, - "column": 58 + "line": 284, + "column": 2 }, "end": { - "line": 292, - "column": 59 + "line": 284, + "column": 3 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -110631,49 +111868,39 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 11391, - "end": 11396, + "start": 11338, + "end": 11339, "loc": { "start": { - "line": 292, - "column": 60 + "line": 285, + "column": 0 }, "end": { - "line": 292, - "column": 65 + "line": 285, + "column": 1 } } }, { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11396, - "end": 11397, + "type": "CommentBlock", + "value": "*\n * Launch the import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {Blob} data\n ", + "start": 11341, + "end": 11442, "loc": { "start": { - "line": 292, - "column": 65 + "line": 287, + "column": 0 }, "end": { "line": 292, - "column": 66 + "column": 3 } } }, { "type": { - "label": "name", + "label": "function", + "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -110683,43 +111910,43 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 11398, - "end": 11402, + "value": "function", + "start": 11443, + "end": 11451, "loc": { "start": { - "line": 292, - "column": 67 + "line": 293, + "column": 0 }, "end": { - "line": 292, - "column": 71 + "line": 293, + "column": 8 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 11402, - "end": 11403, + "value": "launchImport", + "start": 11452, + "end": 11464, "loc": { "start": { - "line": 292, - "column": 71 + "line": 293, + "column": 9 }, "end": { - "line": 292, - "column": 72 + "line": 293, + "column": 21 } } }, @@ -110735,16 +111962,16 @@ "postfix": false, "binop": null }, - "start": 11404, - "end": 11405, + "start": 11464, + "end": 11465, "loc": { "start": { - "line": 292, - "column": 73 + "line": 293, + "column": 21 }, "end": { - "line": 292, - "column": 74 + "line": 293, + "column": 22 } } }, @@ -110760,17 +111987,17 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 11405, - "end": 11408, + "value": "editor", + "start": 11465, + "end": 11471, "loc": { "start": { - "line": 292, - "column": 74 + "line": 293, + "column": 22 }, "end": { - "line": 292, - "column": 77 + "line": 293, + "column": 28 } } }, @@ -110787,16 +112014,16 @@ "binop": null, "updateContext": null }, - "start": 11408, - "end": 11409, + "start": 11471, + "end": 11472, "loc": { "start": { - "line": 292, - "column": 77 + "line": 293, + "column": 28 }, "end": { - "line": 292, - "column": 78 + "line": 293, + "column": 29 } } }, @@ -110812,17 +112039,17 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 11410, - "end": 11413, + "value": "model", + "start": 11473, + "end": 11478, "loc": { "start": { - "line": 292, - "column": 79 + "line": 293, + "column": 30 }, "end": { - "line": 292, - "column": 82 + "line": 293, + "column": 35 } } }, @@ -110839,50 +112066,50 @@ "binop": null, "updateContext": null }, - "start": 11413, - "end": 11414, + "start": 11478, + "end": 11479, "loc": { "start": { - "line": 292, - "column": 82 + "line": 293, + "column": 35 }, "end": { - "line": 292, - "column": 83 + "line": 293, + "column": 36 } } }, { "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 11415, - "end": 11418, + "value": "data", + "start": 11480, + "end": 11484, "loc": { "start": { - "line": 292, - "column": 84 + "line": 293, + "column": 37 }, "end": { - "line": 292, - "column": 87 + "line": 293, + "column": 41 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -110890,25 +112117,24 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 11418, - "end": 11423, + "start": 11484, + "end": 11485, "loc": { "start": { - "line": 292, - "column": 87 + "line": 293, + "column": 41 }, "end": { - "line": 292, - "column": 92 + "line": 293, + "column": 42 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -110916,23 +112142,24 @@ "postfix": false, "binop": null }, - "start": 11423, - "end": 11424, + "start": 11486, + "end": 11487, "loc": { "start": { - "line": 292, - "column": 92 + "line": 293, + "column": 43 }, "end": { - "line": 292, - "column": 93 + "line": 293, + "column": 44 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -110942,22 +112169,23 @@ "binop": null, "updateContext": null }, - "start": 11425, - "end": 11427, + "value": "if", + "start": 11490, + "end": 11492, "loc": { "start": { - "line": 292, - "column": 94 + "line": 294, + "column": 2 }, "end": { - "line": 292, - "column": 96 + "line": 294, + "column": 4 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -110967,16 +112195,16 @@ "postfix": false, "binop": null }, - "start": 11428, - "end": 11429, + "start": 11493, + "end": 11494, "loc": { "start": { - "line": 292, - "column": 97 + "line": 294, + "column": 5 }, "end": { - "line": 292, - "column": 98 + "line": 294, + "column": 6 } } }, @@ -110992,42 +112220,43 @@ "postfix": false, "binop": null }, - "value": "recognizerCallback", - "start": 11440, - "end": 11458, + "value": "editor", + "start": 11494, + "end": 11500, "loc": { "start": { - "line": 293, - "column": 10 + "line": 294, + "column": 6 }, "end": { - "line": 293, - "column": 28 + "line": 294, + "column": 12 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 11458, - "end": 11459, + "start": 11500, + "end": 11501, "loc": { "start": { - "line": 293, - "column": 28 + "line": 294, + "column": 12 }, "end": { - "line": 293, - "column": 29 + "line": 294, + "column": 13 } } }, @@ -111043,23 +112272,23 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 11459, - "end": 11465, + "value": "recognizer", + "start": 11501, + "end": 11511, "loc": { "start": { - "line": 293, - "column": 29 + "line": 294, + "column": 13 }, "end": { - "line": 293, - "column": 35 + "line": 294, + "column": 23 } } }, { "type": { - "label": ",", + "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -111067,19 +112296,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "start": 11465, - "end": 11466, + "value": "&&", + "start": 11512, + "end": 11514, "loc": { "start": { - "line": 293, - "column": 35 + "line": 294, + "column": 24 }, "end": { - "line": 293, - "column": 36 + "line": 294, + "column": 26 } } }, @@ -111095,24 +112325,24 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 11467, - "end": 11470, + "value": "editor", + "start": 11515, + "end": 11521, "loc": { "start": { - "line": 293, - "column": 37 + "line": 294, + "column": 27 }, "end": { - "line": 293, - "column": 40 + "line": 294, + "column": 33 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -111122,16 +112352,16 @@ "binop": null, "updateContext": null }, - "start": 11470, - "end": 11471, + "start": 11521, + "end": 11522, "loc": { "start": { - "line": 293, - "column": 40 + "line": 294, + "column": 33 }, "end": { - "line": 293, - "column": 41 + "line": 294, + "column": 34 } } }, @@ -111147,24 +112377,24 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 11472, - "end": 11475, + "value": "recognizer", + "start": 11522, + "end": 11532, "loc": { "start": { - "line": 293, - "column": 42 + "line": 294, + "column": 34 }, "end": { - "line": 293, - "column": 45 + "line": 294, + "column": 44 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -111174,50 +112404,50 @@ "binop": null, "updateContext": null }, - "start": 11475, - "end": 11476, + "start": 11532, + "end": 11533, "loc": { "start": { - "line": 293, - "column": 45 + "line": 294, + "column": 44 }, "end": { - "line": 293, - "column": 46 + "line": 294, + "column": 45 } } }, { "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 11477, - "end": 11480, + "value": "import_", + "start": 11533, + "end": 11540, "loc": { "start": { - "line": 293, - "column": 47 + "line": 294, + "column": 45 }, "end": { - "line": 293, - "column": 50 + "line": 294, + "column": 52 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -111225,25 +112455,24 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 11480, - "end": 11485, + "start": 11540, + "end": 11541, "loc": { "start": { - "line": 293, - "column": 50 + "line": 294, + "column": 52 }, "end": { - "line": 293, - "column": 55 + "line": 294, + "column": 53 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -111251,48 +112480,48 @@ "postfix": false, "binop": null }, - "start": 11485, - "end": 11486, + "start": 11542, + "end": 11543, "loc": { "start": { - "line": 293, - "column": 55 + "line": 294, + "column": 54 }, "end": { - "line": 293, - "column": 56 + "line": 294, + "column": 55 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 11486, - "end": 11487, + "value": "editor", + "start": 11548, + "end": 11554, "loc": { "start": { - "line": 293, - "column": 56 + "line": 295, + "column": 4 }, "end": { - "line": 293, - "column": 57 + "line": 295, + "column": 10 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -111300,26 +112529,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 11496, - "end": 11497, + "start": 11554, + "end": 11555, "loc": { "start": { - "line": 294, - "column": 8 + "line": 295, + "column": 10 }, "end": { - "line": 294, - "column": 9 + "line": 295, + "column": 11 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -111327,23 +112557,24 @@ "postfix": false, "binop": null }, - "start": 11497, - "end": 11498, + "value": "recognizerContext", + "start": 11555, + "end": 11572, "loc": { "start": { - "line": 294, - "column": 9 + "line": 295, + "column": 11 }, "end": { - "line": 294, - "column": 10 + "line": 295, + "column": 28 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -111353,24 +112584,24 @@ "binop": null, "updateContext": null }, - "start": 11498, - "end": 11499, + "start": 11572, + "end": 11573, "loc": { "start": { - "line": 294, - "column": 10 + "line": 295, + "column": 28 }, "end": { - "line": 294, - "column": 11 + "line": 295, + "column": 29 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -111378,22 +112609,23 @@ "postfix": false, "binop": null }, - "start": 11506, - "end": 11507, + "value": "initPromise", + "start": 11573, + "end": 11584, "loc": { "start": { "line": 295, - "column": 6 + "column": 29 }, "end": { "line": 295, - "column": 7 + "column": 40 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -111401,52 +112633,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 11507, - "end": 11508, + "start": 11591, + "end": 11592, "loc": { "start": { - "line": 295, - "column": 7 + "line": 296, + "column": 6 }, "end": { - "line": 295, - "column": 8 + "line": 296, + "column": 7 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 11508, - "end": 11509, + "value": "then", + "start": 11592, + "end": 11596, "loc": { "start": { - "line": 295, - "column": 8 + "line": 296, + "column": 7 }, "end": { - "line": 295, - "column": 9 + "line": 296, + "column": 11 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -111454,24 +112687,24 @@ "postfix": false, "binop": null }, - "start": 11512, - "end": 11513, + "start": 11596, + "end": 11597, "loc": { "start": { "line": 296, - "column": 2 + "column": 11 }, "end": { "line": 296, - "column": 3 + "column": 12 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -111479,25 +112712,24 @@ "postfix": false, "binop": null }, - "start": 11514, - "end": 11515, + "start": 11597, + "end": 11598, "loc": { "start": { - "line": 297, - "column": 0 + "line": 296, + "column": 12 }, "end": { - "line": 297, - "column": 1 + "line": 296, + "column": 13 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -111505,49 +112737,48 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 11517, - "end": 11525, + "start": 11598, + "end": 11599, "loc": { "start": { - "line": 299, - "column": 0 + "line": 296, + "column": 13 }, "end": { - "line": 299, - "column": 8 + "line": 296, + "column": 14 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "launchGetSupportedImportMimeTypes", - "start": 11526, - "end": 11559, + "start": 11600, + "end": 11602, "loc": { "start": { - "line": 299, - "column": 9 + "line": 296, + "column": 15 }, "end": { - "line": 299, - "column": 42 + "line": 296, + "column": 17 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -111557,16 +112788,16 @@ "postfix": false, "binop": null }, - "start": 11559, - "end": 11560, + "start": 11603, + "end": 11604, "loc": { "start": { - "line": 299, - "column": 42 + "line": 296, + "column": 18 }, "end": { - "line": 299, - "column": 43 + "line": 296, + "column": 19 } } }, @@ -111583,23 +112814,23 @@ "binop": null }, "value": "editor", - "start": 11560, - "end": 11566, + "start": 11613, + "end": 11619, "loc": { "start": { - "line": 299, - "column": 43 + "line": 297, + "column": 8 }, "end": { - "line": 299, - "column": 49 + "line": 297, + "column": 14 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -111609,16 +112840,16 @@ "binop": null, "updateContext": null }, - "start": 11566, - "end": 11567, + "start": 11619, + "end": 11620, "loc": { "start": { - "line": 299, - "column": 49 + "line": 297, + "column": 14 }, "end": { - "line": 299, - "column": 50 + "line": 297, + "column": 15 } } }, @@ -111634,23 +112865,23 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 11568, - "end": 11573, + "value": "recognizer", + "start": 11620, + "end": 11630, "loc": { "start": { - "line": 299, - "column": 51 + "line": 297, + "column": 15 }, "end": { - "line": 299, - "column": 56 + "line": 297, + "column": 25 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -111658,25 +112889,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 11573, - "end": 11574, + "start": 11630, + "end": 11631, "loc": { "start": { - "line": 299, - "column": 56 + "line": 297, + "column": 25 }, "end": { - "line": 299, - "column": 57 + "line": 297, + "column": 26 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -111685,44 +112917,17 @@ "postfix": false, "binop": null }, - "start": 11575, - "end": 11576, - "loc": { - "start": { - "line": 299, - "column": 58 - }, - "end": { - "line": 299, - "column": 59 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 11579, - "end": 11581, + "value": "import_", + "start": 11631, + "end": 11638, "loc": { "start": { - "line": 300, - "column": 2 + "line": 297, + "column": 26 }, "end": { - "line": 300, - "column": 4 + "line": 297, + "column": 33 } } }, @@ -111738,16 +112943,16 @@ "postfix": false, "binop": null }, - "start": 11582, - "end": 11583, + "start": 11638, + "end": 11639, "loc": { "start": { - "line": 300, - "column": 5 + "line": 297, + "column": 33 }, "end": { - "line": 300, - "column": 6 + "line": 297, + "column": 34 } } }, @@ -111764,16 +112969,16 @@ "binop": null }, "value": "editor", - "start": 11583, - "end": 11589, + "start": 11639, + "end": 11645, "loc": { "start": { - "line": 300, - "column": 6 + "line": 297, + "column": 34 }, "end": { - "line": 300, - "column": 12 + "line": 297, + "column": 40 } } }, @@ -111790,16 +112995,16 @@ "binop": null, "updateContext": null }, - "start": 11589, - "end": 11590, + "start": 11645, + "end": 11646, "loc": { "start": { - "line": 300, - "column": 12 + "line": 297, + "column": 40 }, "end": { - "line": 300, - "column": 13 + "line": 297, + "column": 41 } } }, @@ -111815,23 +113020,23 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 11590, - "end": 11600, + "value": "recognizerContext", + "start": 11646, + "end": 11663, "loc": { "start": { - "line": 300, - "column": 13 + "line": 297, + "column": 41 }, "end": { - "line": 300, - "column": 23 + "line": 297, + "column": 58 } } }, { "type": { - "label": "&&", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -111839,20 +113044,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 11601, - "end": 11603, + "start": 11663, + "end": 11664, "loc": { "start": { - "line": 300, - "column": 24 + "line": 297, + "column": 58 }, "end": { - "line": 300, - "column": 26 + "line": 297, + "column": 59 } } }, @@ -111868,24 +113072,24 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 11604, - "end": 11610, + "value": "model", + "start": 11665, + "end": 11670, "loc": { "start": { - "line": 300, - "column": 27 + "line": 297, + "column": 60 }, "end": { - "line": 300, - "column": 33 + "line": 297, + "column": 65 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -111895,16 +113099,16 @@ "binop": null, "updateContext": null }, - "start": 11610, - "end": 11611, + "start": 11670, + "end": 11671, "loc": { "start": { - "line": 300, - "column": 33 + "line": 297, + "column": 65 }, "end": { - "line": 300, - "column": 34 + "line": 297, + "column": 66 } } }, @@ -111920,24 +113124,24 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 11611, - "end": 11621, + "value": "data", + "start": 11672, + "end": 11676, "loc": { "start": { - "line": 300, - "column": 34 + "line": 297, + "column": 67 }, "end": { - "line": 300, - "column": 44 + "line": 297, + "column": 71 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -111947,23 +113151,23 @@ "binop": null, "updateContext": null }, - "start": 11621, - "end": 11622, + "start": 11676, + "end": 11677, "loc": { "start": { - "line": 300, - "column": 44 + "line": 297, + "column": 71 }, "end": { - "line": 300, - "column": 45 + "line": 297, + "column": 72 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -111972,25 +113176,24 @@ "postfix": false, "binop": null }, - "value": "getSupportedImportMimeTypes", - "start": 11622, - "end": 11649, + "start": 11678, + "end": 11679, "loc": { "start": { - "line": 300, - "column": 45 + "line": 297, + "column": 73 }, "end": { - "line": 300, - "column": 72 + "line": 297, + "column": 74 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -111998,127 +113201,25 @@ "postfix": false, "binop": null }, - "start": 11649, - "end": 11650, + "value": "err", + "start": 11679, + "end": 11682, "loc": { "start": { - "line": 300, - "column": 72 + "line": 297, + "column": 74 }, "end": { - "line": 300, - "column": 73 + "line": 297, + "column": 77 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11651, - "end": 11652, - "loc": { - "start": { - "line": 300, - "column": 74 - }, - "end": { - "line": 300, - "column": 75 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "editor", - "start": 11657, - "end": 11663, - "loc": { - "start": { - "line": 301, - "column": 4 - }, - "end": { - "line": 301, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11663, - "end": 11664, - "loc": { - "start": { - "line": 301, - "column": 10 - }, - "end": { - "line": 301, - "column": 11 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "recognizerContext", - "start": 11664, - "end": 11681, - "loc": { - "start": { - "line": 301, - "column": 11 - }, - "end": { - "line": 301, - "column": 28 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -112127,608 +113228,16 @@ "binop": null, "updateContext": null }, - "start": 11681, - "end": 11682, - "loc": { - "start": { - "line": 301, - "column": 28 - }, - "end": { - "line": 301, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "initPromise", "start": 11682, - "end": 11693, - "loc": { - "start": { - "line": 301, - "column": 29 - }, - "end": { - "line": 301, - "column": 40 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11700, - "end": 11701, - "loc": { - "start": { - "line": 302, - "column": 6 - }, - "end": { - "line": 302, - "column": 7 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "then", - "start": 11701, - "end": 11705, - "loc": { - "start": { - "line": 302, - "column": 7 - }, - "end": { - "line": 302, - "column": 11 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11705, - "end": 11706, - "loc": { - "start": { - "line": 302, - "column": 11 - }, - "end": { - "line": 302, - "column": 12 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11706, - "end": 11707, - "loc": { - "start": { - "line": 302, - "column": 12 - }, - "end": { - "line": 302, - "column": 13 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11707, - "end": 11708, - "loc": { - "start": { - "line": 302, - "column": 13 - }, - "end": { - "line": 302, - "column": 14 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11709, - "end": 11711, - "loc": { - "start": { - "line": 302, - "column": 15 - }, - "end": { - "line": 302, - "column": 17 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11712, - "end": 11713, - "loc": { - "start": { - "line": 302, - "column": 18 - }, - "end": { - "line": 302, - "column": 19 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "editor", - "start": 11722, - "end": 11728, - "loc": { - "start": { - "line": 303, - "column": 8 - }, - "end": { - "line": 303, - "column": 14 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11728, - "end": 11729, - "loc": { - "start": { - "line": 303, - "column": 14 - }, - "end": { - "line": 303, - "column": 15 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "recognizer", - "start": 11729, - "end": 11739, - "loc": { - "start": { - "line": 303, - "column": 15 - }, - "end": { - "line": 303, - "column": 25 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11739, - "end": 11740, - "loc": { - "start": { - "line": 303, - "column": 25 - }, - "end": { - "line": 303, - "column": 26 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "getSupportedImportMimeTypes", - "start": 11740, - "end": 11767, - "loc": { - "start": { - "line": 303, - "column": 26 - }, - "end": { - "line": 303, - "column": 53 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11767, - "end": 11768, - "loc": { - "start": { - "line": 303, - "column": 53 - }, - "end": { - "line": 303, - "column": 54 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "editor", - "start": 11768, - "end": 11774, - "loc": { - "start": { - "line": 303, - "column": 54 - }, - "end": { - "line": 303, - "column": 60 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11774, - "end": 11775, - "loc": { - "start": { - "line": 303, - "column": 60 - }, - "end": { - "line": 303, - "column": 61 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "recognizerContext", - "start": 11775, - "end": 11792, + "end": 11683, "loc": { "start": { - "line": 303, - "column": 61 + "line": 297, + "column": 77 }, "end": { - "line": 303, - "column": 78 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11792, - "end": 11793, - "loc": { - "start": { - "line": 303, + "line": 297, "column": 78 - }, - "end": { - "line": 303, - "column": 79 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "model", - "start": 11794, - "end": 11799, - "loc": { - "start": { - "line": 303, - "column": 80 - }, - "end": { - "line": 303, - "column": 85 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11799, - "end": 11800, - "loc": { - "start": { - "line": 303, - "column": 85 - }, - "end": { - "line": 303, - "column": 86 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 11801, - "end": 11802, - "loc": { - "start": { - "line": 303, - "column": 87 - }, - "end": { - "line": 303, - "column": 88 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 11802, - "end": 11805, - "loc": { - "start": { - "line": 303, - "column": 88 - }, - "end": { - "line": 303, - "column": 91 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 11805, - "end": 11806, - "loc": { - "start": { - "line": 303, - "column": 91 - }, - "end": { - "line": 303, - "column": 92 } } }, @@ -112745,16 +113254,16 @@ "binop": null }, "value": "res", - "start": 11807, - "end": 11810, + "start": 11684, + "end": 11687, "loc": { "start": { - "line": 303, - "column": 93 + "line": 297, + "column": 79 }, "end": { - "line": 303, - "column": 96 + "line": 297, + "column": 82 } } }, @@ -112771,16 +113280,16 @@ "binop": null, "updateContext": null }, - "start": 11810, - "end": 11811, + "start": 11687, + "end": 11688, "loc": { "start": { - "line": 303, - "column": 96 + "line": 297, + "column": 82 }, "end": { - "line": 303, - "column": 97 + "line": 297, + "column": 83 } } }, @@ -112797,16 +113306,16 @@ "binop": null, "updateContext": null }, - "start": 11812, - "end": 11815, + "start": 11689, + "end": 11692, "loc": { "start": { - "line": 303, - "column": 98 + "line": 297, + "column": 84 }, "end": { - "line": 303, - "column": 101 + "line": 297, + "column": 87 } } }, @@ -112823,16 +113332,16 @@ "binop": null }, "value": "types", - "start": 11815, - "end": 11820, + "start": 11692, + "end": 11697, "loc": { "start": { - "line": 303, - "column": 101 + "line": 297, + "column": 87 }, "end": { - "line": 303, - "column": 106 + "line": 297, + "column": 92 } } }, @@ -112848,16 +113357,16 @@ "postfix": false, "binop": null }, - "start": 11820, - "end": 11821, + "start": 11697, + "end": 11698, "loc": { "start": { - "line": 303, - "column": 106 + "line": 297, + "column": 92 }, "end": { - "line": 303, - "column": 107 + "line": 297, + "column": 93 } } }, @@ -112874,16 +113383,16 @@ "binop": null, "updateContext": null }, - "start": 11822, - "end": 11824, + "start": 11699, + "end": 11701, "loc": { "start": { - "line": 303, - "column": 108 + "line": 297, + "column": 94 }, "end": { - "line": 303, - "column": 110 + "line": 297, + "column": 96 } } }, @@ -112899,16 +113408,16 @@ "postfix": false, "binop": null }, - "start": 11825, - "end": 11826, + "start": 11702, + "end": 11703, "loc": { "start": { - "line": 303, - "column": 111 + "line": 297, + "column": 97 }, "end": { - "line": 303, - "column": 112 + "line": 297, + "column": 98 } } }, @@ -112925,15 +113434,15 @@ "binop": null }, "value": "recognizerCallback", - "start": 11837, - "end": 11855, + "start": 11714, + "end": 11732, "loc": { "start": { - "line": 304, + "line": 298, "column": 10 }, "end": { - "line": 304, + "line": 298, "column": 28 } } @@ -112950,15 +113459,15 @@ "postfix": false, "binop": null }, - "start": 11855, - "end": 11856, + "start": 11732, + "end": 11733, "loc": { "start": { - "line": 304, + "line": 298, "column": 28 }, "end": { - "line": 304, + "line": 298, "column": 29 } } @@ -112976,15 +113485,15 @@ "binop": null }, "value": "editor", - "start": 11856, - "end": 11862, + "start": 11733, + "end": 11739, "loc": { "start": { - "line": 304, + "line": 298, "column": 29 }, "end": { - "line": 304, + "line": 298, "column": 35 } } @@ -113002,15 +113511,15 @@ "binop": null, "updateContext": null }, - "start": 11862, - "end": 11863, + "start": 11739, + "end": 11740, "loc": { "start": { - "line": 304, + "line": 298, "column": 35 }, "end": { - "line": 304, + "line": 298, "column": 36 } } @@ -113028,15 +113537,15 @@ "binop": null }, "value": "err", - "start": 11864, - "end": 11867, + "start": 11741, + "end": 11744, "loc": { "start": { - "line": 304, + "line": 298, "column": 37 }, "end": { - "line": 304, + "line": 298, "column": 40 } } @@ -113054,15 +113563,15 @@ "binop": null, "updateContext": null }, - "start": 11867, - "end": 11868, + "start": 11744, + "end": 11745, "loc": { "start": { - "line": 304, + "line": 298, "column": 40 }, "end": { - "line": 304, + "line": 298, "column": 41 } } @@ -113080,15 +113589,15 @@ "binop": null }, "value": "res", - "start": 11869, - "end": 11872, + "start": 11746, + "end": 11749, "loc": { "start": { - "line": 304, + "line": 298, "column": 42 }, "end": { - "line": 304, + "line": 298, "column": 45 } } @@ -113106,15 +113615,15 @@ "binop": null, "updateContext": null }, - "start": 11872, - "end": 11873, + "start": 11749, + "end": 11750, "loc": { "start": { - "line": 304, + "line": 298, "column": 45 }, "end": { - "line": 304, + "line": 298, "column": 46 } } @@ -113132,15 +113641,15 @@ "binop": null, "updateContext": null }, - "start": 11874, - "end": 11877, + "start": 11751, + "end": 11754, "loc": { "start": { - "line": 304, + "line": 298, "column": 47 }, "end": { - "line": 304, + "line": 298, "column": 50 } } @@ -113158,15 +113667,15 @@ "binop": null }, "value": "types", - "start": 11877, - "end": 11882, + "start": 11754, + "end": 11759, "loc": { "start": { - "line": 304, + "line": 298, "column": 50 }, "end": { - "line": 304, + "line": 298, "column": 55 } } @@ -113183,15 +113692,15 @@ "postfix": false, "binop": null }, - "start": 11882, - "end": 11883, + "start": 11759, + "end": 11760, "loc": { "start": { - "line": 304, + "line": 298, "column": 55 }, "end": { - "line": 304, + "line": 298, "column": 56 } } @@ -113209,15 +113718,15 @@ "binop": null, "updateContext": null }, - "start": 11883, - "end": 11884, + "start": 11760, + "end": 11761, "loc": { "start": { - "line": 304, + "line": 298, "column": 56 }, "end": { - "line": 304, + "line": 298, "column": 57 } } @@ -113234,15 +113743,15 @@ "postfix": false, "binop": null }, - "start": 11893, - "end": 11894, + "start": 11770, + "end": 11771, "loc": { "start": { - "line": 305, + "line": 299, "column": 8 }, "end": { - "line": 305, + "line": 299, "column": 9 } } @@ -113259,15 +113768,15 @@ "postfix": false, "binop": null }, - "start": 11894, - "end": 11895, + "start": 11771, + "end": 11772, "loc": { "start": { - "line": 305, + "line": 299, "column": 9 }, "end": { - "line": 305, + "line": 299, "column": 10 } } @@ -113285,15 +113794,15 @@ "binop": null, "updateContext": null }, - "start": 11895, - "end": 11896, + "start": 11772, + "end": 11773, "loc": { "start": { - "line": 305, + "line": 299, "column": 10 }, "end": { - "line": 305, + "line": 299, "column": 11 } } @@ -113310,15 +113819,15 @@ "postfix": false, "binop": null }, - "start": 11903, - "end": 11904, + "start": 11780, + "end": 11781, "loc": { "start": { - "line": 306, + "line": 300, "column": 6 }, "end": { - "line": 306, + "line": 300, "column": 7 } } @@ -113335,15 +113844,15 @@ "postfix": false, "binop": null }, - "start": 11904, - "end": 11905, + "start": 11781, + "end": 11782, "loc": { "start": { - "line": 306, + "line": 300, "column": 7 }, "end": { - "line": 306, + "line": 300, "column": 8 } } @@ -113361,15 +113870,15 @@ "binop": null, "updateContext": null }, - "start": 11905, - "end": 11906, + "start": 11782, + "end": 11783, "loc": { "start": { - "line": 306, + "line": 300, "column": 8 }, "end": { - "line": 306, + "line": 300, "column": 9 } } @@ -113386,15 +113895,15 @@ "postfix": false, "binop": null }, - "start": 11909, - "end": 11910, + "start": 11786, + "end": 11787, "loc": { "start": { - "line": 307, + "line": 301, "column": 2 }, "end": { - "line": 307, + "line": 301, "column": 3 } } @@ -113411,35 +113920,19 @@ "postfix": false, "binop": null }, - "start": 11911, - "end": 11912, + "start": 11788, + "end": 11789, "loc": { "start": { - "line": 308, + "line": 302, "column": 0 }, "end": { - "line": 308, + "line": 302, "column": 1 } } }, - { - "type": "CommentBlock", - "value": "*\n * Launch the convert with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} conversionState\n ", - "start": 11914, - "end": 12078, - "loc": { - "start": { - "line": 310, - "column": 0 - }, - "end": { - "line": 315, - "column": 3 - } - } - }, { "type": { "label": "function", @@ -113454,15 +113947,15 @@ "binop": null }, "value": "function", - "start": 12079, - "end": 12087, + "start": 11791, + "end": 11799, "loc": { "start": { - "line": 316, + "line": 304, "column": 0 }, "end": { - "line": 316, + "line": 304, "column": 8 } } @@ -113479,17 +113972,17 @@ "postfix": false, "binop": null }, - "value": "launchConvert", - "start": 12088, - "end": 12101, + "value": "launchGetSupportedImportMimeTypes", + "start": 11800, + "end": 11833, "loc": { "start": { - "line": 316, + "line": 304, "column": 9 }, "end": { - "line": 316, - "column": 22 + "line": 304, + "column": 42 } } }, @@ -113505,16 +113998,16 @@ "postfix": false, "binop": null }, - "start": 12101, - "end": 12102, + "start": 11833, + "end": 11834, "loc": { "start": { - "line": 316, - "column": 22 + "line": 304, + "column": 42 }, "end": { - "line": 316, - "column": 23 + "line": 304, + "column": 43 } } }, @@ -113531,16 +114024,16 @@ "binop": null }, "value": "editor", - "start": 12102, - "end": 12108, + "start": 11834, + "end": 11840, "loc": { "start": { - "line": 316, - "column": 23 + "line": 304, + "column": 43 }, "end": { - "line": 316, - "column": 29 + "line": 304, + "column": 49 } } }, @@ -113557,16 +114050,16 @@ "binop": null, "updateContext": null }, - "start": 12108, - "end": 12109, + "start": 11840, + "end": 11841, "loc": { "start": { - "line": 316, - "column": 29 + "line": 304, + "column": 49 }, "end": { - "line": 316, - "column": 30 + "line": 304, + "column": 50 } } }, @@ -113583,68 +114076,16 @@ "binop": null }, "value": "model", - "start": 12110, - "end": 12115, - "loc": { - "start": { - "line": 316, - "column": 31 - }, - "end": { - "line": 316, - "column": 36 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12115, - "end": 12116, + "start": 11842, + "end": 11847, "loc": { "start": { - "line": 316, - "column": 36 - }, - "end": { - "line": 316, - "column": 37 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "conversionState", - "start": 12117, - "end": 12132, - "loc": { - "start": { - "line": 316, - "column": 38 + "line": 304, + "column": 51 }, "end": { - "line": 316, - "column": 53 + "line": 304, + "column": 56 } } }, @@ -113660,16 +114101,16 @@ "postfix": false, "binop": null }, - "start": 12132, - "end": 12133, + "start": 11847, + "end": 11848, "loc": { "start": { - "line": 316, - "column": 53 + "line": 304, + "column": 56 }, "end": { - "line": 316, - "column": 54 + "line": 304, + "column": 57 } } }, @@ -113685,16 +114126,16 @@ "postfix": false, "binop": null }, - "start": 12134, - "end": 12135, + "start": 11849, + "end": 11850, "loc": { "start": { - "line": 316, - "column": 55 + "line": 304, + "column": 58 }, "end": { - "line": 316, - "column": 56 + "line": 304, + "column": 59 } } }, @@ -113713,15 +114154,15 @@ "updateContext": null }, "value": "if", - "start": 12138, - "end": 12140, + "start": 11853, + "end": 11855, "loc": { "start": { - "line": 317, + "line": 305, "column": 2 }, "end": { - "line": 317, + "line": 305, "column": 4 } } @@ -113738,15 +114179,15 @@ "postfix": false, "binop": null }, - "start": 12141, - "end": 12142, + "start": 11856, + "end": 11857, "loc": { "start": { - "line": 317, + "line": 305, "column": 5 }, "end": { - "line": 317, + "line": 305, "column": 6 } } @@ -113764,15 +114205,15 @@ "binop": null }, "value": "editor", - "start": 12142, - "end": 12148, + "start": 11857, + "end": 11863, "loc": { "start": { - "line": 317, + "line": 305, "column": 6 }, "end": { - "line": 317, + "line": 305, "column": 12 } } @@ -113790,15 +114231,15 @@ "binop": null, "updateContext": null }, - "start": 12148, - "end": 12149, + "start": 11863, + "end": 11864, "loc": { "start": { - "line": 317, + "line": 305, "column": 12 }, "end": { - "line": 317, + "line": 305, "column": 13 } } @@ -113816,15 +114257,15 @@ "binop": null }, "value": "recognizer", - "start": 12149, - "end": 12159, + "start": 11864, + "end": 11874, "loc": { "start": { - "line": 317, + "line": 305, "column": 13 }, "end": { - "line": 317, + "line": 305, "column": 23 } } @@ -113843,15 +114284,15 @@ "updateContext": null }, "value": "&&", - "start": 12160, - "end": 12162, + "start": 11875, + "end": 11877, "loc": { "start": { - "line": 317, + "line": 305, "column": 24 }, "end": { - "line": 317, + "line": 305, "column": 26 } } @@ -113869,15 +114310,15 @@ "binop": null }, "value": "editor", - "start": 12163, - "end": 12169, + "start": 11878, + "end": 11884, "loc": { "start": { - "line": 317, + "line": 305, "column": 27 }, "end": { - "line": 317, + "line": 305, "column": 33 } } @@ -113895,15 +114336,15 @@ "binop": null, "updateContext": null }, - "start": 12169, - "end": 12170, + "start": 11884, + "end": 11885, "loc": { "start": { - "line": 317, + "line": 305, "column": 33 }, "end": { - "line": 317, + "line": 305, "column": 34 } } @@ -113921,15 +114362,15 @@ "binop": null }, "value": "recognizer", - "start": 12170, - "end": 12180, + "start": 11885, + "end": 11895, "loc": { "start": { - "line": 317, + "line": 305, "column": 34 }, "end": { - "line": 317, + "line": 305, "column": 44 } } @@ -113947,15 +114388,15 @@ "binop": null, "updateContext": null }, - "start": 12180, - "end": 12181, + "start": 11895, + "end": 11896, "loc": { "start": { - "line": 317, + "line": 305, "column": 44 }, "end": { - "line": 317, + "line": 305, "column": 45 } } @@ -113972,17 +114413,17 @@ "postfix": false, "binop": null }, - "value": "convert", - "start": 12181, - "end": 12188, + "value": "getSupportedImportMimeTypes", + "start": 11896, + "end": 11923, "loc": { "start": { - "line": 317, + "line": 305, "column": 45 }, "end": { - "line": 317, - "column": 52 + "line": 305, + "column": 72 } } }, @@ -113998,16 +114439,16 @@ "postfix": false, "binop": null }, - "start": 12188, - "end": 12189, + "start": 11923, + "end": 11924, "loc": { "start": { - "line": 317, - "column": 52 + "line": 305, + "column": 72 }, "end": { - "line": 317, - "column": 53 + "line": 305, + "column": 73 } } }, @@ -114023,16 +114464,16 @@ "postfix": false, "binop": null }, - "start": 12190, - "end": 12191, + "start": 11925, + "end": 11926, "loc": { "start": { - "line": 317, - "column": 54 + "line": 305, + "column": 74 }, "end": { - "line": 317, - "column": 55 + "line": 305, + "column": 75 } } }, @@ -114049,15 +114490,15 @@ "binop": null }, "value": "editor", - "start": 12196, - "end": 12202, + "start": 11931, + "end": 11937, "loc": { "start": { - "line": 318, + "line": 306, "column": 4 }, "end": { - "line": 318, + "line": 306, "column": 10 } } @@ -114075,15 +114516,15 @@ "binop": null, "updateContext": null }, - "start": 12202, - "end": 12203, + "start": 11937, + "end": 11938, "loc": { "start": { - "line": 318, + "line": 306, "column": 10 }, "end": { - "line": 318, + "line": 306, "column": 11 } } @@ -114101,15 +114542,15 @@ "binop": null }, "value": "recognizerContext", - "start": 12203, - "end": 12220, + "start": 11938, + "end": 11955, "loc": { "start": { - "line": 318, + "line": 306, "column": 11 }, "end": { - "line": 318, + "line": 306, "column": 28 } } @@ -114127,15 +114568,15 @@ "binop": null, "updateContext": null }, - "start": 12220, - "end": 12221, + "start": 11955, + "end": 11956, "loc": { "start": { - "line": 318, + "line": 306, "column": 28 }, "end": { - "line": 318, + "line": 306, "column": 29 } } @@ -114153,15 +114594,15 @@ "binop": null }, "value": "initPromise", - "start": 12221, - "end": 12232, + "start": 11956, + "end": 11967, "loc": { "start": { - "line": 318, + "line": 306, "column": 29 }, "end": { - "line": 318, + "line": 306, "column": 40 } } @@ -114179,15 +114620,15 @@ "binop": null, "updateContext": null }, - "start": 12239, - "end": 12240, + "start": 11974, + "end": 11975, "loc": { "start": { - "line": 319, + "line": 307, "column": 6 }, "end": { - "line": 319, + "line": 307, "column": 7 } } @@ -114205,15 +114646,15 @@ "binop": null }, "value": "then", - "start": 12240, - "end": 12244, + "start": 11975, + "end": 11979, "loc": { "start": { - "line": 319, + "line": 307, "column": 7 }, "end": { - "line": 319, + "line": 307, "column": 11 } } @@ -114230,15 +114671,15 @@ "postfix": false, "binop": null }, - "start": 12244, - "end": 12245, + "start": 11979, + "end": 11980, "loc": { "start": { - "line": 319, + "line": 307, "column": 11 }, "end": { - "line": 319, + "line": 307, "column": 12 } } @@ -114255,15 +114696,15 @@ "postfix": false, "binop": null }, - "start": 12245, - "end": 12246, + "start": 11980, + "end": 11981, "loc": { "start": { - "line": 319, + "line": 307, "column": 12 }, "end": { - "line": 319, + "line": 307, "column": 13 } } @@ -114280,15 +114721,15 @@ "postfix": false, "binop": null }, - "start": 12246, - "end": 12247, + "start": 11981, + "end": 11982, "loc": { "start": { - "line": 319, + "line": 307, "column": 13 }, "end": { - "line": 319, + "line": 307, "column": 14 } } @@ -114306,15 +114747,15 @@ "binop": null, "updateContext": null }, - "start": 12248, - "end": 12250, + "start": 11983, + "end": 11985, "loc": { "start": { - "line": 319, + "line": 307, "column": 15 }, "end": { - "line": 319, + "line": 307, "column": 17 } } @@ -114331,15 +114772,15 @@ "postfix": false, "binop": null }, - "start": 12251, - "end": 12252, + "start": 11986, + "end": 11987, "loc": { "start": { - "line": 319, + "line": 307, "column": 18 }, "end": { - "line": 319, + "line": 307, "column": 19 } } @@ -114357,15 +114798,15 @@ "binop": null }, "value": "editor", - "start": 12261, - "end": 12267, + "start": 11996, + "end": 12002, "loc": { "start": { - "line": 320, + "line": 308, "column": 8 }, "end": { - "line": 320, + "line": 308, "column": 14 } } @@ -114383,15 +114824,15 @@ "binop": null, "updateContext": null }, - "start": 12267, - "end": 12268, + "start": 12002, + "end": 12003, "loc": { "start": { - "line": 320, + "line": 308, "column": 14 }, "end": { - "line": 320, + "line": 308, "column": 15 } } @@ -114409,15 +114850,15 @@ "binop": null }, "value": "recognizer", - "start": 12268, - "end": 12278, + "start": 12003, + "end": 12013, "loc": { "start": { - "line": 320, + "line": 308, "column": 15 }, "end": { - "line": 320, + "line": 308, "column": 25 } } @@ -114435,15 +114876,15 @@ "binop": null, "updateContext": null }, - "start": 12278, - "end": 12279, + "start": 12013, + "end": 12014, "loc": { "start": { - "line": 320, + "line": 308, "column": 25 }, "end": { - "line": 320, + "line": 308, "column": 26 } } @@ -114460,17 +114901,17 @@ "postfix": false, "binop": null }, - "value": "convert", - "start": 12279, - "end": 12286, + "value": "getSupportedImportMimeTypes", + "start": 12014, + "end": 12041, "loc": { "start": { - "line": 320, + "line": 308, "column": 26 }, "end": { - "line": 320, - "column": 33 + "line": 308, + "column": 53 } } }, @@ -114486,16 +114927,16 @@ "postfix": false, "binop": null }, - "start": 12286, - "end": 12287, + "start": 12041, + "end": 12042, "loc": { "start": { - "line": 320, - "column": 33 + "line": 308, + "column": 53 }, "end": { - "line": 320, - "column": 34 + "line": 308, + "column": 54 } } }, @@ -114512,16 +114953,16 @@ "binop": null }, "value": "editor", - "start": 12287, - "end": 12293, + "start": 12042, + "end": 12048, "loc": { "start": { - "line": 320, - "column": 34 + "line": 308, + "column": 54 }, "end": { - "line": 320, - "column": 40 + "line": 308, + "column": 60 } } }, @@ -114538,16 +114979,16 @@ "binop": null, "updateContext": null }, - "start": 12293, - "end": 12294, + "start": 12048, + "end": 12049, "loc": { "start": { - "line": 320, - "column": 40 + "line": 308, + "column": 60 }, "end": { - "line": 320, - "column": 41 + "line": 308, + "column": 61 } } }, @@ -114564,16 +115005,16 @@ "binop": null }, "value": "recognizerContext", - "start": 12294, - "end": 12311, + "start": 12049, + "end": 12066, "loc": { "start": { - "line": 320, - "column": 41 + "line": 308, + "column": 61 }, "end": { - "line": 320, - "column": 58 + "line": 308, + "column": 78 } } }, @@ -114590,16 +115031,16 @@ "binop": null, "updateContext": null }, - "start": 12311, - "end": 12312, + "start": 12066, + "end": 12067, "loc": { "start": { - "line": 320, - "column": 58 + "line": 308, + "column": 78 }, "end": { - "line": 320, - "column": 59 + "line": 308, + "column": 79 } } }, @@ -114616,16 +115057,16 @@ "binop": null }, "value": "model", - "start": 12313, - "end": 12318, + "start": 12068, + "end": 12073, "loc": { "start": { - "line": 320, - "column": 60 + "line": 308, + "column": 80 }, "end": { - "line": 320, - "column": 65 + "line": 308, + "column": 85 } } }, @@ -114642,16 +115083,16 @@ "binop": null, "updateContext": null }, - "start": 12318, - "end": 12319, + "start": 12073, + "end": 12074, "loc": { "start": { - "line": 320, - "column": 65 + "line": 308, + "column": 85 }, "end": { - "line": 320, - "column": 66 + "line": 308, + "column": 86 } } }, @@ -114667,16 +115108,16 @@ "postfix": false, "binop": null }, - "start": 12320, - "end": 12321, + "start": 12075, + "end": 12076, "loc": { "start": { - "line": 320, - "column": 67 + "line": 308, + "column": 87 }, "end": { - "line": 320, - "column": 68 + "line": 308, + "column": 88 } } }, @@ -114693,16 +115134,16 @@ "binop": null }, "value": "err", - "start": 12321, - "end": 12324, + "start": 12076, + "end": 12079, "loc": { "start": { - "line": 320, - "column": 68 + "line": 308, + "column": 88 }, "end": { - "line": 320, - "column": 71 + "line": 308, + "column": 91 } } }, @@ -114719,17 +115160,17 @@ "binop": null, "updateContext": null }, - "start": 12324, - "end": 12325, + "start": 12079, + "end": 12080, "loc": { "start": { - "line": 320, - "column": 71 + "line": 308, + "column": 91 }, "end": { - "line": 320, - "column": 72 - } + "line": 308, + "column": 92 + } } }, { @@ -114745,16 +115186,16 @@ "binop": null }, "value": "res", - "start": 12326, - "end": 12329, + "start": 12081, + "end": 12084, "loc": { "start": { - "line": 320, - "column": 73 + "line": 308, + "column": 93 }, "end": { - "line": 320, - "column": 76 + "line": 308, + "column": 96 } } }, @@ -114771,16 +115212,16 @@ "binop": null, "updateContext": null }, - "start": 12329, - "end": 12330, + "start": 12084, + "end": 12085, "loc": { "start": { - "line": 320, - "column": 76 + "line": 308, + "column": 96 }, "end": { - "line": 320, - "column": 77 + "line": 308, + "column": 97 } } }, @@ -114797,16 +115238,16 @@ "binop": null, "updateContext": null }, - "start": 12331, - "end": 12334, + "start": 12086, + "end": 12089, "loc": { "start": { - "line": 320, - "column": 78 + "line": 308, + "column": 98 }, "end": { - "line": 320, - "column": 81 + "line": 308, + "column": 101 } } }, @@ -114823,16 +115264,16 @@ "binop": null }, "value": "types", - "start": 12334, - "end": 12339, + "start": 12089, + "end": 12094, "loc": { "start": { - "line": 320, - "column": 81 + "line": 308, + "column": 101 }, "end": { - "line": 320, - "column": 86 + "line": 308, + "column": 106 } } }, @@ -114848,16 +115289,16 @@ "postfix": false, "binop": null }, - "start": 12339, - "end": 12340, + "start": 12094, + "end": 12095, "loc": { "start": { - "line": 320, - "column": 86 + "line": 308, + "column": 106 }, "end": { - "line": 320, - "column": 87 + "line": 308, + "column": 107 } } }, @@ -114874,16 +115315,16 @@ "binop": null, "updateContext": null }, - "start": 12341, - "end": 12343, + "start": 12096, + "end": 12098, "loc": { "start": { - "line": 320, - "column": 88 + "line": 308, + "column": 108 }, "end": { - "line": 320, - "column": 90 + "line": 308, + "column": 110 } } }, @@ -114899,16 +115340,16 @@ "postfix": false, "binop": null }, - "start": 12344, - "end": 12345, + "start": 12099, + "end": 12100, "loc": { "start": { - "line": 320, - "column": 91 + "line": 308, + "column": 111 }, "end": { - "line": 320, - "column": 92 + "line": 308, + "column": 112 } } }, @@ -114925,15 +115366,15 @@ "binop": null }, "value": "recognizerCallback", - "start": 12356, - "end": 12374, + "start": 12111, + "end": 12129, "loc": { "start": { - "line": 321, + "line": 309, "column": 10 }, "end": { - "line": 321, + "line": 309, "column": 28 } } @@ -114950,15 +115391,15 @@ "postfix": false, "binop": null }, - "start": 12374, - "end": 12375, + "start": 12129, + "end": 12130, "loc": { "start": { - "line": 321, + "line": 309, "column": 28 }, "end": { - "line": 321, + "line": 309, "column": 29 } } @@ -114976,15 +115417,15 @@ "binop": null }, "value": "editor", - "start": 12375, - "end": 12381, + "start": 12130, + "end": 12136, "loc": { "start": { - "line": 321, + "line": 309, "column": 29 }, "end": { - "line": 321, + "line": 309, "column": 35 } } @@ -115002,15 +115443,15 @@ "binop": null, "updateContext": null }, - "start": 12381, - "end": 12382, + "start": 12136, + "end": 12137, "loc": { "start": { - "line": 321, + "line": 309, "column": 35 }, "end": { - "line": 321, + "line": 309, "column": 36 } } @@ -115028,15 +115469,15 @@ "binop": null }, "value": "err", - "start": 12383, - "end": 12386, + "start": 12138, + "end": 12141, "loc": { "start": { - "line": 321, + "line": 309, "column": 37 }, "end": { - "line": 321, + "line": 309, "column": 40 } } @@ -115054,15 +115495,15 @@ "binop": null, "updateContext": null }, - "start": 12386, - "end": 12387, + "start": 12141, + "end": 12142, "loc": { "start": { - "line": 321, + "line": 309, "column": 40 }, "end": { - "line": 321, + "line": 309, "column": 41 } } @@ -115080,15 +115521,15 @@ "binop": null }, "value": "res", - "start": 12388, - "end": 12391, + "start": 12143, + "end": 12146, "loc": { "start": { - "line": 321, + "line": 309, "column": 42 }, "end": { - "line": 321, + "line": 309, "column": 45 } } @@ -115106,15 +115547,15 @@ "binop": null, "updateContext": null }, - "start": 12391, - "end": 12392, + "start": 12146, + "end": 12147, "loc": { "start": { - "line": 321, + "line": 309, "column": 45 }, "end": { - "line": 321, + "line": 309, "column": 46 } } @@ -115132,15 +115573,15 @@ "binop": null, "updateContext": null }, - "start": 12393, - "end": 12396, + "start": 12148, + "end": 12151, "loc": { "start": { - "line": 321, + "line": 309, "column": 47 }, "end": { - "line": 321, + "line": 309, "column": 50 } } @@ -115158,15 +115599,15 @@ "binop": null }, "value": "types", - "start": 12396, - "end": 12401, + "start": 12151, + "end": 12156, "loc": { "start": { - "line": 321, + "line": 309, "column": 50 }, "end": { - "line": 321, + "line": 309, "column": 55 } } @@ -115183,15 +115624,15 @@ "postfix": false, "binop": null }, - "start": 12401, - "end": 12402, + "start": 12156, + "end": 12157, "loc": { "start": { - "line": 321, + "line": 309, "column": 55 }, "end": { - "line": 321, + "line": 309, "column": 56 } } @@ -115209,15 +115650,15 @@ "binop": null, "updateContext": null }, - "start": 12402, - "end": 12403, + "start": 12157, + "end": 12158, "loc": { "start": { - "line": 321, + "line": 309, "column": 56 }, "end": { - "line": 321, + "line": 309, "column": 57 } } @@ -115234,68 +115675,16 @@ "postfix": false, "binop": null }, - "start": 12412, - "end": 12413, + "start": 12167, + "end": 12168, "loc": { "start": { - "line": 322, + "line": 310, "column": 8 }, "end": { - "line": 322, - "column": 9 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 12413, - "end": 12414, - "loc": { - "start": { - "line": 322, + "line": 310, "column": 9 - }, - "end": { - "line": 322, - "column": 10 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "conversionState", - "start": 12415, - "end": 12430, - "loc": { - "start": { - "line": 322, - "column": 11 - }, - "end": { - "line": 322, - "column": 26 } } }, @@ -115311,16 +115700,16 @@ "postfix": false, "binop": null }, - "start": 12430, - "end": 12431, + "start": 12168, + "end": 12169, "loc": { "start": { - "line": 322, - "column": 26 + "line": 310, + "column": 9 }, "end": { - "line": 322, - "column": 27 + "line": 310, + "column": 10 } } }, @@ -115337,16 +115726,16 @@ "binop": null, "updateContext": null }, - "start": 12431, - "end": 12432, + "start": 12169, + "end": 12170, "loc": { "start": { - "line": 322, - "column": 27 + "line": 310, + "column": 10 }, "end": { - "line": 322, - "column": 28 + "line": 310, + "column": 11 } } }, @@ -115362,15 +115751,15 @@ "postfix": false, "binop": null }, - "start": 12439, - "end": 12440, + "start": 12177, + "end": 12178, "loc": { "start": { - "line": 323, + "line": 311, "column": 6 }, "end": { - "line": 323, + "line": 311, "column": 7 } } @@ -115387,15 +115776,15 @@ "postfix": false, "binop": null }, - "start": 12440, - "end": 12441, + "start": 12178, + "end": 12179, "loc": { "start": { - "line": 323, + "line": 311, "column": 7 }, "end": { - "line": 323, + "line": 311, "column": 8 } } @@ -115413,15 +115802,15 @@ "binop": null, "updateContext": null }, - "start": 12441, - "end": 12442, + "start": 12179, + "end": 12180, "loc": { "start": { - "line": 323, + "line": 311, "column": 8 }, "end": { - "line": 323, + "line": 311, "column": 9 } } @@ -115438,15 +115827,15 @@ "postfix": false, "binop": null }, - "start": 12445, - "end": 12446, + "start": 12183, + "end": 12184, "loc": { "start": { - "line": 324, + "line": 312, "column": 2 }, "end": { - "line": 324, + "line": 312, "column": 3 } } @@ -115463,19 +115852,35 @@ "postfix": false, "binop": null }, - "start": 12447, - "end": 12448, + "start": 12185, + "end": 12186, "loc": { "start": { - "line": 325, + "line": 313, "column": 0 }, "end": { - "line": 325, + "line": 313, "column": 1 } } }, + { + "type": "CommentBlock", + "value": "*\n * Launch the convert with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} conversionState\n ", + "start": 12188, + "end": 12352, + "loc": { + "start": { + "line": 315, + "column": 0 + }, + "end": { + "line": 320, + "column": 3 + } + } + }, { "type": { "label": "function", @@ -115490,15 +115895,15 @@ "binop": null }, "value": "function", - "start": 12450, - "end": 12458, + "start": 12353, + "end": 12361, "loc": { "start": { - "line": 327, + "line": 321, "column": 0 }, "end": { - "line": 327, + "line": 321, "column": 8 } } @@ -115515,17 +115920,17 @@ "postfix": false, "binop": null }, - "value": "launchConfig", - "start": 12459, - "end": 12471, + "value": "launchConvert", + "start": 12362, + "end": 12375, "loc": { "start": { - "line": 327, + "line": 321, "column": 9 }, "end": { - "line": 327, - "column": 21 + "line": 321, + "column": 22 } } }, @@ -115541,16 +115946,16 @@ "postfix": false, "binop": null }, - "start": 12471, - "end": 12472, + "start": 12375, + "end": 12376, "loc": { "start": { - "line": 327, - "column": 21 + "line": 321, + "column": 22 }, "end": { - "line": 327, - "column": 22 + "line": 321, + "column": 23 } } }, @@ -115567,16 +115972,16 @@ "binop": null }, "value": "editor", - "start": 12472, - "end": 12478, + "start": 12376, + "end": 12382, "loc": { "start": { - "line": 327, - "column": 22 + "line": 321, + "column": 23 }, "end": { - "line": 327, - "column": 28 + "line": 321, + "column": 29 } } }, @@ -115593,16 +115998,16 @@ "binop": null, "updateContext": null }, - "start": 12478, - "end": 12479, + "start": 12382, + "end": 12383, "loc": { "start": { - "line": 327, - "column": 28 + "line": 321, + "column": 29 }, "end": { - "line": 327, - "column": 29 + "line": 321, + "column": 30 } } }, @@ -115619,16 +116024,68 @@ "binop": null }, "value": "model", - "start": 12480, - "end": 12485, + "start": 12384, + "end": 12389, "loc": { "start": { - "line": 327, - "column": 30 + "line": 321, + "column": 31 }, "end": { - "line": 327, - "column": 35 + "line": 321, + "column": 36 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12389, + "end": 12390, + "loc": { + "start": { + "line": 321, + "column": 36 + }, + "end": { + "line": 321, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "conversionState", + "start": 12391, + "end": 12406, + "loc": { + "start": { + "line": 321, + "column": 38 + }, + "end": { + "line": 321, + "column": 53 } } }, @@ -115644,16 +116101,16 @@ "postfix": false, "binop": null }, - "start": 12485, - "end": 12486, + "start": 12406, + "end": 12407, "loc": { "start": { - "line": 327, - "column": 35 + "line": 321, + "column": 53 }, "end": { - "line": 327, - "column": 36 + "line": 321, + "column": 54 } } }, @@ -115669,16 +116126,16 @@ "postfix": false, "binop": null }, - "start": 12487, - "end": 12488, + "start": 12408, + "end": 12409, "loc": { "start": { - "line": 327, - "column": 37 + "line": 321, + "column": 55 }, "end": { - "line": 327, - "column": 38 + "line": 321, + "column": 56 } } }, @@ -115697,15 +116154,15 @@ "updateContext": null }, "value": "if", - "start": 12491, - "end": 12493, + "start": 12412, + "end": 12414, "loc": { "start": { - "line": 328, + "line": 322, "column": 2 }, "end": { - "line": 328, + "line": 322, "column": 4 } } @@ -115722,15 +116179,15 @@ "postfix": false, "binop": null }, - "start": 12494, - "end": 12495, + "start": 12415, + "end": 12416, "loc": { "start": { - "line": 328, + "line": 322, "column": 5 }, "end": { - "line": 328, + "line": 322, "column": 6 } } @@ -115748,15 +116205,15 @@ "binop": null }, "value": "editor", - "start": 12495, - "end": 12501, + "start": 12416, + "end": 12422, "loc": { "start": { - "line": 328, + "line": 322, "column": 6 }, "end": { - "line": 328, + "line": 322, "column": 12 } } @@ -115774,15 +116231,15 @@ "binop": null, "updateContext": null }, - "start": 12501, - "end": 12502, + "start": 12422, + "end": 12423, "loc": { "start": { - "line": 328, + "line": 322, "column": 12 }, "end": { - "line": 328, + "line": 322, "column": 13 } } @@ -115800,15 +116257,15 @@ "binop": null }, "value": "recognizer", - "start": 12502, - "end": 12512, + "start": 12423, + "end": 12433, "loc": { "start": { - "line": 328, + "line": 322, "column": 13 }, "end": { - "line": 328, + "line": 322, "column": 23 } } @@ -115827,15 +116284,15 @@ "updateContext": null }, "value": "&&", - "start": 12513, - "end": 12515, + "start": 12434, + "end": 12436, "loc": { "start": { - "line": 328, + "line": 322, "column": 24 }, "end": { - "line": 328, + "line": 322, "column": 26 } } @@ -115853,15 +116310,15 @@ "binop": null }, "value": "editor", - "start": 12516, - "end": 12522, + "start": 12437, + "end": 12443, "loc": { "start": { - "line": 328, + "line": 322, "column": 27 }, "end": { - "line": 328, + "line": 322, "column": 33 } } @@ -115879,15 +116336,15 @@ "binop": null, "updateContext": null }, - "start": 12522, - "end": 12523, + "start": 12443, + "end": 12444, "loc": { "start": { - "line": 328, + "line": 322, "column": 33 }, "end": { - "line": 328, + "line": 322, "column": 34 } } @@ -115905,15 +116362,15 @@ "binop": null }, "value": "recognizer", - "start": 12523, - "end": 12533, + "start": 12444, + "end": 12454, "loc": { "start": { - "line": 328, + "line": 322, "column": 34 }, "end": { - "line": 328, + "line": 322, "column": 44 } } @@ -115931,15 +116388,15 @@ "binop": null, "updateContext": null }, - "start": 12533, - "end": 12534, + "start": 12454, + "end": 12455, "loc": { "start": { - "line": 328, + "line": 322, "column": 44 }, "end": { - "line": 328, + "line": 322, "column": 45 } } @@ -115956,17 +116413,17 @@ "postfix": false, "binop": null }, - "value": "sendConfiguration", - "start": 12534, - "end": 12551, + "value": "convert", + "start": 12455, + "end": 12462, "loc": { "start": { - "line": 328, + "line": 322, "column": 45 }, "end": { - "line": 328, - "column": 62 + "line": 322, + "column": 52 } } }, @@ -115982,16 +116439,16 @@ "postfix": false, "binop": null }, - "start": 12551, - "end": 12552, + "start": 12462, + "end": 12463, "loc": { "start": { - "line": 328, - "column": 62 + "line": 322, + "column": 52 }, "end": { - "line": 328, - "column": 63 + "line": 322, + "column": 53 } } }, @@ -116007,16 +116464,16 @@ "postfix": false, "binop": null }, - "start": 12553, - "end": 12554, + "start": 12464, + "end": 12465, "loc": { "start": { - "line": 328, - "column": 64 + "line": 322, + "column": 54 }, "end": { - "line": 328, - "column": 65 + "line": 322, + "column": 55 } } }, @@ -116033,15 +116490,15 @@ "binop": null }, "value": "editor", - "start": 12559, - "end": 12565, + "start": 12470, + "end": 12476, "loc": { "start": { - "line": 329, + "line": 323, "column": 4 }, "end": { - "line": 329, + "line": 323, "column": 10 } } @@ -116059,15 +116516,15 @@ "binop": null, "updateContext": null }, - "start": 12565, - "end": 12566, + "start": 12476, + "end": 12477, "loc": { "start": { - "line": 329, + "line": 323, "column": 10 }, "end": { - "line": 329, + "line": 323, "column": 11 } } @@ -116085,15 +116542,15 @@ "binop": null }, "value": "recognizerContext", - "start": 12566, - "end": 12583, + "start": 12477, + "end": 12494, "loc": { "start": { - "line": 329, + "line": 323, "column": 11 }, "end": { - "line": 329, + "line": 323, "column": 28 } } @@ -116111,15 +116568,15 @@ "binop": null, "updateContext": null }, - "start": 12583, - "end": 12584, + "start": 12494, + "end": 12495, "loc": { "start": { - "line": 329, + "line": 323, "column": 28 }, "end": { - "line": 329, + "line": 323, "column": 29 } } @@ -116137,15 +116594,15 @@ "binop": null }, "value": "initPromise", - "start": 12584, - "end": 12595, + "start": 12495, + "end": 12506, "loc": { "start": { - "line": 329, + "line": 323, "column": 29 }, "end": { - "line": 329, + "line": 323, "column": 40 } } @@ -116163,15 +116620,15 @@ "binop": null, "updateContext": null }, - "start": 12602, - "end": 12603, + "start": 12513, + "end": 12514, "loc": { "start": { - "line": 330, + "line": 324, "column": 6 }, "end": { - "line": 330, + "line": 324, "column": 7 } } @@ -116189,15 +116646,15 @@ "binop": null }, "value": "then", - "start": 12603, - "end": 12607, + "start": 12514, + "end": 12518, "loc": { "start": { - "line": 330, + "line": 324, "column": 7 }, "end": { - "line": 330, + "line": 324, "column": 11 } } @@ -116214,15 +116671,15 @@ "postfix": false, "binop": null }, - "start": 12607, - "end": 12608, + "start": 12518, + "end": 12519, "loc": { "start": { - "line": 330, + "line": 324, "column": 11 }, "end": { - "line": 330, + "line": 324, "column": 12 } } @@ -116239,15 +116696,15 @@ "postfix": false, "binop": null }, - "start": 12608, - "end": 12609, + "start": 12519, + "end": 12520, "loc": { "start": { - "line": 330, + "line": 324, "column": 12 }, "end": { - "line": 330, + "line": 324, "column": 13 } } @@ -116264,15 +116721,15 @@ "postfix": false, "binop": null }, - "start": 12609, - "end": 12610, + "start": 12520, + "end": 12521, "loc": { "start": { - "line": 330, + "line": 324, "column": 13 }, "end": { - "line": 330, + "line": 324, "column": 14 } } @@ -116290,15 +116747,15 @@ "binop": null, "updateContext": null }, - "start": 12611, - "end": 12613, + "start": 12522, + "end": 12524, "loc": { "start": { - "line": 330, + "line": 324, "column": 15 }, "end": { - "line": 330, + "line": 324, "column": 17 } } @@ -116315,15 +116772,15 @@ "postfix": false, "binop": null }, - "start": 12614, - "end": 12615, + "start": 12525, + "end": 12526, "loc": { "start": { - "line": 330, + "line": 324, "column": 18 }, "end": { - "line": 330, + "line": 324, "column": 19 } } @@ -116341,15 +116798,15 @@ "binop": null }, "value": "editor", - "start": 12624, - "end": 12630, + "start": 12535, + "end": 12541, "loc": { "start": { - "line": 331, + "line": 325, "column": 8 }, "end": { - "line": 331, + "line": 325, "column": 14 } } @@ -116367,15 +116824,15 @@ "binop": null, "updateContext": null }, - "start": 12630, - "end": 12631, + "start": 12541, + "end": 12542, "loc": { "start": { - "line": 331, + "line": 325, "column": 14 }, "end": { - "line": 331, + "line": 325, "column": 15 } } @@ -116393,15 +116850,15 @@ "binop": null }, "value": "recognizer", - "start": 12631, - "end": 12641, + "start": 12542, + "end": 12552, "loc": { "start": { - "line": 331, + "line": 325, "column": 15 }, "end": { - "line": 331, + "line": 325, "column": 25 } } @@ -116419,15 +116876,15 @@ "binop": null, "updateContext": null }, - "start": 12641, - "end": 12642, + "start": 12552, + "end": 12553, "loc": { "start": { - "line": 331, + "line": 325, "column": 25 }, "end": { - "line": 331, + "line": 325, "column": 26 } } @@ -116444,17 +116901,17 @@ "postfix": false, "binop": null }, - "value": "sendConfiguration", - "start": 12642, - "end": 12659, + "value": "convert", + "start": 12553, + "end": 12560, "loc": { "start": { - "line": 331, + "line": 325, "column": 26 }, "end": { - "line": 331, - "column": 43 + "line": 325, + "column": 33 } } }, @@ -116470,16 +116927,16 @@ "postfix": false, "binop": null }, - "start": 12659, - "end": 12660, + "start": 12560, + "end": 12561, "loc": { "start": { - "line": 331, - "column": 43 + "line": 325, + "column": 33 }, "end": { - "line": 331, - "column": 44 + "line": 325, + "column": 34 } } }, @@ -116496,16 +116953,16 @@ "binop": null }, "value": "editor", - "start": 12660, - "end": 12666, + "start": 12561, + "end": 12567, "loc": { "start": { - "line": 331, - "column": 44 + "line": 325, + "column": 34 }, "end": { - "line": 331, - "column": 50 + "line": 325, + "column": 40 } } }, @@ -116522,16 +116979,16 @@ "binop": null, "updateContext": null }, - "start": 12666, - "end": 12667, + "start": 12567, + "end": 12568, "loc": { "start": { - "line": 331, - "column": 50 + "line": 325, + "column": 40 }, "end": { - "line": 331, - "column": 51 + "line": 325, + "column": 41 } } }, @@ -116548,16 +117005,16 @@ "binop": null }, "value": "recognizerContext", - "start": 12667, - "end": 12684, + "start": 12568, + "end": 12585, "loc": { "start": { - "line": 331, - "column": 51 + "line": 325, + "column": 41 }, "end": { - "line": 331, - "column": 68 + "line": 325, + "column": 58 } } }, @@ -116574,16 +117031,16 @@ "binop": null, "updateContext": null }, - "start": 12684, - "end": 12685, + "start": 12585, + "end": 12586, "loc": { "start": { - "line": 331, - "column": 68 + "line": 325, + "column": 58 }, "end": { - "line": 331, - "column": 69 + "line": 325, + "column": 59 } } }, @@ -116600,16 +117057,16 @@ "binop": null }, "value": "model", - "start": 12686, - "end": 12691, + "start": 12587, + "end": 12592, "loc": { "start": { - "line": 331, - "column": 70 + "line": 325, + "column": 60 }, "end": { - "line": 331, - "column": 75 + "line": 325, + "column": 65 } } }, @@ -116626,16 +117083,16 @@ "binop": null, "updateContext": null }, - "start": 12691, - "end": 12692, + "start": 12592, + "end": 12593, "loc": { "start": { - "line": 331, - "column": 75 + "line": 325, + "column": 65 }, "end": { - "line": 331, - "column": 76 + "line": 325, + "column": 66 } } }, @@ -116651,16 +117108,16 @@ "postfix": false, "binop": null }, - "start": 12693, - "end": 12694, + "start": 12594, + "end": 12595, "loc": { "start": { - "line": 331, - "column": 77 + "line": 325, + "column": 67 }, "end": { - "line": 331, - "column": 78 + "line": 325, + "column": 68 } } }, @@ -116677,16 +117134,16 @@ "binop": null }, "value": "err", - "start": 12694, - "end": 12697, + "start": 12595, + "end": 12598, "loc": { "start": { - "line": 331, - "column": 78 + "line": 325, + "column": 68 }, "end": { - "line": 331, - "column": 81 + "line": 325, + "column": 71 } } }, @@ -116703,16 +117160,16 @@ "binop": null, "updateContext": null }, - "start": 12697, - "end": 12698, + "start": 12598, + "end": 12599, "loc": { "start": { - "line": 331, - "column": 81 + "line": 325, + "column": 71 }, "end": { - "line": 331, - "column": 82 + "line": 325, + "column": 72 } } }, @@ -116729,16 +117186,16 @@ "binop": null }, "value": "res", - "start": 12699, - "end": 12702, + "start": 12600, + "end": 12603, "loc": { "start": { - "line": 331, - "column": 83 + "line": 325, + "column": 73 }, "end": { - "line": 331, - "column": 86 + "line": 325, + "column": 76 } } }, @@ -116755,16 +117212,16 @@ "binop": null, "updateContext": null }, - "start": 12702, - "end": 12703, + "start": 12603, + "end": 12604, "loc": { "start": { - "line": 331, - "column": 86 + "line": 325, + "column": 76 }, "end": { - "line": 331, - "column": 87 + "line": 325, + "column": 77 } } }, @@ -116781,16 +117238,16 @@ "binop": null, "updateContext": null }, - "start": 12704, - "end": 12707, + "start": 12605, + "end": 12608, "loc": { "start": { - "line": 331, - "column": 88 + "line": 325, + "column": 78 }, "end": { - "line": 331, - "column": 91 + "line": 325, + "column": 81 } } }, @@ -116807,16 +117264,16 @@ "binop": null }, "value": "types", - "start": 12707, - "end": 12712, + "start": 12608, + "end": 12613, "loc": { "start": { - "line": 331, - "column": 91 + "line": 325, + "column": 81 }, "end": { - "line": 331, - "column": 96 + "line": 325, + "column": 86 } } }, @@ -116832,16 +117289,16 @@ "postfix": false, "binop": null }, - "start": 12712, - "end": 12713, + "start": 12613, + "end": 12614, "loc": { "start": { - "line": 331, - "column": 96 + "line": 325, + "column": 86 }, "end": { - "line": 331, - "column": 97 + "line": 325, + "column": 87 } } }, @@ -116858,16 +117315,16 @@ "binop": null, "updateContext": null }, - "start": 12714, - "end": 12716, + "start": 12615, + "end": 12617, "loc": { "start": { - "line": 331, - "column": 98 + "line": 325, + "column": 88 }, "end": { - "line": 331, - "column": 100 + "line": 325, + "column": 90 } } }, @@ -116883,16 +117340,16 @@ "postfix": false, "binop": null }, - "start": 12717, - "end": 12718, + "start": 12618, + "end": 12619, "loc": { "start": { - "line": 331, - "column": 101 + "line": 325, + "column": 91 }, "end": { - "line": 331, - "column": 102 + "line": 325, + "column": 92 } } }, @@ -116909,15 +117366,15 @@ "binop": null }, "value": "recognizerCallback", - "start": 12729, - "end": 12747, + "start": 12630, + "end": 12648, "loc": { "start": { - "line": 332, + "line": 326, "column": 10 }, "end": { - "line": 332, + "line": 326, "column": 28 } } @@ -116934,15 +117391,15 @@ "postfix": false, "binop": null }, - "start": 12747, - "end": 12748, + "start": 12648, + "end": 12649, "loc": { "start": { - "line": 332, + "line": 326, "column": 28 }, "end": { - "line": 332, + "line": 326, "column": 29 } } @@ -116960,15 +117417,15 @@ "binop": null }, "value": "editor", - "start": 12748, - "end": 12754, + "start": 12649, + "end": 12655, "loc": { "start": { - "line": 332, + "line": 326, "column": 29 }, "end": { - "line": 332, + "line": 326, "column": 35 } } @@ -116986,15 +117443,15 @@ "binop": null, "updateContext": null }, - "start": 12754, - "end": 12755, + "start": 12655, + "end": 12656, "loc": { "start": { - "line": 332, + "line": 326, "column": 35 }, "end": { - "line": 332, + "line": 326, "column": 36 } } @@ -117012,15 +117469,15 @@ "binop": null }, "value": "err", - "start": 12756, - "end": 12759, + "start": 12657, + "end": 12660, "loc": { "start": { - "line": 332, + "line": 326, "column": 37 }, "end": { - "line": 332, + "line": 326, "column": 40 } } @@ -117038,15 +117495,15 @@ "binop": null, "updateContext": null }, - "start": 12759, - "end": 12760, + "start": 12660, + "end": 12661, "loc": { "start": { - "line": 332, + "line": 326, "column": 40 }, "end": { - "line": 332, + "line": 326, "column": 41 } } @@ -117064,15 +117521,15 @@ "binop": null }, "value": "res", - "start": 12761, - "end": 12764, + "start": 12662, + "end": 12665, "loc": { "start": { - "line": 332, + "line": 326, "column": 42 }, "end": { - "line": 332, + "line": 326, "column": 45 } } @@ -117090,15 +117547,15 @@ "binop": null, "updateContext": null }, - "start": 12764, - "end": 12765, + "start": 12665, + "end": 12666, "loc": { "start": { - "line": 332, + "line": 326, "column": 45 }, "end": { - "line": 332, + "line": 326, "column": 46 } } @@ -117116,15 +117573,15 @@ "binop": null, "updateContext": null }, - "start": 12766, - "end": 12769, + "start": 12667, + "end": 12670, "loc": { "start": { - "line": 332, + "line": 326, "column": 47 }, "end": { - "line": 332, + "line": 326, "column": 50 } } @@ -117142,15 +117599,15 @@ "binop": null }, "value": "types", - "start": 12769, - "end": 12774, + "start": 12670, + "end": 12675, "loc": { "start": { - "line": 332, + "line": 326, "column": 50 }, "end": { - "line": 332, + "line": 326, "column": 55 } } @@ -117167,15 +117624,15 @@ "postfix": false, "binop": null }, - "start": 12774, - "end": 12775, + "start": 12675, + "end": 12676, "loc": { "start": { - "line": 332, + "line": 326, "column": 55 }, "end": { - "line": 332, + "line": 326, "column": 56 } } @@ -117193,15 +117650,15 @@ "binop": null, "updateContext": null }, - "start": 12775, - "end": 12776, + "start": 12676, + "end": 12677, "loc": { "start": { - "line": 332, + "line": 326, "column": 56 }, "end": { - "line": 332, + "line": 326, "column": 57 } } @@ -117218,19 +117675,71 @@ "postfix": false, "binop": null }, - "start": 12785, - "end": 12786, + "start": 12686, + "end": 12687, "loc": { "start": { - "line": 333, + "line": 327, "column": 8 }, "end": { - "line": 333, + "line": 327, "column": 9 } } }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12687, + "end": 12688, + "loc": { + "start": { + "line": 327, + "column": 9 + }, + "end": { + "line": 327, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "conversionState", + "start": 12689, + "end": 12704, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 26 + } + } + }, { "type": { "label": ")", @@ -117243,16 +117752,16 @@ "postfix": false, "binop": null }, - "start": 12786, - "end": 12787, + "start": 12704, + "end": 12705, "loc": { "start": { - "line": 333, - "column": 9 + "line": 327, + "column": 26 }, "end": { - "line": 333, - "column": 10 + "line": 327, + "column": 27 } } }, @@ -117269,16 +117778,16 @@ "binop": null, "updateContext": null }, - "start": 12787, - "end": 12788, + "start": 12705, + "end": 12706, "loc": { "start": { - "line": 333, - "column": 10 + "line": 327, + "column": 27 }, "end": { - "line": 333, - "column": 11 + "line": 327, + "column": 28 } } }, @@ -117294,15 +117803,15 @@ "postfix": false, "binop": null }, - "start": 12795, - "end": 12796, + "start": 12713, + "end": 12714, "loc": { "start": { - "line": 334, + "line": 328, "column": 6 }, "end": { - "line": 334, + "line": 328, "column": 7 } } @@ -117319,15 +117828,15 @@ "postfix": false, "binop": null }, - "start": 12796, - "end": 12797, + "start": 12714, + "end": 12715, "loc": { "start": { - "line": 334, + "line": 328, "column": 7 }, "end": { - "line": 334, + "line": 328, "column": 8 } } @@ -117345,15 +117854,15 @@ "binop": null, "updateContext": null }, - "start": 12797, - "end": 12798, + "start": 12715, + "end": 12716, "loc": { "start": { - "line": 334, + "line": 328, "column": 8 }, "end": { - "line": 334, + "line": 328, "column": 9 } } @@ -117370,15 +117879,15 @@ "postfix": false, "binop": null }, - "start": 12801, - "end": 12802, + "start": 12719, + "end": 12720, "loc": { "start": { - "line": 335, + "line": 329, "column": 2 }, "end": { - "line": 335, + "line": 329, "column": 3 } } @@ -117395,35 +117904,19 @@ "postfix": false, "binop": null }, - "start": 12803, - "end": 12804, + "start": 12721, + "end": 12722, "loc": { "start": { - "line": 336, + "line": 330, "column": 0 }, "end": { - "line": 336, + "line": 330, "column": 1 } } }, - { - "type": "CommentBlock", - "value": "*\n * Launch the resize.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 12806, - "end": 12885, - "loc": { - "start": { - "line": 338, - "column": 0 - }, - "end": { - "line": 342, - "column": 3 - } - } - }, { "type": { "label": "function", @@ -117438,15 +117931,15 @@ "binop": null }, "value": "function", - "start": 12886, - "end": 12894, + "start": 12724, + "end": 12732, "loc": { "start": { - "line": 343, + "line": 332, "column": 0 }, "end": { - "line": 343, + "line": 332, "column": 8 } } @@ -117463,16 +117956,16 @@ "postfix": false, "binop": null }, - "value": "launchResize", - "start": 12895, - "end": 12907, + "value": "launchConfig", + "start": 12733, + "end": 12745, "loc": { "start": { - "line": 343, + "line": 332, "column": 9 }, "end": { - "line": 343, + "line": 332, "column": 21 } } @@ -117489,15 +117982,15 @@ "postfix": false, "binop": null }, - "start": 12907, - "end": 12908, + "start": 12745, + "end": 12746, "loc": { "start": { - "line": 343, + "line": 332, "column": 21 }, "end": { - "line": 343, + "line": 332, "column": 22 } } @@ -117515,15 +118008,15 @@ "binop": null }, "value": "editor", - "start": 12908, - "end": 12914, + "start": 12746, + "end": 12752, "loc": { "start": { - "line": 343, + "line": 332, "column": 22 }, "end": { - "line": 343, + "line": 332, "column": 28 } } @@ -117541,15 +118034,15 @@ "binop": null, "updateContext": null }, - "start": 12914, - "end": 12915, + "start": 12752, + "end": 12753, "loc": { "start": { - "line": 343, + "line": 332, "column": 28 }, "end": { - "line": 343, + "line": 332, "column": 29 } } @@ -117567,15 +118060,15 @@ "binop": null }, "value": "model", - "start": 12916, - "end": 12921, + "start": 12754, + "end": 12759, "loc": { "start": { - "line": 343, + "line": 332, "column": 30 }, "end": { - "line": 343, + "line": 332, "column": 35 } } @@ -117592,15 +118085,15 @@ "postfix": false, "binop": null }, - "start": 12921, - "end": 12922, + "start": 12759, + "end": 12760, "loc": { "start": { - "line": 343, + "line": 332, "column": 35 }, "end": { - "line": 343, + "line": 332, "column": 36 } } @@ -117617,15 +118110,15 @@ "postfix": false, "binop": null }, - "start": 12923, - "end": 12924, + "start": 12761, + "end": 12762, "loc": { "start": { - "line": 343, + "line": 332, "column": 37 }, "end": { - "line": 343, + "line": 332, "column": 38 } } @@ -117645,15 +118138,15 @@ "updateContext": null }, "value": "if", - "start": 12927, - "end": 12929, + "start": 12765, + "end": 12767, "loc": { "start": { - "line": 344, + "line": 333, "column": 2 }, "end": { - "line": 344, + "line": 333, "column": 4 } } @@ -117670,15 +118163,15 @@ "postfix": false, "binop": null }, - "start": 12930, - "end": 12931, + "start": 12768, + "end": 12769, "loc": { "start": { - "line": 344, + "line": 333, "column": 5 }, "end": { - "line": 344, + "line": 333, "column": 6 } } @@ -117696,15 +118189,15 @@ "binop": null }, "value": "editor", - "start": 12931, - "end": 12937, + "start": 12769, + "end": 12775, "loc": { "start": { - "line": 344, + "line": 333, "column": 6 }, "end": { - "line": 344, + "line": 333, "column": 12 } } @@ -117722,15 +118215,15 @@ "binop": null, "updateContext": null }, - "start": 12937, - "end": 12938, + "start": 12775, + "end": 12776, "loc": { "start": { - "line": 344, + "line": 333, "column": 12 }, "end": { - "line": 344, + "line": 333, "column": 13 } } @@ -117748,15 +118241,15 @@ "binop": null }, "value": "recognizer", - "start": 12938, - "end": 12948, + "start": 12776, + "end": 12786, "loc": { "start": { - "line": 344, + "line": 333, "column": 13 }, "end": { - "line": 344, + "line": 333, "column": 23 } } @@ -117775,15 +118268,15 @@ "updateContext": null }, "value": "&&", - "start": 12949, - "end": 12951, + "start": 12787, + "end": 12789, "loc": { "start": { - "line": 344, + "line": 333, "column": 24 }, "end": { - "line": 344, + "line": 333, "column": 26 } } @@ -117801,15 +118294,15 @@ "binop": null }, "value": "editor", - "start": 12952, - "end": 12958, + "start": 12790, + "end": 12796, "loc": { "start": { - "line": 344, + "line": 333, "column": 27 }, "end": { - "line": 344, + "line": 333, "column": 33 } } @@ -117827,15 +118320,15 @@ "binop": null, "updateContext": null }, - "start": 12958, - "end": 12959, + "start": 12796, + "end": 12797, "loc": { "start": { - "line": 344, + "line": 333, "column": 33 }, "end": { - "line": 344, + "line": 333, "column": 34 } } @@ -117853,15 +118346,15 @@ "binop": null }, "value": "recognizer", - "start": 12959, - "end": 12969, + "start": 12797, + "end": 12807, "loc": { "start": { - "line": 344, + "line": 333, "column": 34 }, "end": { - "line": 344, + "line": 333, "column": 44 } } @@ -117879,15 +118372,15 @@ "binop": null, "updateContext": null }, - "start": 12969, - "end": 12970, + "start": 12807, + "end": 12808, "loc": { "start": { - "line": 344, + "line": 333, "column": 44 }, "end": { - "line": 344, + "line": 333, "column": 45 } } @@ -117904,17 +118397,17 @@ "postfix": false, "binop": null }, - "value": "resize", - "start": 12970, - "end": 12976, + "value": "sendConfiguration", + "start": 12808, + "end": 12825, "loc": { "start": { - "line": 344, + "line": 333, "column": 45 }, "end": { - "line": 344, - "column": 51 + "line": 333, + "column": 62 } } }, @@ -117930,16 +118423,16 @@ "postfix": false, "binop": null }, - "start": 12976, - "end": 12977, + "start": 12825, + "end": 12826, "loc": { "start": { - "line": 344, - "column": 51 + "line": 333, + "column": 62 }, "end": { - "line": 344, - "column": 52 + "line": 333, + "column": 63 } } }, @@ -117955,16 +118448,16 @@ "postfix": false, "binop": null }, - "start": 12978, - "end": 12979, + "start": 12827, + "end": 12828, "loc": { "start": { - "line": 344, - "column": 53 + "line": 333, + "column": 64 }, "end": { - "line": 344, - "column": 54 + "line": 333, + "column": 65 } } }, @@ -117981,15 +118474,15 @@ "binop": null }, "value": "editor", - "start": 12984, - "end": 12990, + "start": 12833, + "end": 12839, "loc": { "start": { - "line": 345, + "line": 334, "column": 4 }, "end": { - "line": 345, + "line": 334, "column": 10 } } @@ -118007,15 +118500,15 @@ "binop": null, "updateContext": null }, - "start": 12990, - "end": 12991, + "start": 12839, + "end": 12840, "loc": { "start": { - "line": 345, + "line": 334, "column": 10 }, "end": { - "line": 345, + "line": 334, "column": 11 } } @@ -118033,15 +118526,15 @@ "binop": null }, "value": "recognizerContext", - "start": 12991, - "end": 13008, + "start": 12840, + "end": 12857, "loc": { "start": { - "line": 345, + "line": 334, "column": 11 }, "end": { - "line": 345, + "line": 334, "column": 28 } } @@ -118059,15 +118552,15 @@ "binop": null, "updateContext": null }, - "start": 13008, - "end": 13009, + "start": 12857, + "end": 12858, "loc": { "start": { - "line": 345, + "line": 334, "column": 28 }, "end": { - "line": 345, + "line": 334, "column": 29 } } @@ -118085,15 +118578,15 @@ "binop": null }, "value": "initPromise", - "start": 13009, - "end": 13020, + "start": 12858, + "end": 12869, "loc": { "start": { - "line": 345, + "line": 334, "column": 29 }, "end": { - "line": 345, + "line": 334, "column": 40 } } @@ -118111,15 +118604,15 @@ "binop": null, "updateContext": null }, - "start": 13027, - "end": 13028, + "start": 12876, + "end": 12877, "loc": { "start": { - "line": 346, + "line": 335, "column": 6 }, "end": { - "line": 346, + "line": 335, "column": 7 } } @@ -118137,15 +118630,15 @@ "binop": null }, "value": "then", - "start": 13028, - "end": 13032, + "start": 12877, + "end": 12881, "loc": { "start": { - "line": 346, + "line": 335, "column": 7 }, "end": { - "line": 346, + "line": 335, "column": 11 } } @@ -118162,15 +118655,15 @@ "postfix": false, "binop": null }, - "start": 13032, - "end": 13033, + "start": 12881, + "end": 12882, "loc": { "start": { - "line": 346, + "line": 335, "column": 11 }, "end": { - "line": 346, + "line": 335, "column": 12 } } @@ -118187,15 +118680,15 @@ "postfix": false, "binop": null }, - "start": 13033, - "end": 13034, + "start": 12882, + "end": 12883, "loc": { "start": { - "line": 346, + "line": 335, "column": 12 }, "end": { - "line": 346, + "line": 335, "column": 13 } } @@ -118212,15 +118705,15 @@ "postfix": false, "binop": null }, - "start": 13034, - "end": 13035, + "start": 12883, + "end": 12884, "loc": { "start": { - "line": 346, + "line": 335, "column": 13 }, "end": { - "line": 346, + "line": 335, "column": 14 } } @@ -118238,15 +118731,15 @@ "binop": null, "updateContext": null }, - "start": 13036, - "end": 13038, + "start": 12885, + "end": 12887, "loc": { "start": { - "line": 346, + "line": 335, "column": 15 }, "end": { - "line": 346, + "line": 335, "column": 17 } } @@ -118263,23 +118756,48 @@ "postfix": false, "binop": null }, - "start": 13039, - "end": 13040, + "start": 12888, + "end": 12889, "loc": { "start": { - "line": 346, + "line": 335, "column": 18 }, "end": { - "line": 346, + "line": 335, "column": 19 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "editor", + "start": 12898, + "end": 12904, + "loc": { + "start": { + "line": 336, + "column": 8 + }, + "end": { + "line": 336, + "column": 14 + } + } + }, + { + "type": { + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -118290,17 +118808,16 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 13049, - "end": 13054, + "start": 12904, + "end": 12905, "loc": { "start": { - "line": 347, - "column": 8 + "line": 336, + "column": 14 }, "end": { - "line": 347, - "column": 13 + "line": 336, + "column": 15 } } }, @@ -118316,44 +118833,43 @@ "postfix": false, "binop": null }, - "value": "editorRef", - "start": 13055, - "end": 13064, + "value": "recognizer", + "start": 12905, + "end": 12915, "loc": { "start": { - "line": 347, - "column": 14 + "line": 336, + "column": 15 }, "end": { - "line": 347, - "column": 23 + "line": 336, + "column": 25 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 13065, - "end": 13066, + "start": 12915, + "end": 12916, "loc": { "start": { - "line": 347, - "column": 24 + "line": 336, + "column": 25 }, "end": { - "line": 347, - "column": 25 + "line": 336, + "column": 26 } } }, @@ -118369,43 +118885,42 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 13067, - "end": 13073, + "value": "sendConfiguration", + "start": 12916, + "end": 12933, "loc": { "start": { - "line": 347, + "line": 336, "column": 26 }, "end": { - "line": 347, - "column": 32 + "line": 336, + "column": 43 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13073, - "end": 13074, + "start": 12933, + "end": 12934, "loc": { "start": { - "line": 347, - "column": 32 + "line": 336, + "column": 43 }, "end": { - "line": 347, - "column": 33 + "line": 336, + "column": 44 } } }, @@ -118421,17 +118936,17 @@ "postfix": false, "binop": null }, - "value": "window", - "start": 13083, - "end": 13089, + "value": "editor", + "start": 12934, + "end": 12940, "loc": { "start": { - "line": 348, - "column": 8 + "line": 336, + "column": 44 }, "end": { - "line": 348, - "column": 14 + "line": 336, + "column": 50 } } }, @@ -118448,16 +118963,16 @@ "binop": null, "updateContext": null }, - "start": 13089, - "end": 13090, + "start": 12940, + "end": 12941, "loc": { "start": { - "line": 348, - "column": 14 + "line": 336, + "column": 50 }, "end": { - "line": 348, - "column": 15 + "line": 336, + "column": 51 } } }, @@ -118473,42 +118988,43 @@ "postfix": false, "binop": null }, - "value": "clearTimeout", - "start": 13090, - "end": 13102, + "value": "recognizerContext", + "start": 12941, + "end": 12958, "loc": { "start": { - "line": 348, - "column": 15 + "line": 336, + "column": 51 }, "end": { - "line": 348, - "column": 27 + "line": 336, + "column": 68 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 13102, - "end": 13103, + "start": 12958, + "end": 12959, "loc": { "start": { - "line": 348, - "column": 27 + "line": 336, + "column": 68 }, "end": { - "line": 348, - "column": 28 + "line": 336, + "column": 69 } } }, @@ -118524,24 +119040,24 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 13103, - "end": 13109, + "value": "model", + "start": 12960, + "end": 12965, "loc": { "start": { - "line": 348, - "column": 28 + "line": 336, + "column": 70 }, "end": { - "line": 348, - "column": 34 + "line": 336, + "column": 75 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -118551,23 +119067,23 @@ "binop": null, "updateContext": null }, - "start": 13109, - "end": 13110, + "start": 12965, + "end": 12966, "loc": { "start": { - "line": 348, - "column": 34 + "line": 336, + "column": 75 }, "end": { - "line": 348, - "column": 35 + "line": 336, + "column": 76 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -118576,25 +119092,24 @@ "postfix": false, "binop": null }, - "value": "resizeTimer", - "start": 13110, - "end": 13121, + "start": 12967, + "end": 12968, "loc": { "start": { - "line": 348, - "column": 35 + "line": 336, + "column": 77 }, "end": { - "line": 348, - "column": 46 + "line": 336, + "column": 78 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -118602,22 +119117,23 @@ "postfix": false, "binop": null }, - "start": 13121, - "end": 13122, + "value": "err", + "start": 12968, + "end": 12971, "loc": { "start": { - "line": 348, - "column": 46 + "line": 336, + "column": 78 }, "end": { - "line": 348, - "column": 47 + "line": 336, + "column": 81 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -118628,16 +119144,16 @@ "binop": null, "updateContext": null }, - "start": 13122, - "end": 13123, + "start": 12971, + "end": 12972, "loc": { "start": { - "line": 348, - "column": 47 + "line": 336, + "column": 81 }, "end": { - "line": 348, - "column": 48 + "line": 336, + "column": 82 } } }, @@ -118653,24 +119169,24 @@ "postfix": false, "binop": null }, - "value": "editorRef", - "start": 13132, - "end": 13141, + "value": "res", + "start": 12973, + "end": 12976, "loc": { "start": { - "line": 349, - "column": 8 + "line": 336, + "column": 83 }, "end": { - "line": 349, - "column": 17 + "line": 336, + "column": 86 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -118680,77 +119196,76 @@ "binop": null, "updateContext": null }, - "start": 13141, - "end": 13142, + "start": 12976, + "end": 12977, "loc": { "start": { - "line": 349, - "column": 17 + "line": 336, + "column": 86 }, "end": { - "line": 349, - "column": 18 + "line": 336, + "column": 87 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "...", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "resizeTimer", - "start": 13142, - "end": 13153, + "start": 12978, + "end": 12981, "loc": { "start": { - "line": 349, - "column": 18 + "line": 336, + "column": 88 }, "end": { - "line": 349, - "column": 29 + "line": 336, + "column": 91 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 13154, - "end": 13155, + "value": "types", + "start": 12981, + "end": 12986, "loc": { "start": { - "line": 349, - "column": 30 + "line": 336, + "column": 91 }, "end": { - "line": 349, - "column": 31 + "line": 336, + "column": 96 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -118758,24 +119273,23 @@ "postfix": false, "binop": null }, - "value": "window", - "start": 13156, - "end": 13162, + "start": 12986, + "end": 12987, "loc": { "start": { - "line": 349, - "column": 32 + "line": 336, + "column": 96 }, "end": { - "line": 349, - "column": 38 + "line": 336, + "column": 97 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -118785,23 +119299,23 @@ "binop": null, "updateContext": null }, - "start": 13162, - "end": 13163, + "start": 12988, + "end": 12990, "loc": { "start": { - "line": 349, - "column": 38 + "line": 336, + "column": 98 }, "end": { - "line": 349, - "column": 39 + "line": 336, + "column": 100 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -118810,24 +119324,23 @@ "postfix": false, "binop": null }, - "value": "setTimeout", - "start": 13163, - "end": 13173, + "start": 12991, + "end": 12992, "loc": { "start": { - "line": 349, - "column": 39 + "line": 336, + "column": 101 }, "end": { - "line": 349, - "column": 49 + "line": 336, + "column": 102 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -118836,16 +119349,17 @@ "postfix": false, "binop": null }, - "start": 13173, - "end": 13174, + "value": "recognizerCallback", + "start": 13003, + "end": 13021, "loc": { "start": { - "line": 349, - "column": 49 + "line": 337, + "column": 10 }, "end": { - "line": 349, - "column": 50 + "line": 337, + "column": 28 } } }, @@ -118861,24 +119375,24 @@ "postfix": false, "binop": null }, - "start": 13174, - "end": 13175, + "start": 13021, + "end": 13022, "loc": { "start": { - "line": 349, - "column": 50 + "line": 337, + "column": 28 }, "end": { - "line": 349, - "column": 51 + "line": 337, + "column": 29 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -118886,22 +119400,23 @@ "postfix": false, "binop": null }, - "start": 13175, - "end": 13176, + "value": "editor", + "start": 13022, + "end": 13028, "loc": { "start": { - "line": 349, - "column": 51 + "line": 337, + "column": 29 }, "end": { - "line": 349, - "column": 52 + "line": 337, + "column": 35 } } }, { "type": { - "label": "=>", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -118912,23 +119427,23 @@ "binop": null, "updateContext": null }, - "start": 13177, - "end": 13179, + "start": 13028, + "end": 13029, "loc": { "start": { - "line": 349, - "column": 53 + "line": 337, + "column": 35 }, "end": { - "line": 349, - "column": 55 + "line": 337, + "column": 36 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -118937,101 +119452,102 @@ "postfix": false, "binop": null }, - "start": 13180, - "end": 13181, + "value": "err", + "start": 13030, + "end": 13033, "loc": { "start": { - "line": 349, - "column": 56 + "line": 337, + "column": 37 }, "end": { - "line": 349, - "column": 57 + "line": 337, + "column": 40 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "editor", - "start": 13192, - "end": 13198, + "start": 13033, + "end": 13034, "loc": { "start": { - "line": 350, - "column": 10 + "line": 337, + "column": 40 }, "end": { - "line": 350, - "column": 16 + "line": 337, + "column": 41 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13198, - "end": 13199, + "value": "res", + "start": 13035, + "end": 13038, "loc": { "start": { - "line": 350, - "column": 16 + "line": 337, + "column": 42 }, "end": { - "line": 350, - "column": 17 + "line": 337, + "column": 45 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "recognizer", - "start": 13199, - "end": 13209, + "start": 13038, + "end": 13039, "loc": { "start": { - "line": 350, - "column": 17 + "line": 337, + "column": 45 }, "end": { - "line": 350, - "column": 27 + "line": 337, + "column": 46 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "...", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -119041,16 +119557,16 @@ "binop": null, "updateContext": null }, - "start": 13209, - "end": 13210, + "start": 13040, + "end": 13043, "loc": { "start": { - "line": 350, - "column": 27 + "line": 337, + "column": 47 }, "end": { - "line": 350, - "column": 28 + "line": 337, + "column": 50 } } }, @@ -119066,25 +119582,25 @@ "postfix": false, "binop": null }, - "value": "resize", - "start": 13210, - "end": 13216, + "value": "types", + "start": 13043, + "end": 13048, "loc": { "start": { - "line": 350, - "column": 28 + "line": 337, + "column": 50 }, "end": { - "line": 350, - "column": 34 + "line": 337, + "column": 55 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -119092,48 +119608,48 @@ "postfix": false, "binop": null }, - "start": 13216, - "end": 13217, + "start": 13048, + "end": 13049, "loc": { "start": { - "line": 350, - "column": 34 + "line": 337, + "column": 55 }, "end": { - "line": 350, - "column": 35 + "line": 337, + "column": 56 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "editor", - "start": 13217, - "end": 13223, + "start": 13049, + "end": 13050, "loc": { "start": { - "line": 350, - "column": 35 + "line": 337, + "column": 56 }, "end": { - "line": 350, - "column": 41 + "line": 337, + "column": 57 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -119141,27 +119657,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13223, - "end": 13224, + "start": 13059, + "end": 13060, "loc": { "start": { - "line": 350, - "column": 41 + "line": 338, + "column": 8 }, "end": { - "line": 350, - "column": 42 + "line": 338, + "column": 9 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -119169,23 +119684,22 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 13224, - "end": 13241, + "start": 13060, + "end": 13061, "loc": { "start": { - "line": 350, - "column": 42 + "line": 338, + "column": 9 }, "end": { - "line": 350, - "column": 59 + "line": 338, + "column": 10 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -119196,24 +119710,24 @@ "binop": null, "updateContext": null }, - "start": 13241, - "end": 13242, + "start": 13061, + "end": 13062, "loc": { "start": { - "line": 350, - "column": 59 + "line": 338, + "column": 10 }, "end": { - "line": 350, - "column": 60 + "line": 338, + "column": 11 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -119221,75 +119735,73 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 13243, - "end": 13248, + "start": 13069, + "end": 13070, "loc": { "start": { - "line": 350, - "column": 61 + "line": 339, + "column": 6 }, "end": { - "line": 350, - "column": 66 + "line": 339, + "column": 7 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13248, - "end": 13249, + "start": 13070, + "end": 13071, "loc": { "start": { - "line": 350, - "column": 66 + "line": 339, + "column": 7 }, "end": { - "line": 350, - "column": 67 + "line": 339, + "column": 8 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "editor", - "start": 13250, - "end": 13256, + "start": 13071, + "end": 13072, "loc": { "start": { - "line": 350, - "column": 68 + "line": 339, + "column": 8 }, "end": { - "line": 350, - "column": 74 + "line": 339, + "column": 9 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -119297,27 +119809,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13256, - "end": 13257, + "start": 13075, + "end": 13076, "loc": { "start": { - "line": 350, - "column": 74 + "line": 340, + "column": 2 }, "end": { - "line": 350, - "column": 75 + "line": 340, + "column": 3 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -119325,50 +119836,40 @@ "postfix": false, "binop": null }, - "value": "domElement", - "start": 13257, - "end": 13267, + "start": 13077, + "end": 13078, "loc": { "start": { - "line": 350, - "column": 75 + "line": 341, + "column": 0 }, "end": { - "line": 350, - "column": 85 + "line": 341, + "column": 1 } } }, { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13267, - "end": 13268, + "type": "CommentBlock", + "value": "*\n * Launch the resize.\n * @param {Editor} editor\n * @param {Model} model\n ", + "start": 13080, + "end": 13159, "loc": { "start": { - "line": 350, - "column": 85 + "line": 343, + "column": 0 }, "end": { - "line": 350, - "column": 86 + "line": 347, + "column": 3 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "function", + "keyword": "function", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -119377,16 +119878,17 @@ "postfix": false, "binop": null }, - "start": 13269, - "end": 13270, + "value": "function", + "start": 13160, + "end": 13168, "loc": { "start": { - "line": 350, - "column": 87 + "line": 348, + "column": 0 }, "end": { - "line": 350, - "column": 88 + "line": 348, + "column": 8 } } }, @@ -119402,43 +119904,42 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 13270, - "end": 13273, + "value": "launchResize", + "start": 13169, + "end": 13181, "loc": { "start": { - "line": 350, - "column": 88 + "line": 348, + "column": 9 }, "end": { - "line": 350, - "column": 91 + "line": 348, + "column": 21 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13273, - "end": 13274, + "start": 13181, + "end": 13182, "loc": { "start": { - "line": 350, - "column": 91 + "line": 348, + "column": 21 }, "end": { - "line": 350, - "column": 92 + "line": 348, + "column": 22 } } }, @@ -119454,17 +119955,17 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 13275, - "end": 13278, + "value": "editor", + "start": 13182, + "end": 13188, "loc": { "start": { - "line": 350, - "column": 93 + "line": 348, + "column": 22 }, "end": { - "line": 350, - "column": 96 + "line": 348, + "column": 28 } } }, @@ -119481,50 +119982,50 @@ "binop": null, "updateContext": null }, - "start": 13278, - "end": 13279, + "start": 13188, + "end": 13189, "loc": { "start": { - "line": 350, - "column": 96 + "line": 348, + "column": 28 }, "end": { - "line": 350, - "column": 97 + "line": 348, + "column": 29 } } }, { "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13280, - "end": 13283, + "value": "model", + "start": 13190, + "end": 13195, "loc": { "start": { - "line": 350, - "column": 98 + "line": 348, + "column": 30 }, "end": { - "line": 350, - "column": 101 + "line": 348, + "column": 35 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -119532,25 +120033,24 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 13283, - "end": 13288, + "start": 13195, + "end": 13196, "loc": { "start": { - "line": 350, - "column": 101 + "line": 348, + "column": 35 }, "end": { - "line": 350, - "column": 106 + "line": 348, + "column": 36 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -119558,23 +120058,24 @@ "postfix": false, "binop": null }, - "start": 13288, - "end": 13289, + "start": 13197, + "end": 13198, "loc": { "start": { - "line": 350, - "column": 106 + "line": 348, + "column": 37 }, "end": { - "line": 350, - "column": 107 + "line": 348, + "column": 38 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -119584,22 +120085,23 @@ "binop": null, "updateContext": null }, - "start": 13290, - "end": 13292, + "value": "if", + "start": 13201, + "end": 13203, "loc": { "start": { - "line": 350, - "column": 108 + "line": 349, + "column": 2 }, "end": { - "line": 350, - "column": 110 + "line": 349, + "column": 4 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -119609,16 +120111,16 @@ "postfix": false, "binop": null }, - "start": 13293, - "end": 13294, + "start": 13204, + "end": 13205, "loc": { "start": { - "line": 350, - "column": 111 + "line": 349, + "column": 5 }, "end": { - "line": 350, - "column": 112 + "line": 349, + "column": 6 } } }, @@ -119634,42 +120136,43 @@ "postfix": false, "binop": null }, - "value": "recognizerCallback", - "start": 13307, - "end": 13325, + "value": "editor", + "start": 13205, + "end": 13211, "loc": { "start": { - "line": 351, - "column": 12 + "line": 349, + "column": 6 }, "end": { - "line": 351, - "column": 30 + "line": 349, + "column": 12 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 13325, - "end": 13326, + "start": 13211, + "end": 13212, "loc": { "start": { - "line": 351, - "column": 30 + "line": 349, + "column": 12 }, "end": { - "line": 351, - "column": 31 + "line": 349, + "column": 13 } } }, @@ -119685,23 +120188,23 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 13326, - "end": 13332, + "value": "recognizer", + "start": 13212, + "end": 13222, "loc": { "start": { - "line": 351, - "column": 31 + "line": 349, + "column": 13 }, "end": { - "line": 351, - "column": 37 + "line": 349, + "column": 23 } } }, { "type": { - "label": ",", + "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -119709,19 +120212,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "start": 13332, - "end": 13333, + "value": "&&", + "start": 13223, + "end": 13225, "loc": { "start": { - "line": 351, - "column": 37 + "line": 349, + "column": 24 }, "end": { - "line": 351, - "column": 38 + "line": 349, + "column": 26 } } }, @@ -119737,24 +120241,24 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 13334, - "end": 13337, + "value": "editor", + "start": 13226, + "end": 13232, "loc": { "start": { - "line": 351, - "column": 39 + "line": 349, + "column": 27 }, "end": { - "line": 351, - "column": 42 + "line": 349, + "column": 33 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -119764,16 +120268,16 @@ "binop": null, "updateContext": null }, - "start": 13337, - "end": 13338, + "start": 13232, + "end": 13233, "loc": { "start": { - "line": 351, - "column": 42 + "line": 349, + "column": 33 }, "end": { - "line": 351, - "column": 43 + "line": 349, + "column": 34 } } }, @@ -119789,24 +120293,24 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 13339, - "end": 13342, + "value": "recognizer", + "start": 13233, + "end": 13243, "loc": { "start": { - "line": 351, - "column": 44 + "line": 349, + "column": 34 }, "end": { - "line": 351, - "column": 47 + "line": 349, + "column": 44 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -119816,50 +120320,50 @@ "binop": null, "updateContext": null }, - "start": 13342, - "end": 13343, + "start": 13243, + "end": 13244, "loc": { "start": { - "line": 351, - "column": 47 + "line": 349, + "column": 44 }, "end": { - "line": 351, - "column": 48 + "line": 349, + "column": 45 } } }, { "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13344, - "end": 13347, + "value": "resize", + "start": 13244, + "end": 13250, "loc": { "start": { - "line": 351, - "column": 49 + "line": 349, + "column": 45 }, "end": { - "line": 351, - "column": 52 + "line": 349, + "column": 51 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -119867,25 +120371,24 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 13347, - "end": 13352, + "start": 13250, + "end": 13251, "loc": { "start": { - "line": 351, - "column": 52 + "line": 349, + "column": 51 }, "end": { - "line": 351, - "column": 57 + "line": 349, + "column": 52 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -119893,48 +120396,48 @@ "postfix": false, "binop": null }, - "start": 13352, - "end": 13353, + "start": 13252, + "end": 13253, "loc": { "start": { - "line": 351, - "column": 57 + "line": 349, + "column": 53 }, "end": { - "line": 351, - "column": 58 + "line": 349, + "column": 54 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13353, - "end": 13354, + "value": "editor", + "start": 13258, + "end": 13264, "loc": { "start": { - "line": 351, - "column": 58 + "line": 350, + "column": 4 }, "end": { - "line": 351, - "column": 59 + "line": 350, + "column": 10 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -119942,26 +120445,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 13365, - "end": 13366, + "start": 13264, + "end": 13265, "loc": { "start": { - "line": 352, + "line": 350, "column": 10 }, "end": { - "line": 352, + "line": 350, "column": 11 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -119969,23 +120473,24 @@ "postfix": false, "binop": null }, - "start": 13366, - "end": 13367, + "value": "recognizerContext", + "start": 13265, + "end": 13282, "loc": { "start": { - "line": 352, + "line": 350, "column": 11 }, "end": { - "line": 352, - "column": 12 + "line": 350, + "column": 28 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -119995,24 +120500,24 @@ "binop": null, "updateContext": null }, - "start": 13367, - "end": 13368, + "start": 13282, + "end": 13283, "loc": { "start": { - "line": 352, - "column": 12 + "line": 350, + "column": 28 }, "end": { - "line": 352, - "column": 13 + "line": 350, + "column": 29 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -120020,23 +120525,24 @@ "postfix": false, "binop": null }, - "start": 13377, - "end": 13378, + "value": "initPromise", + "start": 13283, + "end": 13294, "loc": { "start": { - "line": 353, - "column": 8 + "line": 350, + "column": 29 }, "end": { - "line": 353, - "column": 9 + "line": 350, + "column": 40 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -120046,16 +120552,16 @@ "binop": null, "updateContext": null }, - "start": 13378, - "end": 13379, + "start": 13301, + "end": 13302, "loc": { "start": { - "line": 353, - "column": 9 + "line": 351, + "column": 6 }, "end": { - "line": 353, - "column": 10 + "line": 351, + "column": 7 } } }, @@ -120071,50 +120577,49 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 13380, - "end": 13386, + "value": "then", + "start": 13302, + "end": 13306, "loc": { "start": { - "line": 353, - "column": 11 + "line": 351, + "column": 7 }, "end": { - "line": 353, - "column": 17 + "line": 351, + "column": 11 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13386, - "end": 13387, + "start": 13306, + "end": 13307, "loc": { "start": { - "line": 353, - "column": 17 + "line": 351, + "column": 11 }, "end": { - "line": 353, - "column": 18 + "line": 351, + "column": 12 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -120123,23 +120628,22 @@ "postfix": false, "binop": null }, - "value": "configuration", - "start": 13387, - "end": 13400, + "start": 13307, + "end": 13308, "loc": { "start": { - "line": 353, - "column": 18 + "line": 351, + "column": 12 }, "end": { - "line": 353, - "column": 31 + "line": 351, + "column": 13 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -120147,53 +120651,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13400, - "end": 13401, + "start": 13308, + "end": 13309, "loc": { "start": { - "line": 353, - "column": 31 + "line": 351, + "column": 13 }, "end": { - "line": 353, - "column": 32 + "line": 351, + "column": 14 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "resizeTriggerDelay", - "start": 13401, - "end": 13419, + "start": 13310, + "end": 13312, "loc": { "start": { - "line": 353, - "column": 32 + "line": 351, + "column": 15 }, "end": { - "line": 353, - "column": 50 + "line": 351, + "column": 17 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -120201,23 +120704,24 @@ "postfix": false, "binop": null }, - "start": 13419, - "end": 13420, + "start": 13313, + "end": 13314, "loc": { "start": { - "line": 353, - "column": 50 + "line": 351, + "column": 18 }, "end": { - "line": 353, - "column": 51 + "line": 351, + "column": 19 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": "const", + "keyword": "const", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -120227,24 +120731,25 @@ "binop": null, "updateContext": null }, - "start": 13420, - "end": 13421, + "value": "const", + "start": 13323, + "end": 13328, "loc": { "start": { - "line": 353, - "column": 51 + "line": 352, + "column": 8 }, "end": { - "line": 353, - "column": 52 + "line": 352, + "column": 13 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -120252,41 +120757,70 @@ "postfix": false, "binop": null }, - "start": 13428, - "end": 13429, + "value": "editorRef", + "start": 13329, + "end": 13338, "loc": { "start": { - "line": 354, - "column": 6 + "line": 352, + "column": 14 }, "end": { - "line": 354, - "column": 7 + "line": 352, + "column": 23 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 13339, + "end": 13340, + "loc": { + "start": { + "line": 352, + "column": 24 + }, + "end": { + "line": 352, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, - "start": 13429, - "end": 13430, + "value": "editor", + "start": 13341, + "end": 13347, "loc": { "start": { - "line": 354, - "column": 7 + "line": 352, + "column": 26 }, "end": { - "line": 354, - "column": 8 + "line": 352, + "column": 32 } } }, @@ -120303,16 +120837,16 @@ "binop": null, "updateContext": null }, - "start": 13430, - "end": 13431, + "start": 13347, + "end": 13348, "loc": { "start": { - "line": 354, - "column": 8 + "line": 352, + "column": 32 }, "end": { - "line": 354, - "column": 9 + "line": 352, + "column": 33 } } }, @@ -120328,16 +120862,16 @@ "postfix": false, "binop": null }, - "value": "SmartGuide", - "start": 13436, - "end": 13446, + "value": "window", + "start": 13357, + "end": 13363, "loc": { "start": { - "line": 355, - "column": 4 + "line": 353, + "column": 8 }, "end": { - "line": 355, + "line": 353, "column": 14 } } @@ -120355,15 +120889,15 @@ "binop": null, "updateContext": null }, - "start": 13446, - "end": 13447, + "start": 13363, + "end": 13364, "loc": { "start": { - "line": 355, + "line": 353, "column": 14 }, "end": { - "line": 355, + "line": 353, "column": 15 } } @@ -120380,17 +120914,17 @@ "postfix": false, "binop": null }, - "value": "resize", - "start": 13447, - "end": 13453, + "value": "clearTimeout", + "start": 13364, + "end": 13376, "loc": { "start": { - "line": 355, + "line": 353, "column": 15 }, "end": { - "line": 355, - "column": 21 + "line": 353, + "column": 27 } } }, @@ -120406,16 +120940,16 @@ "postfix": false, "binop": null }, - "start": 13453, - "end": 13454, + "start": 13376, + "end": 13377, "loc": { "start": { - "line": 355, - "column": 21 + "line": 353, + "column": 27 }, "end": { - "line": 355, - "column": 22 + "line": 353, + "column": 28 } } }, @@ -120432,16 +120966,16 @@ "binop": null }, "value": "editor", - "start": 13454, - "end": 13460, + "start": 13377, + "end": 13383, "loc": { "start": { - "line": 355, - "column": 22 + "line": 353, + "column": 28 }, "end": { - "line": 355, - "column": 28 + "line": 353, + "column": 34 } } }, @@ -120458,16 +120992,16 @@ "binop": null, "updateContext": null }, - "start": 13460, - "end": 13461, + "start": 13383, + "end": 13384, "loc": { "start": { - "line": 355, - "column": 28 + "line": 353, + "column": 34 }, "end": { - "line": 355, - "column": 29 + "line": 353, + "column": 35 } } }, @@ -120483,17 +121017,17 @@ "postfix": false, "binop": null }, - "value": "smartGuide", - "start": 13461, - "end": 13471, + "value": "resizeTimer", + "start": 13384, + "end": 13395, "loc": { "start": { - "line": 355, - "column": 29 + "line": 353, + "column": 35 }, "end": { - "line": 355, - "column": 39 + "line": 353, + "column": 46 } } }, @@ -120509,16 +121043,16 @@ "postfix": false, "binop": null }, - "start": 13471, - "end": 13472, + "start": 13395, + "end": 13396, "loc": { "start": { - "line": 355, - "column": 39 + "line": 353, + "column": 46 }, "end": { - "line": 355, - "column": 40 + "line": 353, + "column": 47 } } }, @@ -120535,24 +121069,24 @@ "binop": null, "updateContext": null }, - "start": 13472, - "end": 13473, + "start": 13396, + "end": 13397, "loc": { "start": { - "line": 355, - "column": 40 + "line": 353, + "column": 47 }, "end": { - "line": 355, - "column": 41 + "line": 353, + "column": 48 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -120560,22 +121094,23 @@ "postfix": false, "binop": null }, - "start": 13476, - "end": 13477, + "value": "editorRef", + "start": 13406, + "end": 13415, "loc": { "start": { - "line": 356, - "column": 2 + "line": 354, + "column": 8 }, "end": { - "line": 356, - "column": 3 + "line": 354, + "column": 17 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -120583,61 +121118,72 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 13478, - "end": 13479, + "start": 13415, + "end": 13416, "loc": { "start": { - "line": 357, - "column": 0 + "line": 354, + "column": 17 }, "end": { - "line": 357, - "column": 1 + "line": 354, + "column": 18 } } }, { - "type": "CommentBlock", - "value": "*\n * Launch wait for idle\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 13481, - "end": 13562, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "resizeTimer", + "start": 13416, + "end": 13427, "loc": { "start": { - "line": 359, - "column": 0 + "line": 354, + "column": 18 }, "end": { - "line": 363, - "column": 3 + "line": 354, + "column": 29 } } }, { "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "function", - "start": 13563, - "end": 13571, + "value": "=", + "start": 13428, + "end": 13429, "loc": { "start": { - "line": 364, - "column": 0 + "line": 354, + "column": 30 }, "end": { - "line": 364, - "column": 8 + "line": 354, + "column": 31 } } }, @@ -120653,42 +121199,43 @@ "postfix": false, "binop": null }, - "value": "launchWaitForIdle", - "start": 13572, - "end": 13589, + "value": "window", + "start": 13430, + "end": 13436, "loc": { "start": { - "line": 364, - "column": 9 + "line": 354, + "column": 32 }, "end": { - "line": 364, - "column": 26 + "line": 354, + "column": 38 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 13589, - "end": 13590, + "start": 13436, + "end": 13437, "loc": { "start": { - "line": 364, - "column": 26 + "line": 354, + "column": 38 }, "end": { - "line": 364, - "column": 27 + "line": 354, + "column": 39 } } }, @@ -120704,50 +121251,49 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 13590, - "end": 13596, + "value": "setTimeout", + "start": 13437, + "end": 13447, "loc": { "start": { - "line": 364, - "column": 27 + "line": 354, + "column": 39 }, "end": { - "line": 364, - "column": 33 + "line": 354, + "column": 49 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13596, - "end": 13597, + "start": 13447, + "end": 13448, "loc": { "start": { - "line": 364, - "column": 33 + "line": 354, + "column": 49 }, "end": { - "line": 364, - "column": 34 + "line": 354, + "column": 50 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -120756,17 +121302,16 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 13598, - "end": 13603, + "start": 13448, + "end": 13449, "loc": { "start": { - "line": 364, - "column": 35 + "line": 354, + "column": 50 }, "end": { - "line": 364, - "column": 40 + "line": 354, + "column": 51 } } }, @@ -120782,16 +121327,42 @@ "postfix": false, "binop": null }, - "start": 13603, - "end": 13604, + "start": 13449, + "end": 13450, "loc": { "start": { - "line": 364, - "column": 40 + "line": 354, + "column": 51 }, "end": { - "line": 364, - "column": 41 + "line": 354, + "column": 52 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13451, + "end": 13453, + "loc": { + "start": { + "line": 354, + "column": 53 + }, + "end": { + "line": 354, + "column": 55 } } }, @@ -120807,69 +121378,68 @@ "postfix": false, "binop": null }, - "start": 13605, - "end": 13606, + "start": 13454, + "end": 13455, "loc": { "start": { - "line": 364, - "column": 42 + "line": 354, + "column": 56 }, "end": { - "line": 364, - "column": 43 + "line": 354, + "column": 57 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 13609, - "end": 13611, + "value": "editor", + "start": 13466, + "end": 13472, "loc": { "start": { - "line": 365, - "column": 2 + "line": 355, + "column": 10 }, "end": { - "line": 365, - "column": 4 + "line": 355, + "column": 16 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 13612, - "end": 13613, + "start": 13472, + "end": 13473, "loc": { "start": { - "line": 365, - "column": 5 + "line": 355, + "column": 16 }, "end": { - "line": 365, - "column": 6 + "line": 355, + "column": 17 } } }, @@ -120885,17 +121455,17 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 13613, - "end": 13619, + "value": "recognizer", + "start": 13473, + "end": 13483, "loc": { "start": { - "line": 365, - "column": 6 + "line": 355, + "column": 17 }, "end": { - "line": 365, - "column": 12 + "line": 355, + "column": 27 } } }, @@ -120912,16 +121482,16 @@ "binop": null, "updateContext": null }, - "start": 13619, - "end": 13620, + "start": 13483, + "end": 13484, "loc": { "start": { - "line": 365, - "column": 12 + "line": 355, + "column": 27 }, "end": { - "line": 365, - "column": 13 + "line": 355, + "column": 28 } } }, @@ -120937,44 +121507,42 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 13620, - "end": 13630, + "value": "resize", + "start": 13484, + "end": 13490, "loc": { "start": { - "line": 365, - "column": 13 + "line": 355, + "column": 28 }, "end": { - "line": 365, - "column": 23 + "line": 355, + "column": 34 } } }, { "type": { - "label": "&&", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, - "updateContext": null + "binop": null }, - "value": "&&", - "start": 13631, - "end": 13633, + "start": 13490, + "end": 13491, "loc": { "start": { - "line": 365, - "column": 24 + "line": 355, + "column": 34 }, "end": { - "line": 365, - "column": 26 + "line": 355, + "column": 35 } } }, @@ -120991,16 +121559,16 @@ "binop": null }, "value": "editor", - "start": 13634, - "end": 13640, + "start": 13491, + "end": 13497, "loc": { "start": { - "line": 365, - "column": 27 + "line": 355, + "column": 35 }, "end": { - "line": 365, - "column": 33 + "line": 355, + "column": 41 } } }, @@ -121017,16 +121585,16 @@ "binop": null, "updateContext": null }, - "start": 13640, - "end": 13641, + "start": 13497, + "end": 13498, "loc": { "start": { - "line": 365, - "column": 33 + "line": 355, + "column": 41 }, "end": { - "line": 365, - "column": 34 + "line": 355, + "column": 42 } } }, @@ -121042,24 +121610,24 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 13641, - "end": 13651, + "value": "recognizerContext", + "start": 13498, + "end": 13515, "loc": { "start": { - "line": 365, - "column": 34 + "line": 355, + "column": 42 }, "end": { - "line": 365, - "column": 44 + "line": 355, + "column": 59 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -121069,16 +121637,16 @@ "binop": null, "updateContext": null }, - "start": 13651, - "end": 13652, + "start": 13515, + "end": 13516, "loc": { "start": { - "line": 365, - "column": 44 + "line": 355, + "column": 59 }, "end": { - "line": 365, - "column": 45 + "line": 355, + "column": 60 } } }, @@ -121094,48 +121662,49 @@ "postfix": false, "binop": null }, - "value": "waitForIdle", - "start": 13652, - "end": 13663, + "value": "model", + "start": 13517, + "end": 13522, "loc": { "start": { - "line": 365, - "column": 45 + "line": 355, + "column": 61 }, "end": { - "line": 365, - "column": 56 + "line": 355, + "column": 66 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 13663, - "end": 13664, + "start": 13522, + "end": 13523, "loc": { "start": { - "line": 365, - "column": 56 + "line": 355, + "column": 66 }, "end": { - "line": 365, - "column": 57 + "line": 355, + "column": 67 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -121145,16 +121714,16 @@ "postfix": false, "binop": null }, - "start": 13665, - "end": 13666, + "start": 13524, + "end": 13525, "loc": { "start": { - "line": 365, - "column": 58 + "line": 355, + "column": 68 }, "end": { - "line": 365, - "column": 59 + "line": 355, + "column": 69 } } }, @@ -121170,24 +121739,24 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 13671, - "end": 13677, + "value": "err", + "start": 13525, + "end": 13528, "loc": { "start": { - "line": 366, - "column": 4 + "line": 355, + "column": 69 }, "end": { - "line": 366, - "column": 10 + "line": 355, + "column": 72 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -121197,16 +121766,16 @@ "binop": null, "updateContext": null }, - "start": 13677, - "end": 13678, + "start": 13528, + "end": 13529, "loc": { "start": { - "line": 366, - "column": 10 + "line": 355, + "column": 72 }, "end": { - "line": 366, - "column": 11 + "line": 355, + "column": 73 } } }, @@ -121222,24 +121791,24 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 13678, - "end": 13695, + "value": "res", + "start": 13530, + "end": 13533, "loc": { "start": { - "line": 366, - "column": 11 + "line": 355, + "column": 74 }, "end": { - "line": 366, - "column": 28 + "line": 355, + "column": 77 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -121249,16 +121818,42 @@ "binop": null, "updateContext": null }, - "start": 13695, - "end": 13696, + "start": 13533, + "end": 13534, "loc": { "start": { - "line": 366, - "column": 28 + "line": 355, + "column": 77 }, "end": { - "line": 366, - "column": 29 + "line": 355, + "column": 78 + } + } + }, + { + "type": { + "label": "...", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13535, + "end": 13538, + "loc": { + "start": { + "line": 355, + "column": 79 + }, + "end": { + "line": 355, + "column": 82 } } }, @@ -121274,23 +121869,23 @@ "postfix": false, "binop": null }, - "value": "initPromise", - "start": 13696, - "end": 13707, + "value": "types", + "start": 13538, + "end": 13543, "loc": { "start": { - "line": 366, - "column": 29 + "line": 355, + "column": 82 }, "end": { - "line": 366, - "column": 40 + "line": 355, + "column": 87 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -121298,51 +121893,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13714, - "end": 13715, + "start": 13543, + "end": 13544, "loc": { "start": { - "line": 367, - "column": 6 + "line": 355, + "column": 87 }, "end": { - "line": 367, - "column": 7 + "line": 355, + "column": 88 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "then", - "start": 13715, - "end": 13719, + "start": 13545, + "end": 13547, "loc": { "start": { - "line": 367, - "column": 7 + "line": 355, + "column": 89 }, "end": { - "line": 367, - "column": 11 + "line": 355, + "column": 91 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -121352,23 +121946,23 @@ "postfix": false, "binop": null }, - "start": 13719, - "end": 13720, + "start": 13548, + "end": 13549, "loc": { "start": { - "line": 367, - "column": 11 + "line": 355, + "column": 92 }, "end": { - "line": 367, - "column": 12 + "line": 355, + "column": 93 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -121377,24 +121971,25 @@ "postfix": false, "binop": null }, - "start": 13720, - "end": 13721, + "value": "recognizerCallback", + "start": 13562, + "end": 13580, "loc": { "start": { - "line": 367, + "line": 356, "column": 12 }, "end": { - "line": 367, - "column": 13 + "line": 356, + "column": 30 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -121402,67 +121997,68 @@ "postfix": false, "binop": null }, - "start": 13721, - "end": 13722, + "start": 13580, + "end": 13581, "loc": { "start": { - "line": 367, - "column": 13 + "line": 356, + "column": 30 }, "end": { - "line": 367, - "column": 14 + "line": 356, + "column": 31 } } }, { "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13723, - "end": 13725, + "value": "editor", + "start": 13581, + "end": 13587, "loc": { "start": { - "line": 367, - "column": 15 + "line": 356, + "column": 31 }, "end": { - "line": 367, - "column": 17 + "line": 356, + "column": 37 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 13726, - "end": 13727, + "start": 13587, + "end": 13588, "loc": { "start": { - "line": 367, - "column": 18 + "line": 356, + "column": 37 }, "end": { - "line": 367, - "column": 19 + "line": 356, + "column": 38 } } }, @@ -121478,24 +122074,24 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 13736, - "end": 13742, + "value": "err", + "start": 13589, + "end": 13592, "loc": { "start": { - "line": 368, - "column": 8 + "line": 356, + "column": 39 }, "end": { - "line": 368, - "column": 14 + "line": 356, + "column": 42 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -121505,16 +122101,16 @@ "binop": null, "updateContext": null }, - "start": 13742, - "end": 13743, + "start": 13592, + "end": 13593, "loc": { "start": { - "line": 368, - "column": 14 + "line": 356, + "column": 42 }, "end": { - "line": 368, - "column": 15 + "line": 356, + "column": 43 } } }, @@ -121530,24 +122126,24 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 13743, - "end": 13753, + "value": "res", + "start": 13594, + "end": 13597, "loc": { "start": { - "line": 368, - "column": 15 + "line": 356, + "column": 44 }, "end": { - "line": 368, - "column": 25 + "line": 356, + "column": 47 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -121557,49 +122153,49 @@ "binop": null, "updateContext": null }, - "start": 13753, - "end": 13754, + "start": 13597, + "end": 13598, "loc": { "start": { - "line": 368, - "column": 25 + "line": 356, + "column": 47 }, "end": { - "line": 368, - "column": 26 + "line": 356, + "column": 48 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "...", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "waitForIdle", - "start": 13754, - "end": 13765, + "start": 13599, + "end": 13602, "loc": { "start": { - "line": 368, - "column": 26 + "line": 356, + "column": 49 }, "end": { - "line": 368, - "column": 37 + "line": 356, + "column": 52 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -121608,24 +122204,25 @@ "postfix": false, "binop": null }, - "start": 13765, - "end": 13766, + "value": "types", + "start": 13602, + "end": 13607, "loc": { "start": { - "line": 368, - "column": 37 + "line": 356, + "column": 52 }, "end": { - "line": 368, - "column": 38 + "line": 356, + "column": 57 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -121633,24 +122230,23 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 13766, - "end": 13772, + "start": 13607, + "end": 13608, "loc": { "start": { - "line": 368, - "column": 38 + "line": 356, + "column": 57 }, "end": { - "line": 368, - "column": 44 + "line": 356, + "column": 58 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -121660,24 +122256,24 @@ "binop": null, "updateContext": null }, - "start": 13772, - "end": 13773, + "start": 13608, + "end": 13609, "loc": { "start": { - "line": 368, - "column": 44 + "line": 356, + "column": 58 }, "end": { - "line": 368, - "column": 45 + "line": 356, + "column": 59 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -121685,17 +122281,16 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 13773, - "end": 13790, + "start": 13620, + "end": 13621, "loc": { "start": { - "line": 368, - "column": 45 + "line": 357, + "column": 10 }, "end": { - "line": 368, - "column": 62 + "line": 357, + "column": 11 } } }, @@ -121712,16 +122307,16 @@ "binop": null, "updateContext": null }, - "start": 13790, - "end": 13791, + "start": 13621, + "end": 13622, "loc": { "start": { - "line": 368, - "column": 62 + "line": 357, + "column": 11 }, "end": { - "line": 368, - "column": 63 + "line": 357, + "column": 12 } } }, @@ -121737,24 +122332,24 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 13792, - "end": 13797, + "value": "editor", + "start": 13623, + "end": 13629, "loc": { "start": { - "line": 368, - "column": 64 + "line": 357, + "column": 13 }, "end": { - "line": 368, - "column": 69 + "line": 357, + "column": 19 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -121764,23 +122359,23 @@ "binop": null, "updateContext": null }, - "start": 13797, - "end": 13798, + "start": 13629, + "end": 13630, "loc": { "start": { - "line": 368, - "column": 69 + "line": 357, + "column": 19 }, "end": { - "line": 368, - "column": 70 + "line": 357, + "column": 20 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -121789,24 +122384,25 @@ "postfix": false, "binop": null }, - "start": 13799, - "end": 13800, + "value": "domElement", + "start": 13630, + "end": 13640, "loc": { "start": { - "line": 368, - "column": 71 + "line": 357, + "column": 20 }, "end": { - "line": 368, - "column": 72 + "line": 357, + "column": 30 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -121814,23 +122410,22 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 13800, - "end": 13803, + "start": 13640, + "end": 13641, "loc": { "start": { - "line": 368, - "column": 72 + "line": 357, + "column": 30 }, "end": { - "line": 368, - "column": 75 + "line": 357, + "column": 31 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -121841,24 +122436,24 @@ "binop": null, "updateContext": null }, - "start": 13803, - "end": 13804, + "start": 13641, + "end": 13642, "loc": { "start": { - "line": 368, - "column": 75 + "line": 357, + "column": 31 }, "end": { - "line": 368, - "column": 76 + "line": 357, + "column": 32 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -121866,17 +122461,16 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 13805, - "end": 13808, + "start": 13651, + "end": 13652, "loc": { "start": { - "line": 368, - "column": 77 + "line": 358, + "column": 8 }, "end": { - "line": 368, - "column": 80 + "line": 358, + "column": 9 } } }, @@ -121893,76 +122487,76 @@ "binop": null, "updateContext": null }, - "start": 13808, - "end": 13809, + "start": 13652, + "end": 13653, "loc": { "start": { - "line": 368, - "column": 80 + "line": 358, + "column": 9 }, "end": { - "line": 368, - "column": 81 + "line": 358, + "column": 10 } } }, { "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 13810, - "end": 13813, + "value": "editor", + "start": 13654, + "end": 13660, "loc": { "start": { - "line": 368, - "column": 82 + "line": 358, + "column": 11 }, "end": { - "line": 368, - "column": 85 + "line": 358, + "column": 17 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "types", - "start": 13813, - "end": 13818, + "start": 13660, + "end": 13661, "loc": { "start": { - "line": 368, - "column": 85 + "line": 358, + "column": 17 }, "end": { - "line": 368, - "column": 90 + "line": 358, + "column": 18 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -121970,23 +122564,24 @@ "postfix": false, "binop": null }, - "start": 13818, - "end": 13819, + "value": "configuration", + "start": 13661, + "end": 13674, "loc": { "start": { - "line": 368, - "column": 90 + "line": 358, + "column": 18 }, "end": { - "line": 368, - "column": 91 + "line": 358, + "column": 31 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -121996,23 +122591,23 @@ "binop": null, "updateContext": null }, - "start": 13820, - "end": 13822, + "start": 13674, + "end": 13675, "loc": { "start": { - "line": 368, - "column": 92 + "line": 358, + "column": 31 }, "end": { - "line": 368, - "column": 94 + "line": 358, + "column": 32 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -122021,24 +122616,25 @@ "postfix": false, "binop": null }, - "start": 13823, - "end": 13824, + "value": "resizeTriggerDelay", + "start": 13675, + "end": 13693, "loc": { "start": { - "line": 368, - "column": 95 + "line": 358, + "column": 32 }, "end": { - "line": 368, - "column": 96 + "line": 358, + "column": 50 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -122046,50 +122642,50 @@ "postfix": false, "binop": null }, - "value": "recognizerCallback", - "start": 13835, - "end": 13853, + "start": 13693, + "end": 13694, "loc": { "start": { - "line": 369, - "column": 10 + "line": 358, + "column": 50 }, "end": { - "line": 369, - "column": 28 + "line": 358, + "column": 51 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 13853, - "end": 13854, + "start": 13694, + "end": 13695, "loc": { "start": { - "line": 369, - "column": 28 + "line": 358, + "column": 51 }, "end": { - "line": 369, - "column": 29 + "line": 358, + "column": 52 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -122097,51 +122693,24 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 13854, - "end": 13860, + "start": 13702, + "end": 13703, "loc": { "start": { - "line": 369, - "column": 29 + "line": 359, + "column": 6 }, "end": { - "line": 369, - "column": 35 + "line": 359, + "column": 7 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13860, - "end": 13861, - "loc": { - "start": { - "line": 369, - "column": 35 - }, - "end": { - "line": 369, - "column": 36 - } - } - }, - { - "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -122149,23 +122718,22 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 13862, - "end": 13865, + "start": 13703, + "end": 13704, "loc": { "start": { - "line": 369, - "column": 37 + "line": 359, + "column": 7 }, "end": { - "line": 369, - "column": 40 + "line": 359, + "column": 8 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -122176,16 +122744,16 @@ "binop": null, "updateContext": null }, - "start": 13865, - "end": 13866, + "start": 13704, + "end": 13705, "loc": { "start": { - "line": 369, - "column": 40 + "line": 359, + "column": 8 }, "end": { - "line": 369, - "column": 41 + "line": 359, + "column": 9 } } }, @@ -122201,50 +122769,24 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 13867, - "end": 13870, - "loc": { - "start": { - "line": 369, - "column": 42 - }, - "end": { - "line": 369, - "column": 45 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13870, - "end": 13871, + "value": "SmartGuide", + "start": 13710, + "end": 13720, "loc": { "start": { - "line": 369, - "column": 45 + "line": 360, + "column": 4 }, "end": { - "line": 369, - "column": 46 + "line": 360, + "column": 14 } } }, { "type": { - "label": "...", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -122254,16 +122796,16 @@ "binop": null, "updateContext": null }, - "start": 13872, - "end": 13875, + "start": 13720, + "end": 13721, "loc": { "start": { - "line": 369, - "column": 47 + "line": 360, + "column": 14 }, "end": { - "line": 369, - "column": 50 + "line": 360, + "column": 15 } } }, @@ -122279,76 +122821,25 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 13875, - "end": 13880, - "loc": { - "start": { - "line": 369, - "column": 50 - }, - "end": { - "line": 369, - "column": 55 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 13880, - "end": 13881, + "value": "resize", + "start": 13721, + "end": 13727, "loc": { "start": { - "line": 369, - "column": 55 + "line": 360, + "column": 15 }, "end": { - "line": 369, - "column": 56 + "line": 360, + "column": 21 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 13881, - "end": 13882, - "loc": { - "start": { - "line": 369, - "column": 56 - }, - "end": { - "line": 369, - "column": 57 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -122356,24 +122847,24 @@ "postfix": false, "binop": null }, - "start": 13891, - "end": 13892, + "start": 13727, + "end": 13728, "loc": { "start": { - "line": 370, - "column": 8 + "line": 360, + "column": 21 }, "end": { - "line": 370, - "column": 9 + "line": 360, + "column": 22 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -122381,23 +122872,24 @@ "postfix": false, "binop": null }, - "start": 13892, - "end": 13893, + "value": "editor", + "start": 13728, + "end": 13734, "loc": { "start": { - "line": 370, - "column": 9 + "line": 360, + "column": 22 }, "end": { - "line": 370, - "column": 10 + "line": 360, + "column": 28 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -122407,24 +122899,24 @@ "binop": null, "updateContext": null }, - "start": 13893, - "end": 13894, + "start": 13734, + "end": 13735, "loc": { "start": { - "line": 370, - "column": 10 + "line": 360, + "column": 28 }, "end": { - "line": 370, - "column": 11 + "line": 360, + "column": 29 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -122432,16 +122924,17 @@ "postfix": false, "binop": null }, - "start": 13901, - "end": 13902, + "value": "smartGuide", + "start": 13735, + "end": 13745, "loc": { "start": { - "line": 371, - "column": 6 + "line": 360, + "column": 29 }, "end": { - "line": 371, - "column": 7 + "line": 360, + "column": 39 } } }, @@ -122457,16 +122950,16 @@ "postfix": false, "binop": null }, - "start": 13902, - "end": 13903, + "start": 13745, + "end": 13746, "loc": { "start": { - "line": 371, - "column": 7 + "line": 360, + "column": 39 }, "end": { - "line": 371, - "column": 8 + "line": 360, + "column": 40 } } }, @@ -122483,16 +122976,16 @@ "binop": null, "updateContext": null }, - "start": 13903, - "end": 13904, + "start": 13746, + "end": 13747, "loc": { "start": { - "line": 371, - "column": 8 + "line": 360, + "column": 40 }, "end": { - "line": 371, - "column": 9 + "line": 360, + "column": 41 } } }, @@ -122508,15 +123001,15 @@ "postfix": false, "binop": null }, - "start": 13907, - "end": 13908, + "start": 13750, + "end": 13751, "loc": { "start": { - "line": 372, + "line": 361, "column": 2 }, "end": { - "line": 372, + "line": 361, "column": 3 } } @@ -122533,31 +123026,31 @@ "postfix": false, "binop": null }, - "start": 13909, - "end": 13910, + "start": 13752, + "end": 13753, "loc": { "start": { - "line": 373, + "line": 362, "column": 0 }, "end": { - "line": 373, + "line": 362, "column": 1 } } }, { "type": "CommentBlock", - "value": "*\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 13912, - "end": 13987, + "value": "*\n * Launch wait for idle\n * @param {Editor} editor\n * @param {Model} model\n ", + "start": 13755, + "end": 13836, "loc": { "start": { - "line": 375, + "line": 364, "column": 0 }, "end": { - "line": 379, + "line": 368, "column": 3 } } @@ -122576,15 +123069,15 @@ "binop": null }, "value": "function", - "start": 13988, - "end": 13996, + "start": 13837, + "end": 13845, "loc": { "start": { - "line": 380, + "line": 369, "column": 0 }, "end": { - "line": 380, + "line": 369, "column": 8 } } @@ -122601,17 +123094,17 @@ "postfix": false, "binop": null }, - "value": "setPenStyle", - "start": 13997, - "end": 14008, + "value": "launchWaitForIdle", + "start": 13846, + "end": 13863, "loc": { "start": { - "line": 380, + "line": 369, "column": 9 }, "end": { - "line": 380, - "column": 20 + "line": 369, + "column": 26 } } }, @@ -122627,16 +123120,16 @@ "postfix": false, "binop": null }, - "start": 14008, - "end": 14009, + "start": 13863, + "end": 13864, "loc": { "start": { - "line": 380, - "column": 20 + "line": 369, + "column": 26 }, "end": { - "line": 380, - "column": 21 + "line": 369, + "column": 27 } } }, @@ -122653,16 +123146,16 @@ "binop": null }, "value": "editor", - "start": 14009, - "end": 14015, + "start": 13864, + "end": 13870, "loc": { "start": { - "line": 380, - "column": 21 + "line": 369, + "column": 27 }, "end": { - "line": 380, - "column": 27 + "line": 369, + "column": 33 } } }, @@ -122679,16 +123172,16 @@ "binop": null, "updateContext": null }, - "start": 14015, - "end": 14016, + "start": 13870, + "end": 13871, "loc": { "start": { - "line": 380, - "column": 27 + "line": 369, + "column": 33 }, "end": { - "line": 380, - "column": 28 + "line": 369, + "column": 34 } } }, @@ -122705,16 +123198,16 @@ "binop": null }, "value": "model", - "start": 14017, - "end": 14022, + "start": 13872, + "end": 13877, "loc": { "start": { - "line": 380, - "column": 29 + "line": 369, + "column": 35 }, "end": { - "line": 380, - "column": 34 + "line": 369, + "column": 40 } } }, @@ -122730,16 +123223,16 @@ "postfix": false, "binop": null }, - "start": 14022, - "end": 14023, + "start": 13877, + "end": 13878, "loc": { "start": { - "line": 380, - "column": 34 + "line": 369, + "column": 40 }, "end": { - "line": 380, - "column": 35 + "line": 369, + "column": 41 } } }, @@ -122755,16 +123248,16 @@ "postfix": false, "binop": null }, - "start": 14024, - "end": 14025, + "start": 13879, + "end": 13880, "loc": { "start": { - "line": 380, - "column": 36 + "line": 369, + "column": 42 }, "end": { - "line": 380, - "column": 37 + "line": 369, + "column": 43 } } }, @@ -122783,15 +123276,15 @@ "updateContext": null }, "value": "if", - "start": 14028, - "end": 14030, + "start": 13883, + "end": 13885, "loc": { "start": { - "line": 381, + "line": 370, "column": 2 }, "end": { - "line": 381, + "line": 370, "column": 4 } } @@ -122808,15 +123301,15 @@ "postfix": false, "binop": null }, - "start": 14031, - "end": 14032, + "start": 13886, + "end": 13887, "loc": { "start": { - "line": 381, + "line": 370, "column": 5 }, "end": { - "line": 381, + "line": 370, "column": 6 } } @@ -122834,15 +123327,15 @@ "binop": null }, "value": "editor", - "start": 14032, - "end": 14038, + "start": 13887, + "end": 13893, "loc": { "start": { - "line": 381, + "line": 370, "column": 6 }, "end": { - "line": 381, + "line": 370, "column": 12 } } @@ -122860,15 +123353,15 @@ "binop": null, "updateContext": null }, - "start": 14038, - "end": 14039, + "start": 13893, + "end": 13894, "loc": { "start": { - "line": 381, + "line": 370, "column": 12 }, "end": { - "line": 381, + "line": 370, "column": 13 } } @@ -122886,15 +123379,15 @@ "binop": null }, "value": "recognizer", - "start": 14039, - "end": 14049, + "start": 13894, + "end": 13904, "loc": { "start": { - "line": 381, + "line": 370, "column": 13 }, "end": { - "line": 381, + "line": 370, "column": 23 } } @@ -122913,15 +123406,15 @@ "updateContext": null }, "value": "&&", - "start": 14050, - "end": 14052, + "start": 13905, + "end": 13907, "loc": { "start": { - "line": 381, + "line": 370, "column": 24 }, "end": { - "line": 381, + "line": 370, "column": 26 } } @@ -122939,15 +123432,15 @@ "binop": null }, "value": "editor", - "start": 14053, - "end": 14059, + "start": 13908, + "end": 13914, "loc": { "start": { - "line": 381, + "line": 370, "column": 27 }, "end": { - "line": 381, + "line": 370, "column": 33 } } @@ -122965,15 +123458,15 @@ "binop": null, "updateContext": null }, - "start": 14059, - "end": 14060, + "start": 13914, + "end": 13915, "loc": { "start": { - "line": 381, + "line": 370, "column": 33 }, "end": { - "line": 381, + "line": 370, "column": 34 } } @@ -122991,15 +123484,15 @@ "binop": null }, "value": "recognizer", - "start": 14060, - "end": 14070, + "start": 13915, + "end": 13925, "loc": { "start": { - "line": 381, + "line": 370, "column": 34 }, "end": { - "line": 381, + "line": 370, "column": 44 } } @@ -123017,15 +123510,15 @@ "binop": null, "updateContext": null }, - "start": 14070, - "end": 14071, + "start": 13925, + "end": 13926, "loc": { "start": { - "line": 381, + "line": 370, "column": 44 }, "end": { - "line": 381, + "line": 370, "column": 45 } } @@ -123042,16 +123535,16 @@ "postfix": false, "binop": null }, - "value": "setPenStyle", - "start": 14071, - "end": 14082, + "value": "waitForIdle", + "start": 13926, + "end": 13937, "loc": { "start": { - "line": 381, + "line": 370, "column": 45 }, "end": { - "line": 381, + "line": 370, "column": 56 } } @@ -123068,15 +123561,15 @@ "postfix": false, "binop": null }, - "start": 14082, - "end": 14083, + "start": 13937, + "end": 13938, "loc": { "start": { - "line": 381, + "line": 370, "column": 56 }, "end": { - "line": 381, + "line": 370, "column": 57 } } @@ -123093,15 +123586,15 @@ "postfix": false, "binop": null }, - "start": 14084, - "end": 14085, + "start": 13939, + "end": 13940, "loc": { "start": { - "line": 381, + "line": 370, "column": 58 }, "end": { - "line": 381, + "line": 370, "column": 59 } } @@ -123119,15 +123612,15 @@ "binop": null }, "value": "editor", - "start": 14090, - "end": 14096, + "start": 13945, + "end": 13951, "loc": { "start": { - "line": 382, + "line": 371, "column": 4 }, "end": { - "line": 382, + "line": 371, "column": 10 } } @@ -123145,15 +123638,15 @@ "binop": null, "updateContext": null }, - "start": 14096, - "end": 14097, + "start": 13951, + "end": 13952, "loc": { "start": { - "line": 382, + "line": 371, "column": 10 }, "end": { - "line": 382, + "line": 371, "column": 11 } } @@ -123171,15 +123664,15 @@ "binop": null }, "value": "recognizerContext", - "start": 14097, - "end": 14114, + "start": 13952, + "end": 13969, "loc": { "start": { - "line": 382, + "line": 371, "column": 11 }, "end": { - "line": 382, + "line": 371, "column": 28 } } @@ -123197,15 +123690,15 @@ "binop": null, "updateContext": null }, - "start": 14114, - "end": 14115, + "start": 13969, + "end": 13970, "loc": { "start": { - "line": 382, + "line": 371, "column": 28 }, "end": { - "line": 382, + "line": 371, "column": 29 } } @@ -123223,15 +123716,15 @@ "binop": null }, "value": "initPromise", - "start": 14115, - "end": 14126, + "start": 13970, + "end": 13981, "loc": { "start": { - "line": 382, + "line": 371, "column": 29 }, "end": { - "line": 382, + "line": 371, "column": 40 } } @@ -123249,15 +123742,15 @@ "binop": null, "updateContext": null }, - "start": 14133, - "end": 14134, + "start": 13988, + "end": 13989, "loc": { "start": { - "line": 383, + "line": 372, "column": 6 }, "end": { - "line": 383, + "line": 372, "column": 7 } } @@ -123275,15 +123768,15 @@ "binop": null }, "value": "then", - "start": 14134, - "end": 14138, + "start": 13989, + "end": 13993, "loc": { "start": { - "line": 383, + "line": 372, "column": 7 }, "end": { - "line": 383, + "line": 372, "column": 11 } } @@ -123300,15 +123793,15 @@ "postfix": false, "binop": null }, - "start": 14138, - "end": 14139, + "start": 13993, + "end": 13994, "loc": { "start": { - "line": 383, + "line": 372, "column": 11 }, "end": { - "line": 383, + "line": 372, "column": 12 } } @@ -123325,15 +123818,15 @@ "postfix": false, "binop": null }, - "start": 14139, - "end": 14140, + "start": 13994, + "end": 13995, "loc": { "start": { - "line": 383, + "line": 372, "column": 12 }, "end": { - "line": 383, + "line": 372, "column": 13 } } @@ -123350,15 +123843,15 @@ "postfix": false, "binop": null }, - "start": 14140, - "end": 14141, + "start": 13995, + "end": 13996, "loc": { "start": { - "line": 383, + "line": 372, "column": 13 }, "end": { - "line": 383, + "line": 372, "column": 14 } } @@ -123376,15 +123869,15 @@ "binop": null, "updateContext": null }, - "start": 14142, - "end": 14144, + "start": 13997, + "end": 13999, "loc": { "start": { - "line": 383, + "line": 372, "column": 15 }, "end": { - "line": 383, + "line": 372, "column": 17 } } @@ -123401,15 +123894,15 @@ "postfix": false, "binop": null }, - "start": 14145, - "end": 14146, + "start": 14000, + "end": 14001, "loc": { "start": { - "line": 383, + "line": 372, "column": 18 }, "end": { - "line": 383, + "line": 372, "column": 19 } } @@ -123427,15 +123920,15 @@ "binop": null }, "value": "editor", - "start": 14155, - "end": 14161, + "start": 14010, + "end": 14016, "loc": { "start": { - "line": 384, + "line": 373, "column": 8 }, "end": { - "line": 384, + "line": 373, "column": 14 } } @@ -123453,15 +123946,15 @@ "binop": null, "updateContext": null }, - "start": 14161, - "end": 14162, + "start": 14016, + "end": 14017, "loc": { "start": { - "line": 384, + "line": 373, "column": 14 }, "end": { - "line": 384, + "line": 373, "column": 15 } } @@ -123479,15 +123972,15 @@ "binop": null }, "value": "recognizer", - "start": 14162, - "end": 14172, + "start": 14017, + "end": 14027, "loc": { "start": { - "line": 384, + "line": 373, "column": 15 }, "end": { - "line": 384, + "line": 373, "column": 25 } } @@ -123505,15 +123998,15 @@ "binop": null, "updateContext": null }, - "start": 14172, - "end": 14173, + "start": 14027, + "end": 14028, "loc": { "start": { - "line": 384, + "line": 373, "column": 25 }, "end": { - "line": 384, + "line": 373, "column": 26 } } @@ -123530,16 +124023,16 @@ "postfix": false, "binop": null }, - "value": "setPenStyle", - "start": 14173, - "end": 14184, + "value": "waitForIdle", + "start": 14028, + "end": 14039, "loc": { "start": { - "line": 384, + "line": 373, "column": 26 }, "end": { - "line": 384, + "line": 373, "column": 37 } } @@ -123556,15 +124049,15 @@ "postfix": false, "binop": null }, - "start": 14184, - "end": 14185, + "start": 14039, + "end": 14040, "loc": { "start": { - "line": 384, + "line": 373, "column": 37 }, "end": { - "line": 384, + "line": 373, "column": 38 } } @@ -123582,15 +124075,15 @@ "binop": null }, "value": "editor", - "start": 14185, - "end": 14191, + "start": 14040, + "end": 14046, "loc": { "start": { - "line": 384, + "line": 373, "column": 38 }, "end": { - "line": 384, + "line": 373, "column": 44 } } @@ -123608,15 +124101,15 @@ "binop": null, "updateContext": null }, - "start": 14191, - "end": 14192, + "start": 14046, + "end": 14047, "loc": { "start": { - "line": 384, + "line": 373, "column": 44 }, "end": { - "line": 384, + "line": 373, "column": 45 } } @@ -123634,15 +124127,15 @@ "binop": null }, "value": "recognizerContext", - "start": 14192, - "end": 14209, + "start": 14047, + "end": 14064, "loc": { "start": { - "line": 384, + "line": 373, "column": 45 }, "end": { - "line": 384, + "line": 373, "column": 62 } } @@ -123660,15 +124153,15 @@ "binop": null, "updateContext": null }, - "start": 14209, - "end": 14210, + "start": 14064, + "end": 14065, "loc": { "start": { - "line": 384, + "line": 373, "column": 62 }, "end": { - "line": 384, + "line": 373, "column": 63 } } @@ -123686,15 +124179,15 @@ "binop": null }, "value": "model", - "start": 14211, - "end": 14216, + "start": 14066, + "end": 14071, "loc": { "start": { - "line": 384, + "line": 373, "column": 64 }, "end": { - "line": 384, + "line": 373, "column": 69 } } @@ -123712,123 +124205,19 @@ "binop": null, "updateContext": null }, - "start": 14216, - "end": 14217, + "start": 14071, + "end": 14072, "loc": { "start": { - "line": 384, + "line": 373, "column": 69 }, "end": { - "line": 384, + "line": 373, "column": 70 } } }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "editor", - "start": 14218, - "end": 14224, - "loc": { - "start": { - "line": 384, - "column": 71 - }, - "end": { - "line": 384, - "column": 77 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14224, - "end": 14225, - "loc": { - "start": { - "line": 384, - "column": 77 - }, - "end": { - "line": 384, - "column": 78 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "penStyle", - "start": 14225, - "end": 14233, - "loc": { - "start": { - "line": 384, - "column": 78 - }, - "end": { - "line": 384, - "column": 86 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 14233, - "end": 14234, - "loc": { - "start": { - "line": 384, - "column": 86 - }, - "end": { - "line": 384, - "column": 87 - } - } - }, { "type": { "label": "(", @@ -123841,16 +124230,16 @@ "postfix": false, "binop": null }, - "start": 14235, - "end": 14236, + "start": 14073, + "end": 14074, "loc": { "start": { - "line": 384, - "column": 88 + "line": 373, + "column": 71 }, "end": { - "line": 384, - "column": 89 + "line": 373, + "column": 72 } } }, @@ -123867,16 +124256,16 @@ "binop": null }, "value": "err", - "start": 14236, - "end": 14239, + "start": 14074, + "end": 14077, "loc": { "start": { - "line": 384, - "column": 89 + "line": 373, + "column": 72 }, "end": { - "line": 384, - "column": 92 + "line": 373, + "column": 75 } } }, @@ -123893,16 +124282,16 @@ "binop": null, "updateContext": null }, - "start": 14239, - "end": 14240, + "start": 14077, + "end": 14078, "loc": { "start": { - "line": 384, - "column": 92 + "line": 373, + "column": 75 }, "end": { - "line": 384, - "column": 93 + "line": 373, + "column": 76 } } }, @@ -123919,16 +124308,16 @@ "binop": null }, "value": "res", - "start": 14241, - "end": 14244, + "start": 14079, + "end": 14082, "loc": { "start": { - "line": 384, - "column": 94 + "line": 373, + "column": 77 }, "end": { - "line": 384, - "column": 97 + "line": 373, + "column": 80 } } }, @@ -123945,16 +124334,16 @@ "binop": null, "updateContext": null }, - "start": 14244, - "end": 14245, + "start": 14082, + "end": 14083, "loc": { "start": { - "line": 384, - "column": 97 + "line": 373, + "column": 80 }, "end": { - "line": 384, - "column": 98 + "line": 373, + "column": 81 } } }, @@ -123971,16 +124360,16 @@ "binop": null, "updateContext": null }, - "start": 14246, - "end": 14249, + "start": 14084, + "end": 14087, "loc": { "start": { - "line": 384, - "column": 99 + "line": 373, + "column": 82 }, "end": { - "line": 384, - "column": 102 + "line": 373, + "column": 85 } } }, @@ -123997,16 +124386,16 @@ "binop": null }, "value": "types", - "start": 14249, - "end": 14254, + "start": 14087, + "end": 14092, "loc": { "start": { - "line": 384, - "column": 102 + "line": 373, + "column": 85 }, "end": { - "line": 384, - "column": 107 + "line": 373, + "column": 90 } } }, @@ -124022,16 +124411,16 @@ "postfix": false, "binop": null }, - "start": 14254, - "end": 14255, + "start": 14092, + "end": 14093, "loc": { "start": { - "line": 384, - "column": 107 + "line": 373, + "column": 90 }, "end": { - "line": 384, - "column": 108 + "line": 373, + "column": 91 } } }, @@ -124048,16 +124437,16 @@ "binop": null, "updateContext": null }, - "start": 14256, - "end": 14258, + "start": 14094, + "end": 14096, "loc": { "start": { - "line": 384, - "column": 109 + "line": 373, + "column": 92 }, "end": { - "line": 384, - "column": 111 + "line": 373, + "column": 94 } } }, @@ -124073,16 +124462,16 @@ "postfix": false, "binop": null }, - "start": 14259, - "end": 14260, + "start": 14097, + "end": 14098, "loc": { "start": { - "line": 384, - "column": 112 + "line": 373, + "column": 95 }, "end": { - "line": 384, - "column": 113 + "line": 373, + "column": 96 } } }, @@ -124099,15 +124488,15 @@ "binop": null }, "value": "recognizerCallback", - "start": 14271, - "end": 14289, + "start": 14109, + "end": 14127, "loc": { "start": { - "line": 385, + "line": 374, "column": 10 }, "end": { - "line": 385, + "line": 374, "column": 28 } } @@ -124124,15 +124513,15 @@ "postfix": false, "binop": null }, - "start": 14289, - "end": 14290, + "start": 14127, + "end": 14128, "loc": { "start": { - "line": 385, + "line": 374, "column": 28 }, "end": { - "line": 385, + "line": 374, "column": 29 } } @@ -124150,15 +124539,15 @@ "binop": null }, "value": "editor", - "start": 14290, - "end": 14296, + "start": 14128, + "end": 14134, "loc": { "start": { - "line": 385, + "line": 374, "column": 29 }, "end": { - "line": 385, + "line": 374, "column": 35 } } @@ -124176,15 +124565,15 @@ "binop": null, "updateContext": null }, - "start": 14296, - "end": 14297, + "start": 14134, + "end": 14135, "loc": { "start": { - "line": 385, + "line": 374, "column": 35 }, "end": { - "line": 385, + "line": 374, "column": 36 } } @@ -124202,15 +124591,15 @@ "binop": null }, "value": "err", - "start": 14298, - "end": 14301, + "start": 14136, + "end": 14139, "loc": { "start": { - "line": 385, + "line": 374, "column": 37 }, "end": { - "line": 385, + "line": 374, "column": 40 } } @@ -124228,15 +124617,15 @@ "binop": null, "updateContext": null }, - "start": 14301, - "end": 14302, + "start": 14139, + "end": 14140, "loc": { "start": { - "line": 385, + "line": 374, "column": 40 }, "end": { - "line": 385, + "line": 374, "column": 41 } } @@ -124254,15 +124643,15 @@ "binop": null }, "value": "res", - "start": 14303, - "end": 14306, + "start": 14141, + "end": 14144, "loc": { "start": { - "line": 385, + "line": 374, "column": 42 }, "end": { - "line": 385, + "line": 374, "column": 45 } } @@ -124280,15 +124669,15 @@ "binop": null, "updateContext": null }, - "start": 14306, - "end": 14307, + "start": 14144, + "end": 14145, "loc": { "start": { - "line": 385, + "line": 374, "column": 45 }, "end": { - "line": 385, + "line": 374, "column": 46 } } @@ -124306,15 +124695,15 @@ "binop": null, "updateContext": null }, - "start": 14308, - "end": 14311, + "start": 14146, + "end": 14149, "loc": { "start": { - "line": 385, + "line": 374, "column": 47 }, "end": { - "line": 385, + "line": 374, "column": 50 } } @@ -124332,15 +124721,15 @@ "binop": null }, "value": "types", - "start": 14311, - "end": 14316, + "start": 14149, + "end": 14154, "loc": { "start": { - "line": 385, + "line": 374, "column": 50 }, "end": { - "line": 385, + "line": 374, "column": 55 } } @@ -124357,15 +124746,15 @@ "postfix": false, "binop": null }, - "start": 14316, - "end": 14317, + "start": 14154, + "end": 14155, "loc": { "start": { - "line": 385, + "line": 374, "column": 55 }, "end": { - "line": 385, + "line": 374, "column": 56 } } @@ -124383,15 +124772,15 @@ "binop": null, "updateContext": null }, - "start": 14317, - "end": 14318, + "start": 14155, + "end": 14156, "loc": { "start": { - "line": 385, + "line": 374, "column": 56 }, "end": { - "line": 385, + "line": 374, "column": 57 } } @@ -124408,15 +124797,15 @@ "postfix": false, "binop": null }, - "start": 14327, - "end": 14328, + "start": 14165, + "end": 14166, "loc": { "start": { - "line": 386, + "line": 375, "column": 8 }, "end": { - "line": 386, + "line": 375, "column": 9 } } @@ -124433,15 +124822,15 @@ "postfix": false, "binop": null }, - "start": 14328, - "end": 14329, + "start": 14166, + "end": 14167, "loc": { "start": { - "line": 386, + "line": 375, "column": 9 }, "end": { - "line": 386, + "line": 375, "column": 10 } } @@ -124459,15 +124848,15 @@ "binop": null, "updateContext": null }, - "start": 14329, - "end": 14330, + "start": 14167, + "end": 14168, "loc": { "start": { - "line": 386, + "line": 375, "column": 10 }, "end": { - "line": 386, + "line": 375, "column": 11 } } @@ -124484,15 +124873,15 @@ "postfix": false, "binop": null }, - "start": 14337, - "end": 14338, + "start": 14175, + "end": 14176, "loc": { "start": { - "line": 387, + "line": 376, "column": 6 }, "end": { - "line": 387, + "line": 376, "column": 7 } } @@ -124509,15 +124898,15 @@ "postfix": false, "binop": null }, - "start": 14338, - "end": 14339, + "start": 14176, + "end": 14177, "loc": { "start": { - "line": 387, + "line": 376, "column": 7 }, "end": { - "line": 387, + "line": 376, "column": 8 } } @@ -124535,15 +124924,15 @@ "binop": null, "updateContext": null }, - "start": 14339, - "end": 14340, + "start": 14177, + "end": 14178, "loc": { "start": { - "line": 387, + "line": 376, "column": 8 }, "end": { - "line": 387, + "line": 376, "column": 9 } } @@ -124560,15 +124949,15 @@ "postfix": false, "binop": null }, - "start": 14343, - "end": 14344, + "start": 14181, + "end": 14182, "loc": { "start": { - "line": 388, + "line": 377, "column": 2 }, "end": { - "line": 388, + "line": 377, "column": 3 } } @@ -124585,15 +124974,15 @@ "postfix": false, "binop": null }, - "start": 14345, - "end": 14346, + "start": 14183, + "end": 14184, "loc": { "start": { - "line": 389, + "line": 378, "column": 0 }, "end": { - "line": 389, + "line": 378, "column": 1 } } @@ -124601,15 +124990,15 @@ { "type": "CommentBlock", "value": "*\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 14348, - "end": 14423, + "start": 14186, + "end": 14261, "loc": { "start": { - "line": 391, + "line": 380, "column": 0 }, "end": { - "line": 395, + "line": 384, "column": 3 } } @@ -124628,15 +125017,15 @@ "binop": null }, "value": "function", - "start": 14424, - "end": 14432, + "start": 14262, + "end": 14270, "loc": { "start": { - "line": 396, + "line": 385, "column": 0 }, "end": { - "line": 396, + "line": 385, "column": 8 } } @@ -124653,17 +125042,17 @@ "postfix": false, "binop": null }, - "value": "setPenStyleClasses", - "start": 14433, - "end": 14451, + "value": "setPenStyle", + "start": 14271, + "end": 14282, "loc": { "start": { - "line": 396, + "line": 385, "column": 9 }, "end": { - "line": 396, - "column": 27 + "line": 385, + "column": 20 } } }, @@ -124679,16 +125068,16 @@ "postfix": false, "binop": null }, - "start": 14451, - "end": 14452, + "start": 14282, + "end": 14283, "loc": { "start": { - "line": 396, - "column": 27 + "line": 385, + "column": 20 }, "end": { - "line": 396, - "column": 28 + "line": 385, + "column": 21 } } }, @@ -124705,16 +125094,16 @@ "binop": null }, "value": "editor", - "start": 14452, - "end": 14458, + "start": 14283, + "end": 14289, "loc": { "start": { - "line": 396, - "column": 28 + "line": 385, + "column": 21 }, "end": { - "line": 396, - "column": 34 + "line": 385, + "column": 27 } } }, @@ -124731,16 +125120,16 @@ "binop": null, "updateContext": null }, - "start": 14458, - "end": 14459, + "start": 14289, + "end": 14290, "loc": { "start": { - "line": 396, - "column": 34 + "line": 385, + "column": 27 }, "end": { - "line": 396, - "column": 35 + "line": 385, + "column": 28 } } }, @@ -124757,16 +125146,16 @@ "binop": null }, "value": "model", - "start": 14460, - "end": 14465, + "start": 14291, + "end": 14296, "loc": { "start": { - "line": 396, - "column": 36 + "line": 385, + "column": 29 }, "end": { - "line": 396, - "column": 41 + "line": 385, + "column": 34 } } }, @@ -124782,16 +125171,16 @@ "postfix": false, "binop": null }, - "start": 14465, - "end": 14466, + "start": 14296, + "end": 14297, "loc": { "start": { - "line": 396, - "column": 41 + "line": 385, + "column": 34 }, "end": { - "line": 396, - "column": 42 + "line": 385, + "column": 35 } } }, @@ -124807,16 +125196,16 @@ "postfix": false, "binop": null }, - "start": 14467, - "end": 14468, + "start": 14298, + "end": 14299, "loc": { "start": { - "line": 396, - "column": 43 + "line": 385, + "column": 36 }, "end": { - "line": 396, - "column": 44 + "line": 385, + "column": 37 } } }, @@ -124835,15 +125224,15 @@ "updateContext": null }, "value": "if", - "start": 14471, - "end": 14473, + "start": 14302, + "end": 14304, "loc": { "start": { - "line": 397, + "line": 386, "column": 2 }, "end": { - "line": 397, + "line": 386, "column": 4 } } @@ -124860,15 +125249,15 @@ "postfix": false, "binop": null }, - "start": 14474, - "end": 14475, + "start": 14305, + "end": 14306, "loc": { "start": { - "line": 397, + "line": 386, "column": 5 }, "end": { - "line": 397, + "line": 386, "column": 6 } } @@ -124886,15 +125275,15 @@ "binop": null }, "value": "editor", - "start": 14475, - "end": 14481, + "start": 14306, + "end": 14312, "loc": { "start": { - "line": 397, + "line": 386, "column": 6 }, "end": { - "line": 397, + "line": 386, "column": 12 } } @@ -124912,15 +125301,15 @@ "binop": null, "updateContext": null }, - "start": 14481, - "end": 14482, + "start": 14312, + "end": 14313, "loc": { "start": { - "line": 397, + "line": 386, "column": 12 }, "end": { - "line": 397, + "line": 386, "column": 13 } } @@ -124938,15 +125327,15 @@ "binop": null }, "value": "recognizer", - "start": 14482, - "end": 14492, + "start": 14313, + "end": 14323, "loc": { "start": { - "line": 397, + "line": 386, "column": 13 }, "end": { - "line": 397, + "line": 386, "column": 23 } } @@ -124965,15 +125354,15 @@ "updateContext": null }, "value": "&&", - "start": 14493, - "end": 14495, + "start": 14324, + "end": 14326, "loc": { "start": { - "line": 397, + "line": 386, "column": 24 }, "end": { - "line": 397, + "line": 386, "column": 26 } } @@ -124991,15 +125380,15 @@ "binop": null }, "value": "editor", - "start": 14496, - "end": 14502, + "start": 14327, + "end": 14333, "loc": { "start": { - "line": 397, + "line": 386, "column": 27 }, "end": { - "line": 397, + "line": 386, "column": 33 } } @@ -125017,15 +125406,15 @@ "binop": null, "updateContext": null }, - "start": 14502, - "end": 14503, + "start": 14333, + "end": 14334, "loc": { "start": { - "line": 397, + "line": 386, "column": 33 }, "end": { - "line": 397, + "line": 386, "column": 34 } } @@ -125043,15 +125432,15 @@ "binop": null }, "value": "recognizer", - "start": 14503, - "end": 14513, + "start": 14334, + "end": 14344, "loc": { "start": { - "line": 397, + "line": 386, "column": 34 }, "end": { - "line": 397, + "line": 386, "column": 44 } } @@ -125069,15 +125458,15 @@ "binop": null, "updateContext": null }, - "start": 14513, - "end": 14514, + "start": 14344, + "end": 14345, "loc": { "start": { - "line": 397, + "line": 386, "column": 44 }, "end": { - "line": 397, + "line": 386, "column": 45 } } @@ -125094,17 +125483,17 @@ "postfix": false, "binop": null }, - "value": "setPenStyleClasses", - "start": 14514, - "end": 14532, + "value": "setPenStyle", + "start": 14345, + "end": 14356, "loc": { "start": { - "line": 397, + "line": 386, "column": 45 }, "end": { - "line": 397, - "column": 63 + "line": 386, + "column": 56 } } }, @@ -125120,16 +125509,16 @@ "postfix": false, "binop": null }, - "start": 14532, - "end": 14533, + "start": 14356, + "end": 14357, "loc": { "start": { - "line": 397, - "column": 63 + "line": 386, + "column": 56 }, "end": { - "line": 397, - "column": 64 + "line": 386, + "column": 57 } } }, @@ -125145,16 +125534,16 @@ "postfix": false, "binop": null }, - "start": 14534, - "end": 14535, + "start": 14358, + "end": 14359, "loc": { "start": { - "line": 397, - "column": 65 + "line": 386, + "column": 58 }, "end": { - "line": 397, - "column": 66 + "line": 386, + "column": 59 } } }, @@ -125171,15 +125560,15 @@ "binop": null }, "value": "editor", - "start": 14540, - "end": 14546, + "start": 14364, + "end": 14370, "loc": { "start": { - "line": 398, + "line": 387, "column": 4 }, "end": { - "line": 398, + "line": 387, "column": 10 } } @@ -125197,15 +125586,15 @@ "binop": null, "updateContext": null }, - "start": 14546, - "end": 14547, + "start": 14370, + "end": 14371, "loc": { "start": { - "line": 398, + "line": 387, "column": 10 }, "end": { - "line": 398, + "line": 387, "column": 11 } } @@ -125223,15 +125612,15 @@ "binop": null }, "value": "recognizerContext", - "start": 14547, - "end": 14564, + "start": 14371, + "end": 14388, "loc": { "start": { - "line": 398, + "line": 387, "column": 11 }, "end": { - "line": 398, + "line": 387, "column": 28 } } @@ -125249,15 +125638,15 @@ "binop": null, "updateContext": null }, - "start": 14564, - "end": 14565, + "start": 14388, + "end": 14389, "loc": { "start": { - "line": 398, + "line": 387, "column": 28 }, "end": { - "line": 398, + "line": 387, "column": 29 } } @@ -125275,15 +125664,15 @@ "binop": null }, "value": "initPromise", - "start": 14565, - "end": 14576, + "start": 14389, + "end": 14400, "loc": { "start": { - "line": 398, + "line": 387, "column": 29 }, "end": { - "line": 398, + "line": 387, "column": 40 } } @@ -125301,15 +125690,15 @@ "binop": null, "updateContext": null }, - "start": 14583, - "end": 14584, + "start": 14407, + "end": 14408, "loc": { "start": { - "line": 399, + "line": 388, "column": 6 }, "end": { - "line": 399, + "line": 388, "column": 7 } } @@ -125327,15 +125716,15 @@ "binop": null }, "value": "then", - "start": 14584, - "end": 14588, + "start": 14408, + "end": 14412, "loc": { "start": { - "line": 399, + "line": 388, "column": 7 }, "end": { - "line": 399, + "line": 388, "column": 11 } } @@ -125352,15 +125741,15 @@ "postfix": false, "binop": null }, - "start": 14588, - "end": 14589, + "start": 14412, + "end": 14413, "loc": { "start": { - "line": 399, + "line": 388, "column": 11 }, "end": { - "line": 399, + "line": 388, "column": 12 } } @@ -125377,15 +125766,15 @@ "postfix": false, "binop": null }, - "start": 14589, - "end": 14590, + "start": 14413, + "end": 14414, "loc": { "start": { - "line": 399, + "line": 388, "column": 12 }, "end": { - "line": 399, + "line": 388, "column": 13 } } @@ -125402,15 +125791,15 @@ "postfix": false, "binop": null }, - "start": 14590, - "end": 14591, + "start": 14414, + "end": 14415, "loc": { "start": { - "line": 399, + "line": 388, "column": 13 }, "end": { - "line": 399, + "line": 388, "column": 14 } } @@ -125428,15 +125817,15 @@ "binop": null, "updateContext": null }, - "start": 14592, - "end": 14594, + "start": 14416, + "end": 14418, "loc": { "start": { - "line": 399, + "line": 388, "column": 15 }, "end": { - "line": 399, + "line": 388, "column": 17 } } @@ -125453,15 +125842,15 @@ "postfix": false, "binop": null }, - "start": 14595, - "end": 14596, + "start": 14419, + "end": 14420, "loc": { "start": { - "line": 399, + "line": 388, "column": 18 }, "end": { - "line": 399, + "line": 388, "column": 19 } } @@ -125479,15 +125868,15 @@ "binop": null }, "value": "editor", - "start": 14605, - "end": 14611, + "start": 14429, + "end": 14435, "loc": { "start": { - "line": 400, + "line": 389, "column": 8 }, "end": { - "line": 400, + "line": 389, "column": 14 } } @@ -125505,15 +125894,15 @@ "binop": null, "updateContext": null }, - "start": 14611, - "end": 14612, + "start": 14435, + "end": 14436, "loc": { "start": { - "line": 400, + "line": 389, "column": 14 }, "end": { - "line": 400, + "line": 389, "column": 15 } } @@ -125531,15 +125920,15 @@ "binop": null }, "value": "recognizer", - "start": 14612, - "end": 14622, + "start": 14436, + "end": 14446, "loc": { "start": { - "line": 400, + "line": 389, "column": 15 }, "end": { - "line": 400, + "line": 389, "column": 25 } } @@ -125557,15 +125946,15 @@ "binop": null, "updateContext": null }, - "start": 14622, - "end": 14623, + "start": 14446, + "end": 14447, "loc": { "start": { - "line": 400, + "line": 389, "column": 25 }, "end": { - "line": 400, + "line": 389, "column": 26 } } @@ -125582,17 +125971,17 @@ "postfix": false, "binop": null }, - "value": "setPenStyleClasses", - "start": 14623, - "end": 14641, + "value": "setPenStyle", + "start": 14447, + "end": 14458, "loc": { "start": { - "line": 400, + "line": 389, "column": 26 }, "end": { - "line": 400, - "column": 44 + "line": 389, + "column": 37 } } }, @@ -125608,16 +125997,16 @@ "postfix": false, "binop": null }, - "start": 14641, - "end": 14642, + "start": 14458, + "end": 14459, "loc": { "start": { - "line": 400, - "column": 44 + "line": 389, + "column": 37 }, "end": { - "line": 400, - "column": 45 + "line": 389, + "column": 38 } } }, @@ -125634,16 +126023,16 @@ "binop": null }, "value": "editor", - "start": 14642, - "end": 14648, + "start": 14459, + "end": 14465, "loc": { "start": { - "line": 400, - "column": 45 + "line": 389, + "column": 38 }, "end": { - "line": 400, - "column": 51 + "line": 389, + "column": 44 } } }, @@ -125660,16 +126049,16 @@ "binop": null, "updateContext": null }, - "start": 14648, - "end": 14649, + "start": 14465, + "end": 14466, "loc": { "start": { - "line": 400, - "column": 51 + "line": 389, + "column": 44 }, "end": { - "line": 400, - "column": 52 + "line": 389, + "column": 45 } } }, @@ -125686,16 +126075,16 @@ "binop": null }, "value": "recognizerContext", - "start": 14649, - "end": 14666, + "start": 14466, + "end": 14483, "loc": { "start": { - "line": 400, - "column": 52 + "line": 389, + "column": 45 }, "end": { - "line": 400, - "column": 69 + "line": 389, + "column": 62 } } }, @@ -125712,16 +126101,16 @@ "binop": null, "updateContext": null }, - "start": 14666, - "end": 14667, + "start": 14483, + "end": 14484, "loc": { "start": { - "line": 400, - "column": 69 + "line": 389, + "column": 62 }, "end": { - "line": 400, - "column": 70 + "line": 389, + "column": 63 } } }, @@ -125738,16 +126127,16 @@ "binop": null }, "value": "model", - "start": 14668, - "end": 14673, + "start": 14485, + "end": 14490, "loc": { "start": { - "line": 400, - "column": 71 + "line": 389, + "column": 64 }, "end": { - "line": 400, - "column": 76 + "line": 389, + "column": 69 } } }, @@ -125764,16 +126153,16 @@ "binop": null, "updateContext": null }, - "start": 14673, - "end": 14674, + "start": 14490, + "end": 14491, "loc": { "start": { - "line": 400, - "column": 76 + "line": 389, + "column": 69 }, "end": { - "line": 400, - "column": 77 + "line": 389, + "column": 70 } } }, @@ -125790,16 +126179,16 @@ "binop": null }, "value": "editor", - "start": 14675, - "end": 14681, + "start": 14492, + "end": 14498, "loc": { "start": { - "line": 400, - "column": 78 + "line": 389, + "column": 71 }, "end": { - "line": 400, - "column": 84 + "line": 389, + "column": 77 } } }, @@ -125816,16 +126205,16 @@ "binop": null, "updateContext": null }, - "start": 14681, - "end": 14682, + "start": 14498, + "end": 14499, "loc": { "start": { - "line": 400, - "column": 84 + "line": 389, + "column": 77 }, "end": { - "line": 400, - "column": 85 + "line": 389, + "column": 78 } } }, @@ -125841,17 +126230,17 @@ "postfix": false, "binop": null }, - "value": "penStyleClasses", - "start": 14682, - "end": 14697, + "value": "penStyle", + "start": 14499, + "end": 14507, "loc": { "start": { - "line": 400, - "column": 85 + "line": 389, + "column": 78 }, "end": { - "line": 400, - "column": 100 + "line": 389, + "column": 86 } } }, @@ -125868,16 +126257,16 @@ "binop": null, "updateContext": null }, - "start": 14697, - "end": 14698, + "start": 14507, + "end": 14508, "loc": { "start": { - "line": 400, - "column": 100 + "line": 389, + "column": 86 }, "end": { - "line": 400, - "column": 101 + "line": 389, + "column": 87 } } }, @@ -125893,16 +126282,16 @@ "postfix": false, "binop": null }, - "start": 14699, - "end": 14700, + "start": 14509, + "end": 14510, "loc": { "start": { - "line": 400, - "column": 102 + "line": 389, + "column": 88 }, "end": { - "line": 400, - "column": 103 + "line": 389, + "column": 89 } } }, @@ -125919,16 +126308,16 @@ "binop": null }, "value": "err", - "start": 14700, - "end": 14703, + "start": 14510, + "end": 14513, "loc": { "start": { - "line": 400, - "column": 103 + "line": 389, + "column": 89 }, "end": { - "line": 400, - "column": 106 + "line": 389, + "column": 92 } } }, @@ -125945,16 +126334,16 @@ "binop": null, "updateContext": null }, - "start": 14703, - "end": 14704, + "start": 14513, + "end": 14514, "loc": { "start": { - "line": 400, - "column": 106 + "line": 389, + "column": 92 }, "end": { - "line": 400, - "column": 107 + "line": 389, + "column": 93 } } }, @@ -125971,16 +126360,16 @@ "binop": null }, "value": "res", - "start": 14705, - "end": 14708, + "start": 14515, + "end": 14518, "loc": { "start": { - "line": 400, - "column": 108 + "line": 389, + "column": 94 }, "end": { - "line": 400, - "column": 111 + "line": 389, + "column": 97 } } }, @@ -125997,16 +126386,16 @@ "binop": null, "updateContext": null }, - "start": 14708, - "end": 14709, + "start": 14518, + "end": 14519, "loc": { "start": { - "line": 400, - "column": 111 + "line": 389, + "column": 97 }, "end": { - "line": 400, - "column": 112 + "line": 389, + "column": 98 } } }, @@ -126023,16 +126412,16 @@ "binop": null, "updateContext": null }, - "start": 14710, - "end": 14713, + "start": 14520, + "end": 14523, "loc": { "start": { - "line": 400, - "column": 113 + "line": 389, + "column": 99 }, "end": { - "line": 400, - "column": 116 + "line": 389, + "column": 102 } } }, @@ -126049,16 +126438,16 @@ "binop": null }, "value": "types", - "start": 14713, - "end": 14718, + "start": 14523, + "end": 14528, "loc": { "start": { - "line": 400, - "column": 116 + "line": 389, + "column": 102 }, "end": { - "line": 400, - "column": 121 + "line": 389, + "column": 107 } } }, @@ -126074,16 +126463,16 @@ "postfix": false, "binop": null }, - "start": 14718, - "end": 14719, + "start": 14528, + "end": 14529, "loc": { "start": { - "line": 400, - "column": 121 + "line": 389, + "column": 107 }, "end": { - "line": 400, - "column": 122 + "line": 389, + "column": 108 } } }, @@ -126100,16 +126489,16 @@ "binop": null, "updateContext": null }, - "start": 14720, - "end": 14722, + "start": 14530, + "end": 14532, "loc": { "start": { - "line": 400, - "column": 123 - }, + "line": 389, + "column": 109 + }, "end": { - "line": 400, - "column": 125 + "line": 389, + "column": 111 } } }, @@ -126125,16 +126514,16 @@ "postfix": false, "binop": null }, - "start": 14723, - "end": 14724, + "start": 14533, + "end": 14534, "loc": { "start": { - "line": 400, - "column": 126 + "line": 389, + "column": 112 }, "end": { - "line": 400, - "column": 127 + "line": 389, + "column": 113 } } }, @@ -126151,15 +126540,15 @@ "binop": null }, "value": "recognizerCallback", - "start": 14735, - "end": 14753, + "start": 14545, + "end": 14563, "loc": { "start": { - "line": 401, + "line": 390, "column": 10 }, "end": { - "line": 401, + "line": 390, "column": 28 } } @@ -126176,15 +126565,15 @@ "postfix": false, "binop": null }, - "start": 14753, - "end": 14754, + "start": 14563, + "end": 14564, "loc": { "start": { - "line": 401, + "line": 390, "column": 28 }, "end": { - "line": 401, + "line": 390, "column": 29 } } @@ -126202,15 +126591,15 @@ "binop": null }, "value": "editor", - "start": 14754, - "end": 14760, + "start": 14564, + "end": 14570, "loc": { "start": { - "line": 401, + "line": 390, "column": 29 }, "end": { - "line": 401, + "line": 390, "column": 35 } } @@ -126228,15 +126617,15 @@ "binop": null, "updateContext": null }, - "start": 14760, - "end": 14761, + "start": 14570, + "end": 14571, "loc": { "start": { - "line": 401, + "line": 390, "column": 35 }, "end": { - "line": 401, + "line": 390, "column": 36 } } @@ -126254,15 +126643,15 @@ "binop": null }, "value": "err", - "start": 14762, - "end": 14765, + "start": 14572, + "end": 14575, "loc": { "start": { - "line": 401, + "line": 390, "column": 37 }, "end": { - "line": 401, + "line": 390, "column": 40 } } @@ -126280,15 +126669,15 @@ "binop": null, "updateContext": null }, - "start": 14765, - "end": 14766, + "start": 14575, + "end": 14576, "loc": { "start": { - "line": 401, + "line": 390, "column": 40 }, "end": { - "line": 401, + "line": 390, "column": 41 } } @@ -126306,15 +126695,15 @@ "binop": null }, "value": "res", - "start": 14767, - "end": 14770, + "start": 14577, + "end": 14580, "loc": { "start": { - "line": 401, + "line": 390, "column": 42 }, "end": { - "line": 401, + "line": 390, "column": 45 } } @@ -126332,15 +126721,15 @@ "binop": null, "updateContext": null }, - "start": 14770, - "end": 14771, + "start": 14580, + "end": 14581, "loc": { "start": { - "line": 401, + "line": 390, "column": 45 }, "end": { - "line": 401, + "line": 390, "column": 46 } } @@ -126358,15 +126747,15 @@ "binop": null, "updateContext": null }, - "start": 14772, - "end": 14775, + "start": 14582, + "end": 14585, "loc": { "start": { - "line": 401, + "line": 390, "column": 47 }, "end": { - "line": 401, + "line": 390, "column": 50 } } @@ -126384,15 +126773,15 @@ "binop": null }, "value": "types", - "start": 14775, - "end": 14780, + "start": 14585, + "end": 14590, "loc": { "start": { - "line": 401, + "line": 390, "column": 50 }, "end": { - "line": 401, + "line": 390, "column": 55 } } @@ -126409,15 +126798,15 @@ "postfix": false, "binop": null }, - "start": 14780, - "end": 14781, + "start": 14590, + "end": 14591, "loc": { "start": { - "line": 401, + "line": 390, "column": 55 }, "end": { - "line": 401, + "line": 390, "column": 56 } } @@ -126435,15 +126824,15 @@ "binop": null, "updateContext": null }, - "start": 14781, - "end": 14782, + "start": 14591, + "end": 14592, "loc": { "start": { - "line": 401, + "line": 390, "column": 56 }, "end": { - "line": 401, + "line": 390, "column": 57 } } @@ -126460,15 +126849,15 @@ "postfix": false, "binop": null }, - "start": 14791, - "end": 14792, + "start": 14601, + "end": 14602, "loc": { "start": { - "line": 402, + "line": 391, "column": 8 }, "end": { - "line": 402, + "line": 391, "column": 9 } } @@ -126485,15 +126874,15 @@ "postfix": false, "binop": null }, - "start": 14792, - "end": 14793, + "start": 14602, + "end": 14603, "loc": { "start": { - "line": 402, + "line": 391, "column": 9 }, "end": { - "line": 402, + "line": 391, "column": 10 } } @@ -126511,15 +126900,15 @@ "binop": null, "updateContext": null }, - "start": 14793, - "end": 14794, + "start": 14603, + "end": 14604, "loc": { "start": { - "line": 402, + "line": 391, "column": 10 }, "end": { - "line": 402, + "line": 391, "column": 11 } } @@ -126536,15 +126925,15 @@ "postfix": false, "binop": null }, - "start": 14801, - "end": 14802, + "start": 14611, + "end": 14612, "loc": { "start": { - "line": 403, + "line": 392, "column": 6 }, "end": { - "line": 403, + "line": 392, "column": 7 } } @@ -126561,15 +126950,15 @@ "postfix": false, "binop": null }, - "start": 14802, - "end": 14803, + "start": 14612, + "end": 14613, "loc": { "start": { - "line": 403, + "line": 392, "column": 7 }, "end": { - "line": 403, + "line": 392, "column": 8 } } @@ -126587,15 +126976,15 @@ "binop": null, "updateContext": null }, - "start": 14803, - "end": 14804, + "start": 14613, + "end": 14614, "loc": { "start": { - "line": 403, + "line": 392, "column": 8 }, "end": { - "line": 403, + "line": 392, "column": 9 } } @@ -126612,15 +127001,15 @@ "postfix": false, "binop": null }, - "start": 14807, - "end": 14808, + "start": 14617, + "end": 14618, "loc": { "start": { - "line": 404, + "line": 393, "column": 2 }, "end": { - "line": 404, + "line": 393, "column": 3 } } @@ -126637,31 +127026,31 @@ "postfix": false, "binop": null }, - "start": 14809, - "end": 14810, + "start": 14619, + "end": 14620, "loc": { "start": { - "line": 405, + "line": 394, "column": 0 }, "end": { - "line": 405, + "line": 394, "column": 1 } } }, { "type": "CommentBlock", - "value": "*\n * Set theme.\n * @param {Editor} editor\n * @param {Model} model\n ", - "start": 14812, - "end": 14883, + "value": "*\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n ", + "start": 14622, + "end": 14697, "loc": { "start": { - "line": 407, + "line": 396, "column": 0 }, "end": { - "line": 411, + "line": 400, "column": 3 } } @@ -126680,15 +127069,15 @@ "binop": null }, "value": "function", - "start": 14884, - "end": 14892, + "start": 14698, + "end": 14706, "loc": { "start": { - "line": 412, + "line": 401, "column": 0 }, "end": { - "line": 412, + "line": 401, "column": 8 } } @@ -126705,17 +127094,17 @@ "postfix": false, "binop": null }, - "value": "setTheme", - "start": 14893, - "end": 14901, + "value": "setPenStyleClasses", + "start": 14707, + "end": 14725, "loc": { "start": { - "line": 412, + "line": 401, "column": 9 }, "end": { - "line": 412, - "column": 17 + "line": 401, + "column": 27 } } }, @@ -126731,16 +127120,16 @@ "postfix": false, "binop": null }, - "start": 14901, - "end": 14902, + "start": 14725, + "end": 14726, "loc": { "start": { - "line": 412, - "column": 17 + "line": 401, + "column": 27 }, "end": { - "line": 412, - "column": 18 + "line": 401, + "column": 28 } } }, @@ -126757,16 +127146,16 @@ "binop": null }, "value": "editor", - "start": 14902, - "end": 14908, + "start": 14726, + "end": 14732, "loc": { "start": { - "line": 412, - "column": 18 + "line": 401, + "column": 28 }, "end": { - "line": 412, - "column": 24 + "line": 401, + "column": 34 } } }, @@ -126783,16 +127172,16 @@ "binop": null, "updateContext": null }, - "start": 14908, - "end": 14909, + "start": 14732, + "end": 14733, "loc": { "start": { - "line": 412, - "column": 24 + "line": 401, + "column": 34 }, "end": { - "line": 412, - "column": 25 + "line": 401, + "column": 35 } } }, @@ -126809,16 +127198,16 @@ "binop": null }, "value": "model", - "start": 14910, - "end": 14915, + "start": 14734, + "end": 14739, "loc": { "start": { - "line": 412, - "column": 26 + "line": 401, + "column": 36 }, "end": { - "line": 412, - "column": 31 + "line": 401, + "column": 41 } } }, @@ -126834,16 +127223,16 @@ "postfix": false, "binop": null }, - "start": 14915, - "end": 14916, + "start": 14739, + "end": 14740, "loc": { "start": { - "line": 412, - "column": 31 + "line": 401, + "column": 41 }, "end": { - "line": 412, - "column": 32 + "line": 401, + "column": 42 } } }, @@ -126859,16 +127248,16 @@ "postfix": false, "binop": null }, - "start": 14917, - "end": 14918, + "start": 14741, + "end": 14742, "loc": { "start": { - "line": 412, - "column": 33 + "line": 401, + "column": 43 }, "end": { - "line": 412, - "column": 34 + "line": 401, + "column": 44 } } }, @@ -126887,15 +127276,15 @@ "updateContext": null }, "value": "if", - "start": 14921, - "end": 14923, + "start": 14745, + "end": 14747, "loc": { "start": { - "line": 413, + "line": 402, "column": 2 }, "end": { - "line": 413, + "line": 402, "column": 4 } } @@ -126912,15 +127301,15 @@ "postfix": false, "binop": null }, - "start": 14924, - "end": 14925, + "start": 14748, + "end": 14749, "loc": { "start": { - "line": 413, + "line": 402, "column": 5 }, "end": { - "line": 413, + "line": 402, "column": 6 } } @@ -126938,15 +127327,15 @@ "binop": null }, "value": "editor", - "start": 14925, - "end": 14931, + "start": 14749, + "end": 14755, "loc": { "start": { - "line": 413, + "line": 402, "column": 6 }, "end": { - "line": 413, + "line": 402, "column": 12 } } @@ -126964,15 +127353,15 @@ "binop": null, "updateContext": null }, - "start": 14931, - "end": 14932, + "start": 14755, + "end": 14756, "loc": { "start": { - "line": 413, + "line": 402, "column": 12 }, "end": { - "line": 413, + "line": 402, "column": 13 } } @@ -126990,15 +127379,15 @@ "binop": null }, "value": "recognizer", - "start": 14932, - "end": 14942, + "start": 14756, + "end": 14766, "loc": { "start": { - "line": 413, + "line": 402, "column": 13 }, "end": { - "line": 413, + "line": 402, "column": 23 } } @@ -127017,15 +127406,15 @@ "updateContext": null }, "value": "&&", - "start": 14943, - "end": 14945, + "start": 14767, + "end": 14769, "loc": { "start": { - "line": 413, + "line": 402, "column": 24 }, "end": { - "line": 413, + "line": 402, "column": 26 } } @@ -127043,15 +127432,15 @@ "binop": null }, "value": "editor", - "start": 14946, - "end": 14952, + "start": 14770, + "end": 14776, "loc": { "start": { - "line": 413, + "line": 402, "column": 27 }, "end": { - "line": 413, + "line": 402, "column": 33 } } @@ -127069,15 +127458,15 @@ "binop": null, "updateContext": null }, - "start": 14952, - "end": 14953, + "start": 14776, + "end": 14777, "loc": { "start": { - "line": 413, + "line": 402, "column": 33 }, "end": { - "line": 413, + "line": 402, "column": 34 } } @@ -127095,15 +127484,15 @@ "binop": null }, "value": "recognizer", - "start": 14953, - "end": 14963, + "start": 14777, + "end": 14787, "loc": { "start": { - "line": 413, + "line": 402, "column": 34 }, "end": { - "line": 413, + "line": 402, "column": 44 } } @@ -127121,15 +127510,15 @@ "binop": null, "updateContext": null }, - "start": 14963, - "end": 14964, + "start": 14787, + "end": 14788, "loc": { "start": { - "line": 413, + "line": 402, "column": 44 }, "end": { - "line": 413, + "line": 402, "column": 45 } } @@ -127146,17 +127535,17 @@ "postfix": false, "binop": null }, - "value": "setTheme", - "start": 14964, - "end": 14972, + "value": "setPenStyleClasses", + "start": 14788, + "end": 14806, "loc": { "start": { - "line": 413, + "line": 402, "column": 45 }, "end": { - "line": 413, - "column": 53 + "line": 402, + "column": 63 } } }, @@ -127172,16 +127561,16 @@ "postfix": false, "binop": null }, - "start": 14972, - "end": 14973, + "start": 14806, + "end": 14807, "loc": { "start": { - "line": 413, - "column": 53 + "line": 402, + "column": 63 }, "end": { - "line": 413, - "column": 54 + "line": 402, + "column": 64 } } }, @@ -127197,16 +127586,16 @@ "postfix": false, "binop": null }, - "start": 14974, - "end": 14975, + "start": 14808, + "end": 14809, "loc": { "start": { - "line": 413, - "column": 55 + "line": 402, + "column": 65 }, "end": { - "line": 413, - "column": 56 + "line": 402, + "column": 66 } } }, @@ -127223,15 +127612,15 @@ "binop": null }, "value": "editor", - "start": 14980, - "end": 14986, + "start": 14814, + "end": 14820, "loc": { "start": { - "line": 414, + "line": 403, "column": 4 }, "end": { - "line": 414, + "line": 403, "column": 10 } } @@ -127249,15 +127638,15 @@ "binop": null, "updateContext": null }, - "start": 14986, - "end": 14987, + "start": 14820, + "end": 14821, "loc": { "start": { - "line": 414, + "line": 403, "column": 10 }, "end": { - "line": 414, + "line": 403, "column": 11 } } @@ -127275,15 +127664,15 @@ "binop": null }, "value": "recognizerContext", - "start": 14987, - "end": 15004, + "start": 14821, + "end": 14838, "loc": { "start": { - "line": 414, + "line": 403, "column": 11 }, "end": { - "line": 414, + "line": 403, "column": 28 } } @@ -127301,15 +127690,15 @@ "binop": null, "updateContext": null }, - "start": 15004, - "end": 15005, + "start": 14838, + "end": 14839, "loc": { "start": { - "line": 414, + "line": 403, "column": 28 }, "end": { - "line": 414, + "line": 403, "column": 29 } } @@ -127327,15 +127716,15 @@ "binop": null }, "value": "initPromise", - "start": 15005, - "end": 15016, + "start": 14839, + "end": 14850, "loc": { "start": { - "line": 414, + "line": 403, "column": 29 }, "end": { - "line": 414, + "line": 403, "column": 40 } } @@ -127353,15 +127742,15 @@ "binop": null, "updateContext": null }, - "start": 15023, - "end": 15024, + "start": 14857, + "end": 14858, "loc": { "start": { - "line": 415, + "line": 404, "column": 6 }, "end": { - "line": 415, + "line": 404, "column": 7 } } @@ -127379,15 +127768,15 @@ "binop": null }, "value": "then", - "start": 15024, - "end": 15028, + "start": 14858, + "end": 14862, "loc": { "start": { - "line": 415, + "line": 404, "column": 7 }, "end": { - "line": 415, + "line": 404, "column": 11 } } @@ -127404,15 +127793,15 @@ "postfix": false, "binop": null }, - "start": 15028, - "end": 15029, + "start": 14862, + "end": 14863, "loc": { "start": { - "line": 415, + "line": 404, "column": 11 }, "end": { - "line": 415, + "line": 404, "column": 12 } } @@ -127429,15 +127818,15 @@ "postfix": false, "binop": null }, - "start": 15029, - "end": 15030, + "start": 14863, + "end": 14864, "loc": { "start": { - "line": 415, + "line": 404, "column": 12 }, "end": { - "line": 415, + "line": 404, "column": 13 } } @@ -127454,15 +127843,15 @@ "postfix": false, "binop": null }, - "start": 15030, - "end": 15031, + "start": 14864, + "end": 14865, "loc": { "start": { - "line": 415, + "line": 404, "column": 13 }, "end": { - "line": 415, + "line": 404, "column": 14 } } @@ -127480,15 +127869,15 @@ "binop": null, "updateContext": null }, - "start": 15032, - "end": 15034, + "start": 14866, + "end": 14868, "loc": { "start": { - "line": 415, + "line": 404, "column": 15 }, "end": { - "line": 415, + "line": 404, "column": 17 } } @@ -127505,15 +127894,15 @@ "postfix": false, "binop": null }, - "start": 15035, - "end": 15036, + "start": 14869, + "end": 14870, "loc": { "start": { - "line": 415, + "line": 404, "column": 18 }, "end": { - "line": 415, + "line": 404, "column": 19 } } @@ -127531,15 +127920,15 @@ "binop": null }, "value": "editor", - "start": 15045, - "end": 15051, + "start": 14879, + "end": 14885, "loc": { "start": { - "line": 416, + "line": 405, "column": 8 }, "end": { - "line": 416, + "line": 405, "column": 14 } } @@ -127557,15 +127946,15 @@ "binop": null, "updateContext": null }, - "start": 15051, - "end": 15052, + "start": 14885, + "end": 14886, "loc": { "start": { - "line": 416, + "line": 405, "column": 14 }, "end": { - "line": 416, + "line": 405, "column": 15 } } @@ -127583,15 +127972,15 @@ "binop": null }, "value": "recognizer", - "start": 15052, - "end": 15062, + "start": 14886, + "end": 14896, "loc": { "start": { - "line": 416, + "line": 405, "column": 15 }, "end": { - "line": 416, + "line": 405, "column": 25 } } @@ -127609,15 +127998,15 @@ "binop": null, "updateContext": null }, - "start": 15062, - "end": 15063, + "start": 14896, + "end": 14897, "loc": { "start": { - "line": 416, + "line": 405, "column": 25 }, "end": { - "line": 416, + "line": 405, "column": 26 } } @@ -127634,17 +128023,17 @@ "postfix": false, "binop": null }, - "value": "setTheme", - "start": 15063, - "end": 15071, + "value": "setPenStyleClasses", + "start": 14897, + "end": 14915, "loc": { "start": { - "line": 416, + "line": 405, "column": 26 }, "end": { - "line": 416, - "column": 34 + "line": 405, + "column": 44 } } }, @@ -127660,16 +128049,16 @@ "postfix": false, "binop": null }, - "start": 15071, - "end": 15072, + "start": 14915, + "end": 14916, "loc": { "start": { - "line": 416, - "column": 34 + "line": 405, + "column": 44 }, "end": { - "line": 416, - "column": 35 + "line": 405, + "column": 45 } } }, @@ -127686,16 +128075,16 @@ "binop": null }, "value": "editor", - "start": 15072, - "end": 15078, + "start": 14916, + "end": 14922, "loc": { "start": { - "line": 416, - "column": 35 + "line": 405, + "column": 45 }, "end": { - "line": 416, - "column": 41 + "line": 405, + "column": 51 } } }, @@ -127712,16 +128101,16 @@ "binop": null, "updateContext": null }, - "start": 15078, - "end": 15079, + "start": 14922, + "end": 14923, "loc": { "start": { - "line": 416, - "column": 41 + "line": 405, + "column": 51 }, "end": { - "line": 416, - "column": 42 + "line": 405, + "column": 52 } } }, @@ -127738,16 +128127,16 @@ "binop": null }, "value": "recognizerContext", - "start": 15079, - "end": 15096, + "start": 14923, + "end": 14940, "loc": { "start": { - "line": 416, - "column": 42 + "line": 405, + "column": 52 }, "end": { - "line": 416, - "column": 59 + "line": 405, + "column": 69 } } }, @@ -127764,16 +128153,16 @@ "binop": null, "updateContext": null }, - "start": 15096, - "end": 15097, + "start": 14940, + "end": 14941, "loc": { "start": { - "line": 416, - "column": 59 + "line": 405, + "column": 69 }, "end": { - "line": 416, - "column": 60 + "line": 405, + "column": 70 } } }, @@ -127790,16 +128179,16 @@ "binop": null }, "value": "model", - "start": 15098, - "end": 15103, + "start": 14942, + "end": 14947, "loc": { "start": { - "line": 416, - "column": 61 + "line": 405, + "column": 71 }, "end": { - "line": 416, - "column": 66 + "line": 405, + "column": 76 } } }, @@ -127816,16 +128205,16 @@ "binop": null, "updateContext": null }, - "start": 15103, - "end": 15104, + "start": 14947, + "end": 14948, "loc": { "start": { - "line": 416, - "column": 66 + "line": 405, + "column": 76 }, "end": { - "line": 416, - "column": 67 + "line": 405, + "column": 77 } } }, @@ -127842,16 +128231,16 @@ "binop": null }, "value": "editor", - "start": 15105, - "end": 15111, + "start": 14949, + "end": 14955, "loc": { "start": { - "line": 416, - "column": 68 + "line": 405, + "column": 78 }, "end": { - "line": 416, - "column": 74 + "line": 405, + "column": 84 } } }, @@ -127868,16 +128257,16 @@ "binop": null, "updateContext": null }, - "start": 15111, - "end": 15112, + "start": 14955, + "end": 14956, "loc": { "start": { - "line": 416, - "column": 74 + "line": 405, + "column": 84 }, "end": { - "line": 416, - "column": 75 + "line": 405, + "column": 85 } } }, @@ -127893,17 +128282,17 @@ "postfix": false, "binop": null }, - "value": "theme", - "start": 15112, - "end": 15117, + "value": "penStyleClasses", + "start": 14956, + "end": 14971, "loc": { "start": { - "line": 416, - "column": 75 + "line": 405, + "column": 85 }, "end": { - "line": 416, - "column": 80 + "line": 405, + "column": 100 } } }, @@ -127920,16 +128309,16 @@ "binop": null, "updateContext": null }, - "start": 15117, - "end": 15118, + "start": 14971, + "end": 14972, "loc": { "start": { - "line": 416, - "column": 80 + "line": 405, + "column": 100 }, "end": { - "line": 416, - "column": 81 + "line": 405, + "column": 101 } } }, @@ -127945,16 +128334,16 @@ "postfix": false, "binop": null }, - "start": 15119, - "end": 15120, + "start": 14973, + "end": 14974, "loc": { "start": { - "line": 416, - "column": 82 + "line": 405, + "column": 102 }, "end": { - "line": 416, - "column": 83 + "line": 405, + "column": 103 } } }, @@ -127971,16 +128360,16 @@ "binop": null }, "value": "err", - "start": 15120, - "end": 15123, + "start": 14974, + "end": 14977, "loc": { "start": { - "line": 416, - "column": 83 + "line": 405, + "column": 103 }, "end": { - "line": 416, - "column": 86 + "line": 405, + "column": 106 } } }, @@ -127997,16 +128386,16 @@ "binop": null, "updateContext": null }, - "start": 15123, - "end": 15124, + "start": 14977, + "end": 14978, "loc": { "start": { - "line": 416, - "column": 86 + "line": 405, + "column": 106 }, "end": { - "line": 416, - "column": 87 + "line": 405, + "column": 107 } } }, @@ -128023,16 +128412,16 @@ "binop": null }, "value": "res", - "start": 15125, - "end": 15128, + "start": 14979, + "end": 14982, "loc": { "start": { - "line": 416, - "column": 88 + "line": 405, + "column": 108 }, "end": { - "line": 416, - "column": 91 + "line": 405, + "column": 111 } } }, @@ -128049,16 +128438,16 @@ "binop": null, "updateContext": null }, - "start": 15128, - "end": 15129, + "start": 14982, + "end": 14983, "loc": { "start": { - "line": 416, - "column": 91 + "line": 405, + "column": 111 }, "end": { - "line": 416, - "column": 92 + "line": 405, + "column": 112 } } }, @@ -128075,16 +128464,16 @@ "binop": null, "updateContext": null }, - "start": 15130, - "end": 15133, + "start": 14984, + "end": 14987, "loc": { "start": { - "line": 416, - "column": 93 + "line": 405, + "column": 113 }, "end": { - "line": 416, - "column": 96 + "line": 405, + "column": 116 } } }, @@ -128101,16 +128490,16 @@ "binop": null }, "value": "types", - "start": 15133, - "end": 15138, + "start": 14987, + "end": 14992, "loc": { "start": { - "line": 416, - "column": 96 + "line": 405, + "column": 116 }, "end": { - "line": 416, - "column": 101 + "line": 405, + "column": 121 } } }, @@ -128126,16 +128515,16 @@ "postfix": false, "binop": null }, - "start": 15138, - "end": 15139, + "start": 14992, + "end": 14993, "loc": { "start": { - "line": 416, - "column": 101 + "line": 405, + "column": 121 }, "end": { - "line": 416, - "column": 102 + "line": 405, + "column": 122 } } }, @@ -128152,16 +128541,16 @@ "binop": null, "updateContext": null }, - "start": 15140, - "end": 15142, + "start": 14994, + "end": 14996, "loc": { "start": { - "line": 416, - "column": 103 + "line": 405, + "column": 123 }, "end": { - "line": 416, - "column": 105 + "line": 405, + "column": 125 } } }, @@ -128177,16 +128566,16 @@ "postfix": false, "binop": null }, - "start": 15143, - "end": 15144, + "start": 14997, + "end": 14998, "loc": { "start": { - "line": 416, - "column": 106 + "line": 405, + "column": 126 }, "end": { - "line": 416, - "column": 107 + "line": 405, + "column": 127 } } }, @@ -128203,15 +128592,15 @@ "binop": null }, "value": "recognizerCallback", - "start": 15155, - "end": 15173, + "start": 15009, + "end": 15027, "loc": { "start": { - "line": 417, + "line": 406, "column": 10 }, "end": { - "line": 417, + "line": 406, "column": 28 } } @@ -128228,15 +128617,15 @@ "postfix": false, "binop": null }, - "start": 15173, - "end": 15174, + "start": 15027, + "end": 15028, "loc": { "start": { - "line": 417, + "line": 406, "column": 28 }, "end": { - "line": 417, + "line": 406, "column": 29 } } @@ -128254,15 +128643,15 @@ "binop": null }, "value": "editor", - "start": 15174, - "end": 15180, + "start": 15028, + "end": 15034, "loc": { "start": { - "line": 417, + "line": 406, "column": 29 }, "end": { - "line": 417, + "line": 406, "column": 35 } } @@ -128280,15 +128669,15 @@ "binop": null, "updateContext": null }, - "start": 15180, - "end": 15181, + "start": 15034, + "end": 15035, "loc": { "start": { - "line": 417, + "line": 406, "column": 35 }, "end": { - "line": 417, + "line": 406, "column": 36 } } @@ -128306,15 +128695,15 @@ "binop": null }, "value": "err", - "start": 15182, - "end": 15185, + "start": 15036, + "end": 15039, "loc": { "start": { - "line": 417, + "line": 406, "column": 37 }, "end": { - "line": 417, + "line": 406, "column": 40 } } @@ -128332,15 +128721,15 @@ "binop": null, "updateContext": null }, - "start": 15185, - "end": 15186, + "start": 15039, + "end": 15040, "loc": { "start": { - "line": 417, + "line": 406, "column": 40 }, "end": { - "line": 417, + "line": 406, "column": 41 } } @@ -128358,15 +128747,15 @@ "binop": null }, "value": "res", - "start": 15187, - "end": 15190, + "start": 15041, + "end": 15044, "loc": { "start": { - "line": 417, + "line": 406, "column": 42 }, "end": { - "line": 417, + "line": 406, "column": 45 } } @@ -128384,15 +128773,15 @@ "binop": null, "updateContext": null }, - "start": 15190, - "end": 15191, + "start": 15044, + "end": 15045, "loc": { "start": { - "line": 417, + "line": 406, "column": 45 }, "end": { - "line": 417, + "line": 406, "column": 46 } } @@ -128410,15 +128799,15 @@ "binop": null, "updateContext": null }, - "start": 15192, - "end": 15195, + "start": 15046, + "end": 15049, "loc": { "start": { - "line": 417, + "line": 406, "column": 47 }, "end": { - "line": 417, + "line": 406, "column": 50 } } @@ -128436,15 +128825,15 @@ "binop": null }, "value": "types", - "start": 15195, - "end": 15200, + "start": 15049, + "end": 15054, "loc": { "start": { - "line": 417, + "line": 406, "column": 50 }, "end": { - "line": 417, + "line": 406, "column": 55 } } @@ -128461,15 +128850,15 @@ "postfix": false, "binop": null }, - "start": 15200, - "end": 15201, + "start": 15054, + "end": 15055, "loc": { "start": { - "line": 417, + "line": 406, "column": 55 }, "end": { - "line": 417, + "line": 406, "column": 56 } } @@ -128487,15 +128876,15 @@ "binop": null, "updateContext": null }, - "start": 15201, - "end": 15202, + "start": 15055, + "end": 15056, "loc": { "start": { - "line": 417, + "line": 406, "column": 56 }, "end": { - "line": 417, + "line": 406, "column": 57 } } @@ -128512,15 +128901,15 @@ "postfix": false, "binop": null }, - "start": 15211, - "end": 15212, + "start": 15065, + "end": 15066, "loc": { "start": { - "line": 418, + "line": 407, "column": 8 }, "end": { - "line": 418, + "line": 407, "column": 9 } } @@ -128537,15 +128926,15 @@ "postfix": false, "binop": null }, - "start": 15212, - "end": 15213, + "start": 15066, + "end": 15067, "loc": { "start": { - "line": 418, + "line": 407, "column": 9 }, "end": { - "line": 418, + "line": 407, "column": 10 } } @@ -128563,15 +128952,15 @@ "binop": null, "updateContext": null }, - "start": 15213, - "end": 15214, + "start": 15067, + "end": 15068, "loc": { "start": { - "line": 418, + "line": 407, "column": 10 }, "end": { - "line": 418, + "line": 407, "column": 11 } } @@ -128588,15 +128977,15 @@ "postfix": false, "binop": null }, - "start": 15221, - "end": 15222, + "start": 15075, + "end": 15076, "loc": { "start": { - "line": 419, + "line": 408, "column": 6 }, "end": { - "line": 419, + "line": 408, "column": 7 } } @@ -128613,15 +129002,15 @@ "postfix": false, "binop": null }, - "start": 15222, - "end": 15223, + "start": 15076, + "end": 15077, "loc": { "start": { - "line": 419, + "line": 408, "column": 7 }, "end": { - "line": 419, + "line": 408, "column": 8 } } @@ -128639,15 +129028,15 @@ "binop": null, "updateContext": null }, - "start": 15223, - "end": 15224, + "start": 15077, + "end": 15078, "loc": { "start": { - "line": 419, + "line": 408, "column": 8 }, "end": { - "line": 419, + "line": 408, "column": 9 } } @@ -128664,15 +129053,15 @@ "postfix": false, "binop": null }, - "start": 15227, - "end": 15228, + "start": 15081, + "end": 15082, "loc": { "start": { - "line": 420, + "line": 409, "column": 2 }, "end": { - "line": 420, + "line": 409, "column": 3 } } @@ -128689,95 +129078,92 @@ "postfix": false, "binop": null }, - "start": 15229, - "end": 15230, + "start": 15083, + "end": 15084, "loc": { "start": { - "line": 421, + "line": 410, "column": 0 }, "end": { - "line": 421, + "line": 410, "column": 1 } } }, { "type": "CommentBlock", - "value": "*\n * Editor\n ", - "start": 15232, - "end": 15249, + "value": "*\n * Set theme.\n * @param {Editor} editor\n * @param {Model} model\n ", + "start": 15086, + "end": 15157, "loc": { "start": { - "line": 423, + "line": 412, "column": 0 }, "end": { - "line": 425, + "line": 416, "column": 3 } } }, { "type": { - "label": "export", - "keyword": "export", + "label": "function", + "keyword": "function", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "export", - "start": 15250, - "end": 15256, + "value": "function", + "start": 15158, + "end": 15166, "loc": { "start": { - "line": 426, + "line": 417, "column": 0 }, "end": { - "line": 426, - "column": 6 + "line": 417, + "column": 8 } } }, { "type": { - "label": "class", - "keyword": "class", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "class", - "start": 15257, - "end": 15262, + "value": "setTheme", + "start": 15167, + "end": 15175, "loc": { "start": { - "line": 426, - "column": 7 + "line": 417, + "column": 9 }, "end": { - "line": 426, - "column": 12 + "line": 417, + "column": 17 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -128786,24 +129172,23 @@ "postfix": false, "binop": null }, - "value": "Editor", - "start": 15263, - "end": 15269, + "start": 15175, + "end": 15176, "loc": { "start": { - "line": 426, - "column": 13 + "line": 417, + "column": 17 }, "end": { - "line": 426, - "column": 19 + "line": 417, + "column": 18 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -128812,65 +129197,50 @@ "postfix": false, "binop": null }, - "start": 15270, - "end": 15271, - "loc": { - "start": { - "line": 426, - "column": 20 - }, - "end": { - "line": 426, - "column": 21 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @param {Element} element DOM element to attach this editor\n * @param {Configuration} [configuration] Configuration to apply\n * @param {Theme} [theme] Custom theme to apply\n * @param {PenStyle} [penStyle] Custom style to apply\n * @param {Behaviors} [behaviors] Custom behaviors to apply\n ", - "start": 15274, - "end": 15582, + "value": "editor", + "start": 15176, + "end": 15182, "loc": { "start": { - "line": 427, - "column": 2 + "line": 417, + "column": 18 }, "end": { - "line": 433, - "column": 5 + "line": 417, + "column": 24 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "constructor", - "start": 15585, - "end": 15596, + "start": 15182, + "end": 15183, "loc": { "start": { - "line": 434, - "column": 2 + "line": 417, + "column": 24 }, "end": { - "line": 434, - "column": 13 + "line": 417, + "column": 25 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -128879,24 +129249,25 @@ "postfix": false, "binop": null }, - "start": 15596, - "end": 15597, + "value": "model", + "start": 15184, + "end": 15189, "loc": { "start": { - "line": 434, - "column": 13 + "line": 417, + "column": 26 }, "end": { - "line": 434, - "column": 14 + "line": 417, + "column": 31 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -128904,95 +129275,94 @@ "postfix": false, "binop": null }, - "value": "element", - "start": 15597, - "end": 15604, + "start": 15189, + "end": 15190, "loc": { "start": { - "line": 434, - "column": 14 + "line": 417, + "column": 31 }, "end": { - "line": 434, - "column": 21 + "line": 417, + "column": 32 } } }, { "type": { - "label": ",", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 15604, - "end": 15605, + "start": 15191, + "end": 15192, "loc": { "start": { - "line": 434, - "column": 21 + "line": 417, + "column": 33 }, "end": { - "line": 434, - "column": 22 + "line": 417, + "column": 34 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "configuration", - "start": 15606, - "end": 15619, + "value": "if", + "start": 15195, + "end": 15197, "loc": { "start": { - "line": 434, - "column": 23 + "line": 418, + "column": 2 }, "end": { - "line": 434, - "column": 36 + "line": 418, + "column": 4 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 15619, - "end": 15620, + "start": 15198, + "end": 15199, "loc": { "start": { - "line": 434, - "column": 36 + "line": 418, + "column": 5 }, "end": { - "line": 434, - "column": 37 + "line": 418, + "column": 6 } } }, @@ -129008,24 +129378,24 @@ "postfix": false, "binop": null }, - "value": "penStyle", - "start": 15621, - "end": 15629, + "value": "editor", + "start": 15199, + "end": 15205, "loc": { "start": { - "line": 434, - "column": 38 + "line": 418, + "column": 6 }, "end": { - "line": 434, - "column": 46 + "line": 418, + "column": 12 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -129035,16 +129405,16 @@ "binop": null, "updateContext": null }, - "start": 15629, - "end": 15630, + "start": 15205, + "end": 15206, "loc": { "start": { - "line": 434, - "column": 46 + "line": 418, + "column": 12 }, "end": { - "line": 434, - "column": 47 + "line": 418, + "column": 13 } } }, @@ -129060,23 +129430,23 @@ "postfix": false, "binop": null }, - "value": "theme", - "start": 15631, - "end": 15636, + "value": "recognizer", + "start": 15206, + "end": 15216, "loc": { "start": { - "line": 434, - "column": 48 + "line": 418, + "column": 13 }, "end": { - "line": 434, - "column": 53 + "line": 418, + "column": 23 } } }, { "type": { - "label": ",", + "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -129084,19 +129454,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "start": 15636, - "end": 15637, + "value": "&&", + "start": 15217, + "end": 15219, "loc": { "start": { - "line": 434, - "column": 53 + "line": 418, + "column": 24 }, "end": { - "line": 434, - "column": 54 + "line": 418, + "column": 26 } } }, @@ -129112,23 +129483,23 @@ "postfix": false, "binop": null }, - "value": "behaviors", - "start": 15638, - "end": 15647, + "value": "editor", + "start": 15220, + "end": 15226, "loc": { "start": { - "line": 434, - "column": 55 + "line": 418, + "column": 27 }, "end": { - "line": 434, - "column": 64 + "line": 418, + "column": 33 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -129136,66 +129507,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 15647, - "end": 15648, - "loc": { - "start": { - "line": 434, - "column": 64 - }, - "end": { - "line": 434, - "column": 65 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 15649, - "end": 15650, - "loc": { - "start": { - "line": 434, - "column": 66 - }, - "end": { - "line": 434, - "column": 67 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Inner reference to the DOM Element\n * @type {Element}\n ", - "start": 15655, - "end": 15731, + "start": 15226, + "end": 15227, "loc": { "start": { - "line": 435, - "column": 4 + "line": 418, + "column": 33 }, "end": { - "line": 438, - "column": 7 + "line": 418, + "column": 34 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -129203,20 +129533,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 15736, - "end": 15740, + "value": "recognizer", + "start": 15227, + "end": 15237, "loc": { "start": { - "line": 439, - "column": 4 + "line": 418, + "column": 34 }, "end": { - "line": 439, - "column": 8 + "line": 418, + "column": 44 } } }, @@ -129233,16 +129562,16 @@ "binop": null, "updateContext": null }, - "start": 15740, - "end": 15741, + "start": 15237, + "end": 15238, "loc": { "start": { - "line": 439, - "column": 8 + "line": 418, + "column": 44 }, "end": { - "line": 439, - "column": 9 + "line": 418, + "column": 45 } } }, @@ -129258,52 +129587,25 @@ "postfix": false, "binop": null }, - "value": "domElement", - "start": 15741, - "end": 15751, - "loc": { - "start": { - "line": 439, - "column": 9 - }, - "end": { - "line": 439, - "column": 19 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 15752, - "end": 15753, + "value": "setTheme", + "start": 15238, + "end": 15246, "loc": { "start": { - "line": 439, - "column": 20 + "line": 418, + "column": 45 }, "end": { - "line": 439, - "column": 21 + "line": 418, + "column": 53 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -129311,50 +129613,47 @@ "postfix": false, "binop": null }, - "value": "element", - "start": 15754, - "end": 15761, + "start": 15246, + "end": 15247, "loc": { "start": { - "line": 439, - "column": 22 + "line": 418, + "column": 53 }, "end": { - "line": 439, - "column": 29 + "line": 418, + "column": 54 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 15761, - "end": 15762, + "start": 15248, + "end": 15249, "loc": { "start": { - "line": 439, - "column": 29 + "line": 418, + "column": 55 }, "end": { - "line": 439, - "column": 30 + "line": 418, + "column": 56 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -129362,20 +129661,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 15767, - "end": 15771, + "value": "editor", + "start": 15254, + "end": 15260, "loc": { "start": { - "line": 440, + "line": 419, "column": 4 }, "end": { - "line": 440, - "column": 8 + "line": 419, + "column": 10 } } }, @@ -129392,16 +129690,16 @@ "binop": null, "updateContext": null }, - "start": 15771, - "end": 15772, + "start": 15260, + "end": 15261, "loc": { "start": { - "line": 440, - "column": 8 + "line": 419, + "column": 10 }, "end": { - "line": 440, - "column": 9 + "line": 419, + "column": 11 } } }, @@ -129417,17 +129715,17 @@ "postfix": false, "binop": null }, - "value": "domElement", - "start": 15772, - "end": 15782, + "value": "recognizerContext", + "start": 15261, + "end": 15278, "loc": { "start": { - "line": 440, - "column": 9 + "line": 419, + "column": 11 }, "end": { - "line": 440, - "column": 19 + "line": 419, + "column": 28 } } }, @@ -129444,16 +129742,16 @@ "binop": null, "updateContext": null }, - "start": 15782, - "end": 15783, + "start": 15278, + "end": 15279, "loc": { "start": { - "line": 440, - "column": 19 + "line": 419, + "column": 28 }, "end": { - "line": 440, - "column": 20 + "line": 419, + "column": 29 } } }, @@ -129469,17 +129767,17 @@ "postfix": false, "binop": null }, - "value": "classList", - "start": 15783, - "end": 15792, + "value": "initPromise", + "start": 15279, + "end": 15290, "loc": { "start": { - "line": 440, - "column": 20 + "line": 419, + "column": 29 }, "end": { - "line": 440, - "column": 29 + "line": 419, + "column": 40 } } }, @@ -129496,16 +129794,16 @@ "binop": null, "updateContext": null }, - "start": 15792, - "end": 15793, + "start": 15297, + "end": 15298, "loc": { "start": { - "line": 440, - "column": 29 + "line": 420, + "column": 6 }, "end": { - "line": 440, - "column": 30 + "line": 420, + "column": 7 } } }, @@ -129521,17 +129819,17 @@ "postfix": false, "binop": null }, - "value": "add", - "start": 15793, - "end": 15796, + "value": "then", + "start": 15298, + "end": 15302, "loc": { "start": { - "line": 440, - "column": 30 + "line": 420, + "column": 7 }, "end": { - "line": 440, - "column": 33 + "line": 420, + "column": 11 } } }, @@ -129547,43 +129845,41 @@ "postfix": false, "binop": null }, - "start": 15796, - "end": 15797, + "start": 15302, + "end": 15303, "loc": { "start": { - "line": 440, - "column": 33 + "line": 420, + "column": 11 }, "end": { - "line": 440, - "column": 34 + "line": 420, + "column": 12 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "ms-editor", - "start": 15797, - "end": 15808, + "start": 15303, + "end": 15304, "loc": { "start": { - "line": 440, - "column": 34 + "line": 420, + "column": 12 }, "end": { - "line": 440, - "column": 45 + "line": 420, + "column": 13 } } }, @@ -129599,22 +129895,22 @@ "postfix": false, "binop": null }, - "start": 15808, - "end": 15809, + "start": 15304, + "end": 15305, "loc": { "start": { - "line": 440, - "column": 45 + "line": 420, + "column": 13 }, "end": { - "line": 440, - "column": 46 + "line": 420, + "column": 14 } } }, { "type": { - "label": ";", + "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -129625,39 +129921,47 @@ "binop": null, "updateContext": null }, - "start": 15809, - "end": 15810, + "start": 15306, + "end": 15308, "loc": { "start": { - "line": 440, - "column": 46 + "line": 420, + "column": 15 }, "end": { - "line": 440, - "column": 47 + "line": 420, + "column": 17 } } }, { - "type": "CommentLine", - "value": " eslint-disable-next-line no-undef", - "start": 15816, - "end": 15852, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15309, + "end": 15310, "loc": { "start": { - "line": 442, - "column": 4 + "line": 420, + "column": 18 }, "end": { - "line": 442, - "column": 40 + "line": 420, + "column": 19 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -129665,20 +129969,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 15857, - "end": 15861, + "value": "editor", + "start": 15319, + "end": 15325, "loc": { "start": { - "line": 443, - "column": 4 + "line": 421, + "column": 8 }, "end": { - "line": 443, - "column": 8 + "line": 421, + "column": 14 } } }, @@ -129695,16 +129998,16 @@ "binop": null, "updateContext": null }, - "start": 15861, - "end": 15862, + "start": 15325, + "end": 15326, "loc": { "start": { - "line": 443, - "column": 8 + "line": 421, + "column": 14 }, "end": { - "line": 443, - "column": 9 + "line": 421, + "column": 15 } } }, @@ -129720,44 +130023,43 @@ "postfix": false, "binop": null }, - "value": "loader", - "start": 15862, - "end": 15868, + "value": "recognizer", + "start": 15326, + "end": 15336, "loc": { "start": { - "line": 443, - "column": 9 + "line": 421, + "column": 15 }, "end": { - "line": 443, - "column": 15 + "line": 421, + "column": 25 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 15869, - "end": 15870, + "start": 15336, + "end": 15337, "loc": { "start": { - "line": 443, - "column": 16 + "line": 421, + "column": 25 }, "end": { - "line": 443, - "column": 17 + "line": 421, + "column": 26 } } }, @@ -129773,43 +130075,42 @@ "postfix": false, "binop": null }, - "value": "document", - "start": 15871, - "end": 15879, + "value": "setTheme", + "start": 15337, + "end": 15345, "loc": { "start": { - "line": 443, - "column": 18 + "line": 421, + "column": 26 }, "end": { - "line": 443, - "column": 26 + "line": 421, + "column": 34 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 15879, - "end": 15880, + "start": 15345, + "end": 15346, "loc": { "start": { - "line": 443, - "column": 26 + "line": 421, + "column": 34 }, "end": { - "line": 443, - "column": 27 + "line": 421, + "column": 35 } } }, @@ -129825,48 +130126,49 @@ "postfix": false, "binop": null }, - "value": "createElement", - "start": 15880, - "end": 15893, + "value": "editor", + "start": 15346, + "end": 15352, "loc": { "start": { - "line": 443, - "column": 27 + "line": 421, + "column": 35 }, "end": { - "line": 443, - "column": 40 + "line": 421, + "column": 41 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 15893, - "end": 15894, + "start": 15352, + "end": 15353, "loc": { "start": { - "line": 443, - "column": 40 + "line": 421, + "column": 41 }, "end": { - "line": 443, - "column": 41 + "line": 421, + "column": 42 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -129874,28 +130176,53 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "value": "recognizerContext", + "start": 15353, + "end": 15370, + "loc": { + "start": { + "line": 421, + "column": 42 + }, + "end": { + "line": 421, + "column": 59 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "value": "div", - "start": 15894, - "end": 15899, + "start": 15370, + "end": 15371, "loc": { "start": { - "line": 443, - "column": 41 + "line": 421, + "column": 59 }, "end": { - "line": 443, - "column": 46 + "line": 421, + "column": 60 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -129903,22 +130230,23 @@ "postfix": false, "binop": null }, - "start": 15899, - "end": 15900, + "value": "model", + "start": 15372, + "end": 15377, "loc": { "start": { - "line": 443, - "column": 46 + "line": 421, + "column": 61 }, "end": { - "line": 443, - "column": 47 + "line": 421, + "column": 66 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -129929,23 +130257,22 @@ "binop": null, "updateContext": null }, - "start": 15900, - "end": 15901, + "start": 15377, + "end": 15378, "loc": { "start": { - "line": 443, - "column": 47 + "line": 421, + "column": 66 }, "end": { - "line": 443, - "column": 48 + "line": 421, + "column": 67 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -129953,20 +130280,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 15906, - "end": 15910, + "value": "editor", + "start": 15379, + "end": 15385, "loc": { "start": { - "line": 444, - "column": 4 + "line": 421, + "column": 68 }, "end": { - "line": 444, - "column": 8 + "line": 421, + "column": 74 } } }, @@ -129983,16 +130309,16 @@ "binop": null, "updateContext": null }, - "start": 15910, - "end": 15911, + "start": 15385, + "end": 15386, "loc": { "start": { - "line": 444, - "column": 8 + "line": 421, + "column": 74 }, "end": { - "line": 444, - "column": 9 + "line": 421, + "column": 75 } } }, @@ -130008,24 +130334,24 @@ "postfix": false, "binop": null }, - "value": "loader", - "start": 15911, - "end": 15917, + "value": "theme", + "start": 15386, + "end": 15391, "loc": { "start": { - "line": 444, - "column": 9 + "line": 421, + "column": 75 }, "end": { - "line": 444, - "column": 15 + "line": 421, + "column": 80 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -130035,16 +130361,41 @@ "binop": null, "updateContext": null }, - "start": 15917, - "end": 15918, + "start": 15391, + "end": 15392, "loc": { "start": { - "line": 444, - "column": 15 + "line": 421, + "column": 80 }, "end": { - "line": 444, - "column": 16 + "line": 421, + "column": 81 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15393, + "end": 15394, + "loc": { + "start": { + "line": 421, + "column": 82 + }, + "end": { + "line": 421, + "column": 83 } } }, @@ -130060,24 +130411,24 @@ "postfix": false, "binop": null }, - "value": "classList", - "start": 15918, - "end": 15927, + "value": "err", + "start": 15394, + "end": 15397, "loc": { "start": { - "line": 444, - "column": 16 + "line": 421, + "column": 83 }, "end": { - "line": 444, - "column": 25 + "line": 421, + "column": 86 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -130087,16 +130438,16 @@ "binop": null, "updateContext": null }, - "start": 15927, - "end": 15928, + "start": 15397, + "end": 15398, "loc": { "start": { - "line": 444, - "column": 25 + "line": 421, + "column": 86 }, "end": { - "line": 444, - "column": 26 + "line": 421, + "column": 87 } } }, @@ -130112,50 +130463,51 @@ "postfix": false, "binop": null }, - "value": "add", - "start": 15928, - "end": 15931, + "value": "res", + "start": 15399, + "end": 15402, "loc": { "start": { - "line": 444, - "column": 26 + "line": 421, + "column": 88 }, "end": { - "line": 444, - "column": 29 + "line": 421, + "column": 91 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 15931, - "end": 15932, + "start": 15402, + "end": 15403, "loc": { "start": { - "line": 444, - "column": 29 + "line": 421, + "column": 91 }, "end": { - "line": 444, - "column": 30 + "line": 421, + "column": 92 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": "...", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -130164,25 +130516,24 @@ "binop": null, "updateContext": null }, - "value": "loader", - "start": 15932, - "end": 15940, + "start": 15404, + "end": 15407, "loc": { "start": { - "line": 444, - "column": 30 + "line": 421, + "column": 93 }, "end": { - "line": 444, - "column": 38 + "line": 421, + "column": 96 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -130190,51 +130541,50 @@ "postfix": false, "binop": null }, - "start": 15940, - "end": 15941, + "value": "types", + "start": 15407, + "end": 15412, "loc": { "start": { - "line": 444, - "column": 38 + "line": 421, + "column": 96 }, "end": { - "line": 444, - "column": 39 + "line": 421, + "column": 101 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 15941, - "end": 15942, + "start": 15412, + "end": 15413, "loc": { "start": { - "line": 444, - "column": 39 + "line": 421, + "column": 101 }, "end": { - "line": 444, - "column": 40 + "line": 421, + "column": 102 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -130243,43 +130593,41 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 15947, - "end": 15951, + "start": 15414, + "end": 15416, "loc": { "start": { - "line": 445, - "column": 4 + "line": 421, + "column": 103 }, "end": { - "line": 445, - "column": 8 + "line": 421, + "column": 105 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 15951, - "end": 15952, + "start": 15417, + "end": 15418, "loc": { "start": { - "line": 445, - "column": 8 + "line": 421, + "column": 106 }, "end": { - "line": 445, - "column": 9 + "line": 421, + "column": 107 } } }, @@ -130295,51 +130643,48 @@ "postfix": false, "binop": null }, - "value": "loader", - "start": 15952, - "end": 15958, + "value": "recognizerCallback", + "start": 15429, + "end": 15447, "loc": { "start": { - "line": 445, - "column": 9 + "line": 422, + "column": 10 }, "end": { - "line": 445, - "column": 15 + "line": 422, + "column": 28 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 15959, - "end": 15960, + "start": 15447, + "end": 15448, "loc": { "start": { - "line": 445, - "column": 16 + "line": 422, + "column": 28 }, "end": { - "line": 445, - "column": 17 + "line": 422, + "column": 29 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -130347,27 +130692,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 15961, - "end": 15965, + "value": "editor", + "start": 15448, + "end": 15454, "loc": { "start": { - "line": 445, - "column": 18 + "line": 422, + "column": 29 }, "end": { - "line": 445, - "column": 22 + "line": 422, + "column": 35 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -130377,16 +130721,16 @@ "binop": null, "updateContext": null }, - "start": 15965, - "end": 15966, + "start": 15454, + "end": 15455, "loc": { "start": { - "line": 445, - "column": 22 + "line": 422, + "column": 35 }, "end": { - "line": 445, - "column": 23 + "line": 422, + "column": 36 } } }, @@ -130402,24 +130746,24 @@ "postfix": false, "binop": null }, - "value": "domElement", - "start": 15966, - "end": 15976, + "value": "err", + "start": 15456, + "end": 15459, "loc": { "start": { - "line": 445, - "column": 23 + "line": 422, + "column": 37 }, "end": { - "line": 445, - "column": 33 + "line": 422, + "column": 40 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -130429,16 +130773,16 @@ "binop": null, "updateContext": null }, - "start": 15976, - "end": 15977, + "start": 15459, + "end": 15460, "loc": { "start": { - "line": 445, - "column": 33 + "line": 422, + "column": 40 }, "end": { - "line": 445, - "column": 34 + "line": 422, + "column": 41 } } }, @@ -130454,51 +130798,51 @@ "postfix": false, "binop": null }, - "value": "appendChild", - "start": 15977, - "end": 15988, + "value": "res", + "start": 15461, + "end": 15464, "loc": { "start": { - "line": 445, - "column": 34 + "line": 422, + "column": 42 }, "end": { - "line": 445, + "line": 422, "column": 45 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 15988, - "end": 15989, + "start": 15464, + "end": 15465, "loc": { "start": { - "line": 445, + "line": 422, "column": 45 }, "end": { - "line": 445, + "line": 422, "column": 46 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": "...", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -130507,23 +130851,48 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 15989, - "end": 15993, + "start": 15466, + "end": 15469, "loc": { "start": { - "line": 445, - "column": 46 + "line": 422, + "column": 47 }, "end": { - "line": 445, + "line": 422, "column": 50 } } }, { "type": { - "label": ".", + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "types", + "start": 15469, + "end": 15474, + "loc": { + "start": { + "line": 422, + "column": 50 + }, + "end": { + "line": 422, + "column": 55 + } + } + }, + { + "type": { + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -130531,27 +130900,52 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "start": 15474, + "end": 15475, + "loc": { + "start": { + "line": 422, + "column": 55 + }, + "end": { + "line": 422, + "column": 56 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "start": 15993, - "end": 15994, + "start": 15475, + "end": 15476, "loc": { "start": { - "line": 445, - "column": 50 + "line": 422, + "column": 56 }, "end": { - "line": 445, - "column": 51 + "line": 422, + "column": 57 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -130559,17 +130953,16 @@ "postfix": false, "binop": null }, - "value": "loader", - "start": 15994, - "end": 16000, + "start": 15485, + "end": 15486, "loc": { "start": { - "line": 445, - "column": 51 + "line": 423, + "column": 8 }, "end": { - "line": 445, - "column": 57 + "line": 423, + "column": 9 } } }, @@ -130585,16 +130978,16 @@ "postfix": false, "binop": null }, - "start": 16000, - "end": 16001, + "start": 15486, + "end": 15487, "loc": { "start": { - "line": 445, - "column": 57 + "line": 423, + "column": 9 }, "end": { - "line": 445, - "column": 58 + "line": 423, + "column": 10 } } }, @@ -130611,67 +131004,73 @@ "binop": null, "updateContext": null }, - "start": 16001, - "end": 16002, + "start": 15487, + "end": 15488, "loc": { "start": { - "line": 445, - "column": 58 + "line": 423, + "column": 10 }, "end": { - "line": 445, - "column": 59 + "line": 423, + "column": 11 } } }, { - "type": "CommentLine", - "value": " eslint-disable-next-line no-undef", - "start": 16008, - "end": 16044, + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15495, + "end": 15496, "loc": { "start": { - "line": 447, - "column": 4 + "line": 424, + "column": 6 }, "end": { - "line": 447, - "column": 40 + "line": 424, + "column": 7 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 16049, - "end": 16053, + "start": 15496, + "end": 15497, "loc": { "start": { - "line": 448, - "column": 4 + "line": 424, + "column": 7 }, "end": { - "line": 448, + "line": 424, "column": 8 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -130681,24 +131080,24 @@ "binop": null, "updateContext": null }, - "start": 16053, - "end": 16054, + "start": 15497, + "end": 15498, "loc": { "start": { - "line": 448, + "line": 424, "column": 8 }, "end": { - "line": 448, + "line": 424, "column": 9 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -130706,76 +131105,92 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 16054, - "end": 16059, + "start": 15501, + "end": 15502, "loc": { "start": { - "line": 448, - "column": 9 + "line": 425, + "column": 2 }, "end": { - "line": 448, - "column": 14 + "line": 425, + "column": 3 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 16060, - "end": 16061, + "start": 15503, + "end": 15504, "loc": { "start": { - "line": 448, - "column": 15 + "line": 426, + "column": 0 }, "end": { - "line": 448, - "column": 16 + "line": 426, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Editor\n ", + "start": 15506, + "end": 15523, + "loc": { + "start": { + "line": 428, + "column": 0 + }, + "end": { + "line": 430, + "column": 3 } } }, { "type": { - "label": "name", + "label": "export", + "keyword": "export", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "document", - "start": 16062, - "end": 16070, + "value": "export", + "start": 15524, + "end": 15530, "loc": { "start": { - "line": 448, - "column": 17 + "line": 431, + "column": 0 }, "end": { - "line": 448, - "column": 25 + "line": 431, + "column": 6 } } }, { "type": { - "label": ".", + "label": "class", + "keyword": "class", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -130786,16 +131201,17 @@ "binop": null, "updateContext": null }, - "start": 16070, - "end": 16071, + "value": "class", + "start": 15531, + "end": 15536, "loc": { "start": { - "line": 448, - "column": 25 + "line": 431, + "column": 7 }, "end": { - "line": 448, - "column": 26 + "line": 431, + "column": 12 } } }, @@ -130811,23 +131227,23 @@ "postfix": false, "binop": null }, - "value": "createElement", - "start": 16071, - "end": 16084, + "value": "Editor", + "start": 15537, + "end": 15543, "loc": { "start": { - "line": 448, - "column": 26 + "line": 431, + "column": 13 }, "end": { - "line": 448, - "column": 39 + "line": 431, + "column": 19 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -130837,51 +131253,40 @@ "postfix": false, "binop": null }, - "start": 16084, - "end": 16085, + "start": 15544, + "end": 15545, "loc": { "start": { - "line": 448, - "column": 39 + "line": 431, + "column": 20 }, "end": { - "line": 448, - "column": 40 + "line": 431, + "column": 21 } } }, { - "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "div", - "start": 16085, - "end": 16090, + "type": "CommentBlock", + "value": "*\n * @param {Element} element DOM element to attach this editor\n * @param {Configuration} [configuration] Configuration to apply\n * @param {Theme} [theme] Custom theme to apply\n * @param {PenStyle} [penStyle] Custom style to apply\n * @param {Behaviors} [behaviors] Custom behaviors to apply\n ", + "start": 15548, + "end": 15856, "loc": { "start": { - "line": 448, - "column": 40 + "line": 432, + "column": 2 }, "end": { - "line": 448, - "column": 45 + "line": 438, + "column": 5 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -130889,49 +131294,48 @@ "postfix": false, "binop": null }, - "start": 16090, - "end": 16091, + "value": "constructor", + "start": 15859, + "end": 15870, "loc": { "start": { - "line": 448, - "column": 45 + "line": 439, + "column": 2 }, "end": { - "line": 448, - "column": 46 + "line": 439, + "column": 13 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 16091, - "end": 16092, + "start": 15870, + "end": 15871, "loc": { "start": { - "line": 448, - "column": 46 + "line": 439, + "column": 13 }, "end": { - "line": 448, - "column": 47 + "line": 439, + "column": 14 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -130939,27 +131343,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 16097, - "end": 16101, + "value": "element", + "start": 15871, + "end": 15878, "loc": { "start": { - "line": 449, - "column": 4 + "line": 439, + "column": 14 }, "end": { - "line": 449, - "column": 8 + "line": 439, + "column": 21 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -130969,16 +131372,16 @@ "binop": null, "updateContext": null }, - "start": 16101, - "end": 16102, + "start": 15878, + "end": 15879, "loc": { "start": { - "line": 449, - "column": 8 + "line": 439, + "column": 21 }, "end": { - "line": 449, - "column": 9 + "line": 439, + "column": 22 } } }, @@ -130994,24 +131397,24 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 16102, - "end": 16107, + "value": "configuration", + "start": 15880, + "end": 15893, "loc": { "start": { - "line": 449, - "column": 9 + "line": 439, + "column": 23 }, "end": { - "line": 449, - "column": 14 + "line": 439, + "column": 36 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -131021,16 +131424,16 @@ "binop": null, "updateContext": null }, - "start": 16107, - "end": 16108, + "start": 15893, + "end": 15894, "loc": { "start": { - "line": 449, - "column": 14 + "line": 439, + "column": 36 }, "end": { - "line": 449, - "column": 15 + "line": 439, + "column": 37 } } }, @@ -131046,24 +131449,24 @@ "postfix": false, "binop": null }, - "value": "classList", - "start": 16108, - "end": 16117, + "value": "penStyle", + "start": 15895, + "end": 15903, "loc": { "start": { - "line": 449, - "column": 15 + "line": 439, + "column": 38 }, "end": { - "line": 449, - "column": 24 + "line": 439, + "column": 46 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -131073,16 +131476,16 @@ "binop": null, "updateContext": null }, - "start": 16117, - "end": 16118, + "start": 15903, + "end": 15904, "loc": { "start": { - "line": 449, - "column": 24 + "line": 439, + "column": 46 }, "end": { - "line": 449, - "column": 25 + "line": 439, + "column": 47 } } }, @@ -131098,48 +131501,49 @@ "postfix": false, "binop": null }, - "value": "add", - "start": 16118, - "end": 16121, + "value": "theme", + "start": 15905, + "end": 15910, "loc": { "start": { - "line": 449, - "column": 25 + "line": 439, + "column": 48 }, "end": { - "line": 449, - "column": 28 + "line": 439, + "column": 53 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 16121, - "end": 16122, + "start": 15910, + "end": 15911, "loc": { "start": { - "line": 449, - "column": 28 + "line": 439, + "column": 53 }, "end": { - "line": 449, - "column": 29 + "line": 439, + "column": 54 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -131147,20 +131551,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "error-msg", - "start": 16122, - "end": 16133, + "value": "behaviors", + "start": 15912, + "end": 15921, "loc": { "start": { - "line": 449, - "column": 29 + "line": 439, + "column": 55 }, "end": { - "line": 449, - "column": 40 + "line": 439, + "column": 64 } } }, @@ -131176,42 +131579,57 @@ "postfix": false, "binop": null }, - "start": 16133, - "end": 16134, + "start": 15921, + "end": 15922, "loc": { "start": { - "line": 449, - "column": 40 + "line": 439, + "column": 64 }, "end": { - "line": 449, - "column": 41 + "line": 439, + "column": 65 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 16134, - "end": 16135, + "start": 15923, + "end": 15924, "loc": { "start": { - "line": 449, - "column": 41 + "line": 439, + "column": 66 }, "end": { - "line": 449, - "column": 42 + "line": 439, + "column": 67 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Inner reference to the DOM Element\n * @type {Element}\n ", + "start": 15929, + "end": 16005, + "loc": { + "start": { + "line": 440, + "column": 4 + }, + "end": { + "line": 443, + "column": 7 } } }, @@ -131230,15 +131648,15 @@ "updateContext": null }, "value": "this", - "start": 16140, - "end": 16144, + "start": 16010, + "end": 16014, "loc": { "start": { - "line": 450, + "line": 444, "column": 4 }, "end": { - "line": 450, + "line": 444, "column": 8 } } @@ -131256,15 +131674,15 @@ "binop": null, "updateContext": null }, - "start": 16144, - "end": 16145, + "start": 16014, + "end": 16015, "loc": { "start": { - "line": 450, + "line": 444, "column": 8 }, "end": { - "line": 450, + "line": 444, "column": 9 } } @@ -131281,17 +131699,17 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 16145, - "end": 16150, + "value": "domElement", + "start": 16015, + "end": 16025, "loc": { "start": { - "line": 450, + "line": 444, "column": 9 }, "end": { - "line": 450, - "column": 14 + "line": 444, + "column": 19 } } }, @@ -131309,16 +131727,68 @@ "updateContext": null }, "value": "=", - "start": 16151, - "end": 16152, + "start": 16026, + "end": 16027, "loc": { "start": { - "line": 450, - "column": 15 + "line": 444, + "column": 20 }, "end": { - "line": 450, - "column": 16 + "line": 444, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "element", + "start": 16028, + "end": 16035, + "loc": { + "start": { + "line": 444, + "column": 22 + }, + "end": { + "line": 444, + "column": 29 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16035, + "end": 16036, + "loc": { + "start": { + "line": 444, + "column": 29 + }, + "end": { + "line": 444, + "column": 30 } } }, @@ -131337,16 +131807,16 @@ "updateContext": null }, "value": "this", - "start": 16153, - "end": 16157, + "start": 16041, + "end": 16045, "loc": { "start": { - "line": 450, - "column": 17 + "line": 445, + "column": 4 }, "end": { - "line": 450, - "column": 21 + "line": 445, + "column": 8 } } }, @@ -131363,16 +131833,16 @@ "binop": null, "updateContext": null }, - "start": 16157, - "end": 16158, + "start": 16045, + "end": 16046, "loc": { "start": { - "line": 450, - "column": 21 + "line": 445, + "column": 8 }, "end": { - "line": 450, - "column": 22 + "line": 445, + "column": 9 } } }, @@ -131389,16 +131859,16 @@ "binop": null }, "value": "domElement", - "start": 16158, - "end": 16168, + "start": 16046, + "end": 16056, "loc": { "start": { - "line": 450, - "column": 22 + "line": 445, + "column": 9 }, "end": { - "line": 450, - "column": 32 + "line": 445, + "column": 19 } } }, @@ -131415,16 +131885,16 @@ "binop": null, "updateContext": null }, - "start": 16168, - "end": 16169, + "start": 16056, + "end": 16057, "loc": { "start": { - "line": 450, - "column": 32 + "line": 445, + "column": 19 }, "end": { - "line": 450, - "column": 33 + "line": 445, + "column": 20 } } }, @@ -131440,49 +131910,49 @@ "postfix": false, "binop": null }, - "value": "appendChild", - "start": 16169, - "end": 16180, + "value": "classList", + "start": 16057, + "end": 16066, "loc": { "start": { - "line": 450, - "column": 33 + "line": 445, + "column": 20 }, "end": { - "line": 450, - "column": 44 + "line": 445, + "column": 29 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 16180, - "end": 16181, + "start": 16066, + "end": 16067, "loc": { "start": { - "line": 450, - "column": 44 + "line": 445, + "column": 29 }, "end": { - "line": 450, - "column": 45 + "line": 445, + "column": 30 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -131490,52 +131960,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 16181, - "end": 16185, + "value": "add", + "start": 16067, + "end": 16070, "loc": { "start": { - "line": 450, - "column": 45 + "line": 445, + "column": 30 }, "end": { - "line": 450, - "column": 49 + "line": 445, + "column": 33 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 16185, - "end": 16186, + "start": 16070, + "end": 16071, "loc": { "start": { - "line": 450, - "column": 49 + "line": 445, + "column": 33 }, "end": { - "line": 450, - "column": 50 + "line": 445, + "column": 34 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -131543,19 +132011,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "error", - "start": 16186, - "end": 16191, + "value": "ms-editor", + "start": 16071, + "end": 16082, "loc": { "start": { - "line": 450, - "column": 50 + "line": 445, + "column": 34 }, "end": { - "line": 450, - "column": 55 + "line": 445, + "column": 45 } } }, @@ -131571,16 +132040,16 @@ "postfix": false, "binop": null }, - "start": 16191, - "end": 16192, + "start": 16082, + "end": 16083, "loc": { "start": { - "line": 450, - "column": 55 + "line": 445, + "column": 45 }, "end": { - "line": 450, - "column": 56 + "line": 445, + "column": 46 } } }, @@ -131597,32 +132066,32 @@ "binop": null, "updateContext": null }, - "start": 16192, - "end": 16193, + "start": 16083, + "end": 16084, "loc": { "start": { - "line": 450, - "column": 56 + "line": 445, + "column": 46 }, "end": { - "line": 450, - "column": 57 + "line": 445, + "column": 47 } } }, { - "type": "CommentBlock", - "value": "*\n * Launch export timer\n * @type {Number}\n ", - "start": 16199, - "end": 16259, + "type": "CommentLine", + "value": " eslint-disable-next-line no-undef", + "start": 16090, + "end": 16126, "loc": { "start": { - "line": 452, + "line": 447, "column": 4 }, "end": { - "line": 455, - "column": 7 + "line": 447, + "column": 40 } } }, @@ -131641,15 +132110,15 @@ "updateContext": null }, "value": "this", - "start": 16264, - "end": 16268, + "start": 16131, + "end": 16135, "loc": { "start": { - "line": 456, + "line": 448, "column": 4 }, "end": { - "line": 456, + "line": 448, "column": 8 } } @@ -131667,15 +132136,15 @@ "binop": null, "updateContext": null }, - "start": 16268, - "end": 16269, + "start": 16135, + "end": 16136, "loc": { "start": { - "line": 456, + "line": 448, "column": 8 }, "end": { - "line": 456, + "line": 448, "column": 9 } } @@ -131692,17 +132161,17 @@ "postfix": false, "binop": null }, - "value": "exportTimer", - "start": 16269, - "end": 16280, + "value": "loader", + "start": 16136, + "end": 16142, "loc": { "start": { - "line": 456, + "line": 448, "column": 9 }, "end": { - "line": 456, - "column": 20 + "line": 448, + "column": 15 } } }, @@ -131720,16 +132189,16 @@ "updateContext": null }, "value": "=", - "start": 16281, - "end": 16282, + "start": 16143, + "end": 16144, "loc": { "start": { - "line": 456, - "column": 21 + "line": 448, + "column": 16 }, "end": { - "line": 456, - "column": 22 + "line": 448, + "column": 17 } } }, @@ -131745,24 +132214,24 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 16283, - "end": 16292, + "value": "document", + "start": 16145, + "end": 16153, "loc": { "start": { - "line": 456, - "column": 23 + "line": 448, + "column": 18 }, "end": { - "line": 456, - "column": 32 + "line": 448, + "column": 26 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -131772,68 +132241,75 @@ "binop": null, "updateContext": null }, - "start": 16292, - "end": 16293, + "start": 16153, + "end": 16154, "loc": { "start": { - "line": 456, - "column": 32 + "line": 448, + "column": 26 }, "end": { - "line": 456, - "column": 33 + "line": 448, + "column": 27 } } }, { - "type": "CommentBlock", - "value": "*\n * Launch resize timer\n * @type {Number}\n ", - "start": 16299, - "end": 16359, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "createElement", + "start": 16154, + "end": 16167, "loc": { "start": { - "line": 458, - "column": 4 + "line": 448, + "column": 27 }, "end": { - "line": 461, - "column": 7 + "line": 448, + "column": 40 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 16364, - "end": 16368, + "start": 16167, + "end": 16168, "loc": { "start": { - "line": 462, - "column": 4 + "line": 448, + "column": 40 }, "end": { - "line": 462, - "column": 8 + "line": 448, + "column": 41 } } }, { "type": { - "label": ".", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -131842,24 +132318,25 @@ "binop": null, "updateContext": null }, - "start": 16368, - "end": 16369, + "value": "div", + "start": 16168, + "end": 16173, "loc": { "start": { - "line": 462, - "column": 8 + "line": 448, + "column": 41 }, "end": { - "line": 462, - "column": 9 + "line": 448, + "column": 46 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -131867,50 +132344,49 @@ "postfix": false, "binop": null }, - "value": "resizeTimer", - "start": 16369, - "end": 16380, + "start": 16173, + "end": 16174, "loc": { "start": { - "line": 462, - "column": 9 + "line": 448, + "column": 46 }, "end": { - "line": 462, - "column": 20 + "line": 448, + "column": 47 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 16381, - "end": 16382, + "start": 16174, + "end": 16175, "loc": { "start": { - "line": 462, - "column": 21 + "line": 448, + "column": 47 }, "end": { - "line": 462, - "column": 22 + "line": 448, + "column": 48 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -131918,26 +132394,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "undefined", - "start": 16383, - "end": 16392, + "value": "this", + "start": 16180, + "end": 16184, "loc": { "start": { - "line": 462, - "column": 23 + "line": 449, + "column": 4 }, "end": { - "line": 462, - "column": 32 + "line": 449, + "column": 8 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -131947,41 +132424,50 @@ "binop": null, "updateContext": null }, - "start": 16392, - "end": 16393, + "start": 16184, + "end": 16185, "loc": { "start": { - "line": 462, - "column": 32 + "line": 449, + "column": 8 }, "end": { - "line": 462, - "column": 33 + "line": 449, + "column": 9 } } }, { - "type": "CommentBlock", - "value": "*\n * Notify delay timer\n * @type {Number}\n ", - "start": 16399, - "end": 16458, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "loader", + "start": 16185, + "end": 16191, "loc": { "start": { - "line": 464, - "column": 4 + "line": 449, + "column": 9 }, "end": { - "line": 467, - "column": 7 + "line": 449, + "column": 15 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -131990,17 +132476,42 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 16463, - "end": 16467, + "start": 16191, + "end": 16192, "loc": { "start": { - "line": 468, - "column": 4 + "line": 449, + "column": 15 }, "end": { - "line": 468, - "column": 8 + "line": 449, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "classList", + "start": 16192, + "end": 16201, + "loc": { + "start": { + "line": 449, + "column": 16 + }, + "end": { + "line": 449, + "column": 25 } } }, @@ -132017,16 +132528,16 @@ "binop": null, "updateContext": null }, - "start": 16467, - "end": 16468, + "start": 16201, + "end": 16202, "loc": { "start": { - "line": 468, - "column": 8 + "line": 449, + "column": 25 }, "end": { - "line": 468, - "column": 9 + "line": 449, + "column": 26 } } }, @@ -132042,50 +132553,48 @@ "postfix": false, "binop": null }, - "value": "notifyTimer", - "start": 16468, - "end": 16479, + "value": "add", + "start": 16202, + "end": 16205, "loc": { "start": { - "line": 468, - "column": 9 + "line": 449, + "column": 26 }, "end": { - "line": 468, - "column": 20 + "line": 449, + "column": 29 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 16480, - "end": 16481, + "start": 16205, + "end": 16206, "loc": { "start": { - "line": 468, - "column": 21 + "line": 449, + "column": 29 }, "end": { - "line": 468, - "column": 22 + "line": 449, + "column": 30 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -132093,61 +132602,71 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "undefined", - "start": 16482, - "end": 16491, + "value": "loader", + "start": 16206, + "end": 16214, "loc": { "start": { - "line": 468, - "column": 23 + "line": 449, + "column": 30 }, "end": { - "line": 468, - "column": 32 + "line": 449, + "column": 38 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 16491, - "end": 16492, + "start": 16214, + "end": 16215, "loc": { "start": { - "line": 468, - "column": 32 + "line": 449, + "column": 38 }, "end": { - "line": 468, - "column": 33 + "line": 449, + "column": 39 } } }, { - "type": "CommentBlock", - "value": "*\n * @private\n * @type {Behaviors}\n ", - "start": 16499, - "end": 16551, + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16215, + "end": 16216, "loc": { "start": { - "line": 471, - "column": 4 + "line": 449, + "column": 39 }, "end": { - "line": 474, - "column": 7 + "line": 449, + "column": 40 } } }, @@ -132166,15 +132685,15 @@ "updateContext": null }, "value": "this", - "start": 16556, - "end": 16560, + "start": 16221, + "end": 16225, "loc": { "start": { - "line": 475, + "line": 450, "column": 4 }, "end": { - "line": 475, + "line": 450, "column": 8 } } @@ -132192,15 +132711,15 @@ "binop": null, "updateContext": null }, - "start": 16560, - "end": 16561, + "start": 16225, + "end": 16226, "loc": { "start": { - "line": 475, + "line": 450, "column": 8 }, "end": { - "line": 475, + "line": 450, "column": 9 } } @@ -132217,17 +132736,17 @@ "postfix": false, "binop": null }, - "value": "innerBehaviors", - "start": 16561, - "end": 16575, + "value": "loader", + "start": 16226, + "end": 16232, "loc": { "start": { - "line": 475, + "line": 450, "column": 9 }, "end": { - "line": 475, - "column": 23 + "line": 450, + "column": 15 } } }, @@ -132245,22 +132764,23 @@ "updateContext": null }, "value": "=", - "start": 16576, - "end": 16577, + "start": 16233, + "end": 16234, "loc": { "start": { - "line": 475, - "column": 24 + "line": 450, + "column": 16 }, "end": { - "line": 475, - "column": 25 + "line": 450, + "column": 17 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -132268,19 +132788,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "DefaultBehaviors", - "start": 16578, - "end": 16594, + "value": "this", + "start": 16235, + "end": 16239, "loc": { "start": { - "line": 475, - "column": 26 + "line": 450, + "column": 18 }, "end": { - "line": 475, - "column": 42 + "line": 450, + "column": 22 } } }, @@ -132297,16 +132818,16 @@ "binop": null, "updateContext": null }, - "start": 16594, - "end": 16595, + "start": 16239, + "end": 16240, "loc": { "start": { - "line": 475, - "column": 42 + "line": 450, + "column": 22 }, "end": { - "line": 475, - "column": 43 + "line": 450, + "column": 23 } } }, @@ -132322,42 +132843,43 @@ "postfix": false, "binop": null }, - "value": "overrideDefaultBehaviors", - "start": 16595, - "end": 16619, + "value": "domElement", + "start": 16240, + "end": 16250, "loc": { "start": { - "line": 475, - "column": 43 + "line": 450, + "column": 23 }, "end": { - "line": 475, - "column": 67 + "line": 450, + "column": 33 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 16619, - "end": 16620, + "start": 16250, + "end": 16251, "loc": { "start": { - "line": 475, - "column": 67 + "line": 450, + "column": 33 }, "end": { - "line": 475, - "column": 68 + "line": 450, + "column": 34 } } }, @@ -132373,68 +132895,42 @@ "postfix": false, "binop": null }, - "value": "behaviors", - "start": 16620, - "end": 16629, - "loc": { - "start": { - "line": 475, - "column": 68 - }, - "end": { - "line": 475, - "column": 77 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 16629, - "end": 16630, + "value": "appendChild", + "start": 16251, + "end": 16262, "loc": { "start": { - "line": 475, - "column": 77 + "line": 450, + "column": 34 }, "end": { - "line": 475, - "column": 78 + "line": 450, + "column": 45 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 16630, - "end": 16631, + "start": 16262, + "end": 16263, "loc": { "start": { - "line": 475, - "column": 78 + "line": 450, + "column": 45 }, "end": { - "line": 475, - "column": 79 + "line": 450, + "column": 46 } } }, @@ -132453,16 +132949,16 @@ "updateContext": null }, "value": "this", - "start": 16636, - "end": 16640, + "start": 16263, + "end": 16267, "loc": { "start": { - "line": 476, - "column": 4 + "line": 450, + "column": 46 }, "end": { - "line": 476, - "column": 8 + "line": 450, + "column": 50 } } }, @@ -132479,16 +132975,16 @@ "binop": null, "updateContext": null }, - "start": 16640, - "end": 16641, + "start": 16267, + "end": 16268, "loc": { "start": { - "line": 476, - "column": 8 + "line": 450, + "column": 50 }, "end": { - "line": 476, - "column": 9 + "line": 450, + "column": 51 } } }, @@ -132504,96 +133000,84 @@ "postfix": false, "binop": null }, - "value": "configuration", - "start": 16641, - "end": 16654, + "value": "loader", + "start": 16268, + "end": 16274, "loc": { "start": { - "line": 476, - "column": 9 + "line": 450, + "column": 51 }, "end": { - "line": 476, - "column": 22 + "line": 450, + "column": 57 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 16655, - "end": 16656, + "start": 16274, + "end": 16275, "loc": { "start": { - "line": 476, - "column": 23 + "line": 450, + "column": 57 }, "end": { - "line": 476, - "column": 24 + "line": 450, + "column": 58 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "configuration", - "start": 16657, - "end": 16670, + "start": 16275, + "end": 16276, "loc": { "start": { - "line": 476, - "column": 25 + "line": 450, + "column": 58 }, "end": { - "line": 476, - "column": 38 + "line": 450, + "column": 59 } } }, { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 16670, - "end": 16671, + "type": "CommentLine", + "value": " eslint-disable-next-line no-undef", + "start": 16282, + "end": 16318, "loc": { "start": { - "line": 476, - "column": 38 + "line": 452, + "column": 4 }, "end": { - "line": 476, - "column": 39 + "line": 452, + "column": 40 } } }, @@ -132612,15 +133096,15 @@ "updateContext": null }, "value": "this", - "start": 16676, - "end": 16680, + "start": 16323, + "end": 16327, "loc": { "start": { - "line": 477, + "line": 453, "column": 4 }, "end": { - "line": 477, + "line": 453, "column": 8 } } @@ -132638,15 +133122,15 @@ "binop": null, "updateContext": null }, - "start": 16680, - "end": 16681, + "start": 16327, + "end": 16328, "loc": { "start": { - "line": 477, + "line": 453, "column": 8 }, "end": { - "line": 477, + "line": 453, "column": 9 } } @@ -132663,17 +133147,17 @@ "postfix": false, "binop": null }, - "value": "smartGuide", - "start": 16681, - "end": 16691, + "value": "error", + "start": 16328, + "end": 16333, "loc": { "start": { - "line": 477, + "line": 453, "column": 9 }, "end": { - "line": 477, - "column": 19 + "line": 453, + "column": 14 } } }, @@ -132691,16 +133175,16 @@ "updateContext": null }, "value": "=", - "start": 16692, - "end": 16693, + "start": 16334, + "end": 16335, "loc": { "start": { - "line": 477, - "column": 20 + "line": 453, + "column": 15 }, "end": { - "line": 477, - "column": 21 + "line": 453, + "column": 16 } } }, @@ -132716,17 +133200,17 @@ "postfix": false, "binop": null }, - "value": "SmartGuide", - "start": 16694, - "end": 16704, + "value": "document", + "start": 16336, + "end": 16344, "loc": { "start": { - "line": 477, - "column": 22 + "line": 453, + "column": 17 }, "end": { - "line": 477, - "column": 32 + "line": 453, + "column": 25 } } }, @@ -132743,16 +133227,16 @@ "binop": null, "updateContext": null }, - "start": 16704, - "end": 16705, + "start": 16344, + "end": 16345, "loc": { "start": { - "line": 477, - "column": 32 + "line": 453, + "column": 25 }, "end": { - "line": 477, - "column": 33 + "line": 453, + "column": 26 } } }, @@ -132768,17 +133252,17 @@ "postfix": false, "binop": null }, - "value": "createSmartGuide", - "start": 16705, - "end": 16721, + "value": "createElement", + "start": 16345, + "end": 16358, "loc": { "start": { - "line": 477, - "column": 33 + "line": 453, + "column": 26 }, "end": { - "line": 477, - "column": 49 + "line": 453, + "column": 39 } } }, @@ -132794,23 +133278,22 @@ "postfix": false, "binop": null }, - "start": 16721, - "end": 16722, + "start": 16358, + "end": 16359, "loc": { "start": { - "line": 477, - "column": 49 + "line": 453, + "column": 39 }, "end": { - "line": 477, - "column": 50 + "line": 453, + "column": 40 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -132821,17 +133304,17 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 16722, - "end": 16726, + "value": "div", + "start": 16359, + "end": 16364, "loc": { "start": { - "line": 477, - "column": 50 + "line": 453, + "column": 40 }, "end": { - "line": 477, - "column": 54 + "line": 453, + "column": 45 } } }, @@ -132847,16 +133330,16 @@ "postfix": false, "binop": null }, - "start": 16726, - "end": 16727, + "start": 16364, + "end": 16365, "loc": { "start": { - "line": 477, - "column": 54 + "line": 453, + "column": 45 }, "end": { - "line": 477, - "column": 55 + "line": 453, + "column": 46 } } }, @@ -132873,32 +133356,16 @@ "binop": null, "updateContext": null }, - "start": 16727, - "end": 16728, + "start": 16365, + "end": 16366, "loc": { "start": { - "line": 477, - "column": 55 - }, - "end": { - "line": 477, - "column": 56 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Pen color used only for pending stroke\n * @type {string}\n ", - "start": 16734, - "end": 16813, - "loc": { - "start": { - "line": 479, - "column": 4 + "line": 453, + "column": 46 }, "end": { - "line": 482, - "column": 7 + "line": 453, + "column": 47 } } }, @@ -132917,15 +133384,15 @@ "updateContext": null }, "value": "this", - "start": 16818, - "end": 16822, + "start": 16371, + "end": 16375, "loc": { "start": { - "line": 483, + "line": 454, "column": 4 }, "end": { - "line": 483, + "line": 454, "column": 8 } } @@ -132943,15 +133410,15 @@ "binop": null, "updateContext": null }, - "start": 16822, - "end": 16823, + "start": 16375, + "end": 16376, "loc": { "start": { - "line": 483, + "line": 454, "column": 8 }, "end": { - "line": 483, + "line": 454, "column": 9 } } @@ -132968,50 +133435,49 @@ "postfix": false, "binop": null }, - "value": "localTheme", - "start": 16823, - "end": 16833, + "value": "error", + "start": 16376, + "end": 16381, "loc": { "start": { - "line": 483, + "line": 454, "column": 9 }, "end": { - "line": 483, - "column": 19 + "line": 454, + "column": 14 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 16834, - "end": 16835, + "start": 16381, + "end": 16382, "loc": { "start": { - "line": 483, - "column": 20 + "line": 454, + "column": 14 }, "end": { - "line": 483, - "column": 21 + "line": 454, + "column": 15 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -133019,27 +133485,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "", - "start": 16836, - "end": 16838, + "value": "classList", + "start": 16382, + "end": 16391, "loc": { "start": { - "line": 483, - "column": 22 + "line": 454, + "column": 15 }, "end": { - "line": 483, + "line": 454, "column": 24 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -133049,23 +133514,22 @@ "binop": null, "updateContext": null }, - "start": 16838, - "end": 16839, + "start": 16391, + "end": 16392, "loc": { "start": { - "line": 483, + "line": 454, "column": 24 }, "end": { - "line": 483, + "line": 454, "column": 25 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -133073,52 +133537,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 16845, - "end": 16849, + "value": "add", + "start": 16392, + "end": 16395, "loc": { "start": { - "line": 485, - "column": 4 + "line": 454, + "column": 25 }, "end": { - "line": 485, - "column": 8 + "line": 454, + "column": 28 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 16849, - "end": 16850, + "start": 16395, + "end": 16396, "loc": { "start": { - "line": 485, - "column": 8 + "line": 454, + "column": 28 }, "end": { - "line": 485, - "column": 9 + "line": 454, + "column": 29 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -133126,54 +133588,28 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "value": "theme", - "start": 16850, - "end": 16855, - "loc": { - "start": { - "line": 485, - "column": 9 - }, - "end": { - "line": 485, - "column": 14 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 16856, - "end": 16857, + "value": "error-msg", + "start": 16396, + "end": 16407, "loc": { "start": { - "line": 485, - "column": 15 + "line": 454, + "column": 29 }, "end": { - "line": 485, - "column": 16 + "line": 454, + "column": 40 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -133181,17 +133617,16 @@ "postfix": false, "binop": null }, - "value": "theme", - "start": 16858, - "end": 16863, + "start": 16407, + "end": 16408, "loc": { "start": { - "line": 485, - "column": 17 + "line": 454, + "column": 40 }, "end": { - "line": 485, - "column": 22 + "line": 454, + "column": 41 } } }, @@ -133208,16 +133643,16 @@ "binop": null, "updateContext": null }, - "start": 16863, - "end": 16864, + "start": 16408, + "end": 16409, "loc": { "start": { - "line": 485, - "column": 22 + "line": 454, + "column": 41 }, "end": { - "line": 485, - "column": 23 + "line": 454, + "column": 42 } } }, @@ -133236,15 +133671,15 @@ "updateContext": null }, "value": "this", - "start": 16869, - "end": 16873, + "start": 16414, + "end": 16418, "loc": { "start": { - "line": 486, + "line": 455, "column": 4 }, "end": { - "line": 486, + "line": 455, "column": 8 } } @@ -133262,15 +133697,15 @@ "binop": null, "updateContext": null }, - "start": 16873, - "end": 16874, + "start": 16418, + "end": 16419, "loc": { "start": { - "line": 486, + "line": 455, "column": 8 }, "end": { - "line": 486, + "line": 455, "column": 9 } } @@ -133287,17 +133722,17 @@ "postfix": false, "binop": null }, - "value": "penStyle", - "start": 16874, - "end": 16882, + "value": "error", + "start": 16419, + "end": 16424, "loc": { "start": { - "line": 486, + "line": 455, "column": 9 }, "end": { - "line": 486, - "column": 17 + "line": 455, + "column": 14 } } }, @@ -133315,22 +133750,23 @@ "updateContext": null }, "value": "=", - "start": 16883, - "end": 16884, + "start": 16425, + "end": 16426, "loc": { "start": { - "line": 486, - "column": 18 + "line": 455, + "column": 15 }, "end": { - "line": 486, - "column": 19 + "line": 455, + "column": 16 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -133338,26 +133774,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "penStyle", - "start": 16885, - "end": 16893, + "value": "this", + "start": 16427, + "end": 16431, "loc": { "start": { - "line": 486, - "column": 20 + "line": 455, + "column": 17 }, "end": { - "line": 486, - "column": 28 + "line": 455, + "column": 21 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -133367,23 +133804,22 @@ "binop": null, "updateContext": null }, - "start": 16893, - "end": 16894, + "start": 16431, + "end": 16432, "loc": { "start": { - "line": 486, - "column": 28 + "line": 455, + "column": 21 }, "end": { - "line": 486, - "column": 29 + "line": 455, + "column": 22 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -133391,20 +133827,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 16899, - "end": 16903, + "value": "domElement", + "start": 16432, + "end": 16442, "loc": { "start": { - "line": 487, - "column": 4 + "line": 455, + "column": 22 }, "end": { - "line": 487, - "column": 8 + "line": 455, + "column": 32 } } }, @@ -133421,16 +133856,16 @@ "binop": null, "updateContext": null }, - "start": 16903, - "end": 16904, + "start": 16442, + "end": 16443, "loc": { "start": { - "line": 487, - "column": 8 + "line": 455, + "column": 32 }, "end": { - "line": 487, - "column": 9 + "line": 455, + "column": 33 } } }, @@ -133446,50 +133881,49 @@ "postfix": false, "binop": null }, - "value": "penStyleClasses", - "start": 16904, - "end": 16919, + "value": "appendChild", + "start": 16443, + "end": 16454, "loc": { "start": { - "line": 487, - "column": 9 + "line": 455, + "column": 33 }, "end": { - "line": 487, - "column": 24 + "line": 455, + "column": 44 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 16920, - "end": 16921, + "start": 16454, + "end": 16455, "loc": { "start": { - "line": 487, - "column": 25 + "line": 455, + "column": 44 }, "end": { - "line": 487, - "column": 26 + "line": 455, + "column": 45 } } }, { "type": { - "label": "string", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -133500,24 +133934,24 @@ "binop": null, "updateContext": null }, - "value": "", - "start": 16922, - "end": 16924, + "value": "this", + "start": 16455, + "end": 16459, "loc": { "start": { - "line": 487, - "column": 27 + "line": 455, + "column": 45 }, "end": { - "line": 487, - "column": 29 + "line": 455, + "column": 49 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -133527,23 +133961,22 @@ "binop": null, "updateContext": null }, - "start": 16924, - "end": 16925, + "start": 16459, + "end": 16460, "loc": { "start": { - "line": 487, - "column": 29 + "line": 455, + "column": 49 }, "end": { - "line": 487, - "column": 30 + "line": 455, + "column": 50 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -133551,26 +133984,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 16931, - "end": 16935, + "value": "error", + "start": 16460, + "end": 16465, "loc": { "start": { - "line": 489, - "column": 4 + "line": 455, + "column": 50 }, "end": { - "line": 489, - "column": 8 + "line": 455, + "column": 55 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -133578,25 +134010,67 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "start": 16465, + "end": 16466, + "loc": { + "start": { + "line": 455, + "column": 55 + }, + "end": { + "line": 455, + "column": 56 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "start": 16935, - "end": 16936, + "start": 16466, + "end": 16467, "loc": { "start": { - "line": 489, - "column": 8 + "line": 455, + "column": 56 }, "end": { - "line": 489, - "column": 9 + "line": 455, + "column": 57 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Launch export timer\n * @type {Number}\n ", + "start": 16473, + "end": 16533, + "loc": { + "start": { + "line": 457, + "column": 4 + }, + "end": { + "line": 460, + "column": 7 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -133604,19 +134078,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "domElement", - "start": 16936, - "end": 16946, + "value": "this", + "start": 16538, + "end": 16542, "loc": { "start": { - "line": 489, - "column": 9 + "line": 461, + "column": 4 }, "end": { - "line": 489, - "column": 19 + "line": 461, + "column": 8 } } }, @@ -133633,16 +134108,16 @@ "binop": null, "updateContext": null }, - "start": 16946, - "end": 16947, + "start": 16542, + "end": 16543, "loc": { "start": { - "line": 489, - "column": 19 + "line": 461, + "column": 8 }, "end": { - "line": 489, - "column": 20 + "line": 461, + "column": 9 } } }, @@ -133658,17 +134133,17 @@ "postfix": false, "binop": null }, - "value": "editor", - "start": 16947, - "end": 16953, + "value": "exportTimer", + "start": 16543, + "end": 16554, "loc": { "start": { - "line": 489, - "column": 20 + "line": 461, + "column": 9 }, "end": { - "line": 489, - "column": 26 + "line": 461, + "column": 20 } } }, @@ -133686,23 +134161,22 @@ "updateContext": null }, "value": "=", - "start": 16954, - "end": 16955, + "start": 16555, + "end": 16556, "loc": { "start": { - "line": 489, - "column": 27 + "line": 461, + "column": 21 }, "end": { - "line": 489, - "column": 28 + "line": 461, + "column": 22 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -133710,20 +134184,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 16956, - "end": 16960, + "value": "undefined", + "start": 16557, + "end": 16566, "loc": { "start": { - "line": 489, - "column": 29 + "line": 461, + "column": 23 }, "end": { - "line": 489, - "column": 33 + "line": 461, + "column": 32 } } }, @@ -133740,83 +134213,86 @@ "binop": null, "updateContext": null }, - "start": 16960, - "end": 16961, + "start": 16566, + "end": 16567, "loc": { "start": { - "line": 489, + "line": 461, + "column": 32 + }, + "end": { + "line": 461, "column": 33 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Launch resize timer\n * @type {Number}\n ", + "start": 16573, + "end": 16633, + "loc": { + "start": { + "line": 463, + "column": 4 }, "end": { - "line": 489, - "column": 34 + "line": 466, + "column": 7 } } }, { "type": { - "label": "}", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 16964, - "end": 16965, - "loc": { - "start": { - "line": 490, - "column": 2 - }, - "end": { - "line": 490, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Set the recognition parameters\n * WARNING : Need to fire a clear if user have already input some strokes.\n * @param {Configuration} configuration\n ", - "start": 16969, - "end": 17133, + "value": "this", + "start": 16638, + "end": 16642, "loc": { "start": { - "line": 492, - "column": 2 + "line": 467, + "column": 4 }, "end": { - "line": 496, - "column": 5 + "line": 467, + "column": 8 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "set", - "start": 17136, - "end": 17139, + "start": 16642, + "end": 16643, "loc": { "start": { - "line": 497, - "column": 2 + "line": 467, + "column": 8 }, "end": { - "line": 497, - "column": 5 + "line": 467, + "column": 9 } } }, @@ -133832,42 +134308,44 @@ "postfix": false, "binop": null }, - "value": "configuration", - "start": 17140, - "end": 17153, + "value": "resizeTimer", + "start": 16643, + "end": 16654, "loc": { "start": { - "line": 497, - "column": 6 + "line": 467, + "column": 9 }, "end": { - "line": 497, - "column": 19 + "line": 467, + "column": 20 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 17153, - "end": 17154, + "value": "=", + "start": 16655, + "end": 16656, "loc": { "start": { - "line": 497, - "column": 19 + "line": 467, + "column": 21 }, "end": { - "line": 497, - "column": 20 + "line": 467, + "column": 22 } } }, @@ -133883,67 +134361,59 @@ "postfix": false, "binop": null }, - "value": "configuration", - "start": 17154, - "end": 17167, + "value": "undefined", + "start": 16657, + "end": 16666, "loc": { "start": { - "line": 497, - "column": 20 + "line": 467, + "column": 23 }, "end": { - "line": 497, - "column": 33 + "line": 467, + "column": 32 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 17167, - "end": 17168, + "start": 16666, + "end": 16667, "loc": { "start": { - "line": 497, - "column": 33 + "line": 467, + "column": 32 }, "end": { - "line": 497, - "column": 34 + "line": 467, + "column": 33 } } }, { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17169, - "end": 17170, + "type": "CommentBlock", + "value": "*\n * Notify delay timer\n * @type {Number}\n ", + "start": 16673, + "end": 16732, "loc": { "start": { - "line": 497, - "column": 35 + "line": 469, + "column": 4 }, "end": { - "line": 497, - "column": 36 + "line": 472, + "column": 7 } } }, @@ -133962,15 +134432,15 @@ "updateContext": null }, "value": "this", - "start": 17175, - "end": 17179, + "start": 16737, + "end": 16741, "loc": { "start": { - "line": 498, + "line": 473, "column": 4 }, "end": { - "line": 498, + "line": 473, "column": 8 } } @@ -133988,15 +134458,15 @@ "binop": null, "updateContext": null }, - "start": 17179, - "end": 17180, + "start": 16741, + "end": 16742, "loc": { "start": { - "line": 498, + "line": 473, "column": 8 }, "end": { - "line": 498, + "line": 473, "column": 9 } } @@ -134013,43 +134483,44 @@ "postfix": false, "binop": null }, - "value": "loader", - "start": 17180, - "end": 17186, + "value": "notifyTimer", + "start": 16742, + "end": 16753, "loc": { "start": { - "line": 498, + "line": 473, "column": 9 }, "end": { - "line": 498, - "column": 15 + "line": 473, + "column": 20 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 17186, - "end": 17187, + "value": "=", + "start": 16754, + "end": 16755, "loc": { "start": { - "line": 498, - "column": 15 + "line": 473, + "column": 21 }, "end": { - "line": 498, - "column": 16 + "line": 473, + "column": 22 } } }, @@ -134065,17 +134536,87 @@ "postfix": false, "binop": null }, - "value": "style", - "start": 17187, - "end": 17192, + "value": "undefined", + "start": 16756, + "end": 16765, "loc": { "start": { - "line": 498, - "column": 16 + "line": 473, + "column": 23 }, "end": { - "line": 498, - "column": 21 + "line": 473, + "column": 32 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16765, + "end": 16766, + "loc": { + "start": { + "line": 473, + "column": 32 + }, + "end": { + "line": 473, + "column": 33 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @private\n * @type {Behaviors}\n ", + "start": 16773, + "end": 16825, + "loc": { + "start": { + "line": 476, + "column": 4 + }, + "end": { + "line": 479, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 16830, + "end": 16834, + "loc": { + "start": { + "line": 480, + "column": 4 + }, + "end": { + "line": 480, + "column": 8 } } }, @@ -134092,16 +134633,16 @@ "binop": null, "updateContext": null }, - "start": 17192, - "end": 17193, + "start": 16834, + "end": 16835, "loc": { "start": { - "line": 498, - "column": 21 + "line": 480, + "column": 8 }, "end": { - "line": 498, - "column": 22 + "line": 480, + "column": 9 } } }, @@ -134117,17 +134658,17 @@ "postfix": false, "binop": null }, - "value": "display", - "start": 17193, - "end": 17200, + "value": "innerBehaviors", + "start": 16835, + "end": 16849, "loc": { "start": { - "line": 498, - "column": 22 + "line": 480, + "column": 9 }, "end": { - "line": 498, - "column": 29 + "line": 480, + "column": 23 } } }, @@ -134145,22 +134686,22 @@ "updateContext": null }, "value": "=", - "start": 17201, - "end": 17202, + "start": 16850, + "end": 16851, "loc": { "start": { - "line": 498, - "column": 30 + "line": 480, + "column": 24 }, "end": { - "line": 498, - "column": 31 + "line": 480, + "column": 25 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -134168,27 +134709,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "initial", - "start": 17203, - "end": 17212, + "value": "DefaultBehaviors", + "start": 16852, + "end": 16868, "loc": { "start": { - "line": 498, - "column": 32 + "line": 480, + "column": 26 }, "end": { - "line": 498, - "column": 41 + "line": 480, + "column": 42 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -134198,23 +134738,22 @@ "binop": null, "updateContext": null }, - "start": 17212, - "end": 17213, + "start": 16868, + "end": 16869, "loc": { "start": { - "line": 498, - "column": 41 + "line": 480, + "column": 42 }, "end": { - "line": 498, - "column": 42 + "line": 480, + "column": 43 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -134222,46 +134761,44 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 17218, - "end": 17222, + "value": "overrideDefaultBehaviors", + "start": 16869, + "end": 16893, "loc": { "start": { - "line": 499, - "column": 4 + "line": 480, + "column": 43 }, "end": { - "line": 499, - "column": 8 + "line": 480, + "column": 67 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 17222, - "end": 17223, + "start": 16893, + "end": 16894, "loc": { "start": { - "line": 499, - "column": 8 + "line": 480, + "column": 67 }, "end": { - "line": 499, - "column": 9 + "line": 480, + "column": 68 } } }, @@ -134277,23 +134814,23 @@ "postfix": false, "binop": null }, - "value": "error", - "start": 17223, - "end": 17228, + "value": "behaviors", + "start": 16894, + "end": 16903, "loc": { "start": { - "line": 499, - "column": 9 + "line": 480, + "column": 68 }, "end": { - "line": 499, - "column": 14 + "line": 480, + "column": 77 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -134301,25 +134838,51 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "start": 16903, + "end": 16904, + "loc": { + "start": { + "line": 480, + "column": 77 + }, + "end": { + "line": 480, + "column": 78 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "start": 17228, - "end": 17229, + "start": 16904, + "end": 16905, "loc": { "start": { - "line": 499, - "column": 14 + "line": 480, + "column": 78 }, "end": { - "line": 499, - "column": 15 + "line": 480, + "column": 79 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -134327,19 +134890,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "style", - "start": 17229, - "end": 17234, + "value": "this", + "start": 16910, + "end": 16914, "loc": { "start": { - "line": 499, - "column": 15 + "line": 481, + "column": 4 }, "end": { - "line": 499, - "column": 20 + "line": 481, + "column": 8 } } }, @@ -134356,16 +134920,16 @@ "binop": null, "updateContext": null }, - "start": 17234, - "end": 17235, + "start": 16914, + "end": 16915, "loc": { "start": { - "line": 499, - "column": 20 + "line": 481, + "column": 8 }, "end": { - "line": 499, - "column": 21 + "line": 481, + "column": 9 } } }, @@ -134381,17 +134945,17 @@ "postfix": false, "binop": null }, - "value": "display", - "start": 17235, - "end": 17242, + "value": "configuration", + "start": 16915, + "end": 16928, "loc": { "start": { - "line": 499, - "column": 21 + "line": 481, + "column": 9 }, "end": { - "line": 499, - "column": 28 + "line": 481, + "column": 22 } } }, @@ -134409,22 +134973,22 @@ "updateContext": null }, "value": "=", - "start": 17243, - "end": 17244, + "start": 16929, + "end": 16930, "loc": { "start": { - "line": 499, - "column": 29 + "line": 481, + "column": 23 }, "end": { - "line": 499, - "column": 30 + "line": 481, + "column": 24 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -134432,20 +134996,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "none", - "start": 17245, - "end": 17251, + "value": "configuration", + "start": 16931, + "end": 16944, "loc": { "start": { - "line": 499, - "column": 31 + "line": 481, + "column": 25 }, "end": { - "line": 499, - "column": 37 + "line": 481, + "column": 38 } } }, @@ -134462,32 +135025,16 @@ "binop": null, "updateContext": null }, - "start": 17251, - "end": 17252, + "start": 16944, + "end": 16945, "loc": { "start": { - "line": 499, - "column": 37 - }, - "end": { - "line": 499, + "line": 481, "column": 38 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @private\n * @type {Configuration}\n ", - "start": 17257, - "end": 17313, - "loc": { - "start": { - "line": 500, - "column": 4 }, "end": { - "line": 503, - "column": 7 + "line": 481, + "column": 39 } } }, @@ -134506,15 +135053,15 @@ "updateContext": null }, "value": "this", - "start": 17318, - "end": 17322, + "start": 16950, + "end": 16954, "loc": { "start": { - "line": 504, + "line": 482, "column": 4 }, "end": { - "line": 504, + "line": 482, "column": 8 } } @@ -134532,15 +135079,15 @@ "binop": null, "updateContext": null }, - "start": 17322, - "end": 17323, + "start": 16954, + "end": 16955, "loc": { "start": { - "line": 504, + "line": 482, "column": 8 }, "end": { - "line": 504, + "line": 482, "column": 9 } } @@ -134557,17 +135104,17 @@ "postfix": false, "binop": null }, - "value": "innerConfiguration", - "start": 17323, - "end": 17341, + "value": "smartGuide", + "start": 16955, + "end": 16965, "loc": { "start": { - "line": 504, + "line": 482, "column": 9 }, "end": { - "line": 504, - "column": 27 + "line": 482, + "column": 19 } } }, @@ -134585,16 +135132,16 @@ "updateContext": null }, "value": "=", - "start": 17342, - "end": 17343, + "start": 16966, + "end": 16967, "loc": { "start": { - "line": 504, - "column": 28 + "line": 482, + "column": 20 }, "end": { - "line": 504, - "column": 29 + "line": 482, + "column": 21 } } }, @@ -134610,17 +135157,17 @@ "postfix": false, "binop": null }, - "value": "DefaultConfiguration", - "start": 17344, - "end": 17364, + "value": "SmartGuide", + "start": 16968, + "end": 16978, "loc": { "start": { - "line": 504, - "column": 30 + "line": 482, + "column": 22 }, "end": { - "line": 504, - "column": 50 + "line": 482, + "column": 32 } } }, @@ -134637,16 +135184,16 @@ "binop": null, "updateContext": null }, - "start": 17364, - "end": 17365, + "start": 16978, + "end": 16979, "loc": { "start": { - "line": 504, - "column": 50 + "line": 482, + "column": 32 }, "end": { - "line": 504, - "column": 51 + "line": 482, + "column": 33 } } }, @@ -134662,17 +135209,17 @@ "postfix": false, "binop": null }, - "value": "overrideDefaultConfiguration", - "start": 17365, - "end": 17393, + "value": "createSmartGuide", + "start": 16979, + "end": 16995, "loc": { "start": { - "line": 504, - "column": 51 + "line": 482, + "column": 33 }, "end": { - "line": 504, - "column": 79 + "line": 482, + "column": 49 } } }, @@ -134688,22 +135235,23 @@ "postfix": false, "binop": null }, - "start": 17393, - "end": 17394, + "start": 16995, + "end": 16996, "loc": { "start": { - "line": 504, - "column": 79 + "line": 482, + "column": 49 }, "end": { - "line": 504, - "column": 80 + "line": 482, + "column": 50 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -134711,19 +135259,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "configuration", - "start": 17394, - "end": 17407, + "value": "this", + "start": 16996, + "end": 17000, "loc": { "start": { - "line": 504, - "column": 80 + "line": 482, + "column": 50 }, "end": { - "line": 504, - "column": 93 + "line": 482, + "column": 54 } } }, @@ -134739,16 +135288,16 @@ "postfix": false, "binop": null }, - "start": 17407, - "end": 17408, + "start": 17000, + "end": 17001, "loc": { "start": { - "line": 504, - "column": 93 + "line": 482, + "column": 54 }, "end": { - "line": 504, - "column": 94 + "line": 482, + "column": 55 } } }, @@ -134765,16 +135314,32 @@ "binop": null, "updateContext": null }, - "start": 17408, - "end": 17409, + "start": 17001, + "end": 17002, "loc": { "start": { - "line": 504, - "column": 94 + "line": 482, + "column": 55 }, "end": { - "line": 504, - "column": 95 + "line": 482, + "column": 56 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Pen color used only for pending stroke\n * @type {string}\n ", + "start": 17008, + "end": 17087, + "loc": { + "start": { + "line": 484, + "column": 4 + }, + "end": { + "line": 487, + "column": 7 } } }, @@ -134793,15 +135358,15 @@ "updateContext": null }, "value": "this", - "start": 17414, - "end": 17418, + "start": 17092, + "end": 17096, "loc": { "start": { - "line": 505, + "line": 488, "column": 4 }, "end": { - "line": 505, + "line": 488, "column": 8 } } @@ -134819,15 +135384,15 @@ "binop": null, "updateContext": null }, - "start": 17418, - "end": 17419, + "start": 17096, + "end": 17097, "loc": { "start": { - "line": 505, + "line": 488, "column": 8 }, "end": { - "line": 505, + "line": 488, "column": 9 } } @@ -134844,49 +135409,50 @@ "postfix": false, "binop": null }, - "value": "setThemeForFont", - "start": 17419, - "end": 17434, + "value": "localTheme", + "start": 17097, + "end": 17107, "loc": { "start": { - "line": 505, + "line": 488, "column": 9 }, "end": { - "line": 505, - "column": 24 + "line": 488, + "column": 19 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 17434, - "end": 17435, + "value": "=", + "start": 17108, + "end": 17109, "loc": { "start": { - "line": 505, - "column": 24 + "line": 488, + "column": 20 }, "end": { - "line": 505, - "column": 25 + "line": 488, + "column": 21 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -134897,24 +135463,24 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 17435, - "end": 17439, + "value": "", + "start": 17110, + "end": 17112, "loc": { "start": { - "line": 505, - "column": 25 + "line": 488, + "column": 22 }, "end": { - "line": 505, - "column": 29 + "line": 488, + "column": 24 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -134924,22 +135490,23 @@ "binop": null, "updateContext": null }, - "start": 17439, - "end": 17440, + "start": 17112, + "end": 17113, "loc": { "start": { - "line": 505, - "column": 29 + "line": 488, + "column": 24 }, "end": { - "line": 505, - "column": 30 + "line": 488, + "column": 25 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -134947,71 +135514,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "value": "innerConfiguration", - "start": 17440, - "end": 17458, - "loc": { - "start": { - "line": 505, - "column": 30 - }, - "end": { - "line": 505, - "column": 48 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null, "updateContext": null }, - "start": 17458, - "end": 17459, - "loc": { - "start": { - "line": 505, - "column": 48 - }, - "end": { - "line": 505, - "column": 49 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "recognitionParams", - "start": 17459, - "end": 17476, + "value": "this", + "start": 17119, + "end": 17123, "loc": { "start": { - "line": 505, - "column": 49 + "line": 490, + "column": 4 }, "end": { - "line": 505, - "column": 66 + "line": 490, + "column": 8 } } }, @@ -135028,16 +135544,16 @@ "binop": null, "updateContext": null }, - "start": 17476, - "end": 17477, + "start": 17123, + "end": 17124, "loc": { "start": { - "line": 505, - "column": 66 + "line": 490, + "column": 8 }, "end": { - "line": 505, - "column": 67 + "line": 490, + "column": 9 } } }, @@ -135053,43 +135569,44 @@ "postfix": false, "binop": null }, - "value": "v4", - "start": 17477, - "end": 17479, + "value": "theme", + "start": 17124, + "end": 17129, "loc": { "start": { - "line": 505, - "column": 67 + "line": 490, + "column": 9 }, "end": { - "line": 505, - "column": 69 + "line": 490, + "column": 14 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 17479, - "end": 17480, + "value": "=", + "start": 17130, + "end": 17131, "loc": { "start": { - "line": 505, - "column": 69 + "line": 490, + "column": 15 }, "end": { - "line": 505, - "column": 70 + "line": 490, + "column": 16 } } }, @@ -135105,42 +135622,17 @@ "postfix": false, "binop": null }, - "value": "lang", - "start": 17480, - "end": 17484, - "loc": { - "start": { - "line": 505, - "column": 70 - }, - "end": { - "line": 505, - "column": 74 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 17484, - "end": 17485, + "value": "theme", + "start": 17132, + "end": 17137, "loc": { "start": { - "line": 505, - "column": 74 + "line": 490, + "column": 17 }, "end": { - "line": 505, - "column": 75 + "line": 490, + "column": 22 } } }, @@ -135157,16 +135649,16 @@ "binop": null, "updateContext": null }, - "start": 17485, - "end": 17486, + "start": 17137, + "end": 17138, "loc": { "start": { - "line": 505, - "column": 75 + "line": 490, + "column": 22 }, "end": { - "line": 505, - "column": 76 + "line": 490, + "column": 23 } } }, @@ -135185,15 +135677,15 @@ "updateContext": null }, "value": "this", - "start": 17491, - "end": 17495, + "start": 17143, + "end": 17147, "loc": { "start": { - "line": 506, + "line": 491, "column": 4 }, "end": { - "line": 506, + "line": 491, "column": 8 } } @@ -135211,15 +135703,15 @@ "binop": null, "updateContext": null }, - "start": 17495, - "end": 17496, + "start": 17147, + "end": 17148, "loc": { "start": { - "line": 506, + "line": 491, "column": 8 }, "end": { - "line": 506, + "line": 491, "column": 9 } } @@ -135236,16 +135728,16 @@ "postfix": false, "binop": null }, - "value": "behavior", - "start": 17496, - "end": 17504, + "value": "penStyle", + "start": 17148, + "end": 17156, "loc": { "start": { - "line": 506, + "line": 491, "column": 9 }, "end": { - "line": 506, + "line": 491, "column": 17 } } @@ -135264,23 +135756,22 @@ "updateContext": null }, "value": "=", - "start": 17505, - "end": 17506, + "start": 17157, + "end": 17158, "loc": { "start": { - "line": 506, + "line": 491, "column": 18 }, "end": { - "line": 506, + "line": 491, "column": 19 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -135288,27 +135779,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 17507, - "end": 17511, + "value": "penStyle", + "start": 17159, + "end": 17167, "loc": { "start": { - "line": 506, + "line": 491, "column": 20 }, "end": { - "line": 506, - "column": 24 + "line": 491, + "column": 28 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -135318,22 +135808,23 @@ "binop": null, "updateContext": null }, - "start": 17511, - "end": 17512, + "start": 17167, + "end": 17168, "loc": { "start": { - "line": 506, - "column": 24 + "line": 491, + "column": 28 }, "end": { - "line": 506, - "column": 25 + "line": 491, + "column": 29 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -135341,19 +135832,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "behaviors", - "start": 17512, - "end": 17521, + "value": "this", + "start": 17173, + "end": 17177, "loc": { "start": { - "line": 506, - "column": 25 + "line": 492, + "column": 4 }, "end": { - "line": 506, - "column": 34 + "line": 492, + "column": 8 } } }, @@ -135370,16 +135862,16 @@ "binop": null, "updateContext": null }, - "start": 17521, - "end": 17522, + "start": 17177, + "end": 17178, "loc": { "start": { - "line": 506, - "column": 34 + "line": 492, + "column": 8 }, "end": { - "line": 506, - "column": 35 + "line": 492, + "column": 9 } } }, @@ -135395,49 +135887,50 @@ "postfix": false, "binop": null }, - "value": "getBehaviorFromConfiguration", - "start": 17522, - "end": 17550, + "value": "penStyleClasses", + "start": 17178, + "end": 17193, "loc": { "start": { - "line": 506, - "column": 35 + "line": 492, + "column": 9 }, "end": { - "line": 506, - "column": 63 + "line": 492, + "column": 24 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 17550, - "end": 17551, + "value": "=", + "start": 17194, + "end": 17195, "loc": { "start": { - "line": 506, - "column": 63 + "line": 492, + "column": 25 }, "end": { - "line": 506, - "column": 64 + "line": 492, + "column": 26 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -135448,24 +135941,24 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 17551, - "end": 17555, + "value": "", + "start": 17196, + "end": 17198, "loc": { "start": { - "line": 506, - "column": 64 + "line": 492, + "column": 27 }, "end": { - "line": 506, - "column": 68 + "line": 492, + "column": 29 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -135475,22 +135968,23 @@ "binop": null, "updateContext": null }, - "start": 17555, - "end": 17556, + "start": 17198, + "end": 17199, "loc": { "start": { - "line": 506, - "column": 68 + "line": 492, + "column": 29 }, "end": { - "line": 506, - "column": 69 + "line": 492, + "column": 30 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -135498,26 +135992,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "behaviors", - "start": 17556, - "end": 17565, + "value": "this", + "start": 17205, + "end": 17209, "loc": { "start": { - "line": 506, - "column": 69 + "line": 494, + "column": 4 }, "end": { - "line": 506, - "column": 78 + "line": 494, + "column": 8 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -135527,23 +136022,22 @@ "binop": null, "updateContext": null }, - "start": 17565, - "end": 17566, + "start": 17209, + "end": 17210, "loc": { "start": { - "line": 506, - "column": 78 + "line": 494, + "column": 8 }, "end": { - "line": 506, - "column": 79 + "line": 494, + "column": 9 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -135551,20 +136045,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 17567, - "end": 17571, + "value": "domElement", + "start": 17210, + "end": 17220, "loc": { "start": { - "line": 506, - "column": 80 + "line": 494, + "column": 9 }, "end": { - "line": 506, - "column": 84 + "line": 494, + "column": 19 } } }, @@ -135581,16 +136074,16 @@ "binop": null, "updateContext": null }, - "start": 17571, - "end": 17572, + "start": 17220, + "end": 17221, "loc": { "start": { - "line": 506, - "column": 84 + "line": 494, + "column": 19 }, "end": { - "line": 506, - "column": 85 + "line": 494, + "column": 20 } } }, @@ -135606,42 +136099,72 @@ "postfix": false, "binop": null }, - "value": "innerConfiguration", - "start": 17572, - "end": 17590, + "value": "editor", + "start": 17221, + "end": 17227, "loc": { "start": { - "line": 506, - "column": 85 + "line": 494, + "column": 20 }, "end": { - "line": 506, - "column": 103 + "line": 494, + "column": 26 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 17228, + "end": 17229, + "loc": { + "start": { + "line": 494, + "column": 27 + }, + "end": { + "line": 494, + "column": 28 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 17590, - "end": 17591, + "value": "this", + "start": 17230, + "end": 17234, "loc": { "start": { - "line": 506, - "column": 103 + "line": 494, + "column": 29 }, "end": { - "line": 506, - "column": 104 + "line": 494, + "column": 33 } } }, @@ -135658,16 +136181,16 @@ "binop": null, "updateContext": null }, - "start": 17591, - "end": 17592, + "start": 17234, + "end": 17235, "loc": { "start": { - "line": 506, - "column": 104 + "line": 494, + "column": 33 }, "end": { - "line": 506, - "column": 105 + "line": 494, + "column": 34 } } }, @@ -135683,31 +136206,31 @@ "postfix": false, "binop": null }, - "start": 17595, - "end": 17596, + "start": 17238, + "end": 17239, "loc": { "start": { - "line": 507, + "line": 495, "column": 2 }, "end": { - "line": 507, + "line": 495, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * Get the current recognition parameters\n * @return {Configuration}\n ", - "start": 17600, - "end": 17682, + "value": "*\n * Set the recognition parameters\n * WARNING : Need to fire a clear if user have already input some strokes.\n * @param {Configuration} configuration\n ", + "start": 17243, + "end": 17407, "loc": { "start": { - "line": 509, + "line": 497, "column": 2 }, "end": { - "line": 512, + "line": 501, "column": 5 } } @@ -135724,16 +136247,16 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 17685, - "end": 17688, + "value": "set", + "start": 17410, + "end": 17413, "loc": { "start": { - "line": 513, + "line": 502, "column": 2 }, "end": { - "line": 513, + "line": 502, "column": 5 } } @@ -135751,15 +136274,15 @@ "binop": null }, "value": "configuration", - "start": 17689, - "end": 17702, + "start": 17414, + "end": 17427, "loc": { "start": { - "line": 513, + "line": 502, "column": 6 }, "end": { - "line": 513, + "line": 502, "column": 19 } } @@ -135776,24 +136299,24 @@ "postfix": false, "binop": null }, - "start": 17702, - "end": 17703, + "start": 17427, + "end": 17428, "loc": { "start": { - "line": 513, + "line": 502, "column": 19 }, "end": { - "line": 513, + "line": 502, "column": 20 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -135801,24 +136324,25 @@ "postfix": false, "binop": null }, - "start": 17703, - "end": 17704, + "value": "configuration", + "start": 17428, + "end": 17441, "loc": { "start": { - "line": 513, + "line": 502, "column": 20 }, "end": { - "line": 513, - "column": 21 + "line": 502, + "column": 33 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -135826,44 +136350,41 @@ "postfix": false, "binop": null }, - "start": 17705, - "end": 17706, + "start": 17441, + "end": 17442, "loc": { "start": { - "line": 513, - "column": 22 + "line": 502, + "column": 33 }, "end": { - "line": 513, - "column": 23 + "line": 502, + "column": 34 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 17711, - "end": 17717, + "start": 17443, + "end": 17444, "loc": { "start": { - "line": 514, - "column": 4 + "line": 502, + "column": 35 }, "end": { - "line": 514, - "column": 10 + "line": 502, + "column": 36 } } }, @@ -135882,16 +136403,16 @@ "updateContext": null }, "value": "this", - "start": 17718, - "end": 17722, + "start": 17449, + "end": 17453, "loc": { "start": { - "line": 514, - "column": 11 + "line": 503, + "column": 4 }, "end": { - "line": 514, - "column": 15 + "line": 503, + "column": 8 } } }, @@ -135908,16 +136429,16 @@ "binop": null, "updateContext": null }, - "start": 17722, - "end": 17723, + "start": 17453, + "end": 17454, "loc": { "start": { - "line": 514, - "column": 15 + "line": 503, + "column": 8 }, "end": { - "line": 514, - "column": 16 + "line": 503, + "column": 9 } } }, @@ -135933,24 +136454,24 @@ "postfix": false, "binop": null }, - "value": "innerConfiguration", - "start": 17723, - "end": 17741, + "value": "loader", + "start": 17454, + "end": 17460, "loc": { "start": { - "line": 514, - "column": 16 + "line": 503, + "column": 9 }, "end": { - "line": 514, - "column": 34 + "line": 503, + "column": 15 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -135960,24 +136481,24 @@ "binop": null, "updateContext": null }, - "start": 17741, - "end": 17742, + "start": 17460, + "end": 17461, "loc": { "start": { - "line": 514, - "column": 34 + "line": 503, + "column": 15 }, "end": { - "line": 514, - "column": 35 + "line": 503, + "column": 16 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -135985,58 +136506,43 @@ "postfix": false, "binop": null }, - "start": 17745, - "end": 17746, - "loc": { - "start": { - "line": 515, - "column": 2 - }, - "end": { - "line": 515, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Set the pen style\n * @param {PenStyle} penStyle\n ", - "start": 17750, - "end": 17814, + "value": "style", + "start": 17461, + "end": 17466, "loc": { "start": { - "line": 517, - "column": 2 + "line": 503, + "column": 16 }, "end": { - "line": 520, - "column": 5 + "line": 503, + "column": 21 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "set", - "start": 17817, - "end": 17820, + "start": 17466, + "end": 17467, "loc": { "start": { - "line": 521, - "column": 2 + "line": 503, + "column": 21 }, "end": { - "line": 521, - "column": 5 + "line": 503, + "column": 22 } } }, @@ -136052,48 +136558,50 @@ "postfix": false, "binop": null }, - "value": "penStyle", - "start": 17821, - "end": 17829, + "value": "display", + "start": 17467, + "end": 17474, "loc": { "start": { - "line": 521, - "column": 6 + "line": 503, + "column": 22 }, "end": { - "line": 521, - "column": 14 + "line": 503, + "column": 29 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 17829, - "end": 17830, + "value": "=", + "start": 17475, + "end": 17476, "loc": { "start": { - "line": 521, - "column": 14 + "line": 503, + "column": 30 }, "end": { - "line": 521, - "column": 15 + "line": 503, + "column": 31 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -136101,85 +136609,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "value": "penStyle", - "start": 17830, - "end": 17838, - "loc": { - "start": { - "line": 521, - "column": 15 - }, - "end": { - "line": 521, - "column": 23 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 17838, - "end": 17839, + "value": "initial", + "start": 17477, + "end": 17486, "loc": { "start": { - "line": 521, - "column": 23 + "line": 503, + "column": 32 }, "end": { - "line": 521, - "column": 24 + "line": 503, + "column": 41 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 17840, - "end": 17841, - "loc": { - "start": { - "line": 521, - "column": 25 - }, - "end": { - "line": 521, - "column": 26 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @private\n * @type {PenStyle}\n ", - "start": 17846, - "end": 17897, + "start": 17486, + "end": 17487, "loc": { "start": { - "line": 522, - "column": 4 + "line": 503, + "column": 41 }, "end": { - "line": 525, - "column": 7 + "line": 503, + "column": 42 } } }, @@ -136198,15 +136667,15 @@ "updateContext": null }, "value": "this", - "start": 17902, - "end": 17906, + "start": 17492, + "end": 17496, "loc": { "start": { - "line": 526, + "line": 504, "column": 4 }, "end": { - "line": 526, + "line": 504, "column": 8 } } @@ -136224,15 +136693,15 @@ "binop": null, "updateContext": null }, - "start": 17906, - "end": 17907, + "start": 17496, + "end": 17497, "loc": { "start": { - "line": 526, + "line": 504, "column": 8 }, "end": { - "line": 526, + "line": 504, "column": 9 } } @@ -136249,44 +136718,43 @@ "postfix": false, "binop": null }, - "value": "innerPenStyle", - "start": 17907, - "end": 17920, + "value": "error", + "start": 17497, + "end": 17502, "loc": { "start": { - "line": 526, + "line": 504, "column": 9 }, "end": { - "line": 526, - "column": 22 + "line": 504, + "column": 14 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 17921, - "end": 17922, + "start": 17502, + "end": 17503, "loc": { "start": { - "line": 526, - "column": 23 + "line": 504, + "column": 14 }, "end": { - "line": 526, - "column": 24 + "line": 504, + "column": 15 } } }, @@ -136302,17 +136770,17 @@ "postfix": false, "binop": null }, - "value": "DefaultStyles", - "start": 17923, - "end": 17936, + "value": "style", + "start": 17503, + "end": 17508, "loc": { "start": { - "line": 526, - "column": 25 + "line": 504, + "column": 15 }, "end": { - "line": 526, - "column": 38 + "line": 504, + "column": 20 } } }, @@ -136329,16 +136797,16 @@ "binop": null, "updateContext": null }, - "start": 17936, - "end": 17937, + "start": 17508, + "end": 17509, "loc": { "start": { - "line": 526, - "column": 38 + "line": 504, + "column": 20 }, "end": { - "line": 526, - "column": 39 + "line": 504, + "column": 21 } } }, @@ -136354,48 +136822,50 @@ "postfix": false, "binop": null }, - "value": "overrideDefaultPenStyle", - "start": 17937, - "end": 17960, + "value": "display", + "start": 17509, + "end": 17516, "loc": { "start": { - "line": 526, - "column": 39 + "line": 504, + "column": 21 }, "end": { - "line": 526, - "column": 62 + "line": 504, + "column": 28 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 17960, - "end": 17961, + "value": "=", + "start": 17517, + "end": 17518, "loc": { "start": { - "line": 526, - "column": 62 + "line": 504, + "column": 29 }, "end": { - "line": 526, - "column": 63 + "line": 504, + "column": 30 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -136403,70 +136873,62 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "penStyle", - "start": 17961, - "end": 17969, + "value": "none", + "start": 17519, + "end": 17525, "loc": { "start": { - "line": 526, - "column": 63 + "line": 504, + "column": 31 }, "end": { - "line": 526, - "column": 71 + "line": 504, + "column": 37 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 17969, - "end": 17970, + "start": 17525, + "end": 17526, "loc": { "start": { - "line": 526, - "column": 71 + "line": 504, + "column": 37 }, "end": { - "line": 526, - "column": 72 + "line": 504, + "column": 38 } } }, { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 17970, - "end": 17971, + "type": "CommentBlock", + "value": "*\n * @private\n * @type {Configuration}\n ", + "start": 17531, + "end": 17587, "loc": { "start": { - "line": 526, - "column": 72 + "line": 505, + "column": 4 }, "end": { - "line": 526, - "column": 73 + "line": 508, + "column": 7 } } }, @@ -136485,15 +136947,15 @@ "updateContext": null }, "value": "this", - "start": 17976, - "end": 17980, + "start": 17592, + "end": 17596, "loc": { "start": { - "line": 527, + "line": 509, "column": 4 }, "end": { - "line": 527, + "line": 509, "column": 8 } } @@ -136511,15 +136973,15 @@ "binop": null, "updateContext": null }, - "start": 17980, - "end": 17981, + "start": 17596, + "end": 17597, "loc": { "start": { - "line": 527, + "line": 509, "column": 8 }, "end": { - "line": 527, + "line": 509, "column": 9 } } @@ -136536,17 +136998,17 @@ "postfix": false, "binop": null }, - "value": "localPenStyle", - "start": 17981, - "end": 17994, + "value": "innerConfiguration", + "start": 17597, + "end": 17615, "loc": { "start": { - "line": 527, + "line": 509, "column": 9 }, "end": { - "line": 527, - "column": 22 + "line": 509, + "column": 27 } } }, @@ -136564,23 +137026,22 @@ "updateContext": null }, "value": "=", - "start": 17995, - "end": 17996, + "start": 17616, + "end": 17617, "loc": { "start": { - "line": 527, - "column": 23 + "line": 509, + "column": 28 }, "end": { - "line": 527, - "column": 24 + "line": 509, + "column": 29 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -136588,20 +137049,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 17997, - "end": 18001, + "value": "DefaultConfiguration", + "start": 17618, + "end": 17638, "loc": { "start": { - "line": 527, - "column": 25 + "line": 509, + "column": 30 }, "end": { - "line": 527, - "column": 29 + "line": 509, + "column": 50 } } }, @@ -136618,16 +137078,16 @@ "binop": null, "updateContext": null }, - "start": 18001, - "end": 18002, + "start": 17638, + "end": 17639, "loc": { "start": { - "line": 527, - "column": 29 + "line": 509, + "column": 50 }, "end": { - "line": 527, - "column": 30 + "line": 509, + "column": 51 } } }, @@ -136643,50 +137103,24 @@ "postfix": false, "binop": null }, - "value": "innerPenStyle", - "start": 18002, - "end": 18015, + "value": "overrideDefaultConfiguration", + "start": 17639, + "end": 17667, "loc": { "start": { - "line": 527, - "column": 30 + "line": 509, + "column": 51 }, "end": { - "line": 527, - "column": 43 + "line": 509, + "column": 79 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18015, - "end": 18016, - "loc": { - "start": { - "line": 527, - "column": 43 - }, - "end": { - "line": 527, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -136695,24 +137129,23 @@ "postfix": false, "binop": null }, - "value": "setPenStyle", - "start": 18021, - "end": 18032, + "start": 17667, + "end": 17668, "loc": { "start": { - "line": 528, - "column": 4 + "line": 509, + "column": 79 }, "end": { - "line": 528, - "column": 15 + "line": 509, + "column": 80 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -136721,50 +137154,48 @@ "postfix": false, "binop": null }, - "start": 18032, - "end": 18033, + "value": "configuration", + "start": 17668, + "end": 17681, "loc": { "start": { - "line": 528, - "column": 15 + "line": 509, + "column": 80 }, "end": { - "line": 528, - "column": 16 + "line": 509, + "column": 93 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 18033, - "end": 18037, + "start": 17681, + "end": 17682, "loc": { "start": { - "line": 528, - "column": 16 + "line": 509, + "column": 93 }, "end": { - "line": 528, - "column": 20 + "line": 509, + "column": 94 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -136775,16 +137206,16 @@ "binop": null, "updateContext": null }, - "start": 18037, - "end": 18038, + "start": 17682, + "end": 17683, "loc": { "start": { - "line": 528, - "column": 20 + "line": 509, + "column": 94 }, "end": { - "line": 528, - "column": 21 + "line": 509, + "column": 95 } } }, @@ -136803,16 +137234,16 @@ "updateContext": null }, "value": "this", - "start": 18039, - "end": 18043, + "start": 17688, + "end": 17692, "loc": { "start": { - "line": 528, - "column": 22 + "line": 510, + "column": 4 }, "end": { - "line": 528, - "column": 26 + "line": 510, + "column": 8 } } }, @@ -136829,16 +137260,16 @@ "binop": null, "updateContext": null }, - "start": 18043, - "end": 18044, + "start": 17692, + "end": 17693, "loc": { "start": { - "line": 528, - "column": 26 + "line": 510, + "column": 8 }, "end": { - "line": 528, - "column": 27 + "line": 510, + "column": 9 } } }, @@ -136854,25 +137285,25 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 18044, - "end": 18049, + "value": "setThemeForFont", + "start": 17693, + "end": 17708, "loc": { "start": { - "line": 528, - "column": 27 + "line": 510, + "column": 9 }, "end": { - "line": 528, - "column": 32 + "line": 510, + "column": 24 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -136880,24 +137311,25 @@ "postfix": false, "binop": null }, - "start": 18049, - "end": 18050, + "start": 17708, + "end": 17709, "loc": { "start": { - "line": 528, - "column": 32 + "line": 510, + "column": 24 }, "end": { - "line": 528, - "column": 33 + "line": 510, + "column": 25 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -136906,22 +137338,23 @@ "binop": null, "updateContext": null }, - "start": 18050, - "end": 18051, + "value": "this", + "start": 17709, + "end": 17713, "loc": { "start": { - "line": 528, - "column": 33 + "line": 510, + "column": 25 }, "end": { - "line": 528, - "column": 34 + "line": 510, + "column": 29 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -136929,34 +137362,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 18054, - "end": 18055, - "loc": { - "start": { - "line": 529, - "column": 2 - }, - "end": { - "line": 529, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get the pen style\n * @return {PenStyle}\n ", - "start": 18059, - "end": 18115, + "start": 17713, + "end": 17714, "loc": { "start": { - "line": 531, - "column": 2 + "line": 510, + "column": 29 }, "end": { - "line": 534, - "column": 5 + "line": 510, + "column": 30 } } }, @@ -136972,50 +137390,50 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 18118, - "end": 18121, + "value": "innerConfiguration", + "start": 17714, + "end": 17732, "loc": { "start": { - "line": 535, - "column": 2 + "line": 510, + "column": 30 }, "end": { - "line": 535, - "column": 5 + "line": 510, + "column": 48 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "penStyle", - "start": 18122, - "end": 18130, + "start": 17732, + "end": 17733, "loc": { "start": { - "line": 535, - "column": 6 + "line": 510, + "column": 48 }, "end": { - "line": 535, - "column": 14 + "line": 510, + "column": 49 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -137024,22 +137442,23 @@ "postfix": false, "binop": null }, - "start": 18130, - "end": 18131, + "value": "recognitionParams", + "start": 17733, + "end": 17750, "loc": { "start": { - "line": 535, - "column": 14 + "line": 510, + "column": 49 }, "end": { - "line": 535, - "column": 15 + "line": 510, + "column": 66 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -137047,25 +137466,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 18131, - "end": 18132, + "start": 17750, + "end": 17751, "loc": { "start": { - "line": 535, - "column": 15 + "line": 510, + "column": 66 }, "end": { - "line": 535, - "column": 16 + "line": 510, + "column": 67 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -137074,24 +137494,24 @@ "postfix": false, "binop": null }, - "start": 18133, - "end": 18134, + "value": "v4", + "start": 17751, + "end": 17753, "loc": { "start": { - "line": 535, - "column": 17 + "line": 510, + "column": 67 }, "end": { - "line": 535, - "column": 18 + "line": 510, + "column": 69 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -137101,24 +137521,22 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 18139, - "end": 18145, + "start": 17753, + "end": 17754, "loc": { "start": { - "line": 536, - "column": 4 + "line": 510, + "column": 69 }, "end": { - "line": 536, - "column": 10 + "line": 510, + "column": 70 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -137126,26 +137544,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 18146, - "end": 18150, + "value": "lang", + "start": 17754, + "end": 17758, "loc": { "start": { - "line": 536, - "column": 11 + "line": 510, + "column": 70 }, "end": { - "line": 536, - "column": 15 + "line": 510, + "column": 74 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -137153,53 +137570,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 18150, - "end": 18151, + "start": 17758, + "end": 17759, "loc": { "start": { - "line": 536, - "column": 15 + "line": 510, + "column": 74 }, "end": { - "line": 536, - "column": 16 + "line": 510, + "column": 75 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "innerPenStyle", - "start": 18151, - "end": 18164, + "start": 17759, + "end": 17760, "loc": { "start": { - "line": 536, - "column": 16 + "line": 510, + "column": 75 }, "end": { - "line": 536, - "column": 29 + "line": 510, + "column": 76 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -137208,22 +137625,23 @@ "binop": null, "updateContext": null }, - "start": 18164, - "end": 18165, + "value": "this", + "start": 17765, + "end": 17769, "loc": { "start": { - "line": 536, - "column": 29 + "line": 511, + "column": 4 }, "end": { - "line": 536, - "column": 30 + "line": 511, + "column": 8 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -137231,66 +137649,79 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 18168, - "end": 18169, + "start": 17769, + "end": 17770, "loc": { "start": { - "line": 537, - "column": 2 + "line": 511, + "column": 8 }, "end": { - "line": 537, - "column": 3 + "line": 511, + "column": 9 } } }, { - "type": "CommentBlock", - "value": "*\n * Set the pen style\n * @param {String} penStyleClasses\n ", - "start": 18173, - "end": 18242, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "behavior", + "start": 17770, + "end": 17778, "loc": { "start": { - "line": 539, - "column": 2 + "line": 511, + "column": 9 }, "end": { - "line": 542, - "column": 5 + "line": 511, + "column": 17 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "set", - "start": 18245, - "end": 18248, + "value": "=", + "start": 17779, + "end": 17780, "loc": { "start": { - "line": 543, - "column": 2 + "line": 511, + "column": 18 }, "end": { - "line": 543, - "column": 5 + "line": 511, + "column": 19 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -137298,44 +137729,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "penStyleClasses", - "start": 18249, - "end": 18264, + "value": "this", + "start": 17781, + "end": 17785, "loc": { "start": { - "line": 543, - "column": 6 + "line": 511, + "column": 20 }, "end": { - "line": 543, - "column": 21 + "line": 511, + "column": 24 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 18264, - "end": 18265, + "start": 17785, + "end": 17786, "loc": { "start": { - "line": 543, - "column": 21 + "line": 511, + "column": 24 }, "end": { - "line": 543, - "column": 22 + "line": 511, + "column": 25 } } }, @@ -137351,23 +137784,23 @@ "postfix": false, "binop": null }, - "value": "penStyleClasses", - "start": 18265, - "end": 18280, + "value": "behaviors", + "start": 17786, + "end": 17795, "loc": { "start": { - "line": 543, - "column": 22 + "line": 511, + "column": 25 }, "end": { - "line": 543, - "column": 37 + "line": 511, + "column": 34 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -137375,25 +137808,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 18280, - "end": 18281, + "start": 17795, + "end": 17796, "loc": { "start": { - "line": 543, - "column": 37 + "line": 511, + "column": 34 }, "end": { - "line": 543, - "column": 38 + "line": 511, + "column": 35 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -137402,32 +137836,42 @@ "postfix": false, "binop": null }, - "start": 18282, - "end": 18283, + "value": "getBehaviorFromConfiguration", + "start": 17796, + "end": 17824, "loc": { "start": { - "line": 543, - "column": 39 + "line": 511, + "column": 35 }, "end": { - "line": 543, - "column": 40 + "line": 511, + "column": 63 } } }, { - "type": "CommentBlock", - "value": "*\n * @private\n * @type {String}\n ", - "start": 18288, - "end": 18337, + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17824, + "end": 17825, "loc": { "start": { - "line": 544, - "column": 4 + "line": 511, + "column": 63 }, "end": { - "line": 547, - "column": 7 + "line": 511, + "column": 64 } } }, @@ -137446,16 +137890,16 @@ "updateContext": null }, "value": "this", - "start": 18342, - "end": 18346, + "start": 17825, + "end": 17829, "loc": { "start": { - "line": 548, - "column": 4 + "line": 511, + "column": 64 }, "end": { - "line": 548, - "column": 8 + "line": 511, + "column": 68 } } }, @@ -137472,16 +137916,16 @@ "binop": null, "updateContext": null }, - "start": 18346, - "end": 18347, + "start": 17829, + "end": 17830, "loc": { "start": { - "line": 548, - "column": 8 + "line": 511, + "column": 68 }, "end": { - "line": 548, - "column": 9 + "line": 511, + "column": 69 } } }, @@ -137497,50 +137941,50 @@ "postfix": false, "binop": null }, - "value": "innerPenStyleClasses", - "start": 18347, - "end": 18367, + "value": "behaviors", + "start": 17830, + "end": 17839, "loc": { "start": { - "line": 548, - "column": 9 + "line": 511, + "column": 69 }, "end": { - "line": 548, - "column": 29 + "line": 511, + "column": 78 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 18368, - "end": 18369, + "start": 17839, + "end": 17840, "loc": { "start": { - "line": 548, - "column": 30 + "line": 511, + "column": 78 }, "end": { - "line": 548, - "column": 31 + "line": 511, + "column": 79 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -137548,26 +137992,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "penStyleClasses", - "start": 18370, - "end": 18385, + "value": "this", + "start": 17841, + "end": 17845, "loc": { "start": { - "line": 548, - "column": 32 + "line": 511, + "column": 80 }, "end": { - "line": 548, - "column": 47 + "line": 511, + "column": 84 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -137577,23 +138022,22 @@ "binop": null, "updateContext": null }, - "start": 18385, - "end": 18386, + "start": 17845, + "end": 17846, "loc": { "start": { - "line": 548, - "column": 47 + "line": 511, + "column": 84 }, "end": { - "line": 548, - "column": 48 + "line": 511, + "column": 85 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -137601,26 +138045,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 18391, - "end": 18395, + "value": "innerConfiguration", + "start": 17846, + "end": 17864, "loc": { "start": { - "line": 549, - "column": 4 + "line": 511, + "column": 85 }, "end": { - "line": 549, - "column": 8 + "line": 511, + "column": 103 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -137628,106 +138071,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 18395, - "end": 18396, + "start": 17864, + "end": 17865, "loc": { "start": { - "line": 549, - "column": 8 - }, - "end": { - "line": 549, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "localPenStyle", - "start": 18396, - "end": 18409, - "loc": { - "start": { - "line": 549, - "column": 9 + "line": 511, + "column": 103 }, "end": { - "line": 549, - "column": 22 + "line": 511, + "column": 104 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 18410, - "end": 18411, - "loc": { - "start": { - "line": 549, - "column": 23 - }, - "end": { - "line": 549, - "column": 24 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "this", - "start": 18412, - "end": 18416, + "start": 17865, + "end": 17866, "loc": { "start": { - "line": 549, - "column": 25 + "line": 511, + "column": 104 }, "end": { - "line": 549, - "column": 29 + "line": 511, + "column": 105 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -137735,130 +138122,41 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18416, - "end": 18417, - "loc": { - "start": { - "line": 549, - "column": 29 - }, - "end": { - "line": 549, - "column": 30 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null }, - "value": "theme", - "start": 18417, - "end": 18422, - "loc": { - "start": { - "line": 549, - "column": 30 - }, - "end": { - "line": 549, - "column": 35 - } - } - }, - { - "type": { - "label": "[", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18422, - "end": 18423, + "start": 17869, + "end": 17870, "loc": { "start": { - "line": 549, - "column": 35 + "line": 512, + "column": 2 }, "end": { - "line": 549, - "column": 36 + "line": 512, + "column": 3 } } }, { - "type": { - "label": "`", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18423, - "end": 18424, + "type": "CommentBlock", + "value": "*\n * Get the current recognition parameters\n * @return {Configuration}\n ", + "start": 17874, + "end": 17956, "loc": { "start": { - "line": 549, - "column": 36 + "line": 514, + "column": 2 }, "end": { - "line": 549, - "column": 37 + "line": 517, + "column": 5 } } }, { "type": { - "label": "template", + "label": "name", "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": ".", - "start": 18424, - "end": 18425, - "loc": { - "start": { - "line": 549, - "column": 37 - }, - "end": { - "line": 549, - "column": 38 - } - } - }, - { - "type": { - "label": "${", - "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -137867,70 +138165,17 @@ "postfix": false, "binop": null }, - "start": 18425, - "end": 18427, - "loc": { - "start": { - "line": 549, - "column": 38 - }, - "end": { - "line": 549, - "column": 40 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 18427, - "end": 18431, - "loc": { - "start": { - "line": 549, - "column": 40 - }, - "end": { - "line": 549, - "column": 44 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18431, - "end": 18432, + "value": "get", + "start": 17959, + "end": 17962, "loc": { "start": { - "line": 549, - "column": 44 + "line": 518, + "column": 2 }, "end": { - "line": 549, - "column": 45 + "line": 518, + "column": 5 } } }, @@ -137946,76 +138191,24 @@ "postfix": false, "binop": null }, - "value": "innerPenStyleClasses", - "start": 18432, - "end": 18452, - "loc": { - "start": { - "line": 549, - "column": 45 - }, - "end": { - "line": 549, - "column": 65 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18452, - "end": 18453, - "loc": { - "start": { - "line": 549, - "column": 65 - }, - "end": { - "line": 549, - "column": 66 - } - } - }, - { - "type": { - "label": "template", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "", - "start": 18453, - "end": 18453, + "value": "configuration", + "start": 17963, + "end": 17976, "loc": { "start": { - "line": 549, - "column": 66 + "line": 518, + "column": 6 }, "end": { - "line": 549, - "column": 66 + "line": 518, + "column": 19 } } }, { "type": { - "label": "`", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -138024,22 +138217,22 @@ "postfix": false, "binop": null }, - "start": 18453, - "end": 18454, + "start": 17976, + "end": 17977, "loc": { "start": { - "line": 549, - "column": 66 + "line": 518, + "column": 19 }, "end": { - "line": 549, - "column": 67 + "line": 518, + "column": 20 } } }, { "type": { - "label": "]", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -138047,77 +138240,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18454, - "end": 18455, - "loc": { - "start": { - "line": 549, - "column": 67 - }, - "end": { - "line": 549, - "column": 68 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 18455, - "end": 18456, - "loc": { - "start": { - "line": 549, - "column": 68 - }, - "end": { - "line": 549, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null }, - "value": "setPenStyleClasses", - "start": 18461, - "end": 18479, + "start": 17977, + "end": 17978, "loc": { "start": { - "line": 550, - "column": 4 + "line": 518, + "column": 20 }, "end": { - "line": 550, - "column": 22 + "line": 518, + "column": 21 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -138127,50 +138267,23 @@ "postfix": false, "binop": null }, - "start": 18479, - "end": 18480, + "start": 17979, + "end": 17980, "loc": { "start": { - "line": 550, + "line": 518, "column": 22 }, "end": { - "line": 550, - "column": 23 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 18480, - "end": 18484, - "loc": { - "start": { - "line": 550, + "line": 518, "column": 23 - }, - "end": { - "line": 550, - "column": 27 } } }, { "type": { - "label": ",", + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -138181,16 +138294,17 @@ "binop": null, "updateContext": null }, - "start": 18484, - "end": 18485, + "value": "return", + "start": 17985, + "end": 17991, "loc": { "start": { - "line": 550, - "column": 27 + "line": 519, + "column": 4 }, "end": { - "line": 550, - "column": 28 + "line": 519, + "column": 10 } } }, @@ -138209,16 +138323,16 @@ "updateContext": null }, "value": "this", - "start": 18486, - "end": 18490, + "start": 17992, + "end": 17996, "loc": { "start": { - "line": 550, - "column": 29 + "line": 519, + "column": 11 }, "end": { - "line": 550, - "column": 33 + "line": 519, + "column": 15 } } }, @@ -138235,16 +138349,16 @@ "binop": null, "updateContext": null }, - "start": 18490, - "end": 18491, + "start": 17996, + "end": 17997, "loc": { "start": { - "line": 550, - "column": 33 + "line": 519, + "column": 15 }, "end": { - "line": 550, - "column": 34 + "line": 519, + "column": 16 } } }, @@ -138260,42 +138374,17 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 18491, - "end": 18496, - "loc": { - "start": { - "line": 550, - "column": 34 - }, - "end": { - "line": 550, - "column": 39 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18496, - "end": 18497, + "value": "innerConfiguration", + "start": 17997, + "end": 18015, "loc": { "start": { - "line": 550, - "column": 39 + "line": 519, + "column": 16 }, "end": { - "line": 550, - "column": 40 + "line": 519, + "column": 34 } } }, @@ -138312,16 +138401,16 @@ "binop": null, "updateContext": null }, - "start": 18497, - "end": 18498, + "start": 18015, + "end": 18016, "loc": { "start": { - "line": 550, - "column": 40 + "line": 519, + "column": 34 }, "end": { - "line": 550, - "column": 41 + "line": 519, + "column": 35 } } }, @@ -138337,31 +138426,31 @@ "postfix": false, "binop": null }, - "start": 18501, - "end": 18502, + "start": 18019, + "end": 18020, "loc": { "start": { - "line": 551, + "line": 520, "column": 2 }, "end": { - "line": 551, + "line": 520, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * Get the pen style\n * @return {String}\n ", - "start": 18506, - "end": 18560, + "value": "*\n * Set the pen style\n * @param {PenStyle} penStyle\n ", + "start": 18024, + "end": 18088, "loc": { "start": { - "line": 553, + "line": 522, "column": 2 }, "end": { - "line": 556, + "line": 525, "column": 5 } } @@ -138378,16 +138467,16 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 18563, - "end": 18566, + "value": "set", + "start": 18091, + "end": 18094, "loc": { "start": { - "line": 557, + "line": 526, "column": 2 }, "end": { - "line": 557, + "line": 526, "column": 5 } } @@ -138404,17 +138493,17 @@ "postfix": false, "binop": null }, - "value": "penStyleClasses", - "start": 18567, - "end": 18582, + "value": "penStyle", + "start": 18095, + "end": 18103, "loc": { "start": { - "line": 557, + "line": 526, "column": 6 }, "end": { - "line": 557, - "column": 21 + "line": 526, + "column": 14 } } }, @@ -138430,24 +138519,24 @@ "postfix": false, "binop": null }, - "start": 18582, - "end": 18583, + "start": 18103, + "end": 18104, "loc": { "start": { - "line": 557, - "column": 21 + "line": 526, + "column": 14 }, "end": { - "line": 557, - "column": 22 + "line": 526, + "column": 15 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -138455,24 +138544,25 @@ "postfix": false, "binop": null }, - "start": 18583, - "end": 18584, + "value": "penStyle", + "start": 18104, + "end": 18112, "loc": { "start": { - "line": 557, - "column": 22 + "line": 526, + "column": 15 }, "end": { - "line": 557, + "line": 526, "column": 23 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -138480,44 +138570,57 @@ "postfix": false, "binop": null }, - "start": 18585, - "end": 18586, + "start": 18112, + "end": 18113, "loc": { "start": { - "line": 557, - "column": 24 + "line": 526, + "column": 23 }, "end": { - "line": 557, - "column": 25 + "line": 526, + "column": 24 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 18591, - "end": 18597, + "start": 18114, + "end": 18115, "loc": { "start": { - "line": 558, + "line": 526, + "column": 25 + }, + "end": { + "line": 526, + "column": 26 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @private\n * @type {PenStyle}\n ", + "start": 18120, + "end": 18171, + "loc": { + "start": { + "line": 527, "column": 4 }, "end": { - "line": 558, - "column": 10 + "line": 530, + "column": 7 } } }, @@ -138536,16 +138639,16 @@ "updateContext": null }, "value": "this", - "start": 18598, - "end": 18602, + "start": 18176, + "end": 18180, "loc": { "start": { - "line": 558, - "column": 11 + "line": 531, + "column": 4 }, "end": { - "line": 558, - "column": 15 + "line": 531, + "column": 8 } } }, @@ -138562,16 +138665,16 @@ "binop": null, "updateContext": null }, - "start": 18602, - "end": 18603, + "start": 18180, + "end": 18181, "loc": { "start": { - "line": 558, - "column": 15 + "line": 531, + "column": 8 }, "end": { - "line": 558, - "column": 16 + "line": 531, + "column": 9 } } }, @@ -138587,51 +138690,52 @@ "postfix": false, "binop": null }, - "value": "innerPenStyleClasses", - "start": 18603, - "end": 18623, + "value": "innerPenStyle", + "start": 18181, + "end": 18194, "loc": { "start": { - "line": 558, - "column": 16 + "line": 531, + "column": 9 }, "end": { - "line": 558, - "column": 36 + "line": 531, + "column": 22 } } }, { "type": { - "label": ";", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 18623, - "end": 18624, + "value": "=", + "start": 18195, + "end": 18196, "loc": { "start": { - "line": 558, - "column": 36 + "line": 531, + "column": 23 }, "end": { - "line": 558, - "column": 37 + "line": 531, + "column": 24 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -138639,58 +138743,43 @@ "postfix": false, "binop": null }, - "start": 18627, - "end": 18628, - "loc": { - "start": { - "line": 559, - "column": 2 - }, - "end": { - "line": 559, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Set the theme\n * @param {Theme} theme\n ", - "start": 18632, - "end": 18686, + "value": "DefaultStyles", + "start": 18197, + "end": 18210, "loc": { "start": { - "line": 561, - "column": 2 + "line": 531, + "column": 25 }, "end": { - "line": 564, - "column": 5 + "line": 531, + "column": 38 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "set", - "start": 18689, - "end": 18692, + "start": 18210, + "end": 18211, "loc": { "start": { - "line": 565, - "column": 2 + "line": 531, + "column": 38 }, "end": { - "line": 565, - "column": 5 + "line": 531, + "column": 39 } } }, @@ -138706,17 +138795,17 @@ "postfix": false, "binop": null }, - "value": "theme", - "start": 18693, - "end": 18698, + "value": "overrideDefaultPenStyle", + "start": 18211, + "end": 18234, "loc": { "start": { - "line": 565, - "column": 6 + "line": 531, + "column": 39 }, "end": { - "line": 565, - "column": 11 + "line": 531, + "column": 62 } } }, @@ -138732,16 +138821,16 @@ "postfix": false, "binop": null }, - "start": 18698, - "end": 18699, + "start": 18234, + "end": 18235, "loc": { "start": { - "line": 565, - "column": 11 + "line": 531, + "column": 62 }, "end": { - "line": 565, - "column": 12 + "line": 531, + "column": 63 } } }, @@ -138757,17 +138846,17 @@ "postfix": false, "binop": null }, - "value": "theme", - "start": 18699, - "end": 18704, + "value": "penStyle", + "start": 18235, + "end": 18243, "loc": { "start": { - "line": 565, - "column": 12 + "line": 531, + "column": 63 }, "end": { - "line": 565, - "column": 17 + "line": 531, + "column": 71 } } }, @@ -138783,57 +138872,42 @@ "postfix": false, "binop": null }, - "start": 18704, - "end": 18705, + "start": 18243, + "end": 18244, "loc": { "start": { - "line": 565, - "column": 17 + "line": 531, + "column": 71 }, "end": { - "line": 565, - "column": 18 + "line": 531, + "column": 72 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 18706, - "end": 18707, - "loc": { - "start": { - "line": 565, - "column": 19 - }, - "end": { - "line": 565, - "column": 20 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @private\n * @type {Theme}\n ", - "start": 18712, - "end": 18760, + "start": 18244, + "end": 18245, "loc": { "start": { - "line": 566, - "column": 4 + "line": 531, + "column": 72 }, "end": { - "line": 569, - "column": 7 + "line": 531, + "column": 73 } } }, @@ -138852,15 +138926,15 @@ "updateContext": null }, "value": "this", - "start": 18765, - "end": 18769, + "start": 18250, + "end": 18254, "loc": { "start": { - "line": 570, + "line": 532, "column": 4 }, "end": { - "line": 570, + "line": 532, "column": 8 } } @@ -138878,15 +138952,15 @@ "binop": null, "updateContext": null }, - "start": 18769, - "end": 18770, + "start": 18254, + "end": 18255, "loc": { "start": { - "line": 570, + "line": 532, "column": 8 }, "end": { - "line": 570, + "line": 532, "column": 9 } } @@ -138903,17 +138977,17 @@ "postfix": false, "binop": null }, - "value": "innerTheme", - "start": 18770, - "end": 18780, + "value": "localPenStyle", + "start": 18255, + "end": 18268, "loc": { "start": { - "line": 570, + "line": 532, "column": 9 }, "end": { - "line": 570, - "column": 19 + "line": 532, + "column": 22 } } }, @@ -138931,22 +139005,23 @@ "updateContext": null }, "value": "=", - "start": 18781, - "end": 18782, + "start": 18269, + "end": 18270, "loc": { "start": { - "line": 570, - "column": 20 + "line": 532, + "column": 23 }, "end": { - "line": 570, - "column": 21 + "line": 532, + "column": 24 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -138954,19 +139029,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "DefaultTheme", - "start": 18783, - "end": 18795, + "value": "this", + "start": 18271, + "end": 18275, "loc": { "start": { - "line": 570, - "column": 22 + "line": 532, + "column": 25 }, "end": { - "line": 570, - "column": 34 + "line": 532, + "column": 29 } } }, @@ -138983,67 +139059,16 @@ "binop": null, "updateContext": null }, - "start": 18795, - "end": 18796, - "loc": { - "start": { - "line": 570, - "column": 34 - }, - "end": { - "line": 570, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "overrideDefaultTheme", - "start": 18796, - "end": 18816, - "loc": { - "start": { - "line": 570, - "column": 35 - }, - "end": { - "line": 570, - "column": 55 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18816, - "end": 18817, + "start": 18275, + "end": 18276, "loc": { "start": { - "line": 570, - "column": 55 + "line": 532, + "column": 29 }, "end": { - "line": 570, - "column": 56 + "line": 532, + "column": 30 } } }, @@ -139059,42 +139084,17 @@ "postfix": false, "binop": null }, - "value": "theme", - "start": 18817, - "end": 18822, - "loc": { - "start": { - "line": 570, - "column": 56 - }, - "end": { - "line": 570, - "column": 61 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 18822, - "end": 18823, + "value": "innerPenStyle", + "start": 18276, + "end": 18289, "loc": { "start": { - "line": 570, - "column": 61 + "line": 532, + "column": 30 }, "end": { - "line": 570, - "column": 62 + "line": 532, + "column": 43 } } }, @@ -139111,16 +139111,16 @@ "binop": null, "updateContext": null }, - "start": 18823, - "end": 18824, + "start": 18289, + "end": 18290, "loc": { "start": { - "line": 570, - "column": 62 + "line": 532, + "column": 43 }, "end": { - "line": 570, - "column": 63 + "line": 532, + "column": 44 } } }, @@ -139136,17 +139136,17 @@ "postfix": false, "binop": null }, - "value": "setTheme", - "start": 18829, - "end": 18837, + "value": "setPenStyle", + "start": 18295, + "end": 18306, "loc": { "start": { - "line": 571, + "line": 533, "column": 4 }, "end": { - "line": 571, - "column": 12 + "line": 533, + "column": 15 } } }, @@ -139162,16 +139162,16 @@ "postfix": false, "binop": null }, - "start": 18837, - "end": 18838, + "start": 18306, + "end": 18307, "loc": { "start": { - "line": 571, - "column": 12 + "line": 533, + "column": 15 }, "end": { - "line": 571, - "column": 13 + "line": 533, + "column": 16 } } }, @@ -139190,16 +139190,16 @@ "updateContext": null }, "value": "this", - "start": 18838, - "end": 18842, + "start": 18307, + "end": 18311, "loc": { "start": { - "line": 571, - "column": 13 + "line": 533, + "column": 16 }, "end": { - "line": 571, - "column": 17 + "line": 533, + "column": 20 } } }, @@ -139216,16 +139216,16 @@ "binop": null, "updateContext": null }, - "start": 18842, - "end": 18843, + "start": 18311, + "end": 18312, "loc": { "start": { - "line": 571, - "column": 17 + "line": 533, + "column": 20 }, "end": { - "line": 571, - "column": 18 + "line": 533, + "column": 21 } } }, @@ -139244,16 +139244,16 @@ "updateContext": null }, "value": "this", - "start": 18844, - "end": 18848, + "start": 18313, + "end": 18317, "loc": { "start": { - "line": 571, - "column": 19 + "line": 533, + "column": 22 }, "end": { - "line": 571, - "column": 23 + "line": 533, + "column": 26 } } }, @@ -139270,16 +139270,16 @@ "binop": null, "updateContext": null }, - "start": 18848, - "end": 18849, + "start": 18317, + "end": 18318, "loc": { "start": { - "line": 571, - "column": 23 + "line": 533, + "column": 26 }, "end": { - "line": 571, - "column": 24 + "line": 533, + "column": 27 } } }, @@ -139296,16 +139296,16 @@ "binop": null }, "value": "model", - "start": 18849, - "end": 18854, + "start": 18318, + "end": 18323, "loc": { "start": { - "line": 571, - "column": 24 + "line": 533, + "column": 27 }, "end": { - "line": 571, - "column": 29 + "line": 533, + "column": 32 } } }, @@ -139321,16 +139321,16 @@ "postfix": false, "binop": null }, - "start": 18854, - "end": 18855, + "start": 18323, + "end": 18324, "loc": { "start": { - "line": 571, - "column": 29 + "line": 533, + "column": 32 }, "end": { - "line": 571, - "column": 30 + "line": 533, + "column": 33 } } }, @@ -139347,16 +139347,16 @@ "binop": null, "updateContext": null }, - "start": 18855, - "end": 18856, + "start": 18324, + "end": 18325, "loc": { "start": { - "line": 571, - "column": 30 + "line": 533, + "column": 33 }, "end": { - "line": 571, - "column": 31 + "line": 533, + "column": 34 } } }, @@ -139372,31 +139372,31 @@ "postfix": false, "binop": null }, - "start": 18859, - "end": 18860, + "start": 18328, + "end": 18329, "loc": { "start": { - "line": 572, + "line": 534, "column": 2 }, "end": { - "line": 572, + "line": 534, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * Get the theme\n * @return {Theme}\n ", - "start": 18864, - "end": 18913, + "value": "*\n * Get the pen style\n * @return {PenStyle}\n ", + "start": 18333, + "end": 18389, "loc": { "start": { - "line": 574, + "line": 536, "column": 2 }, "end": { - "line": 577, + "line": 539, "column": 5 } } @@ -139414,15 +139414,15 @@ "binop": null }, "value": "get", - "start": 18916, - "end": 18919, + "start": 18392, + "end": 18395, "loc": { "start": { - "line": 578, + "line": 540, "column": 2 }, "end": { - "line": 578, + "line": 540, "column": 5 } } @@ -139439,17 +139439,17 @@ "postfix": false, "binop": null }, - "value": "theme", - "start": 18920, - "end": 18925, + "value": "penStyle", + "start": 18396, + "end": 18404, "loc": { "start": { - "line": 578, + "line": 540, "column": 6 }, "end": { - "line": 578, - "column": 11 + "line": 540, + "column": 14 } } }, @@ -139465,16 +139465,16 @@ "postfix": false, "binop": null }, - "start": 18925, - "end": 18926, + "start": 18404, + "end": 18405, "loc": { "start": { - "line": 578, - "column": 11 + "line": 540, + "column": 14 }, "end": { - "line": 578, - "column": 12 + "line": 540, + "column": 15 } } }, @@ -139490,16 +139490,16 @@ "postfix": false, "binop": null }, - "start": 18926, - "end": 18927, + "start": 18405, + "end": 18406, "loc": { "start": { - "line": 578, - "column": 12 + "line": 540, + "column": 15 }, "end": { - "line": 578, - "column": 13 + "line": 540, + "column": 16 } } }, @@ -139515,16 +139515,16 @@ "postfix": false, "binop": null }, - "start": 18928, - "end": 18929, + "start": 18407, + "end": 18408, "loc": { "start": { - "line": 578, - "column": 14 + "line": 540, + "column": 17 }, "end": { - "line": 578, - "column": 15 + "line": 540, + "column": 18 } } }, @@ -139543,15 +139543,15 @@ "updateContext": null }, "value": "return", - "start": 18934, - "end": 18940, + "start": 18413, + "end": 18419, "loc": { "start": { - "line": 579, + "line": 541, "column": 4 }, "end": { - "line": 579, + "line": 541, "column": 10 } } @@ -139571,15 +139571,15 @@ "updateContext": null }, "value": "this", - "start": 18941, - "end": 18945, + "start": 18420, + "end": 18424, "loc": { "start": { - "line": 579, + "line": 541, "column": 11 }, "end": { - "line": 579, + "line": 541, "column": 15 } } @@ -139597,15 +139597,15 @@ "binop": null, "updateContext": null }, - "start": 18945, - "end": 18946, + "start": 18424, + "end": 18425, "loc": { "start": { - "line": 579, + "line": 541, "column": 15 }, "end": { - "line": 579, + "line": 541, "column": 16 } } @@ -139622,17 +139622,17 @@ "postfix": false, "binop": null }, - "value": "innerTheme", - "start": 18946, - "end": 18956, + "value": "innerPenStyle", + "start": 18425, + "end": 18438, "loc": { "start": { - "line": 579, + "line": 541, "column": 16 }, "end": { - "line": 579, - "column": 26 + "line": 541, + "column": 29 } } }, @@ -139649,16 +139649,16 @@ "binop": null, "updateContext": null }, - "start": 18956, - "end": 18957, + "start": 18438, + "end": 18439, "loc": { "start": { - "line": 579, - "column": 26 + "line": 541, + "column": 29 }, "end": { - "line": 579, - "column": 27 + "line": 541, + "column": 30 } } }, @@ -139674,31 +139674,31 @@ "postfix": false, "binop": null }, - "start": 18960, - "end": 18961, + "start": 18442, + "end": 18443, "loc": { "start": { - "line": 580, + "line": 542, "column": 2 }, "end": { - "line": 580, + "line": 542, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * Get behaviors\n * @return {Behaviors}\n ", - "start": 18965, - "end": 19018, + "value": "*\n * Set the pen style\n * @param {String} penStyleClasses\n ", + "start": 18447, + "end": 18516, "loc": { "start": { - "line": 582, + "line": 544, "column": 2 }, "end": { - "line": 585, + "line": 547, "column": 5 } } @@ -139715,16 +139715,16 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 19021, - "end": 19024, + "value": "set", + "start": 18519, + "end": 18522, "loc": { "start": { - "line": 586, + "line": 548, "column": 2 }, "end": { - "line": 586, + "line": 548, "column": 5 } } @@ -139741,17 +139741,17 @@ "postfix": false, "binop": null }, - "value": "behaviors", - "start": 19025, - "end": 19034, + "value": "penStyleClasses", + "start": 18523, + "end": 18538, "loc": { "start": { - "line": 586, + "line": 548, "column": 6 }, "end": { - "line": 586, - "column": 15 + "line": 548, + "column": 21 } } }, @@ -139767,24 +139767,24 @@ "postfix": false, "binop": null }, - "start": 19034, - "end": 19035, + "start": 18538, + "end": 18539, "loc": { "start": { - "line": 586, - "column": 15 + "line": 548, + "column": 21 }, "end": { - "line": 586, - "column": 16 + "line": 548, + "column": 22 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -139792,24 +139792,25 @@ "postfix": false, "binop": null }, - "start": 19035, - "end": 19036, + "value": "penStyleClasses", + "start": 18539, + "end": 18554, "loc": { "start": { - "line": 586, - "column": 16 + "line": 548, + "column": 22 }, "end": { - "line": 586, - "column": 17 + "line": 548, + "column": 37 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -139817,44 +139818,57 @@ "postfix": false, "binop": null }, - "start": 19037, - "end": 19038, + "start": 18554, + "end": 18555, "loc": { "start": { - "line": 586, - "column": 18 + "line": 548, + "column": 37 }, "end": { - "line": 586, - "column": 19 + "line": 548, + "column": 38 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 19043, - "end": 19049, + "start": 18556, + "end": 18557, "loc": { "start": { - "line": 587, + "line": 548, + "column": 39 + }, + "end": { + "line": 548, + "column": 40 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @private\n * @type {String}\n ", + "start": 18562, + "end": 18611, + "loc": { + "start": { + "line": 549, "column": 4 }, "end": { - "line": 587, - "column": 10 + "line": 552, + "column": 7 } } }, @@ -139873,16 +139887,16 @@ "updateContext": null }, "value": "this", - "start": 19050, - "end": 19054, + "start": 18616, + "end": 18620, "loc": { "start": { - "line": 587, - "column": 11 + "line": 553, + "column": 4 }, "end": { - "line": 587, - "column": 15 + "line": 553, + "column": 8 } } }, @@ -139899,16 +139913,16 @@ "binop": null, "updateContext": null }, - "start": 19054, - "end": 19055, + "start": 18620, + "end": 18621, "loc": { "start": { - "line": 587, - "column": 15 + "line": 553, + "column": 8 }, "end": { - "line": 587, - "column": 16 + "line": 553, + "column": 9 } } }, @@ -139924,51 +139938,52 @@ "postfix": false, "binop": null }, - "value": "innerBehaviors", - "start": 19055, - "end": 19069, + "value": "innerPenStyleClasses", + "start": 18621, + "end": 18641, "loc": { "start": { - "line": 587, - "column": 16 + "line": 553, + "column": 9 }, "end": { - "line": 587, - "column": 30 + "line": 553, + "column": 29 } } }, { "type": { - "label": ";", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 19069, - "end": 19070, + "value": "=", + "start": 18642, + "end": 18643, "loc": { "start": { - "line": 587, + "line": 553, "column": 30 }, "end": { - "line": 587, + "line": 553, "column": 31 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -139976,64 +139991,50 @@ "postfix": false, "binop": null }, - "start": 19073, - "end": 19074, - "loc": { - "start": { - "line": 588, - "column": 2 - }, - "end": { - "line": 588, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @private\n * @param {Behavior} behavior\n ", - "start": 19078, - "end": 19133, + "value": "penStyleClasses", + "start": 18644, + "end": 18659, "loc": { "start": { - "line": 590, - "column": 2 + "line": 553, + "column": 32 }, "end": { - "line": 593, - "column": 5 + "line": 553, + "column": 47 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "set", - "start": 19136, - "end": 19139, + "start": 18659, + "end": 18660, "loc": { "start": { - "line": 594, - "column": 2 + "line": 553, + "column": 47 }, "end": { - "line": 594, - "column": 5 + "line": 553, + "column": 48 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -140041,44 +140042,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "behavior", - "start": 19140, - "end": 19148, + "value": "this", + "start": 18665, + "end": 18669, "loc": { "start": { - "line": 594, - "column": 6 + "line": 554, + "column": 4 }, "end": { - "line": 594, - "column": 14 + "line": 554, + "column": 8 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 19148, - "end": 19149, + "start": 18669, + "end": 18670, "loc": { "start": { - "line": 594, - "column": 14 + "line": 554, + "column": 8 }, "end": { - "line": 594, - "column": 15 + "line": 554, + "column": 9 } } }, @@ -140094,74 +140097,78 @@ "postfix": false, "binop": null }, - "value": "behavior", - "start": 19149, - "end": 19157, + "value": "localPenStyle", + "start": 18670, + "end": 18683, "loc": { "start": { - "line": 594, - "column": 15 + "line": 554, + "column": 9 }, "end": { - "line": 594, - "column": 23 + "line": 554, + "column": 22 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 19157, - "end": 19158, + "value": "=", + "start": 18684, + "end": 18685, "loc": { "start": { - "line": 594, + "line": 554, "column": 23 }, "end": { - "line": 594, + "line": 554, "column": 24 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 19159, - "end": 19160, + "value": "this", + "start": 18686, + "end": 18690, "loc": { "start": { - "line": 594, + "line": 554, "column": 25 }, "end": { - "line": 594, - "column": 26 + "line": 554, + "column": 29 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -140172,42 +140179,16 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 19165, - "end": 19167, + "start": 18690, + "end": 18691, "loc": { "start": { - "line": 595, - "column": 4 - }, - "end": { - "line": 595, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 19168, - "end": 19169, - "loc": { - "start": { - "line": 595, - "column": 7 + "line": 554, + "column": 29 }, "end": { - "line": 595, - "column": 8 + "line": 554, + "column": 30 } } }, @@ -140223,49 +140204,50 @@ "postfix": false, "binop": null }, - "value": "behavior", - "start": 19169, - "end": 19177, + "value": "theme", + "start": 18691, + "end": 18696, "loc": { "start": { - "line": 595, - "column": 8 + "line": 554, + "column": 30 }, "end": { - "line": 595, - "column": 16 + "line": 554, + "column": 35 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 19177, - "end": 19178, + "start": 18696, + "end": 18697, "loc": { "start": { - "line": 595, - "column": 16 + "line": 554, + "column": 35 }, "end": { - "line": 595, - "column": 17 + "line": 554, + "column": 36 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "`", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -140274,23 +140256,22 @@ "postfix": false, "binop": null }, - "start": 19179, - "end": 19180, + "start": 18697, + "end": 18698, "loc": { "start": { - "line": 595, - "column": 18 + "line": 554, + "column": 36 }, "end": { - "line": 595, - "column": 19 + "line": 554, + "column": 37 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "template", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -140301,23 +140282,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 19187, - "end": 19189, + "value": ".", + "start": 18698, + "end": 18699, "loc": { "start": { - "line": 596, - "column": 6 + "line": 554, + "column": 37 }, "end": { - "line": 596, - "column": 8 + "line": 554, + "column": 38 } } }, { "type": { - "label": "(", + "label": "${", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -140327,16 +140308,16 @@ "postfix": false, "binop": null }, - "start": 19190, - "end": 19191, + "start": 18699, + "end": 18701, "loc": { "start": { - "line": 596, - "column": 9 + "line": 554, + "column": 38 }, "end": { - "line": 596, - "column": 10 + "line": 554, + "column": 40 } } }, @@ -140355,16 +140336,16 @@ "updateContext": null }, "value": "this", - "start": 19191, - "end": 19195, + "start": 18701, + "end": 18705, "loc": { "start": { - "line": 596, - "column": 10 + "line": 554, + "column": 40 }, "end": { - "line": 596, - "column": 14 + "line": 554, + "column": 44 } } }, @@ -140381,16 +140362,16 @@ "binop": null, "updateContext": null }, - "start": 19195, - "end": 19196, + "start": 18705, + "end": 18706, "loc": { "start": { - "line": 596, - "column": 14 + "line": 554, + "column": 44 }, "end": { - "line": 596, - "column": 15 + "line": 554, + "column": 45 } } }, @@ -140406,23 +140387,23 @@ "postfix": false, "binop": null }, - "value": "grabber", - "start": 19196, - "end": 19203, + "value": "innerPenStyleClasses", + "start": 18706, + "end": 18726, "loc": { "start": { - "line": 596, - "column": 15 + "line": 554, + "column": 45 }, "end": { - "line": 596, - "column": 22 + "line": 554, + "column": 65 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -140432,64 +140413,49 @@ "postfix": false, "binop": null }, - "start": 19203, - "end": 19204, + "start": 18726, + "end": 18727, "loc": { "start": { - "line": 596, - "column": 22 + "line": 554, + "column": 65 }, "end": { - "line": 596, - "column": 23 + "line": 554, + "column": 66 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "template", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 19205, - "end": 19206, - "loc": { - "start": { - "line": 596, - "column": 24 - }, - "end": { - "line": 596, - "column": 25 - } - } - }, - { - "type": "CommentLine", - "value": " Remove event handlers to avoid multiplication (detach grabber)", - "start": 19207, - "end": 19272, + "value": "", + "start": 18727, + "end": 18727, "loc": { "start": { - "line": 596, - "column": 26 + "line": 554, + "column": 66 }, "end": { - "line": 596, - "column": 91 + "line": 554, + "column": 66 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "`", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -140497,26 +140463,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 19281, - "end": 19285, + "start": 18727, + "end": 18728, "loc": { "start": { - "line": 597, - "column": 8 + "line": 554, + "column": 66 }, "end": { - "line": 597, - "column": 12 + "line": 554, + "column": 67 } } }, { "type": { - "label": ".", + "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -140527,49 +140491,23 @@ "binop": null, "updateContext": null }, - "start": 19285, - "end": 19286, + "start": 18728, + "end": 18729, "loc": { "start": { - "line": 597, - "column": 12 - }, - "end": { - "line": 597, - "column": 13 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "grabber", - "start": 19286, - "end": 19293, - "loc": { - "start": { - "line": 597, - "column": 13 + "line": 554, + "column": 67 }, "end": { - "line": 597, - "column": 20 + "line": 554, + "column": 68 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -140579,16 +140517,16 @@ "binop": null, "updateContext": null }, - "start": 19293, - "end": 19294, + "start": 18729, + "end": 18730, "loc": { "start": { - "line": 597, - "column": 20 + "line": 554, + "column": 68 }, "end": { - "line": 597, - "column": 21 + "line": 554, + "column": 69 } } }, @@ -140604,17 +140542,17 @@ "postfix": false, "binop": null }, - "value": "detach", - "start": 19294, - "end": 19300, + "value": "setPenStyleClasses", + "start": 18735, + "end": 18753, "loc": { "start": { - "line": 597, - "column": 21 + "line": 555, + "column": 4 }, "end": { - "line": 597, - "column": 27 + "line": 555, + "column": 22 } } }, @@ -140630,16 +140568,16 @@ "postfix": false, "binop": null }, - "start": 19300, - "end": 19301, + "start": 18753, + "end": 18754, "loc": { "start": { - "line": 597, - "column": 27 + "line": 555, + "column": 22 }, "end": { - "line": 597, - "column": 28 + "line": 555, + "column": 23 } } }, @@ -140658,68 +140596,16 @@ "updateContext": null }, "value": "this", - "start": 19301, - "end": 19305, - "loc": { - "start": { - "line": 597, - "column": 28 - }, - "end": { - "line": 597, - "column": 32 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 19305, - "end": 19306, - "loc": { - "start": { - "line": 597, - "column": 32 - }, - "end": { - "line": 597, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "domElement", - "start": 19306, - "end": 19316, + "start": 18754, + "end": 18758, "loc": { "start": { - "line": 597, - "column": 33 + "line": 555, + "column": 23 }, "end": { - "line": 597, - "column": 43 + "line": 555, + "column": 27 } } }, @@ -140736,16 +140622,16 @@ "binop": null, "updateContext": null }, - "start": 19316, - "end": 19317, + "start": 18758, + "end": 18759, "loc": { "start": { - "line": 597, - "column": 43 + "line": 555, + "column": 27 }, "end": { - "line": 597, - "column": 44 + "line": 555, + "column": 28 } } }, @@ -140764,16 +140650,16 @@ "updateContext": null }, "value": "this", - "start": 19318, - "end": 19322, + "start": 18760, + "end": 18764, "loc": { "start": { - "line": 597, - "column": 45 + "line": 555, + "column": 29 }, "end": { - "line": 597, - "column": 49 + "line": 555, + "column": 33 } } }, @@ -140790,16 +140676,16 @@ "binop": null, "updateContext": null }, - "start": 19322, - "end": 19323, + "start": 18764, + "end": 18765, "loc": { "start": { - "line": 597, - "column": 49 + "line": 555, + "column": 33 }, "end": { - "line": 597, - "column": 50 + "line": 555, + "column": 34 } } }, @@ -140815,17 +140701,17 @@ "postfix": false, "binop": null }, - "value": "grabberContext", - "start": 19323, - "end": 19337, + "value": "model", + "start": 18765, + "end": 18770, "loc": { "start": { - "line": 597, - "column": 50 + "line": 555, + "column": 34 }, "end": { - "line": 597, - "column": 64 + "line": 555, + "column": 39 } } }, @@ -140841,16 +140727,16 @@ "postfix": false, "binop": null }, - "start": 19337, - "end": 19338, + "start": 18770, + "end": 18771, "loc": { "start": { - "line": 597, - "column": 64 + "line": 555, + "column": 39 }, "end": { - "line": 597, - "column": 65 + "line": 555, + "column": 40 } } }, @@ -140867,16 +140753,16 @@ "binop": null, "updateContext": null }, - "start": 19338, - "end": 19339, + "start": 18771, + "end": 18772, "loc": { "start": { - "line": 597, - "column": 65 + "line": 555, + "column": 40 }, "end": { - "line": 597, - "column": 66 + "line": 555, + "column": 41 } } }, @@ -140892,39 +140778,38 @@ "postfix": false, "binop": null }, - "start": 19346, - "end": 19347, + "start": 18775, + "end": 18776, "loc": { "start": { - "line": 598, - "column": 6 + "line": 556, + "column": 2 }, "end": { - "line": 598, - "column": 7 + "line": 556, + "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * @private\n * @type {Behavior}\n ", - "start": 19354, - "end": 19411, + "value": "*\n * Get the pen style\n * @return {String}\n ", + "start": 18780, + "end": 18834, "loc": { "start": { - "line": 599, - "column": 6 + "line": 558, + "column": 2 }, "end": { - "line": 602, - "column": 9 + "line": 561, + "column": 5 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -140932,53 +140817,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 19418, - "end": 19422, + "value": "get", + "start": 18837, + "end": 18840, "loc": { "start": { - "line": 603, - "column": 6 + "line": 562, + "column": 2 }, "end": { - "line": 603, - "column": 10 + "line": 562, + "column": 5 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 19422, - "end": 19423, + "value": "penStyleClasses", + "start": 18841, + "end": 18856, "loc": { "start": { - "line": 603, - "column": 10 + "line": 562, + "column": 6 }, "end": { - "line": 603, - "column": 11 + "line": 562, + "column": 21 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -140987,51 +140871,48 @@ "postfix": false, "binop": null }, - "value": "innerBehavior", - "start": 19423, - "end": 19436, + "start": 18856, + "end": 18857, "loc": { "start": { - "line": 603, - "column": 11 + "line": 562, + "column": 21 }, "end": { - "line": 603, - "column": 24 + "line": 562, + "column": 22 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 19437, - "end": 19438, + "start": 18857, + "end": 18858, "loc": { "start": { - "line": 603, - "column": 25 + "line": 562, + "column": 22 }, "end": { - "line": 603, - "column": 26 + "line": 562, + "column": 23 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -141040,23 +140921,23 @@ "postfix": false, "binop": null }, - "value": "behavior", - "start": 19439, - "end": 19447, + "start": 18859, + "end": 18860, "loc": { "start": { - "line": 603, - "column": 27 + "line": 562, + "column": 24 }, "end": { - "line": 603, - "column": 35 + "line": 562, + "column": 25 } } }, { "type": { - "label": ";", + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -141067,16 +140948,17 @@ "binop": null, "updateContext": null }, - "start": 19447, - "end": 19448, + "value": "return", + "start": 18865, + "end": 18871, "loc": { "start": { - "line": 603, - "column": 35 + "line": 563, + "column": 4 }, "end": { - "line": 603, - "column": 36 + "line": 563, + "column": 10 } } }, @@ -141095,16 +140977,16 @@ "updateContext": null }, "value": "this", - "start": 19455, - "end": 19459, + "start": 18872, + "end": 18876, "loc": { "start": { - "line": 604, - "column": 6 + "line": 563, + "column": 11 }, "end": { - "line": 604, - "column": 10 + "line": 563, + "column": 15 } } }, @@ -141121,16 +141003,16 @@ "binop": null, "updateContext": null }, - "start": 19459, - "end": 19460, + "start": 18876, + "end": 18877, "loc": { "start": { - "line": 604, - "column": 10 + "line": 563, + "column": 15 }, "end": { - "line": 604, - "column": 11 + "line": 563, + "column": 16 } } }, @@ -141146,98 +141028,110 @@ "postfix": false, "binop": null }, - "value": "renderer", - "start": 19460, - "end": 19468, + "value": "innerPenStyleClasses", + "start": 18877, + "end": 18897, "loc": { "start": { - "line": 604, - "column": 11 + "line": 563, + "column": 16 }, "end": { - "line": 604, - "column": 19 + "line": 563, + "column": 36 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 19469, - "end": 19470, + "start": 18897, + "end": 18898, "loc": { "start": { - "line": 604, - "column": 20 + "line": 563, + "column": 36 }, "end": { - "line": 604, - "column": 21 + "line": 563, + "column": 37 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 19471, - "end": 19475, + "start": 18901, + "end": 18902, "loc": { "start": { - "line": 604, - "column": 22 + "line": 564, + "column": 2 }, "end": { - "line": 604, - "column": 26 + "line": 564, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Set the theme\n * @param {Theme} theme\n ", + "start": 18906, + "end": 18960, + "loc": { + "start": { + "line": 566, + "column": 2 + }, + "end": { + "line": 569, + "column": 5 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 19475, - "end": 19476, + "value": "set", + "start": 18963, + "end": 18966, "loc": { "start": { - "line": 604, - "column": 26 + "line": 570, + "column": 2 }, "end": { - "line": 604, - "column": 27 + "line": 570, + "column": 5 } } }, @@ -141253,43 +141147,42 @@ "postfix": false, "binop": null }, - "value": "innerBehavior", - "start": 19476, - "end": 19489, + "value": "theme", + "start": 18967, + "end": 18972, "loc": { "start": { - "line": 604, - "column": 27 + "line": 570, + "column": 6 }, "end": { - "line": 604, - "column": 40 + "line": 570, + "column": 11 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 19489, - "end": 19490, + "start": 18972, + "end": 18973, "loc": { "start": { - "line": 604, - "column": 40 + "line": 570, + "column": 11 }, "end": { - "line": 604, - "column": 41 + "line": 570, + "column": 12 } } }, @@ -141305,43 +141198,83 @@ "postfix": false, "binop": null }, - "value": "renderer", - "start": 19490, - "end": 19498, + "value": "theme", + "start": 18973, + "end": 18978, "loc": { "start": { - "line": 604, - "column": 41 + "line": 570, + "column": 12 }, "end": { - "line": 604, - "column": 49 + "line": 570, + "column": 17 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 19498, - "end": 19499, + "start": 18978, + "end": 18979, "loc": { "start": { - "line": 604, - "column": 49 + "line": 570, + "column": 17 }, "end": { - "line": 604, - "column": 50 + "line": 570, + "column": 18 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18980, + "end": 18981, + "loc": { + "start": { + "line": 570, + "column": 19 + }, + "end": { + "line": 570, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @private\n * @type {Theme}\n ", + "start": 18986, + "end": 19034, + "loc": { + "start": { + "line": 571, + "column": 4 + }, + "end": { + "line": 574, + "column": 7 } } }, @@ -141360,16 +141293,16 @@ "updateContext": null }, "value": "this", - "start": 19506, - "end": 19510, + "start": 19039, + "end": 19043, "loc": { "start": { - "line": 605, - "column": 6 + "line": 575, + "column": 4 }, "end": { - "line": 605, - "column": 10 + "line": 575, + "column": 8 } } }, @@ -141386,16 +141319,16 @@ "binop": null, "updateContext": null }, - "start": 19510, - "end": 19511, + "start": 19043, + "end": 19044, "loc": { "start": { - "line": 605, - "column": 10 + "line": 575, + "column": 8 }, "end": { - "line": 605, - "column": 11 + "line": 575, + "column": 9 } } }, @@ -141411,17 +141344,17 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 19511, - "end": 19521, + "value": "innerTheme", + "start": 19044, + "end": 19054, "loc": { "start": { - "line": 605, - "column": 11 + "line": 575, + "column": 9 }, "end": { - "line": 605, - "column": 21 + "line": 575, + "column": 19 } } }, @@ -141439,23 +141372,22 @@ "updateContext": null }, "value": "=", - "start": 19522, - "end": 19523, + "start": 19055, + "end": 19056, "loc": { "start": { - "line": 605, - "column": 22 + "line": 575, + "column": 20 }, "end": { - "line": 605, - "column": 23 + "line": 575, + "column": 21 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -141463,20 +141395,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 19524, - "end": 19528, + "value": "DefaultTheme", + "start": 19057, + "end": 19069, "loc": { "start": { - "line": 605, - "column": 24 + "line": 575, + "column": 22 }, "end": { - "line": 605, - "column": 28 + "line": 575, + "column": 34 } } }, @@ -141493,16 +141424,16 @@ "binop": null, "updateContext": null }, - "start": 19528, - "end": 19529, + "start": 19069, + "end": 19070, "loc": { "start": { - "line": 605, - "column": 28 + "line": 575, + "column": 34 }, "end": { - "line": 605, - "column": 29 + "line": 575, + "column": 35 } } }, @@ -141518,43 +141449,42 @@ "postfix": false, "binop": null }, - "value": "innerBehavior", - "start": 19529, - "end": 19542, + "value": "overrideDefaultTheme", + "start": 19070, + "end": 19090, "loc": { "start": { - "line": 605, - "column": 29 + "line": 575, + "column": 35 }, "end": { - "line": 605, - "column": 42 + "line": 575, + "column": 55 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 19542, - "end": 19543, + "start": 19090, + "end": 19091, "loc": { "start": { - "line": 605, - "column": 42 + "line": 575, + "column": 55 }, "end": { - "line": 605, - "column": 43 + "line": 575, + "column": 56 } } }, @@ -141570,66 +141500,74 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 19543, - "end": 19553, + "value": "theme", + "start": 19091, + "end": 19096, "loc": { "start": { - "line": 605, - "column": 43 + "line": 575, + "column": 56 }, "end": { - "line": 605, - "column": 53 + "line": 575, + "column": 61 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 19553, - "end": 19554, + "start": 19096, + "end": 19097, "loc": { "start": { - "line": 605, - "column": 53 + "line": 575, + "column": 61 }, "end": { - "line": 605, - "column": 54 + "line": 575, + "column": 62 } } }, { - "type": "CommentBlock", - "value": "*\n * Current grabber context\n * @type {GrabberContext}\n ", - "start": 19561, - "end": 19639, + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19097, + "end": 19098, "loc": { "start": { - "line": 606, - "column": 6 + "line": 575, + "column": 62 }, "end": { - "line": 609, - "column": 9 + "line": 575, + "column": 63 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -141637,52 +141575,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 19646, - "end": 19650, + "value": "setTheme", + "start": 19103, + "end": 19111, "loc": { "start": { - "line": 610, - "column": 6 + "line": 576, + "column": 4 }, "end": { - "line": 610, - "column": 10 + "line": 576, + "column": 12 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 19650, - "end": 19651, + "start": 19111, + "end": 19112, "loc": { "start": { - "line": 610, - "column": 10 + "line": 576, + "column": 12 }, "end": { - "line": 610, - "column": 11 + "line": 576, + "column": 13 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -141690,46 +141627,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "grabberContext", - "start": 19651, - "end": 19665, + "value": "this", + "start": 19112, + "end": 19116, "loc": { "start": { - "line": 610, - "column": 11 + "line": 576, + "column": 13 }, "end": { - "line": 610, - "column": 25 + "line": 576, + "column": 17 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 19666, - "end": 19667, + "start": 19116, + "end": 19117, "loc": { "start": { - "line": 610, - "column": 26 + "line": 576, + "column": 17 }, "end": { - "line": 610, - "column": 27 + "line": 576, + "column": 18 } } }, @@ -141748,16 +141685,16 @@ "updateContext": null }, "value": "this", - "start": 19668, - "end": 19672, + "start": 19118, + "end": 19122, "loc": { "start": { - "line": 610, - "column": 28 + "line": 576, + "column": 19 }, "end": { - "line": 610, - "column": 32 + "line": 576, + "column": 23 } } }, @@ -141774,16 +141711,16 @@ "binop": null, "updateContext": null }, - "start": 19672, - "end": 19673, + "start": 19122, + "end": 19123, "loc": { "start": { - "line": 610, - "column": 32 + "line": 576, + "column": 23 }, "end": { - "line": 610, - "column": 33 + "line": 576, + "column": 24 } } }, @@ -141799,23 +141736,23 @@ "postfix": false, "binop": null }, - "value": "grabber", - "start": 19673, - "end": 19680, + "value": "model", + "start": 19123, + "end": 19128, "loc": { "start": { - "line": 610, - "column": 33 + "line": 576, + "column": 24 }, "end": { - "line": 610, - "column": 40 + "line": 576, + "column": 29 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -141823,19 +141760,85 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "start": 19128, + "end": 19129, + "loc": { + "start": { + "line": 576, + "column": 29 + }, + "end": { + "line": 576, + "column": 30 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "start": 19680, - "end": 19681, + "start": 19129, + "end": 19130, "loc": { "start": { - "line": 610, - "column": 40 + "line": 576, + "column": 30 }, "end": { - "line": 610, - "column": 41 + "line": 576, + "column": 31 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19133, + "end": 19134, + "loc": { + "start": { + "line": 577, + "column": 2 + }, + "end": { + "line": 577, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get the theme\n * @return {Theme}\n ", + "start": 19138, + "end": 19187, + "loc": { + "start": { + "line": 579, + "column": 2 + }, + "end": { + "line": 582, + "column": 5 } } }, @@ -141851,24 +141854,24 @@ "postfix": false, "binop": null }, - "value": "attach", - "start": 19681, - "end": 19687, + "value": "get", + "start": 19190, + "end": 19193, "loc": { "start": { - "line": 610, - "column": 41 + "line": 583, + "column": 2 }, "end": { - "line": 610, - "column": 47 + "line": 583, + "column": 5 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -141877,50 +141880,48 @@ "postfix": false, "binop": null }, - "start": 19687, - "end": 19688, + "value": "theme", + "start": 19194, + "end": 19199, "loc": { "start": { - "line": 610, - "column": 47 + "line": 583, + "column": 6 }, "end": { - "line": 610, - "column": 48 + "line": 583, + "column": 11 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 19688, - "end": 19692, + "start": 19199, + "end": 19200, "loc": { "start": { - "line": 610, - "column": 48 + "line": 583, + "column": 11 }, "end": { - "line": 610, - "column": 52 + "line": 583, + "column": 12 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -141928,26 +141929,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 19692, - "end": 19693, + "start": 19200, + "end": 19201, "loc": { "start": { - "line": 610, - "column": 52 + "line": 583, + "column": 12 }, "end": { - "line": 610, - "column": 53 + "line": 583, + "column": 13 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -141956,23 +141956,23 @@ "postfix": false, "binop": null }, - "value": "domElement", - "start": 19693, - "end": 19703, + "start": 19202, + "end": 19203, "loc": { "start": { - "line": 610, - "column": 53 + "line": 583, + "column": 14 }, "end": { - "line": 610, - "column": 63 + "line": 583, + "column": 15 } } }, { "type": { - "label": ",", + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -141983,16 +141983,17 @@ "binop": null, "updateContext": null }, - "start": 19703, - "end": 19704, + "value": "return", + "start": 19208, + "end": 19214, "loc": { "start": { - "line": 610, - "column": 63 + "line": 584, + "column": 4 }, "end": { - "line": 610, - "column": 64 + "line": 584, + "column": 10 } } }, @@ -142011,22 +142012,22 @@ "updateContext": null }, "value": "this", - "start": 19705, - "end": 19709, + "start": 19215, + "end": 19219, "loc": { "start": { - "line": 610, - "column": 65 + "line": 584, + "column": 11 }, "end": { - "line": 610, - "column": 69 + "line": 584, + "column": 15 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -142034,69 +142035,71 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 19709, - "end": 19710, + "start": 19219, + "end": 19220, "loc": { "start": { - "line": 610, - "column": 69 + "line": 584, + "column": 15 }, "end": { - "line": 610, - "column": 70 + "line": 584, + "column": 16 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 19710, - "end": 19711, + "value": "innerTheme", + "start": 19220, + "end": 19230, "loc": { "start": { - "line": 610, - "column": 70 + "line": 584, + "column": 16 }, "end": { - "line": 610, - "column": 71 + "line": 584, + "column": 26 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 19716, - "end": 19717, + "start": 19230, + "end": 19231, "loc": { "start": { - "line": 611, - "column": 4 + "line": 584, + "column": 26 }, "end": { - "line": 611, - "column": 5 + "line": 584, + "column": 27 } } }, @@ -142112,31 +142115,31 @@ "postfix": false, "binop": null }, - "start": 19720, - "end": 19721, + "start": 19234, + "end": 19235, "loc": { "start": { - "line": 612, + "line": 585, "column": 2 }, "end": { - "line": 612, + "line": 585, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * Get current behavior\n * @return {Behavior}\n ", - "start": 19725, - "end": 19784, + "value": "*\n * Get behaviors\n * @return {Behaviors}\n ", + "start": 19239, + "end": 19292, "loc": { "start": { - "line": 614, + "line": 587, "column": 2 }, "end": { - "line": 617, + "line": 590, "column": 5 } } @@ -142154,15 +142157,15 @@ "binop": null }, "value": "get", - "start": 19787, - "end": 19790, + "start": 19295, + "end": 19298, "loc": { "start": { - "line": 618, + "line": 591, "column": 2 }, "end": { - "line": 618, + "line": 591, "column": 5 } } @@ -142179,17 +142182,17 @@ "postfix": false, "binop": null }, - "value": "behavior", - "start": 19791, - "end": 19799, + "value": "behaviors", + "start": 19299, + "end": 19308, "loc": { "start": { - "line": 618, + "line": 591, "column": 6 }, "end": { - "line": 618, - "column": 14 + "line": 591, + "column": 15 } } }, @@ -142205,16 +142208,16 @@ "postfix": false, "binop": null }, - "start": 19799, - "end": 19800, + "start": 19308, + "end": 19309, "loc": { "start": { - "line": 618, - "column": 14 + "line": 591, + "column": 15 }, "end": { - "line": 618, - "column": 15 + "line": 591, + "column": 16 } } }, @@ -142230,16 +142233,16 @@ "postfix": false, "binop": null }, - "start": 19800, - "end": 19801, + "start": 19309, + "end": 19310, "loc": { "start": { - "line": 618, - "column": 15 + "line": 591, + "column": 16 }, "end": { - "line": 618, - "column": 16 + "line": 591, + "column": 17 } } }, @@ -142255,16 +142258,16 @@ "postfix": false, "binop": null }, - "start": 19802, - "end": 19803, + "start": 19311, + "end": 19312, "loc": { "start": { - "line": 618, - "column": 17 + "line": 591, + "column": 18 }, "end": { - "line": 618, - "column": 18 + "line": 591, + "column": 19 } } }, @@ -142283,15 +142286,15 @@ "updateContext": null }, "value": "return", - "start": 19808, - "end": 19814, + "start": 19317, + "end": 19323, "loc": { "start": { - "line": 619, + "line": 592, "column": 4 }, "end": { - "line": 619, + "line": 592, "column": 10 } } @@ -142311,15 +142314,15 @@ "updateContext": null }, "value": "this", - "start": 19815, - "end": 19819, + "start": 19324, + "end": 19328, "loc": { "start": { - "line": 619, + "line": 592, "column": 11 }, "end": { - "line": 619, + "line": 592, "column": 15 } } @@ -142337,15 +142340,15 @@ "binop": null, "updateContext": null }, - "start": 19819, - "end": 19820, + "start": 19328, + "end": 19329, "loc": { "start": { - "line": 619, + "line": 592, "column": 15 }, "end": { - "line": 619, + "line": 592, "column": 16 } } @@ -142362,17 +142365,17 @@ "postfix": false, "binop": null }, - "value": "innerBehavior", - "start": 19820, - "end": 19833, + "value": "innerBehaviors", + "start": 19329, + "end": 19343, "loc": { "start": { - "line": 619, + "line": 592, "column": 16 }, "end": { - "line": 619, - "column": 29 + "line": 592, + "column": 30 } } }, @@ -142389,16 +142392,16 @@ "binop": null, "updateContext": null }, - "start": 19833, - "end": 19834, + "start": 19343, + "end": 19344, "loc": { "start": { - "line": 619, - "column": 29 + "line": 592, + "column": 30 }, "end": { - "line": 619, - "column": 30 + "line": 592, + "column": 31 } } }, @@ -142414,31 +142417,31 @@ "postfix": false, "binop": null }, - "start": 19837, - "end": 19838, + "start": 19347, + "end": 19348, "loc": { "start": { - "line": 620, + "line": 593, "column": 2 }, "end": { - "line": 620, + "line": 593, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * Set the current recognizer\n * @private\n * @param {Recognizer} recognizer\n ", - "start": 19842, - "end": 19933, + "value": "*\n * @private\n * @param {Behavior} behavior\n ", + "start": 19352, + "end": 19407, "loc": { "start": { - "line": 622, + "line": 595, "column": 2 }, "end": { - "line": 626, + "line": 598, "column": 5 } } @@ -142456,15 +142459,15 @@ "binop": null }, "value": "set", - "start": 19936, - "end": 19939, + "start": 19410, + "end": 19413, "loc": { "start": { - "line": 627, + "line": 599, "column": 2 }, "end": { - "line": 627, + "line": 599, "column": 5 } } @@ -142481,17 +142484,17 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 19940, - "end": 19950, + "value": "behavior", + "start": 19414, + "end": 19422, "loc": { "start": { - "line": 627, + "line": 599, "column": 6 }, "end": { - "line": 627, - "column": 16 + "line": 599, + "column": 14 } } }, @@ -142507,16 +142510,16 @@ "postfix": false, "binop": null }, - "start": 19950, - "end": 19951, + "start": 19422, + "end": 19423, "loc": { "start": { - "line": 627, - "column": 16 + "line": 599, + "column": 14 }, "end": { - "line": 627, - "column": 17 + "line": 599, + "column": 15 } } }, @@ -142532,17 +142535,17 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 19951, - "end": 19961, + "value": "behavior", + "start": 19423, + "end": 19431, "loc": { "start": { - "line": 627, - "column": 17 + "line": 599, + "column": 15 }, "end": { - "line": 627, - "column": 27 + "line": 599, + "column": 23 } } }, @@ -142558,16 +142561,16 @@ "postfix": false, "binop": null }, - "start": 19961, - "end": 19962, + "start": 19431, + "end": 19432, "loc": { "start": { - "line": 627, - "column": 27 + "line": 599, + "column": 23 }, "end": { - "line": 627, - "column": 28 + "line": 599, + "column": 24 } } }, @@ -142583,25 +142586,25 @@ "postfix": false, "binop": null }, - "start": 19963, - "end": 19964, + "start": 19433, + "end": 19434, "loc": { "start": { - "line": 627, - "column": 29 + "line": 599, + "column": 25 }, "end": { - "line": 627, - "column": 30 + "line": 599, + "column": 26 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -142610,43 +142613,42 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 19969, - "end": 19973, + "value": "if", + "start": 19439, + "end": 19441, "loc": { "start": { - "line": 628, + "line": 600, "column": 4 }, "end": { - "line": 628, - "column": 8 + "line": 600, + "column": 6 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 19973, - "end": 19974, + "start": 19442, + "end": 19443, "loc": { "start": { - "line": 628, - "column": 8 + "line": 600, + "column": 7 }, "end": { - "line": 628, - "column": 9 + "line": 600, + "column": 8 } } }, @@ -142662,51 +142664,49 @@ "postfix": false, "binop": null }, - "value": "undoRedoContext", - "start": 19974, - "end": 19989, + "value": "behavior", + "start": 19443, + "end": 19451, "loc": { "start": { - "line": 628, - "column": 9 + "line": 600, + "column": 8 }, "end": { - "line": 628, - "column": 24 + "line": 600, + "column": 16 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 19990, - "end": 19991, + "start": 19451, + "end": 19452, "loc": { "start": { - "line": 628, - "column": 25 + "line": 600, + "column": 16 }, "end": { - "line": 628, - "column": 26 + "line": 600, + "column": 17 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -142715,23 +142715,23 @@ "postfix": false, "binop": null }, - "value": "UndoRedoContext", - "start": 19992, - "end": 20007, + "start": 19453, + "end": 19454, "loc": { "start": { - "line": 628, - "column": 27 + "line": 600, + "column": 18 }, "end": { - "line": 628, - "column": 42 + "line": 600, + "column": 19 } } }, { "type": { - "label": ".", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -142742,42 +142742,17 @@ "binop": null, "updateContext": null }, - "start": 20007, - "end": 20008, - "loc": { - "start": { - "line": 628, - "column": 42 - }, - "end": { - "line": 628, - "column": 43 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "createUndoRedoContext", - "start": 20008, - "end": 20029, + "value": "if", + "start": 19461, + "end": 19463, "loc": { "start": { - "line": 628, - "column": 43 + "line": 601, + "column": 6 }, "end": { - "line": 628, - "column": 64 + "line": 601, + "column": 8 } } }, @@ -142793,16 +142768,16 @@ "postfix": false, "binop": null }, - "start": 20029, - "end": 20030, + "start": 19464, + "end": 19465, "loc": { "start": { - "line": 628, - "column": 64 + "line": 601, + "column": 9 }, "end": { - "line": 628, - "column": 65 + "line": 601, + "column": 10 } } }, @@ -142821,16 +142796,16 @@ "updateContext": null }, "value": "this", - "start": 20030, - "end": 20034, + "start": 19465, + "end": 19469, "loc": { "start": { - "line": 628, - "column": 65 + "line": 601, + "column": 10 }, "end": { - "line": 628, - "column": 69 + "line": 601, + "column": 14 } } }, @@ -142847,16 +142822,16 @@ "binop": null, "updateContext": null }, - "start": 20034, - "end": 20035, + "start": 19469, + "end": 19470, "loc": { "start": { - "line": 628, - "column": 69 + "line": 601, + "column": 14 }, "end": { - "line": 628, - "column": 70 + "line": 601, + "column": 15 } } }, @@ -142872,17 +142847,17 @@ "postfix": false, "binop": null }, - "value": "configuration", - "start": 20035, - "end": 20048, + "value": "grabber", + "start": 19470, + "end": 19477, "loc": { "start": { - "line": 628, - "column": 70 + "line": 601, + "column": 15 }, "end": { - "line": 628, - "column": 83 + "line": 601, + "column": 22 } } }, @@ -142898,42 +142873,57 @@ "postfix": false, "binop": null }, - "start": 20048, - "end": 20049, + "start": 19477, + "end": 19478, "loc": { "start": { - "line": 628, - "column": 83 + "line": 601, + "column": 22 }, "end": { - "line": 628, - "column": 84 + "line": 601, + "column": 23 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 20049, - "end": 20050, + "start": 19479, + "end": 19480, "loc": { "start": { - "line": 628, - "column": 84 + "line": 601, + "column": 24 }, "end": { - "line": 628, - "column": 85 + "line": 601, + "column": 25 + } + } + }, + { + "type": "CommentLine", + "value": " Remove event handlers to avoid multiplication (detach grabber)", + "start": 19481, + "end": 19546, + "loc": { + "start": { + "line": 601, + "column": 26 + }, + "end": { + "line": 601, + "column": 91 } } }, @@ -142952,16 +142942,16 @@ "updateContext": null }, "value": "this", - "start": 20055, - "end": 20059, + "start": 19555, + "end": 19559, "loc": { "start": { - "line": 629, - "column": 4 + "line": 602, + "column": 8 }, "end": { - "line": 629, - "column": 8 + "line": 602, + "column": 12 } } }, @@ -142978,16 +142968,16 @@ "binop": null, "updateContext": null }, - "start": 20059, - "end": 20060, + "start": 19559, + "end": 19560, "loc": { "start": { - "line": 629, - "column": 8 + "line": 602, + "column": 12 }, "end": { - "line": 629, - "column": 9 + "line": 602, + "column": 13 } } }, @@ -143003,44 +142993,43 @@ "postfix": false, "binop": null }, - "value": "undoRedoManager", - "start": 20060, - "end": 20075, + "value": "grabber", + "start": 19560, + "end": 19567, "loc": { "start": { - "line": 629, - "column": 9 + "line": 602, + "column": 13 }, "end": { - "line": 629, - "column": 24 + "line": 602, + "column": 20 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 20076, - "end": 20077, + "start": 19567, + "end": 19568, "loc": { "start": { - "line": 629, - "column": 25 + "line": 602, + "column": 20 }, "end": { - "line": 629, - "column": 26 + "line": 602, + "column": 21 } } }, @@ -143056,25 +143045,51 @@ "postfix": false, "binop": null }, - "value": "UndoRedoManager", - "start": 20078, - "end": 20093, + "value": "detach", + "start": 19568, + "end": 19574, "loc": { "start": { - "line": 629, - "column": 27 + "line": 602, + "column": 21 }, "end": { - "line": 629, - "column": 42 + "line": 602, + "column": 27 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19574, + "end": 19575, + "loc": { + "start": { + "line": 602, + "column": 27 + }, + "end": { + "line": 602, + "column": 28 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -143083,23 +143098,23 @@ "binop": null, "updateContext": null }, - "start": 20093, - "end": 20094, + "value": "this", + "start": 19575, + "end": 19579, "loc": { "start": { - "line": 629, - "column": 42 + "line": 602, + "column": 28 }, "end": { - "line": 629, - "column": 43 + "line": 602, + "column": 32 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -143110,17 +143125,16 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 20100, - "end": 20105, + "start": 19579, + "end": 19580, "loc": { "start": { - "line": 631, - "column": 4 + "line": 602, + "column": 32 }, "end": { - "line": 631, - "column": 9 + "line": 602, + "column": 33 } } }, @@ -143136,69 +143150,97 @@ "postfix": false, "binop": null }, - "value": "initialize", - "start": 20106, - "end": 20116, + "value": "domElement", + "start": 19580, + "end": 19590, "loc": { "start": { - "line": 631, - "column": 10 + "line": 602, + "column": 33 }, "end": { - "line": 631, - "column": 20 + "line": 602, + "column": 43 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 20117, - "end": 20118, + "start": 19590, + "end": 19591, "loc": { "start": { - "line": 631, - "column": 21 + "line": 602, + "column": 43 }, "end": { - "line": 631, - "column": 22 + "line": 602, + "column": 44 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 20119, - "end": 20120, + "value": "this", + "start": 19592, + "end": 19596, "loc": { "start": { - "line": 631, - "column": 23 + "line": 602, + "column": 45 }, "end": { - "line": 631, - "column": 24 + "line": 602, + "column": 49 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19596, + "end": 19597, + "loc": { + "start": { + "line": 602, + "column": 49 + }, + "end": { + "line": 602, + "column": 50 } } }, @@ -143214,17 +143256,17 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 20120, - "end": 20125, + "value": "grabberContext", + "start": 19597, + "end": 19611, "loc": { "start": { - "line": 631, - "column": 24 + "line": 602, + "column": 50 }, "end": { - "line": 631, - "column": 29 + "line": 602, + "column": 64 } } }, @@ -143240,22 +143282,22 @@ "postfix": false, "binop": null }, - "start": 20125, - "end": 20126, + "start": 19611, + "end": 19612, "loc": { "start": { - "line": 631, - "column": 29 + "line": 602, + "column": 64 }, "end": { - "line": 631, - "column": 30 + "line": 602, + "column": 65 } } }, { "type": { - "label": "=>", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -143266,24 +143308,24 @@ "binop": null, "updateContext": null }, - "start": 20127, - "end": 20129, + "start": 19612, + "end": 19613, "loc": { "start": { - "line": 631, - "column": 31 + "line": 602, + "column": 65 }, "end": { - "line": 631, - "column": 33 + "line": 602, + "column": 66 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -143291,31 +143333,31 @@ "postfix": false, "binop": null }, - "start": 20130, - "end": 20131, + "start": 19620, + "end": 19621, "loc": { "start": { - "line": 631, - "column": 34 + "line": 603, + "column": 6 }, "end": { - "line": 631, - "column": 35 + "line": 603, + "column": 7 } } }, { "type": "CommentBlock", - "value": "*\n * @private\n * @type {Recognizer}\n ", - "start": 20138, - "end": 20197, + "value": "*\n * @private\n * @type {Behavior}\n ", + "start": 19628, + "end": 19685, "loc": { "start": { - "line": 632, + "line": 604, "column": 6 }, "end": { - "line": 635, + "line": 607, "column": 9 } } @@ -143335,15 +143377,15 @@ "updateContext": null }, "value": "this", - "start": 20204, - "end": 20208, + "start": 19692, + "end": 19696, "loc": { "start": { - "line": 636, + "line": 608, "column": 6 }, "end": { - "line": 636, + "line": 608, "column": 10 } } @@ -143361,15 +143403,15 @@ "binop": null, "updateContext": null }, - "start": 20208, - "end": 20209, + "start": 19696, + "end": 19697, "loc": { "start": { - "line": 636, + "line": 608, "column": 10 }, "end": { - "line": 636, + "line": 608, "column": 11 } } @@ -143386,17 +143428,17 @@ "postfix": false, "binop": null }, - "value": "innerRecognizer", - "start": 20209, - "end": 20224, + "value": "innerBehavior", + "start": 19697, + "end": 19710, "loc": { "start": { - "line": 636, + "line": 608, "column": 11 }, "end": { - "line": 636, - "column": 26 + "line": 608, + "column": 24 } } }, @@ -143414,16 +143456,16 @@ "updateContext": null }, "value": "=", - "start": 20225, - "end": 20226, + "start": 19711, + "end": 19712, "loc": { "start": { - "line": 636, - "column": 27 + "line": 608, + "column": 25 }, "end": { - "line": 636, - "column": 28 + "line": 608, + "column": 26 } } }, @@ -143439,17 +143481,17 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 20227, - "end": 20237, + "value": "behavior", + "start": 19713, + "end": 19721, "loc": { "start": { - "line": 636, - "column": 29 + "line": 608, + "column": 27 }, "end": { - "line": 636, - "column": 39 + "line": 608, + "column": 35 } } }, @@ -143466,25 +143508,25 @@ "binop": null, "updateContext": null }, - "start": 20237, - "end": 20238, + "start": 19721, + "end": 19722, "loc": { "start": { - "line": 636, - "column": 39 + "line": 608, + "column": 35 }, "end": { - "line": 636, - "column": 40 + "line": 608, + "column": 36 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -143493,24 +143535,50 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 20245, - "end": 20247, + "value": "this", + "start": 19729, + "end": 19733, "loc": { "start": { - "line": 637, + "line": 609, "column": 6 }, "end": { - "line": 637, - "column": 8 + "line": 609, + "column": 10 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19733, + "end": 19734, + "loc": { + "start": { + "line": 609, + "column": 10 + }, + "end": { + "line": 609, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -143519,16 +143587,44 @@ "postfix": false, "binop": null }, - "start": 20248, - "end": 20249, + "value": "renderer", + "start": 19734, + "end": 19742, "loc": { "start": { - "line": 637, - "column": 9 + "line": 609, + "column": 11 }, "end": { - "line": 637, - "column": 10 + "line": 609, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 19743, + "end": 19744, + "loc": { + "start": { + "line": 609, + "column": 20 + }, + "end": { + "line": 609, + "column": 21 } } }, @@ -143547,16 +143643,16 @@ "updateContext": null }, "value": "this", - "start": 20249, - "end": 20253, + "start": 19745, + "end": 19749, "loc": { "start": { - "line": 637, - "column": 10 + "line": 609, + "column": 22 }, "end": { - "line": 637, - "column": 14 + "line": 609, + "column": 26 } } }, @@ -143573,16 +143669,16 @@ "binop": null, "updateContext": null }, - "start": 20253, - "end": 20254, + "start": 19749, + "end": 19750, "loc": { "start": { - "line": 637, - "column": 14 + "line": 609, + "column": 26 }, "end": { - "line": 637, - "column": 15 + "line": 609, + "column": 27 } } }, @@ -143598,23 +143694,23 @@ "postfix": false, "binop": null }, - "value": "innerRecognizer", - "start": 20254, - "end": 20269, + "value": "innerBehavior", + "start": 19750, + "end": 19763, "loc": { "start": { - "line": 637, - "column": 15 + "line": 609, + "column": 27 }, "end": { - "line": 637, - "column": 30 + "line": 609, + "column": 40 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -143622,25 +143718,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 20269, - "end": 20270, + "start": 19763, + "end": 19764, "loc": { "start": { - "line": 637, - "column": 30 + "line": 609, + "column": 40 }, "end": { - "line": 637, - "column": 31 + "line": 609, + "column": 41 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -143649,32 +143746,43 @@ "postfix": false, "binop": null }, - "start": 20271, - "end": 20272, + "value": "renderer", + "start": 19764, + "end": 19772, "loc": { "start": { - "line": 637, - "column": 32 + "line": 609, + "column": 41 }, "end": { - "line": 637, - "column": 33 + "line": 609, + "column": 49 } } }, { - "type": "CommentBlock", - "value": "*\n * Current recognition context\n * @type {RecognizerContext}\n ", - "start": 20281, - "end": 20372, + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19772, + "end": 19773, "loc": { "start": { - "line": 638, - "column": 8 + "line": 609, + "column": 49 }, "end": { - "line": 641, - "column": 11 + "line": 609, + "column": 50 } } }, @@ -143693,16 +143801,16 @@ "updateContext": null }, "value": "this", - "start": 20381, - "end": 20385, + "start": 19780, + "end": 19784, "loc": { "start": { - "line": 642, - "column": 8 + "line": 610, + "column": 6 }, "end": { - "line": 642, - "column": 12 + "line": 610, + "column": 10 } } }, @@ -143719,16 +143827,16 @@ "binop": null, "updateContext": null }, - "start": 20385, - "end": 20386, + "start": 19784, + "end": 19785, "loc": { "start": { - "line": 642, - "column": 12 + "line": 610, + "column": 10 }, "end": { - "line": 642, - "column": 13 + "line": 610, + "column": 11 } } }, @@ -143744,17 +143852,17 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 20386, - "end": 20403, + "value": "recognizer", + "start": 19785, + "end": 19795, "loc": { "start": { - "line": 642, - "column": 13 + "line": 610, + "column": 11 }, "end": { - "line": 642, - "column": 30 + "line": 610, + "column": 21 } } }, @@ -143772,22 +143880,23 @@ "updateContext": null }, "value": "=", - "start": 20404, - "end": 20405, + "start": 19796, + "end": 19797, "loc": { "start": { - "line": 642, - "column": 31 + "line": 610, + "column": 22 }, "end": { - "line": 642, - "column": 32 + "line": 610, + "column": 23 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -143795,19 +143904,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "RecognizerContext", - "start": 20406, - "end": 20423, + "value": "this", + "start": 19798, + "end": 19802, "loc": { "start": { - "line": 642, - "column": 33 + "line": 610, + "column": 24 }, "end": { - "line": 642, - "column": 50 + "line": 610, + "column": 28 } } }, @@ -143824,16 +143934,16 @@ "binop": null, "updateContext": null }, - "start": 20423, - "end": 20424, + "start": 19802, + "end": 19803, "loc": { "start": { - "line": 642, - "column": 50 + "line": 610, + "column": 28 }, "end": { - "line": 642, - "column": 51 + "line": 610, + "column": 29 } } }, @@ -143849,51 +143959,25 @@ "postfix": false, "binop": null }, - "value": "createEmptyRecognizerContext", - "start": 20424, - "end": 20452, - "loc": { - "start": { - "line": 642, - "column": 51 - }, - "end": { - "line": 642, - "column": 79 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20452, - "end": 20453, + "value": "innerBehavior", + "start": 19803, + "end": 19816, "loc": { "start": { - "line": 642, - "column": 79 + "line": 610, + "column": 29 }, "end": { - "line": 642, - "column": 80 + "line": 610, + "column": 42 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -143902,25 +143986,24 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 20453, - "end": 20457, + "start": 19816, + "end": 19817, "loc": { "start": { - "line": 642, - "column": 80 + "line": 610, + "column": 42 }, "end": { - "line": 642, - "column": 84 + "line": 610, + "column": 43 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -143928,16 +144011,17 @@ "postfix": false, "binop": null }, - "start": 20457, - "end": 20458, + "value": "recognizer", + "start": 19817, + "end": 19827, "loc": { "start": { - "line": 642, - "column": 84 + "line": 610, + "column": 43 }, "end": { - "line": 642, - "column": 85 + "line": 610, + "column": 53 } } }, @@ -143954,41 +144038,41 @@ "binop": null, "updateContext": null }, - "start": 20458, - "end": 20459, + "start": 19827, + "end": 19828, "loc": { "start": { - "line": 642, - "column": 85 + "line": 610, + "column": 53 }, "end": { - "line": 642, - "column": 86 + "line": 610, + "column": 54 } } }, { - "type": "CommentLine", - "value": " FIXME: merge undo/redo manager with default recognizer", - "start": 20468, - "end": 20525, + "type": "CommentBlock", + "value": "*\n * Current grabber context\n * @type {GrabberContext}\n ", + "start": 19835, + "end": 19913, "loc": { "start": { - "line": 643, - "column": 8 + "line": 611, + "column": 6 }, "end": { - "line": 643, - "column": 65 + "line": 614, + "column": 9 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -143997,49 +144081,49 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 20534, - "end": 20536, + "value": "this", + "start": 19920, + "end": 19924, "loc": { "start": { - "line": 644, - "column": 8 + "line": 615, + "column": 6 }, "end": { - "line": 644, + "line": 615, "column": 10 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 20537, - "end": 20538, + "start": 19924, + "end": 19925, "loc": { "start": { - "line": 644, - "column": 11 + "line": 615, + "column": 10 }, "end": { - "line": 644, - "column": 12 + "line": 615, + "column": 11 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -144047,52 +144131,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 20538, - "end": 20542, + "value": "grabberContext", + "start": 19925, + "end": 19939, "loc": { "start": { - "line": 644, - "column": 12 + "line": 615, + "column": 11 }, "end": { - "line": 644, - "column": 16 + "line": 615, + "column": 25 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 20542, - "end": 20543, + "value": "=", + "start": 19940, + "end": 19941, "loc": { "start": { - "line": 644, - "column": 16 + "line": 615, + "column": 26 }, "end": { - "line": 644, - "column": 17 + "line": 615, + "column": 27 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -144100,18 +144185,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "innerRecognizer", - "start": 20543, - "end": 20558, + "value": "this", + "start": 19942, + "end": 19946, "loc": { "start": { - "line": 644, - "column": 17 + "line": 615, + "column": 28 }, "end": { - "line": 644, + "line": 615, "column": 32 } } @@ -144129,15 +144215,15 @@ "binop": null, "updateContext": null }, - "start": 20558, - "end": 20559, + "start": 19946, + "end": 19947, "loc": { "start": { - "line": 644, + "line": 615, "column": 32 }, "end": { - "line": 644, + "line": 615, "column": 33 } } @@ -144154,51 +144240,49 @@ "postfix": false, "binop": null }, - "value": "undo", - "start": 20559, - "end": 20563, + "value": "grabber", + "start": 19947, + "end": 19954, "loc": { "start": { - "line": 644, + "line": 615, "column": 33 }, "end": { - "line": 644, - "column": 37 + "line": 615, + "column": 40 } } }, { "type": { - "label": "&&", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 20564, - "end": 20566, + "start": 19954, + "end": 19955, "loc": { "start": { - "line": 644, - "column": 38 + "line": 615, + "column": 40 }, "end": { - "line": 644, - "column": 40 + "line": 615, + "column": 41 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -144206,52 +144290,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 20567, - "end": 20571, + "value": "attach", + "start": 19955, + "end": 19961, "loc": { "start": { - "line": 644, + "line": 615, "column": 41 }, "end": { - "line": 644, - "column": 45 + "line": 615, + "column": 47 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 20571, - "end": 20572, + "start": 19961, + "end": 19962, "loc": { "start": { - "line": 644, - "column": 45 + "line": 615, + "column": 47 }, "end": { - "line": 644, - "column": 46 + "line": 615, + "column": 48 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -144259,19 +144342,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "innerRecognizer", - "start": 20572, - "end": 20587, + "value": "this", + "start": 19962, + "end": 19966, "loc": { "start": { - "line": 644, - "column": 46 + "line": 615, + "column": 48 }, "end": { - "line": 644, - "column": 61 + "line": 615, + "column": 52 } } }, @@ -144288,16 +144372,16 @@ "binop": null, "updateContext": null }, - "start": 20587, - "end": 20588, + "start": 19966, + "end": 19967, "loc": { "start": { - "line": 644, - "column": 61 + "line": 615, + "column": 52 }, "end": { - "line": 644, - "column": 62 + "line": 615, + "column": 53 } } }, @@ -144313,23 +144397,23 @@ "postfix": false, "binop": null }, - "value": "redo", - "start": 20588, - "end": 20592, + "value": "domElement", + "start": 19967, + "end": 19977, "loc": { "start": { - "line": 644, - "column": 62 + "line": 615, + "column": 53 }, "end": { - "line": 644, - "column": 66 + "line": 615, + "column": 63 } } }, { "type": { - "label": "&&", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -144337,20 +144421,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 20593, - "end": 20595, + "start": 19977, + "end": 19978, "loc": { "start": { - "line": 644, - "column": 67 + "line": 615, + "column": 63 }, "end": { - "line": 644, - "column": 69 + "line": 615, + "column": 64 } } }, @@ -144369,22 +144452,22 @@ "updateContext": null }, "value": "this", - "start": 20596, - "end": 20600, + "start": 19979, + "end": 19983, "loc": { "start": { - "line": 644, - "column": 70 + "line": 615, + "column": 65 }, "end": { - "line": 644, - "column": 74 + "line": 615, + "column": 69 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -144392,51 +144475,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 20600, - "end": 20601, + "start": 19983, + "end": 19984, "loc": { "start": { - "line": 644, - "column": 74 + "line": 615, + "column": 69 }, "end": { - "line": 644, - "column": 75 + "line": 615, + "column": 70 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "innerRecognizer", - "start": 20601, - "end": 20616, + "start": 19984, + "end": 19985, "loc": { "start": { - "line": 644, - "column": 75 + "line": 615, + "column": 70 }, "end": { - "line": 644, - "column": 90 + "line": 615, + "column": 71 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -144444,27 +144526,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 20616, - "end": 20617, + "start": 19990, + "end": 19991, "loc": { "start": { - "line": 644, - "column": 90 + "line": 616, + "column": 4 }, "end": { - "line": 644, - "column": 91 + "line": 616, + "column": 5 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -144472,25 +144553,40 @@ "postfix": false, "binop": null }, - "value": "clear", - "start": 20617, - "end": 20622, + "start": 19994, + "end": 19995, "loc": { "start": { - "line": 644, - "column": 91 + "line": 617, + "column": 2 }, "end": { - "line": 644, - "column": 96 + "line": 617, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get current behavior\n * @return {Behavior}\n ", + "start": 19999, + "end": 20058, + "loc": { + "start": { + "line": 619, + "column": 2 + }, + "end": { + "line": 622, + "column": 5 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -144498,23 +144594,24 @@ "postfix": false, "binop": null }, - "start": 20622, - "end": 20623, + "value": "get", + "start": 20061, + "end": 20064, "loc": { "start": { - "line": 644, - "column": 96 + "line": 623, + "column": 2 }, "end": { - "line": 644, - "column": 97 + "line": 623, + "column": 5 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -144523,50 +144620,48 @@ "postfix": false, "binop": null }, - "start": 20624, - "end": 20625, + "value": "behavior", + "start": 20065, + "end": 20073, "loc": { "start": { - "line": 644, - "column": 98 + "line": 623, + "column": 6 }, "end": { - "line": 644, - "column": 99 + "line": 623, + "column": 14 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 20636, - "end": 20640, + "start": 20073, + "end": 20074, "loc": { "start": { - "line": 645, - "column": 10 + "line": 623, + "column": 14 }, "end": { - "line": 645, - "column": 14 + "line": 623, + "column": 15 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -144574,26 +144669,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 20640, - "end": 20641, + "start": 20074, + "end": 20075, "loc": { "start": { - "line": 645, - "column": 14 + "line": 623, + "column": 15 }, "end": { - "line": 645, - "column": 15 + "line": 623, + "column": 16 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -144602,44 +144696,44 @@ "postfix": false, "binop": null }, - "value": "undoRedoContext", - "start": 20641, - "end": 20656, + "start": 20076, + "end": 20077, "loc": { "start": { - "line": 645, - "column": 15 + "line": 623, + "column": 17 }, "end": { - "line": 645, - "column": 30 + "line": 623, + "column": 18 } } }, { "type": { - "label": "=", + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 20657, - "end": 20658, + "value": "return", + "start": 20082, + "end": 20088, "loc": { "start": { - "line": 645, - "column": 31 + "line": 624, + "column": 4 }, "end": { - "line": 645, - "column": 32 + "line": 624, + "column": 10 } } }, @@ -144658,16 +144752,16 @@ "updateContext": null }, "value": "this", - "start": 20659, - "end": 20663, + "start": 20089, + "end": 20093, "loc": { "start": { - "line": 645, - "column": 33 + "line": 624, + "column": 11 }, "end": { - "line": 645, - "column": 37 + "line": 624, + "column": 15 } } }, @@ -144684,16 +144778,16 @@ "binop": null, "updateContext": null }, - "start": 20663, - "end": 20664, + "start": 20093, + "end": 20094, "loc": { "start": { - "line": 645, - "column": 37 + "line": 624, + "column": 15 }, "end": { - "line": 645, - "column": 38 + "line": 624, + "column": 16 } } }, @@ -144709,17 +144803,17 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 20664, - "end": 20681, + "value": "innerBehavior", + "start": 20094, + "end": 20107, "loc": { "start": { - "line": 645, - "column": 38 + "line": 624, + "column": 16 }, "end": { - "line": 645, - "column": 55 + "line": 624, + "column": 29 } } }, @@ -144736,70 +144830,83 @@ "binop": null, "updateContext": null }, - "start": 20681, - "end": 20682, + "start": 20107, + "end": 20108, "loc": { "start": { - "line": 645, - "column": 55 + "line": 624, + "column": 29 }, "end": { - "line": 645, - "column": 56 + "line": 624, + "column": 30 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 20693, - "end": 20697, + "start": 20111, + "end": 20112, "loc": { "start": { - "line": 646, - "column": 10 + "line": 625, + "column": 2 }, "end": { - "line": 646, - "column": 14 + "line": 625, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Set the current recognizer\n * @private\n * @param {Recognizer} recognizer\n ", + "start": 20116, + "end": 20207, + "loc": { + "start": { + "line": 627, + "column": 2 + }, + "end": { + "line": 631, + "column": 5 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 20697, - "end": 20698, + "value": "set", + "start": 20210, + "end": 20213, "loc": { "start": { - "line": 646, - "column": 14 + "line": 632, + "column": 2 }, "end": { - "line": 646, - "column": 15 + "line": 632, + "column": 5 } } }, @@ -144815,51 +144922,48 @@ "postfix": false, "binop": null }, - "value": "undoRedoManager", - "start": 20698, - "end": 20713, + "value": "recognizer", + "start": 20214, + "end": 20224, "loc": { "start": { - "line": 646, - "column": 15 + "line": 632, + "column": 6 }, "end": { - "line": 646, - "column": 30 + "line": 632, + "column": 16 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 20714, - "end": 20715, + "start": 20224, + "end": 20225, "loc": { "start": { - "line": 646, - "column": 31 + "line": 632, + "column": 16 }, "end": { - "line": 646, - "column": 32 + "line": 632, + "column": 17 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -144867,26 +144971,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 20716, - "end": 20720, + "value": "recognizer", + "start": 20225, + "end": 20235, "loc": { "start": { - "line": 646, - "column": 33 + "line": 632, + "column": 17 }, "end": { - "line": 646, - "column": 37 + "line": 632, + "column": 27 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -144894,26 +144997,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 20720, - "end": 20721, + "start": 20235, + "end": 20236, "loc": { "start": { - "line": 646, - "column": 37 + "line": 632, + "column": 27 }, "end": { - "line": 646, - "column": 38 + "line": 632, + "column": 28 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -144922,25 +145024,25 @@ "postfix": false, "binop": null }, - "value": "innerRecognizer", - "start": 20721, - "end": 20736, + "start": 20237, + "end": 20238, "loc": { "start": { - "line": 646, - "column": 38 + "line": 632, + "column": 29 }, "end": { - "line": 646, - "column": 53 + "line": 632, + "column": 30 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -144949,22 +145051,23 @@ "binop": null, "updateContext": null }, - "start": 20736, - "end": 20737, + "value": "this", + "start": 20243, + "end": 20247, "loc": { "start": { - "line": 646, - "column": 53 + "line": 633, + "column": 4 }, "end": { - "line": 646, - "column": 54 + "line": 633, + "column": 8 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -144972,25 +145075,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 20746, - "end": 20747, + "start": 20247, + "end": 20248, "loc": { "start": { - "line": 647, + "line": 633, "column": 8 }, "end": { - "line": 647, + "line": 633, "column": 9 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -144998,46 +145101,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 20757, - "end": 20761, + "value": "undoRedoContext", + "start": 20248, + "end": 20263, "loc": { "start": { - "line": 649, - "column": 8 + "line": 633, + "column": 9 }, "end": { - "line": 649, - "column": 12 + "line": 633, + "column": 24 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 20761, - "end": 20762, + "value": "=", + "start": 20264, + "end": 20265, "loc": { "start": { - "line": 649, - "column": 12 + "line": 633, + "column": 25 }, "end": { - "line": 649, - "column": 13 + "line": 633, + "column": 26 } } }, @@ -145053,17 +145156,17 @@ "postfix": false, "binop": null }, - "value": "innerRecognizer", - "start": 20762, - "end": 20777, + "value": "UndoRedoContext", + "start": 20266, + "end": 20281, "loc": { "start": { - "line": 649, - "column": 13 + "line": 633, + "column": 27 }, "end": { - "line": 649, - "column": 28 + "line": 633, + "column": 42 } } }, @@ -145080,16 +145183,16 @@ "binop": null, "updateContext": null }, - "start": 20777, - "end": 20778, + "start": 20281, + "end": 20282, "loc": { "start": { - "line": 649, - "column": 28 + "line": 633, + "column": 42 }, "end": { - "line": 649, - "column": 29 + "line": 633, + "column": 43 } } }, @@ -145105,17 +145208,17 @@ "postfix": false, "binop": null }, - "value": "init", - "start": 20778, - "end": 20782, + "value": "createUndoRedoContext", + "start": 20282, + "end": 20303, "loc": { "start": { - "line": 649, - "column": 29 + "line": 633, + "column": 43 }, "end": { - "line": 649, - "column": 33 + "line": 633, + "column": 64 } } }, @@ -145131,16 +145234,16 @@ "postfix": false, "binop": null }, - "start": 20782, - "end": 20783, + "start": 20303, + "end": 20304, "loc": { "start": { - "line": 649, - "column": 33 + "line": 633, + "column": 64 }, "end": { - "line": 649, - "column": 34 + "line": 633, + "column": 65 } } }, @@ -145159,16 +145262,16 @@ "updateContext": null }, "value": "this", - "start": 20783, - "end": 20787, + "start": 20304, + "end": 20308, "loc": { "start": { - "line": 649, - "column": 34 + "line": 633, + "column": 65 }, "end": { - "line": 649, - "column": 38 + "line": 633, + "column": 69 } } }, @@ -145185,16 +145288,16 @@ "binop": null, "updateContext": null }, - "start": 20787, - "end": 20788, + "start": 20308, + "end": 20309, "loc": { "start": { - "line": 649, - "column": 38 + "line": 633, + "column": 69 }, "end": { - "line": 649, - "column": 39 + "line": 633, + "column": 70 } } }, @@ -145210,77 +145313,77 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 20788, - "end": 20805, + "value": "configuration", + "start": 20309, + "end": 20322, "loc": { "start": { - "line": 649, - "column": 39 + "line": 633, + "column": 70 }, "end": { - "line": 649, - "column": 56 + "line": 633, + "column": 83 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 20805, - "end": 20806, + "start": 20322, + "end": 20323, "loc": { "start": { - "line": 649, - "column": 56 + "line": 633, + "column": 83 }, "end": { - "line": 649, - "column": 57 + "line": 633, + "column": 84 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "model", - "start": 20807, - "end": 20812, + "start": 20323, + "end": 20324, "loc": { "start": { - "line": 649, - "column": 58 + "line": 633, + "column": 84 }, "end": { - "line": 649, - "column": 63 + "line": 633, + "column": 85 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -145289,41 +145392,43 @@ "binop": null, "updateContext": null }, - "start": 20812, - "end": 20813, + "value": "this", + "start": 20329, + "end": 20333, "loc": { "start": { - "line": 649, - "column": 63 + "line": 634, + "column": 4 }, "end": { - "line": 649, - "column": 64 + "line": 634, + "column": 8 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 20814, - "end": 20815, + "start": 20333, + "end": 20334, "loc": { "start": { - "line": 649, - "column": 65 + "line": 634, + "column": 8 }, "end": { - "line": 649, - "column": 66 + "line": 634, + "column": 9 } } }, @@ -145339,43 +145444,44 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 20815, - "end": 20818, + "value": "undoRedoManager", + "start": 20334, + "end": 20349, "loc": { "start": { - "line": 649, - "column": 66 + "line": 634, + "column": 9 }, "end": { - "line": 649, - "column": 69 + "line": 634, + "column": 24 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 20818, - "end": 20819, + "value": "=", + "start": 20350, + "end": 20351, "loc": { "start": { - "line": 649, - "column": 69 + "line": 634, + "column": 25 }, "end": { - "line": 649, - "column": 70 + "line": 634, + "column": 26 } } }, @@ -145391,23 +145497,23 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 20820, - "end": 20823, + "value": "UndoRedoManager", + "start": 20352, + "end": 20367, "loc": { "start": { - "line": 649, - "column": 71 + "line": 634, + "column": 27 }, "end": { - "line": 649, - "column": 74 + "line": 634, + "column": 42 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -145418,23 +145524,24 @@ "binop": null, "updateContext": null }, - "start": 20823, - "end": 20824, + "start": 20367, + "end": 20368, "loc": { "start": { - "line": 649, - "column": 74 + "line": 634, + "column": 42 }, "end": { - "line": 649, - "column": 75 + "line": 634, + "column": 43 } } }, { "type": { - "label": "...", - "beforeExpr": true, + "label": "const", + "keyword": "const", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -145444,16 +145551,17 @@ "binop": null, "updateContext": null }, - "start": 20825, - "end": 20828, + "value": "const", + "start": 20374, + "end": 20379, "loc": { "start": { - "line": 649, - "column": 76 + "line": 636, + "column": 4 }, "end": { - "line": 649, - "column": 79 + "line": 636, + "column": 9 } } }, @@ -145469,75 +145577,76 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 20828, - "end": 20833, + "value": "initialize", + "start": 20380, + "end": 20390, "loc": { "start": { - "line": 649, - "column": 79 + "line": 636, + "column": 10 }, "end": { - "line": 649, - "column": 84 + "line": 636, + "column": 20 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 20833, - "end": 20834, + "value": "=", + "start": 20391, + "end": 20392, "loc": { "start": { - "line": 649, - "column": 84 + "line": 636, + "column": 21 }, "end": { - "line": 649, - "column": 85 + "line": 636, + "column": 22 } } }, { "type": { - "label": "=>", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 20835, - "end": 20837, + "start": 20393, + "end": 20394, "loc": { "start": { - "line": 649, - "column": 86 + "line": 636, + "column": 23 }, "end": { - "line": 649, - "column": 88 + "line": 636, + "column": 24 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -145546,24 +145655,25 @@ "postfix": false, "binop": null }, - "start": 20838, - "end": 20839, + "value": "model", + "start": 20394, + "end": 20399, "loc": { "start": { - "line": 649, - "column": 89 + "line": 636, + "column": 24 }, "end": { - "line": 649, - "column": 90 + "line": 636, + "column": 29 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -145571,24 +145681,23 @@ "postfix": false, "binop": null }, - "value": "logger", - "start": 20850, - "end": 20856, + "start": 20399, + "end": 20400, "loc": { "start": { - "line": 650, - "column": 10 + "line": 636, + "column": 29 }, "end": { - "line": 650, - "column": 16 + "line": 636, + "column": 30 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -145598,23 +145707,23 @@ "binop": null, "updateContext": null }, - "start": 20856, - "end": 20857, + "start": 20401, + "end": 20403, "loc": { "start": { - "line": 650, - "column": 16 + "line": 636, + "column": 31 }, "end": { - "line": 650, - "column": 17 + "line": 636, + "column": 33 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -145623,48 +145732,39 @@ "postfix": false, "binop": null }, - "value": "debug", - "start": 20857, - "end": 20862, + "start": 20404, + "end": 20405, "loc": { "start": { - "line": 650, - "column": 17 + "line": 636, + "column": 34 }, "end": { - "line": 650, - "column": 22 + "line": 636, + "column": 35 } } }, { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 20862, - "end": 20863, + "type": "CommentBlock", + "value": "*\n * @private\n * @type {Recognizer}\n ", + "start": 20412, + "end": 20471, "loc": { "start": { - "line": 650, - "column": 22 + "line": 637, + "column": 6 }, "end": { - "line": 650, - "column": 23 + "line": 640, + "column": 9 } } }, { "type": { - "label": "string", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -145675,24 +145775,24 @@ "binop": null, "updateContext": null }, - "value": "Recognizer initialized", - "start": 20863, - "end": 20887, + "value": "this", + "start": 20478, + "end": 20482, "loc": { "start": { - "line": 650, - "column": 23 + "line": 641, + "column": 6 }, "end": { - "line": 650, - "column": 47 + "line": 641, + "column": 10 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -145702,16 +145802,16 @@ "binop": null, "updateContext": null }, - "start": 20887, - "end": 20888, + "start": 20482, + "end": 20483, "loc": { "start": { - "line": 650, - "column": 47 + "line": 641, + "column": 10 }, "end": { - "line": 650, - "column": 48 + "line": 641, + "column": 11 } } }, @@ -145727,42 +145827,70 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 20889, - "end": 20892, + "value": "innerRecognizer", + "start": 20483, + "end": 20498, "loc": { "start": { - "line": 650, - "column": 49 + "line": 641, + "column": 11 }, "end": { - "line": 650, - "column": 52 + "line": 641, + "column": 26 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 20499, + "end": 20500, + "loc": { + "start": { + "line": 641, + "column": 27 + }, + "end": { + "line": 641, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, - "start": 20892, - "end": 20893, + "value": "recognizer", + "start": 20501, + "end": 20511, "loc": { "start": { - "line": 650, - "column": 52 + "line": 641, + "column": 29 }, "end": { - "line": 650, - "column": 53 + "line": 641, + "column": 39 } } }, @@ -145779,25 +145907,25 @@ "binop": null, "updateContext": null }, - "start": 20893, - "end": 20894, + "start": 20511, + "end": 20512, "loc": { "start": { - "line": 650, - "column": 53 + "line": 641, + "column": 39 }, "end": { - "line": 650, - "column": 54 + "line": 641, + "column": 40 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -145806,49 +145934,49 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 20905, - "end": 20909, + "value": "if", + "start": 20519, + "end": 20521, "loc": { "start": { - "line": 651, - "column": 10 + "line": 642, + "column": 6 }, "end": { - "line": 651, - "column": 14 + "line": 642, + "column": 8 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 20909, - "end": 20910, + "start": 20522, + "end": 20523, "loc": { "start": { - "line": 651, - "column": 14 + "line": 642, + "column": 9 }, "end": { - "line": 651, - "column": 15 + "line": 642, + "column": 10 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -145856,19 +145984,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "loader", - "start": 20910, - "end": 20916, + "value": "this", + "start": 20523, + "end": 20527, "loc": { "start": { - "line": 651, - "column": 15 + "line": 642, + "column": 10 }, "end": { - "line": 651, - "column": 21 + "line": 642, + "column": 14 } } }, @@ -145885,16 +146014,16 @@ "binop": null, "updateContext": null }, - "start": 20916, - "end": 20917, + "start": 20527, + "end": 20528, "loc": { "start": { - "line": 651, - "column": 21 + "line": 642, + "column": 14 }, "end": { - "line": 651, - "column": 22 + "line": 642, + "column": 15 } } }, @@ -145910,23 +146039,23 @@ "postfix": false, "binop": null }, - "value": "style", - "start": 20917, - "end": 20922, + "value": "innerRecognizer", + "start": 20528, + "end": 20543, "loc": { "start": { - "line": 651, - "column": 22 + "line": 642, + "column": 15 }, "end": { - "line": 651, - "column": 27 + "line": 642, + "column": 30 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -145934,26 +146063,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 20922, - "end": 20923, + "start": 20543, + "end": 20544, "loc": { "start": { - "line": 651, - "column": 27 + "line": 642, + "column": 30 }, "end": { - "line": 651, - "column": 28 + "line": 642, + "column": 31 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -145962,50 +146090,39 @@ "postfix": false, "binop": null }, - "value": "display", - "start": 20923, - "end": 20930, + "start": 20545, + "end": 20546, "loc": { "start": { - "line": 651, - "column": 28 + "line": 642, + "column": 32 }, "end": { - "line": 651, - "column": 35 + "line": 642, + "column": 33 } } }, { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 20931, - "end": 20932, + "type": "CommentBlock", + "value": "*\n * Current recognition context\n * @type {RecognizerContext}\n ", + "start": 20555, + "end": 20646, "loc": { "start": { - "line": 651, - "column": 36 + "line": 643, + "column": 8 }, "end": { - "line": 651, - "column": 37 + "line": 646, + "column": 11 } } }, { "type": { - "label": "string", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -146016,24 +146133,24 @@ "binop": null, "updateContext": null }, - "value": "none", - "start": 20933, - "end": 20939, + "value": "this", + "start": 20655, + "end": 20659, "loc": { "start": { - "line": 651, - "column": 38 + "line": 647, + "column": 8 }, "end": { - "line": 651, - "column": 44 + "line": 647, + "column": 12 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -146043,16 +146160,16 @@ "binop": null, "updateContext": null }, - "start": 20939, - "end": 20940, + "start": 20659, + "end": 20660, "loc": { "start": { - "line": 651, - "column": 44 + "line": 647, + "column": 12 }, "end": { - "line": 651, - "column": 45 + "line": 647, + "column": 13 } } }, @@ -146068,49 +146185,50 @@ "postfix": false, "binop": null }, - "value": "recognizerCallback", - "start": 20951, - "end": 20969, + "value": "recognizerContext", + "start": 20660, + "end": 20677, "loc": { "start": { - "line": 652, - "column": 10 + "line": 647, + "column": 13 }, "end": { - "line": 652, - "column": 28 + "line": 647, + "column": 30 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 20969, - "end": 20970, + "value": "=", + "start": 20678, + "end": 20679, "loc": { "start": { - "line": 652, - "column": 28 + "line": 647, + "column": 31 }, "end": { - "line": 652, - "column": 29 + "line": 647, + "column": 32 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -146118,27 +146236,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 20970, - "end": 20974, + "value": "RecognizerContext", + "start": 20680, + "end": 20697, "loc": { "start": { - "line": 652, - "column": 29 + "line": 647, + "column": 33 }, "end": { - "line": 652, - "column": 33 + "line": 647, + "column": 50 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -146148,16 +146265,16 @@ "binop": null, "updateContext": null }, - "start": 20974, - "end": 20975, + "start": 20697, + "end": 20698, "loc": { "start": { - "line": 652, - "column": 33 + "line": 647, + "column": 50 }, "end": { - "line": 652, - "column": 34 + "line": 647, + "column": 51 } } }, @@ -146173,49 +146290,49 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 20976, - "end": 20979, + "value": "createEmptyRecognizerContext", + "start": 20698, + "end": 20726, "loc": { "start": { - "line": 652, - "column": 35 + "line": 647, + "column": 51 }, "end": { - "line": 652, - "column": 38 + "line": 647, + "column": 79 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 20979, - "end": 20980, + "start": 20726, + "end": 20727, "loc": { "start": { - "line": 652, - "column": 38 + "line": 647, + "column": 79 }, "end": { - "line": 652, - "column": 39 + "line": 647, + "column": 80 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -146223,51 +146340,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "res", - "start": 20981, - "end": 20984, + "value": "this", + "start": 20727, + "end": 20731, "loc": { "start": { - "line": 652, - "column": 40 + "line": 647, + "column": 80 }, "end": { - "line": 652, - "column": 43 + "line": 647, + "column": 84 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 20984, - "end": 20985, + "start": 20731, + "end": 20732, "loc": { "start": { - "line": 652, - "column": 43 + "line": 647, + "column": 84 }, "end": { - "line": 652, - "column": 44 + "line": 647, + "column": 85 } } }, { "type": { - "label": "...", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -146278,50 +146395,68 @@ "binop": null, "updateContext": null }, - "start": 20986, - "end": 20989, + "start": 20732, + "end": 20733, "loc": { "start": { - "line": 652, - "column": 45 + "line": 647, + "column": 85 }, "end": { - "line": 652, - "column": 48 + "line": 647, + "column": 86 + } + } + }, + { + "type": "CommentLine", + "value": " FIXME: merge undo/redo manager with default recognizer", + "start": 20742, + "end": 20799, + "loc": { + "start": { + "line": 648, + "column": 8 + }, + "end": { + "line": 648, + "column": 65 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "types", - "start": 20989, - "end": 20994, + "value": "if", + "start": 20808, + "end": 20810, "loc": { "start": { - "line": 652, - "column": 48 + "line": 649, + "column": 8 }, "end": { - "line": 652, - "column": 53 + "line": 649, + "column": 10 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -146329,24 +146464,25 @@ "postfix": false, "binop": null }, - "start": 20994, - "end": 20995, + "start": 20811, + "end": 20812, "loc": { "start": { - "line": 652, - "column": 53 + "line": 649, + "column": 11 }, "end": { - "line": 652, - "column": 54 + "line": 649, + "column": 12 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -146355,22 +146491,23 @@ "binop": null, "updateContext": null }, - "start": 20995, - "end": 20996, + "value": "this", + "start": 20812, + "end": 20816, "loc": { "start": { - "line": 652, - "column": 54 + "line": 649, + "column": 12 }, "end": { - "line": 652, - "column": 55 + "line": 649, + "column": 16 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -146378,26 +146515,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21005, - "end": 21006, + "start": 20816, + "end": 20817, "loc": { "start": { - "line": 653, - "column": 8 + "line": 649, + "column": 16 }, "end": { - "line": 653, - "column": 9 + "line": 649, + "column": 17 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -146405,23 +146543,24 @@ "postfix": false, "binop": null }, - "start": 21006, - "end": 21007, + "value": "innerRecognizer", + "start": 20817, + "end": 20832, "loc": { "start": { - "line": 653, - "column": 9 + "line": 649, + "column": 17 }, "end": { - "line": 653, - "column": 10 + "line": 649, + "column": 32 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -146431,24 +146570,24 @@ "binop": null, "updateContext": null }, - "start": 21007, - "end": 21008, + "start": 20832, + "end": 20833, "loc": { "start": { - "line": 653, - "column": 10 + "line": 649, + "column": 32 }, "end": { - "line": 653, - "column": 11 + "line": 649, + "column": 33 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -146456,49 +146595,53 @@ "postfix": false, "binop": null }, - "start": 21015, - "end": 21016, + "value": "undo", + "start": 20833, + "end": 20837, "loc": { "start": { - "line": 654, - "column": 6 + "line": 649, + "column": 33 }, "end": { - "line": 654, - "column": 7 + "line": 649, + "column": 37 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": "&&", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 2, + "updateContext": null }, - "start": 21021, - "end": 21022, + "value": "&&", + "start": 20838, + "end": 20840, "loc": { "start": { - "line": 655, - "column": 4 + "line": 649, + "column": 38 }, "end": { - "line": 655, - "column": 5 + "line": 649, + "column": 40 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -146507,23 +146650,23 @@ "binop": null, "updateContext": null }, - "start": 21022, - "end": 21023, + "value": "this", + "start": 20841, + "end": 20845, "loc": { "start": { - "line": 655, - "column": 5 + "line": 649, + "column": 41 }, "end": { - "line": 655, - "column": 6 + "line": 649, + "column": 45 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -146534,24 +146677,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 21029, - "end": 21031, + "start": 20845, + "end": 20846, "loc": { "start": { - "line": 657, - "column": 4 + "line": 649, + "column": 45 }, "end": { - "line": 657, - "column": 6 + "line": 649, + "column": 46 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -146560,50 +146702,51 @@ "postfix": false, "binop": null }, - "start": 21032, - "end": 21033, + "value": "innerRecognizer", + "start": 20846, + "end": 20861, "loc": { "start": { - "line": 657, - "column": 7 + "line": 649, + "column": 46 }, "end": { - "line": 657, - "column": 8 + "line": 649, + "column": 61 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "recognizer", - "start": 21033, - "end": 21043, + "start": 20861, + "end": 20862, "loc": { "start": { - "line": 657, - "column": 8 + "line": 649, + "column": 61 }, "end": { - "line": 657, - "column": 18 + "line": 649, + "column": 62 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -146611,50 +146754,53 @@ "postfix": false, "binop": null }, - "start": 21043, - "end": 21044, + "value": "redo", + "start": 20862, + "end": 20866, "loc": { "start": { - "line": 657, - "column": 18 + "line": 649, + "column": 62 }, "end": { - "line": 657, - "column": 19 + "line": 649, + "column": 66 } } }, { "type": { - "label": "{", + "label": "&&", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 2, + "updateContext": null }, - "start": 21045, - "end": 21046, + "value": "&&", + "start": 20867, + "end": 20869, "loc": { "start": { - "line": 657, - "column": 20 + "line": 649, + "column": 67 }, "end": { - "line": 657, - "column": 21 + "line": 649, + "column": 69 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -146663,49 +146809,49 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 21053, - "end": 21055, + "value": "this", + "start": 20870, + "end": 20874, "loc": { "start": { - "line": 658, - "column": 6 + "line": 649, + "column": 70 }, "end": { - "line": 658, - "column": 8 + "line": 649, + "column": 74 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21056, - "end": 21057, + "start": 20874, + "end": 20875, "loc": { "start": { - "line": 658, - "column": 9 + "line": 649, + "column": 74 }, "end": { - "line": 658, - "column": 10 + "line": 649, + "column": 75 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -146713,20 +146859,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 21057, - "end": 21061, + "value": "innerRecognizer", + "start": 20875, + "end": 20890, "loc": { "start": { - "line": 658, - "column": 10 + "line": 649, + "column": 75 }, "end": { - "line": 658, - "column": 14 + "line": 649, + "column": 90 } } }, @@ -146743,16 +146888,16 @@ "binop": null, "updateContext": null }, - "start": 21061, - "end": 21062, + "start": 20890, + "end": 20891, "loc": { "start": { - "line": 658, - "column": 14 + "line": 649, + "column": 90 }, "end": { - "line": 658, - "column": 15 + "line": 649, + "column": 91 } } }, @@ -146768,17 +146913,17 @@ "postfix": false, "binop": null }, - "value": "innerRecognizer", - "start": 21062, - "end": 21077, + "value": "clear", + "start": 20891, + "end": 20896, "loc": { "start": { - "line": 658, - "column": 15 + "line": 649, + "column": 91 }, "end": { - "line": 658, - "column": 30 + "line": 649, + "column": 96 } } }, @@ -146794,16 +146939,16 @@ "postfix": false, "binop": null }, - "start": 21077, - "end": 21078, + "start": 20896, + "end": 20897, "loc": { "start": { - "line": 658, - "column": 30 + "line": 649, + "column": 96 }, "end": { - "line": 658, - "column": 31 + "line": 649, + "column": 97 } } }, @@ -146819,16 +146964,16 @@ "postfix": false, "binop": null }, - "start": 21079, - "end": 21080, + "start": 20898, + "end": 20899, "loc": { "start": { - "line": 658, - "column": 32 + "line": 649, + "column": 98 }, "end": { - "line": 658, - "column": 33 + "line": 649, + "column": 99 } } }, @@ -146847,16 +146992,16 @@ "updateContext": null }, "value": "this", - "start": 21089, - "end": 21093, + "start": 20910, + "end": 20914, "loc": { "start": { - "line": 659, - "column": 8 + "line": 650, + "column": 10 }, "end": { - "line": 659, - "column": 12 + "line": 650, + "column": 14 } } }, @@ -146873,16 +147018,16 @@ "binop": null, "updateContext": null }, - "start": 21093, - "end": 21094, + "start": 20914, + "end": 20915, "loc": { "start": { - "line": 659, - "column": 12 + "line": 650, + "column": 14 }, "end": { - "line": 659, - "column": 13 + "line": 650, + "column": 15 } } }, @@ -146898,17 +147043,72 @@ "postfix": false, "binop": null }, - "value": "innerRecognizer", - "start": 21094, - "end": 21109, + "value": "undoRedoContext", + "start": 20915, + "end": 20930, "loc": { "start": { - "line": 659, - "column": 13 + "line": 650, + "column": 15 }, "end": { - "line": 659, - "column": 28 + "line": 650, + "column": 30 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 20931, + "end": 20932, + "loc": { + "start": { + "line": 650, + "column": 31 + }, + "end": { + "line": 650, + "column": 32 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 20933, + "end": 20937, + "loc": { + "start": { + "line": 650, + "column": 33 + }, + "end": { + "line": 650, + "column": 37 } } }, @@ -146925,16 +147125,16 @@ "binop": null, "updateContext": null }, - "start": 21109, - "end": 21110, + "start": 20937, + "end": 20938, "loc": { "start": { - "line": 659, - "column": 28 + "line": 650, + "column": 37 }, "end": { - "line": 659, - "column": 29 + "line": 650, + "column": 38 } } }, @@ -146950,42 +147150,43 @@ "postfix": false, "binop": null }, - "value": "close", - "start": 21110, - "end": 21115, + "value": "recognizerContext", + "start": 20938, + "end": 20955, "loc": { "start": { - "line": 659, - "column": 29 + "line": 650, + "column": 38 }, "end": { - "line": 659, - "column": 34 + "line": 650, + "column": 55 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21115, - "end": 21116, + "start": 20955, + "end": 20956, "loc": { "start": { - "line": 659, - "column": 34 + "line": 650, + "column": 55 }, "end": { - "line": 659, - "column": 35 + "line": 650, + "column": 56 } } }, @@ -147004,16 +147205,16 @@ "updateContext": null }, "value": "this", - "start": 21116, - "end": 21120, + "start": 20967, + "end": 20971, "loc": { "start": { - "line": 659, - "column": 35 + "line": 651, + "column": 10 }, "end": { - "line": 659, - "column": 39 + "line": 651, + "column": 14 } } }, @@ -147030,16 +147231,16 @@ "binop": null, "updateContext": null }, - "start": 21120, - "end": 21121, + "start": 20971, + "end": 20972, "loc": { "start": { - "line": 659, - "column": 39 + "line": 651, + "column": 14 }, "end": { - "line": 659, - "column": 40 + "line": 651, + "column": 15 } } }, @@ -147055,43 +147256,44 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 21121, - "end": 21138, + "value": "undoRedoManager", + "start": 20972, + "end": 20987, "loc": { "start": { - "line": 659, - "column": 40 + "line": 651, + "column": 15 }, "end": { - "line": 659, - "column": 57 + "line": 651, + "column": 30 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 21138, - "end": 21139, + "value": "=", + "start": 20988, + "end": 20989, "loc": { "start": { - "line": 659, - "column": 57 + "line": 651, + "column": 31 }, "end": { - "line": 659, - "column": 58 + "line": 651, + "column": 32 } } }, @@ -147110,16 +147312,16 @@ "updateContext": null }, "value": "this", - "start": 21140, - "end": 21144, + "start": 20990, + "end": 20994, "loc": { "start": { - "line": 659, - "column": 59 + "line": 651, + "column": 33 }, "end": { - "line": 659, - "column": 63 + "line": 651, + "column": 37 } } }, @@ -147136,16 +147338,16 @@ "binop": null, "updateContext": null }, - "start": 21144, - "end": 21145, + "start": 20994, + "end": 20995, "loc": { "start": { - "line": 659, - "column": 63 + "line": 651, + "column": 37 }, "end": { - "line": 659, - "column": 64 + "line": 651, + "column": 38 } } }, @@ -147161,23 +147363,23 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 21145, - "end": 21150, + "value": "innerRecognizer", + "start": 20995, + "end": 21010, "loc": { "start": { - "line": 659, - "column": 64 + "line": 651, + "column": 38 }, "end": { - "line": 659, - "column": 69 + "line": 651, + "column": 53 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -147188,24 +147390,24 @@ "binop": null, "updateContext": null }, - "start": 21150, - "end": 21151, + "start": 21010, + "end": 21011, "loc": { "start": { - "line": 659, - "column": 69 + "line": 651, + "column": 53 }, "end": { - "line": 659, - "column": 70 + "line": 651, + "column": 54 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -147213,22 +147415,23 @@ "postfix": false, "binop": null }, - "start": 21152, - "end": 21153, + "start": 21020, + "end": 21021, "loc": { "start": { - "line": 659, - "column": 71 + "line": 652, + "column": 8 }, "end": { - "line": 659, - "column": 72 + "line": 652, + "column": 9 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -147236,26 +147439,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "err", - "start": 21153, - "end": 21156, + "value": "this", + "start": 21031, + "end": 21035, "loc": { "start": { - "line": 659, - "column": 72 + "line": 654, + "column": 8 }, "end": { - "line": 659, - "column": 75 + "line": 654, + "column": 12 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -147265,16 +147469,16 @@ "binop": null, "updateContext": null }, - "start": 21156, - "end": 21157, + "start": 21035, + "end": 21036, "loc": { "start": { - "line": 659, - "column": 75 + "line": 654, + "column": 12 }, "end": { - "line": 659, - "column": 76 + "line": 654, + "column": 13 } } }, @@ -147290,24 +147494,24 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 21158, - "end": 21161, + "value": "innerRecognizer", + "start": 21036, + "end": 21051, "loc": { "start": { - "line": 659, - "column": 77 + "line": 654, + "column": 13 }, "end": { - "line": 659, - "column": 80 + "line": 654, + "column": 28 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -147317,49 +147521,49 @@ "binop": null, "updateContext": null }, - "start": 21161, - "end": 21162, + "start": 21051, + "end": 21052, "loc": { "start": { - "line": 659, - "column": 80 + "line": 654, + "column": 28 }, "end": { - "line": 659, - "column": 81 + "line": 654, + "column": 29 } } }, { "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 21163, - "end": 21166, + "value": "init", + "start": 21052, + "end": 21056, "loc": { "start": { - "line": 659, - "column": 82 + "line": 654, + "column": 29 }, "end": { - "line": 659, - "column": 85 + "line": 654, + "column": 33 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -147368,49 +147572,51 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 21166, - "end": 21171, + "start": 21056, + "end": 21057, "loc": { "start": { - "line": 659, - "column": 85 + "line": 654, + "column": 33 }, "end": { - "line": 659, - "column": 90 + "line": 654, + "column": 34 } } }, { "type": { - "label": ")", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21171, - "end": 21172, + "value": "this", + "start": 21057, + "end": 21061, "loc": { "start": { - "line": 659, - "column": 90 + "line": 654, + "column": 34 }, "end": { - "line": 659, - "column": 91 + "line": 654, + "column": 38 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -147420,23 +147626,23 @@ "binop": null, "updateContext": null }, - "start": 21173, - "end": 21175, + "start": 21061, + "end": 21062, "loc": { "start": { - "line": 659, - "column": 92 + "line": 654, + "column": 38 }, "end": { - "line": 659, - "column": 94 + "line": 654, + "column": 39 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -147445,16 +147651,43 @@ "postfix": false, "binop": null }, - "start": 21176, - "end": 21177, + "value": "recognizerContext", + "start": 21062, + "end": 21079, "loc": { "start": { - "line": 659, - "column": 95 + "line": 654, + "column": 39 }, "end": { - "line": 659, - "column": 96 + "line": 654, + "column": 56 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 21079, + "end": 21080, + "loc": { + "start": { + "line": 654, + "column": 56 + }, + "end": { + "line": 654, + "column": 57 } } }, @@ -147470,24 +147703,24 @@ "postfix": false, "binop": null }, - "value": "logger", - "start": 21188, - "end": 21194, + "value": "model", + "start": 21081, + "end": 21086, "loc": { "start": { - "line": 660, - "column": 10 + "line": 654, + "column": 58 }, "end": { - "line": 660, - "column": 16 + "line": 654, + "column": 63 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -147497,23 +147730,23 @@ "binop": null, "updateContext": null }, - "start": 21194, - "end": 21195, + "start": 21086, + "end": 21087, "loc": { "start": { - "line": 660, - "column": 16 + "line": 654, + "column": 63 }, "end": { - "line": 660, - "column": 17 + "line": 654, + "column": 64 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -147522,24 +147755,23 @@ "postfix": false, "binop": null }, - "value": "info", - "start": 21195, - "end": 21199, + "start": 21088, + "end": 21089, "loc": { "start": { - "line": 660, - "column": 17 + "line": 654, + "column": 65 }, "end": { - "line": 660, - "column": 21 + "line": 654, + "column": 66 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -147548,24 +147780,25 @@ "postfix": false, "binop": null }, - "start": 21199, - "end": 21200, + "value": "err", + "start": 21089, + "end": 21092, "loc": { "start": { - "line": 660, - "column": 21 + "line": 654, + "column": 66 }, "end": { - "line": 660, - "column": 22 + "line": 654, + "column": 69 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -147574,25 +147807,24 @@ "binop": null, "updateContext": null }, - "value": "Recognizer closed", - "start": 21200, - "end": 21219, + "start": 21092, + "end": 21093, "loc": { "start": { - "line": 660, - "column": 22 + "line": 654, + "column": 69 }, "end": { - "line": 660, - "column": 41 + "line": 654, + "column": 70 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -147600,22 +147832,23 @@ "postfix": false, "binop": null }, - "start": 21219, - "end": 21220, + "value": "res", + "start": 21094, + "end": 21097, "loc": { "start": { - "line": 660, - "column": 41 + "line": 654, + "column": 71 }, "end": { - "line": 660, - "column": 42 + "line": 654, + "column": 74 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -147626,16 +147859,42 @@ "binop": null, "updateContext": null }, - "start": 21220, - "end": 21221, + "start": 21097, + "end": 21098, "loc": { "start": { - "line": 660, - "column": 42 + "line": 654, + "column": 74 }, "end": { - "line": 660, - "column": 43 + "line": 654, + "column": 75 + } + } + }, + { + "type": { + "label": "...", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 21099, + "end": 21102, + "loc": { + "start": { + "line": 654, + "column": 76 + }, + "end": { + "line": 654, + "column": 79 } } }, @@ -147651,25 +147910,25 @@ "postfix": false, "binop": null }, - "value": "recognizerCallback", - "start": 21232, - "end": 21250, + "value": "types", + "start": 21102, + "end": 21107, "loc": { "start": { - "line": 661, - "column": 10 + "line": 654, + "column": 79 }, "end": { - "line": 661, - "column": 28 + "line": 654, + "column": 84 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -147677,25 +147936,24 @@ "postfix": false, "binop": null }, - "start": 21250, - "end": 21251, + "start": 21107, + "end": 21108, "loc": { "start": { - "line": 661, - "column": 28 + "line": 654, + "column": 84 }, "end": { - "line": 661, - "column": 29 + "line": 654, + "column": 85 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -147704,43 +147962,41 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 21251, - "end": 21255, + "start": 21109, + "end": 21111, "loc": { "start": { - "line": 661, - "column": 29 + "line": 654, + "column": 86 }, "end": { - "line": 661, - "column": 33 + "line": 654, + "column": 88 } } }, { "type": { - "label": ",", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 21255, - "end": 21256, + "start": 21112, + "end": 21113, "loc": { "start": { - "line": 661, - "column": 33 + "line": 654, + "column": 89 }, "end": { - "line": 661, - "column": 34 + "line": 654, + "column": 90 } } }, @@ -147756,24 +148012,24 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 21257, - "end": 21260, + "value": "logger", + "start": 21124, + "end": 21130, "loc": { "start": { - "line": 661, - "column": 35 + "line": 655, + "column": 10 }, "end": { - "line": 661, - "column": 38 + "line": 655, + "column": 16 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -147783,16 +148039,16 @@ "binop": null, "updateContext": null }, - "start": 21260, - "end": 21261, + "start": 21130, + "end": 21131, "loc": { "start": { - "line": 661, - "column": 38 + "line": 655, + "column": 16 }, "end": { - "line": 661, - "column": 39 + "line": 655, + "column": 17 } } }, @@ -147808,25 +148064,50 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 21262, - "end": 21265, + "value": "debug", + "start": 21131, + "end": 21136, "loc": { "start": { - "line": 661, - "column": 40 + "line": 655, + "column": 17 }, "end": { - "line": 661, - "column": 43 + "line": 655, + "column": 22 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 21136, + "end": 21137, + "loc": { + "start": { + "line": 655, + "column": 22 + }, + "end": { + "line": 655, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -147835,22 +148116,23 @@ "binop": null, "updateContext": null }, - "start": 21265, - "end": 21266, + "value": "Recognizer initialized", + "start": 21137, + "end": 21161, "loc": { "start": { - "line": 661, - "column": 43 + "line": 655, + "column": 23 }, "end": { - "line": 661, - "column": 44 + "line": 655, + "column": 47 } } }, { "type": { - "label": "...", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -147861,15 +148143,15 @@ "binop": null, "updateContext": null }, - "start": 21267, - "end": 21270, + "start": 21161, + "end": 21162, "loc": { "start": { - "line": 661, - "column": 45 + "line": 655, + "column": 47 }, "end": { - "line": 661, + "line": 655, "column": 48 } } @@ -147886,17 +148168,17 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 21270, - "end": 21275, + "value": "res", + "start": 21163, + "end": 21166, "loc": { "start": { - "line": 661, - "column": 48 + "line": 655, + "column": 49 }, "end": { - "line": 661, - "column": 53 + "line": 655, + "column": 52 } } }, @@ -147912,16 +148194,16 @@ "postfix": false, "binop": null }, - "start": 21275, - "end": 21276, + "start": 21166, + "end": 21167, "loc": { "start": { - "line": 661, - "column": 53 + "line": 655, + "column": 52 }, "end": { - "line": 661, - "column": 54 + "line": 655, + "column": 53 } } }, @@ -147938,22 +148220,23 @@ "binop": null, "updateContext": null }, - "start": 21276, - "end": 21277, + "start": 21167, + "end": 21168, "loc": { "start": { - "line": 661, - "column": 54 + "line": 655, + "column": 53 }, "end": { - "line": 661, - "column": 55 + "line": 655, + "column": 54 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -147961,44 +148244,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "initialize", - "start": 21288, - "end": 21298, + "value": "this", + "start": 21179, + "end": 21183, "loc": { "start": { - "line": 662, + "line": 656, "column": 10 }, "end": { - "line": 662, - "column": 20 + "line": 656, + "column": 14 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21298, - "end": 21299, + "start": 21183, + "end": 21184, "loc": { "start": { - "line": 662, - "column": 20 + "line": 656, + "column": 14 }, "end": { - "line": 662, - "column": 21 + "line": 656, + "column": 15 } } }, @@ -148014,17 +148299,17 @@ "postfix": false, "binop": null }, - "value": "InkModel", - "start": 21299, - "end": 21307, + "value": "loader", + "start": 21184, + "end": 21190, "loc": { "start": { - "line": 662, - "column": 21 + "line": 656, + "column": 15 }, "end": { - "line": 662, - "column": 29 + "line": 656, + "column": 21 } } }, @@ -148041,16 +148326,16 @@ "binop": null, "updateContext": null }, - "start": 21307, - "end": 21308, + "start": 21190, + "end": 21191, "loc": { "start": { - "line": 662, - "column": 29 + "line": 656, + "column": 21 }, "end": { - "line": 662, - "column": 30 + "line": 656, + "column": 22 } } }, @@ -148066,42 +148351,43 @@ "postfix": false, "binop": null }, - "value": "clearModel", - "start": 21308, - "end": 21318, + "value": "style", + "start": 21191, + "end": 21196, "loc": { "start": { - "line": 662, - "column": 30 + "line": 656, + "column": 22 }, "end": { - "line": 662, - "column": 40 + "line": 656, + "column": 27 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21318, - "end": 21319, + "start": 21196, + "end": 21197, "loc": { "start": { - "line": 662, - "column": 40 + "line": 656, + "column": 27 }, "end": { - "line": 662, - "column": 41 + "line": 656, + "column": 28 } } }, @@ -148117,67 +148403,71 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 21319, - "end": 21322, + "value": "display", + "start": 21197, + "end": 21204, "loc": { "start": { - "line": 662, - "column": 41 + "line": 656, + "column": 28 }, "end": { - "line": 662, - "column": 44 + "line": 656, + "column": 35 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21322, - "end": 21323, + "value": "=", + "start": 21205, + "end": 21206, "loc": { "start": { - "line": 662, - "column": 44 + "line": 656, + "column": 36 }, "end": { - "line": 662, - "column": 45 + "line": 656, + "column": 37 } } }, { "type": { - "label": ")", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21323, - "end": 21324, + "value": "none", + "start": 21207, + "end": 21213, "loc": { "start": { - "line": 662, - "column": 45 + "line": 656, + "column": 38 }, "end": { - "line": 662, - "column": 46 + "line": 656, + "column": 44 } } }, @@ -148194,24 +148484,24 @@ "binop": null, "updateContext": null }, - "start": 21324, - "end": 21325, + "start": 21213, + "end": 21214, "loc": { "start": { - "line": 662, - "column": 46 + "line": 656, + "column": 44 }, "end": { - "line": 662, - "column": 47 + "line": 656, + "column": 45 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -148219,24 +148509,25 @@ "postfix": false, "binop": null }, - "start": 21334, - "end": 21335, + "value": "recognizerCallback", + "start": 21225, + "end": 21243, "loc": { "start": { - "line": 663, - "column": 8 + "line": 657, + "column": 10 }, "end": { - "line": 663, - "column": 9 + "line": 657, + "column": 28 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -148244,22 +148535,50 @@ "postfix": false, "binop": null }, - "start": 21335, - "end": 21336, + "start": 21243, + "end": 21244, "loc": { "start": { - "line": 663, - "column": 9 + "line": 657, + "column": 28 }, "end": { - "line": 663, - "column": 10 + "line": 657, + "column": 29 } } }, { "type": { - "label": ";", + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 21244, + "end": 21248, + "loc": { + "start": { + "line": 657, + "column": 29 + }, + "end": { + "line": 657, + "column": 33 + } + } + }, + { + "type": { + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -148270,24 +148589,24 @@ "binop": null, "updateContext": null }, - "start": 21336, - "end": 21337, + "start": 21248, + "end": 21249, "loc": { "start": { - "line": 663, - "column": 10 + "line": 657, + "column": 33 }, "end": { - "line": 663, - "column": 11 + "line": 657, + "column": 34 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -148295,23 +148614,23 @@ "postfix": false, "binop": null }, - "start": 21344, - "end": 21345, + "value": "err", + "start": 21250, + "end": 21253, "loc": { "start": { - "line": 664, - "column": 6 + "line": 657, + "column": 35 }, "end": { - "line": 664, - "column": 7 + "line": 657, + "column": 38 } } }, { "type": { - "label": "else", - "keyword": "else", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -148322,24 +148641,23 @@ "binop": null, "updateContext": null }, - "value": "else", - "start": 21346, - "end": 21350, + "start": 21253, + "end": 21254, "loc": { "start": { - "line": 664, - "column": 8 + "line": 657, + "column": 38 }, "end": { - "line": 664, - "column": 12 + "line": 657, + "column": 39 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -148348,41 +148666,51 @@ "postfix": false, "binop": null }, - "start": 21351, - "end": 21352, + "value": "res", + "start": 21255, + "end": 21258, "loc": { "start": { - "line": 664, - "column": 13 + "line": 657, + "column": 40 }, "end": { - "line": 664, - "column": 14 + "line": 657, + "column": 43 } } }, { - "type": "CommentBlock", - "value": "*\n * Current model\n * @type {Model}\n ", - "start": 21361, - "end": 21426, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 21258, + "end": 21259, "loc": { "start": { - "line": 665, - "column": 8 + "line": 657, + "column": 43 }, "end": { - "line": 668, - "column": 11 + "line": 657, + "column": 44 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": "...", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -148391,51 +148719,50 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 21435, - "end": 21439, + "start": 21260, + "end": 21263, "loc": { "start": { - "line": 669, - "column": 8 + "line": 657, + "column": 45 }, "end": { - "line": 669, - "column": 12 + "line": 657, + "column": 48 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 21439, - "end": 21440, + "value": "types", + "start": 21263, + "end": 21268, "loc": { "start": { - "line": 669, - "column": 12 + "line": 657, + "column": 48 }, "end": { - "line": 669, - "column": 13 + "line": 657, + "column": 53 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -148443,52 +148770,50 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 21440, - "end": 21445, + "start": 21268, + "end": 21269, "loc": { "start": { - "line": 669, - "column": 13 + "line": 657, + "column": 53 }, "end": { - "line": 669, - "column": 18 + "line": 657, + "column": 54 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 21446, - "end": 21447, + "start": 21269, + "end": 21270, "loc": { "start": { - "line": 669, - "column": 19 + "line": 657, + "column": 54 }, "end": { - "line": 669, - "column": 20 + "line": 657, + "column": 55 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -148496,23 +148821,22 @@ "postfix": false, "binop": null }, - "value": "InkModel", - "start": 21448, - "end": 21456, + "start": 21279, + "end": 21280, "loc": { "start": { - "line": 669, - "column": 21 + "line": 658, + "column": 8 }, "end": { - "line": 669, - "column": 29 + "line": 658, + "column": 9 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -148520,27 +148844,52 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "start": 21280, + "end": 21281, + "loc": { + "start": { + "line": 658, + "column": 9 + }, + "end": { + "line": 658, + "column": 10 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "start": 21456, - "end": 21457, + "start": 21281, + "end": 21282, "loc": { "start": { - "line": 669, - "column": 29 + "line": 658, + "column": 10 }, "end": { - "line": 669, - "column": 30 + "line": 658, + "column": 11 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -148548,25 +148897,24 @@ "postfix": false, "binop": null }, - "value": "createModel", - "start": 21457, - "end": 21468, + "start": 21289, + "end": 21290, "loc": { "start": { - "line": 669, - "column": 30 + "line": 659, + "column": 6 }, "end": { - "line": 669, - "column": 41 + "line": 659, + "column": 7 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -148574,25 +148922,24 @@ "postfix": false, "binop": null }, - "start": 21468, - "end": 21469, + "start": 21295, + "end": 21296, "loc": { "start": { - "line": 669, - "column": 41 + "line": 660, + "column": 4 }, "end": { - "line": 669, - "column": 42 + "line": 660, + "column": 5 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -148601,23 +148948,23 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 21469, - "end": 21473, + "start": 21296, + "end": 21297, "loc": { "start": { - "line": 669, - "column": 42 + "line": 660, + "column": 5 }, "end": { - "line": 669, - "column": 46 + "line": 660, + "column": 6 } } }, { "type": { - "label": ".", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -148628,23 +148975,24 @@ "binop": null, "updateContext": null }, - "start": 21473, - "end": 21474, + "value": "if", + "start": 21303, + "end": 21305, "loc": { "start": { - "line": 669, - "column": 46 + "line": 662, + "column": 4 }, "end": { - "line": 669, - "column": 47 + "line": 662, + "column": 6 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -148653,25 +149001,24 @@ "postfix": false, "binop": null }, - "value": "configuration", - "start": 21474, - "end": 21487, + "start": 21306, + "end": 21307, "loc": { "start": { - "line": 669, - "column": 47 + "line": 662, + "column": 7 }, "end": { - "line": 669, - "column": 60 + "line": 662, + "column": 8 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -148679,84 +149026,95 @@ "postfix": false, "binop": null }, - "start": 21487, - "end": 21488, + "value": "recognizer", + "start": 21307, + "end": 21317, "loc": { "start": { - "line": 669, - "column": 60 + "line": 662, + "column": 8 }, "end": { - "line": 669, - "column": 61 + "line": 662, + "column": 18 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 21488, - "end": 21489, + "start": 21317, + "end": 21318, "loc": { "start": { - "line": 669, - "column": 61 + "line": 662, + "column": 18 }, "end": { - "line": 669, - "column": 62 + "line": 662, + "column": 19 } } }, { - "type": "CommentLine", - "value": " INFO: Recognizer needs model to be initialized", - "start": 21499, - "end": 21548, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 21319, + "end": 21320, "loc": { "start": { - "line": 671, - "column": 8 + "line": 662, + "column": 20 }, "end": { - "line": 671, - "column": 57 + "line": 662, + "column": 21 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "initialize", - "start": 21557, - "end": 21567, + "value": "if", + "start": 21327, + "end": 21329, "loc": { "start": { - "line": 672, - "column": 8 + "line": 663, + "column": 6 }, "end": { - "line": 672, - "column": 18 + "line": 663, + "column": 8 } } }, @@ -148772,16 +149130,16 @@ "postfix": false, "binop": null }, - "start": 21567, - "end": 21568, + "start": 21330, + "end": 21331, "loc": { "start": { - "line": 672, - "column": 18 + "line": 663, + "column": 9 }, "end": { - "line": 672, - "column": 19 + "line": 663, + "column": 10 } } }, @@ -148800,16 +149158,16 @@ "updateContext": null }, "value": "this", - "start": 21568, - "end": 21572, + "start": 21331, + "end": 21335, "loc": { "start": { - "line": 672, - "column": 19 + "line": 663, + "column": 10 }, "end": { - "line": 672, - "column": 23 + "line": 663, + "column": 14 } } }, @@ -148826,16 +149184,16 @@ "binop": null, "updateContext": null }, - "start": 21572, - "end": 21573, + "start": 21335, + "end": 21336, "loc": { "start": { - "line": 672, - "column": 23 + "line": 663, + "column": 14 }, "end": { - "line": 672, - "column": 24 + "line": 663, + "column": 15 } } }, @@ -148851,17 +149209,17 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 21573, - "end": 21578, + "value": "innerRecognizer", + "start": 21336, + "end": 21351, "loc": { "start": { - "line": 672, - "column": 24 + "line": 663, + "column": 15 }, "end": { - "line": 672, - "column": 29 + "line": 663, + "column": 30 } } }, @@ -148877,73 +149235,75 @@ "postfix": false, "binop": null }, - "start": 21578, - "end": 21579, + "start": 21351, + "end": 21352, "loc": { "start": { - "line": 672, - "column": 29 + "line": 663, + "column": 30 }, "end": { - "line": 672, - "column": 30 + "line": 663, + "column": 31 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 21579, - "end": 21580, + "start": 21353, + "end": 21354, "loc": { "start": { - "line": 672, - "column": 30 + "line": 663, + "column": 32 }, "end": { - "line": 672, - "column": 31 + "line": 663, + "column": 33 } } }, { "type": { - "label": "}", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21587, - "end": 21588, + "value": "this", + "start": 21363, + "end": 21367, "loc": { "start": { - "line": 673, - "column": 6 + "line": 664, + "column": 8 }, "end": { - "line": 673, - "column": 7 + "line": 664, + "column": 12 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -148951,26 +149311,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21593, - "end": 21594, + "start": 21367, + "end": 21368, "loc": { "start": { - "line": 674, - "column": 4 + "line": 664, + "column": 12 }, "end": { - "line": 674, - "column": 5 + "line": 664, + "column": 13 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -148978,32 +149339,43 @@ "postfix": false, "binop": null }, - "start": 21597, - "end": 21598, + "value": "innerRecognizer", + "start": 21368, + "end": 21383, "loc": { "start": { - "line": 675, - "column": 2 + "line": 664, + "column": 13 }, "end": { - "line": 675, - "column": 3 + "line": 664, + "column": 28 } } }, { - "type": "CommentBlock", - "value": "*\n * Get current recognizer\n * @return {Recognizer}\n ", - "start": 21602, - "end": 21665, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 21383, + "end": 21384, "loc": { "start": { - "line": 677, - "column": 2 + "line": 664, + "column": 28 }, "end": { - "line": 680, - "column": 5 + "line": 664, + "column": 29 } } }, @@ -149019,24 +149391,24 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 21668, - "end": 21671, + "value": "close", + "start": 21384, + "end": 21389, "loc": { "start": { - "line": 681, - "column": 2 + "line": 664, + "column": 29 }, "end": { - "line": 681, - "column": 5 + "line": 664, + "column": 34 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -149045,48 +149417,50 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 21672, - "end": 21682, + "start": 21389, + "end": 21390, "loc": { "start": { - "line": 681, - "column": 6 + "line": 664, + "column": 34 }, "end": { - "line": 681, - "column": 16 + "line": 664, + "column": 35 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21682, - "end": 21683, + "value": "this", + "start": 21390, + "end": 21394, "loc": { "start": { - "line": 681, - "column": 16 + "line": 664, + "column": 35 }, "end": { - "line": 681, - "column": 17 + "line": 664, + "column": 39 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -149094,25 +149468,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21683, - "end": 21684, + "start": 21394, + "end": 21395, "loc": { "start": { - "line": 681, - "column": 17 + "line": 664, + "column": 39 }, "end": { - "line": 681, - "column": 18 + "line": 664, + "column": 40 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -149121,23 +149496,23 @@ "postfix": false, "binop": null }, - "start": 21685, - "end": 21686, + "value": "recognizerContext", + "start": 21395, + "end": 21412, "loc": { "start": { - "line": 681, - "column": 19 + "line": 664, + "column": 40 }, "end": { - "line": 681, - "column": 20 + "line": 664, + "column": 57 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -149148,17 +149523,16 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 21691, - "end": 21697, + "start": 21412, + "end": 21413, "loc": { "start": { - "line": 682, - "column": 4 + "line": 664, + "column": 57 }, "end": { - "line": 682, - "column": 10 + "line": 664, + "column": 58 } } }, @@ -149177,16 +149551,16 @@ "updateContext": null }, "value": "this", - "start": 21698, - "end": 21702, + "start": 21414, + "end": 21418, "loc": { "start": { - "line": 682, - "column": 11 + "line": 664, + "column": 59 }, "end": { - "line": 682, - "column": 15 + "line": 664, + "column": 63 } } }, @@ -149203,16 +149577,16 @@ "binop": null, "updateContext": null }, - "start": 21702, - "end": 21703, + "start": 21418, + "end": 21419, "loc": { "start": { - "line": 682, - "column": 15 + "line": 664, + "column": 63 }, "end": { - "line": 682, - "column": 16 + "line": 664, + "column": 64 } } }, @@ -149228,23 +149602,23 @@ "postfix": false, "binop": null }, - "value": "innerRecognizer", - "start": 21703, - "end": 21718, + "value": "model", + "start": 21419, + "end": 21424, "loc": { "start": { - "line": 682, - "column": 16 + "line": 664, + "column": 64 }, "end": { - "line": 682, - "column": 31 + "line": 664, + "column": 69 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -149255,24 +149629,24 @@ "binop": null, "updateContext": null }, - "start": 21718, - "end": 21719, + "start": 21424, + "end": 21425, "loc": { "start": { - "line": 682, - "column": 31 + "line": 664, + "column": 69 }, "end": { - "line": 682, - "column": 32 + "line": 664, + "column": 70 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -149280,58 +149654,68 @@ "postfix": false, "binop": null }, - "start": 21722, - "end": 21723, + "start": 21426, + "end": 21427, "loc": { "start": { - "line": 683, - "column": 2 + "line": 664, + "column": 71 }, "end": { - "line": 683, - "column": 3 + "line": 664, + "column": 72 } } }, { - "type": "CommentBlock", - "value": "*\n * Set the current renderer\n * @private\n * @param {Renderer} renderer\n ", - "start": 21727, - "end": 21812, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "err", + "start": 21427, + "end": 21430, "loc": { "start": { - "line": 685, - "column": 2 + "line": 664, + "column": 72 }, "end": { - "line": 689, - "column": 5 + "line": 664, + "column": 75 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "set", - "start": 21815, - "end": 21818, + "start": 21430, + "end": 21431, "loc": { "start": { - "line": 690, - "column": 2 + "line": 664, + "column": 75 }, "end": { - "line": 690, - "column": 5 + "line": 664, + "column": 76 } } }, @@ -149347,76 +149731,77 @@ "postfix": false, "binop": null }, - "value": "renderer", - "start": 21819, - "end": 21827, + "value": "res", + "start": 21432, + "end": 21435, "loc": { "start": { - "line": 690, - "column": 6 + "line": 664, + "column": 77 }, "end": { - "line": 690, - "column": 14 + "line": 664, + "column": 80 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21827, - "end": 21828, + "start": 21435, + "end": 21436, "loc": { "start": { - "line": 690, - "column": 14 + "line": 664, + "column": 80 }, "end": { - "line": 690, - "column": 15 + "line": 664, + "column": 81 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "...", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "renderer", - "start": 21828, - "end": 21836, + "start": 21437, + "end": 21440, "loc": { "start": { - "line": 690, - "column": 15 + "line": 664, + "column": 82 }, "end": { - "line": 690, - "column": 23 + "line": 664, + "column": 85 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -149424,24 +149809,25 @@ "postfix": false, "binop": null }, - "start": 21836, - "end": 21837, + "value": "types", + "start": 21440, + "end": 21445, "loc": { "start": { - "line": 690, - "column": 23 + "line": 664, + "column": 85 }, "end": { - "line": 690, - "column": 24 + "line": 664, + "column": 90 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -149449,24 +149835,23 @@ "postfix": false, "binop": null }, - "start": 21838, - "end": 21839, + "start": 21445, + "end": 21446, "loc": { "start": { - "line": 690, - "column": 25 + "line": 664, + "column": 90 }, "end": { - "line": 690, - "column": 26 + "line": 664, + "column": 91 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -149476,23 +149861,22 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 21844, - "end": 21846, + "start": 21447, + "end": 21449, "loc": { "start": { - "line": 691, - "column": 4 + "line": 664, + "column": 92 }, "end": { - "line": 691, - "column": 6 + "line": 664, + "column": 94 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -149502,16 +149886,16 @@ "postfix": false, "binop": null }, - "start": 21847, - "end": 21848, + "start": 21450, + "end": 21451, "loc": { "start": { - "line": 691, - "column": 7 + "line": 664, + "column": 95 }, "end": { - "line": 691, - "column": 8 + "line": 664, + "column": 96 } } }, @@ -149527,23 +149911,23 @@ "postfix": false, "binop": null }, - "value": "renderer", - "start": 21848, - "end": 21856, + "value": "logger", + "start": 21462, + "end": 21468, "loc": { "start": { - "line": 691, - "column": 8 + "line": 665, + "column": 10 }, "end": { - "line": 691, + "line": 665, "column": 16 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -149551,25 +149935,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21856, - "end": 21857, + "start": 21468, + "end": 21469, "loc": { "start": { - "line": 691, + "line": 665, "column": 16 }, "end": { - "line": 691, + "line": 665, "column": 17 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -149578,44 +149963,17 @@ "postfix": false, "binop": null }, - "start": 21858, - "end": 21859, - "loc": { - "start": { - "line": 691, - "column": 18 - }, - "end": { - "line": 691, - "column": 19 - } - } - }, - { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 21866, - "end": 21868, + "value": "info", + "start": 21469, + "end": 21473, "loc": { "start": { - "line": 692, - "column": 6 + "line": 665, + "column": 17 }, "end": { - "line": 692, - "column": 8 + "line": 665, + "column": 21 } } }, @@ -149631,23 +149989,22 @@ "postfix": false, "binop": null }, - "start": 21869, - "end": 21870, + "start": 21473, + "end": 21474, "loc": { "start": { - "line": 692, - "column": 9 + "line": 665, + "column": 21 }, "end": { - "line": 692, - "column": 10 + "line": 665, + "column": 22 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -149658,23 +150015,23 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 21870, - "end": 21874, + "value": "Recognizer closed", + "start": 21474, + "end": 21493, "loc": { "start": { - "line": 692, - "column": 10 + "line": 665, + "column": 22 }, "end": { - "line": 692, - "column": 14 + "line": 665, + "column": 41 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -149682,53 +150039,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 21874, - "end": 21875, + "start": 21493, + "end": 21494, "loc": { "start": { - "line": 692, - "column": 14 + "line": 665, + "column": 41 }, "end": { - "line": 692, - "column": 15 + "line": 665, + "column": 42 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "innerRenderer", - "start": 21875, - "end": 21888, + "start": 21494, + "end": 21495, "loc": { "start": { - "line": 692, - "column": 15 + "line": 665, + "column": 42 }, "end": { - "line": 692, - "column": 28 + "line": 665, + "column": 43 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -149736,22 +150092,23 @@ "postfix": false, "binop": null }, - "start": 21888, - "end": 21889, + "value": "recognizerCallback", + "start": 21506, + "end": 21524, "loc": { "start": { - "line": 692, - "column": 28 + "line": 666, + "column": 10 }, "end": { - "line": 692, - "column": 29 + "line": 666, + "column": 28 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -149761,16 +150118,16 @@ "postfix": false, "binop": null }, - "start": 21890, - "end": 21891, + "start": 21524, + "end": 21525, "loc": { "start": { - "line": 692, - "column": 30 + "line": 666, + "column": 28 }, "end": { - "line": 692, - "column": 31 + "line": 666, + "column": 29 } } }, @@ -149789,23 +150146,23 @@ "updateContext": null }, "value": "this", - "start": 21900, - "end": 21904, + "start": 21525, + "end": 21529, "loc": { "start": { - "line": 693, - "column": 8 + "line": 666, + "column": 29 }, "end": { - "line": 693, - "column": 12 + "line": 666, + "column": 33 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -149815,16 +150172,16 @@ "binop": null, "updateContext": null }, - "start": 21904, - "end": 21905, + "start": 21529, + "end": 21530, "loc": { "start": { - "line": 693, - "column": 12 + "line": 666, + "column": 33 }, "end": { - "line": 693, - "column": 13 + "line": 666, + "column": 34 } } }, @@ -149840,24 +150197,24 @@ "postfix": false, "binop": null }, - "value": "innerRenderer", - "start": 21905, - "end": 21918, + "value": "err", + "start": 21531, + "end": 21534, "loc": { "start": { - "line": 693, - "column": 13 + "line": 666, + "column": 35 }, "end": { - "line": 693, - "column": 26 + "line": 666, + "column": 38 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -149867,16 +150224,16 @@ "binop": null, "updateContext": null }, - "start": 21918, - "end": 21919, + "start": 21534, + "end": 21535, "loc": { "start": { - "line": 693, - "column": 26 + "line": 666, + "column": 38 }, "end": { - "line": 693, - "column": 27 + "line": 666, + "column": 39 } } }, @@ -149892,51 +150249,51 @@ "postfix": false, "binop": null }, - "value": "detach", - "start": 21919, - "end": 21925, + "value": "res", + "start": 21536, + "end": 21539, "loc": { "start": { - "line": 693, - "column": 27 + "line": 666, + "column": 40 }, "end": { - "line": 693, - "column": 33 + "line": 666, + "column": 43 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21925, - "end": 21926, + "start": 21539, + "end": 21540, "loc": { "start": { - "line": 693, - "column": 33 + "line": 666, + "column": 43 }, "end": { - "line": 693, - "column": 34 + "line": 666, + "column": 44 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": "...", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -149945,51 +150302,50 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 21926, - "end": 21930, + "start": 21541, + "end": 21544, "loc": { "start": { - "line": 693, - "column": 34 + "line": 666, + "column": 45 }, "end": { - "line": 693, - "column": 38 + "line": 666, + "column": 48 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 21930, - "end": 21931, + "value": "types", + "start": 21544, + "end": 21549, "loc": { "start": { - "line": 693, - "column": 38 + "line": 666, + "column": 48 }, "end": { - "line": 693, - "column": 39 + "line": 666, + "column": 53 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -149997,23 +150353,22 @@ "postfix": false, "binop": null }, - "value": "domElement", - "start": 21931, - "end": 21941, + "start": 21549, + "end": 21550, "loc": { "start": { - "line": 693, - "column": 39 + "line": 666, + "column": 53 }, "end": { - "line": 693, - "column": 49 + "line": 666, + "column": 54 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -150024,23 +150379,22 @@ "binop": null, "updateContext": null }, - "start": 21941, - "end": 21942, + "start": 21550, + "end": 21551, "loc": { "start": { - "line": 693, - "column": 49 + "line": 666, + "column": 54 }, "end": { - "line": 693, - "column": 50 + "line": 666, + "column": 55 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -150048,46 +150402,44 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 21943, - "end": 21947, + "value": "initialize", + "start": 21562, + "end": 21572, "loc": { "start": { - "line": 693, - "column": 51 + "line": 667, + "column": 10 }, "end": { - "line": 693, - "column": 55 + "line": 667, + "column": 20 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 21947, - "end": 21948, + "start": 21572, + "end": 21573, "loc": { "start": { - "line": 693, - "column": 55 + "line": 667, + "column": 20 }, "end": { - "line": 693, - "column": 56 + "line": 667, + "column": 21 } } }, @@ -150103,23 +150455,23 @@ "postfix": false, "binop": null }, - "value": "rendererContext", - "start": 21948, - "end": 21963, + "value": "InkModel", + "start": 21573, + "end": 21581, "loc": { "start": { - "line": 693, - "column": 56 + "line": 667, + "column": 21 }, "end": { - "line": 693, - "column": 71 + "line": 667, + "column": 29 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -150127,52 +150479,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 21963, - "end": 21964, + "start": 21581, + "end": 21582, "loc": { "start": { - "line": 693, - "column": 71 + "line": 667, + "column": 29 }, "end": { - "line": 693, - "column": 72 + "line": 667, + "column": 30 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 21964, - "end": 21965, + "value": "clearModel", + "start": 21582, + "end": 21592, "loc": { "start": { - "line": 693, - "column": 72 + "line": 667, + "column": 30 }, "end": { - "line": 693, - "column": 73 + "line": 667, + "column": 40 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -150180,39 +150533,22 @@ "postfix": false, "binop": null }, - "start": 21972, - "end": 21973, - "loc": { - "start": { - "line": 694, - "column": 6 - }, - "end": { - "line": 694, - "column": 7 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * @private\n * @type {Renderer}\n ", - "start": 21981, - "end": 22038, + "start": 21592, + "end": 21593, "loc": { "start": { - "line": 696, - "column": 6 + "line": 667, + "column": 40 }, "end": { - "line": 699, - "column": 9 + "line": 667, + "column": 41 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -150220,26 +150556,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 22045, - "end": 22049, + "value": "res", + "start": 21593, + "end": 21596, "loc": { "start": { - "line": 700, - "column": 6 + "line": 667, + "column": 41 }, "end": { - "line": 700, - "column": 10 + "line": 667, + "column": 44 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -150247,27 +150582,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 22049, - "end": 22050, + "start": 21596, + "end": 21597, "loc": { "start": { - "line": 700, - "column": 10 + "line": 667, + "column": 44 }, "end": { - "line": 700, - "column": 11 + "line": 667, + "column": 45 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -150275,52 +150609,50 @@ "postfix": false, "binop": null }, - "value": "innerRenderer", - "start": 22050, - "end": 22063, + "start": 21597, + "end": 21598, "loc": { "start": { - "line": 700, - "column": 11 + "line": 667, + "column": 45 }, "end": { - "line": 700, - "column": 24 + "line": 667, + "column": 46 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 22064, - "end": 22065, + "start": 21598, + "end": 21599, "loc": { "start": { - "line": 700, - "column": 25 + "line": 667, + "column": 46 }, "end": { - "line": 700, - "column": 26 + "line": 667, + "column": 47 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -150328,51 +150660,48 @@ "postfix": false, "binop": null }, - "value": "renderer", - "start": 22066, - "end": 22074, + "start": 21608, + "end": 21609, "loc": { "start": { - "line": 700, - "column": 27 + "line": 668, + "column": 8 }, "end": { - "line": 700, - "column": 35 + "line": 668, + "column": 9 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 22074, - "end": 22075, + "start": 21609, + "end": 21610, "loc": { "start": { - "line": 700, - "column": 35 + "line": 668, + "column": 9 }, "end": { - "line": 700, - "column": 36 + "line": 668, + "column": 10 } } }, { "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -150382,25 +150711,24 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 22082, - "end": 22084, + "start": 21610, + "end": 21611, "loc": { "start": { - "line": 701, - "column": 6 + "line": 668, + "column": 10 }, "end": { - "line": 701, - "column": 8 + "line": 668, + "column": 11 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -150408,25 +150736,25 @@ "postfix": false, "binop": null }, - "start": 22085, - "end": 22086, + "start": 21618, + "end": 21619, "loc": { "start": { - "line": 701, - "column": 9 + "line": 669, + "column": 6 }, "end": { - "line": 701, - "column": 10 + "line": 669, + "column": 7 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -150435,49 +150763,65 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 22086, - "end": 22090, + "value": "else", + "start": 21620, + "end": 21624, "loc": { "start": { - "line": 701, - "column": 10 + "line": 669, + "column": 8 }, "end": { - "line": 701, - "column": 14 + "line": 669, + "column": 12 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 22090, - "end": 22091, + "start": 21625, + "end": 21626, "loc": { "start": { - "line": 701, + "line": 669, + "column": 13 + }, + "end": { + "line": 669, "column": 14 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Current model\n * @type {Model}\n ", + "start": 21635, + "end": 21700, + "loc": { + "start": { + "line": 670, + "column": 8 }, "end": { - "line": 701, - "column": 15 + "line": 673, + "column": 11 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -150485,25 +150829,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "innerRenderer", - "start": 22091, - "end": 22104, + "value": "this", + "start": 21709, + "end": 21713, "loc": { "start": { - "line": 701, - "column": 15 + "line": 674, + "column": 8 }, "end": { - "line": 701, - "column": 28 + "line": 674, + "column": 12 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -150511,25 +150856,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 22104, - "end": 22105, + "start": 21713, + "end": 21714, "loc": { "start": { - "line": 701, - "column": 28 + "line": 674, + "column": 12 }, "end": { - "line": 701, - "column": 29 + "line": 674, + "column": 13 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -150538,39 +150884,50 @@ "postfix": false, "binop": null }, - "start": 22106, - "end": 22107, + "value": "model", + "start": 21714, + "end": 21719, "loc": { "start": { - "line": 701, - "column": 30 + "line": 674, + "column": 13 }, "end": { - "line": 701, - "column": 31 + "line": 674, + "column": 18 } } }, { - "type": "CommentBlock", - "value": "*\n * Current rendering context\n * @type {Object}\n ", - "start": 22116, - "end": 22194, + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 21720, + "end": 21721, "loc": { "start": { - "line": 702, - "column": 8 + "line": 674, + "column": 19 }, "end": { - "line": 705, - "column": 11 + "line": 674, + "column": 20 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -150578,20 +150935,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 22203, - "end": 22207, + "value": "InkModel", + "start": 21722, + "end": 21730, "loc": { "start": { - "line": 706, - "column": 8 + "line": 674, + "column": 21 }, "end": { - "line": 706, - "column": 12 + "line": 674, + "column": 29 } } }, @@ -150608,16 +150964,16 @@ "binop": null, "updateContext": null }, - "start": 22207, - "end": 22208, + "start": 21730, + "end": 21731, "loc": { "start": { - "line": 706, - "column": 12 + "line": 674, + "column": 29 }, "end": { - "line": 706, - "column": 13 + "line": 674, + "column": 30 } } }, @@ -150633,44 +150989,42 @@ "postfix": false, "binop": null }, - "value": "rendererContext", - "start": 22208, - "end": 22223, + "value": "createModel", + "start": 21731, + "end": 21742, "loc": { "start": { - "line": 706, - "column": 13 + "line": 674, + "column": 30 }, "end": { - "line": 706, - "column": 28 + "line": 674, + "column": 41 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 22224, - "end": 22225, + "start": 21742, + "end": 21743, "loc": { "start": { - "line": 706, - "column": 29 + "line": 674, + "column": 41 }, "end": { - "line": 706, - "column": 30 + "line": 674, + "column": 42 } } }, @@ -150689,16 +151043,16 @@ "updateContext": null }, "value": "this", - "start": 22226, - "end": 22230, + "start": 21743, + "end": 21747, "loc": { "start": { - "line": 706, - "column": 31 + "line": 674, + "column": 42 }, "end": { - "line": 706, - "column": 35 + "line": 674, + "column": 46 } } }, @@ -150715,16 +151069,16 @@ "binop": null, "updateContext": null }, - "start": 22230, - "end": 22231, + "start": 21747, + "end": 21748, "loc": { "start": { - "line": 706, - "column": 35 + "line": 674, + "column": 46 }, "end": { - "line": 706, - "column": 36 + "line": 674, + "column": 47 } } }, @@ -150740,23 +151094,23 @@ "postfix": false, "binop": null }, - "value": "innerRenderer", - "start": 22231, - "end": 22244, + "value": "configuration", + "start": 21748, + "end": 21761, "loc": { "start": { - "line": 706, - "column": 36 + "line": 674, + "column": 47 }, "end": { - "line": 706, - "column": 49 + "line": 674, + "column": 60 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -150764,19 +151118,60 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "start": 21761, + "end": 21762, + "loc": { + "start": { + "line": 674, + "column": 60 + }, + "end": { + "line": 674, + "column": 61 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "start": 22244, - "end": 22245, + "start": 21762, + "end": 21763, "loc": { "start": { - "line": 706, - "column": 49 + "line": 674, + "column": 61 }, "end": { - "line": 706, - "column": 50 + "line": 674, + "column": 62 + } + } + }, + { + "type": "CommentLine", + "value": " INFO: Recognizer needs model to be initialized", + "start": 21773, + "end": 21822, + "loc": { + "start": { + "line": 676, + "column": 8 + }, + "end": { + "line": 676, + "column": 57 } } }, @@ -150792,17 +151187,17 @@ "postfix": false, "binop": null }, - "value": "attach", - "start": 22245, - "end": 22251, + "value": "initialize", + "start": 21831, + "end": 21841, "loc": { "start": { - "line": 706, - "column": 50 + "line": 677, + "column": 8 }, "end": { - "line": 706, - "column": 56 + "line": 677, + "column": 18 } } }, @@ -150818,16 +151213,16 @@ "postfix": false, "binop": null }, - "start": 22251, - "end": 22252, + "start": 21841, + "end": 21842, "loc": { "start": { - "line": 706, - "column": 56 + "line": 677, + "column": 18 }, "end": { - "line": 706, - "column": 57 + "line": 677, + "column": 19 } } }, @@ -150846,16 +151241,16 @@ "updateContext": null }, "value": "this", - "start": 22252, - "end": 22256, + "start": 21842, + "end": 21846, "loc": { "start": { - "line": 706, - "column": 57 + "line": 677, + "column": 19 }, "end": { - "line": 706, - "column": 61 + "line": 677, + "column": 23 } } }, @@ -150872,16 +151267,16 @@ "binop": null, "updateContext": null }, - "start": 22256, - "end": 22257, + "start": 21846, + "end": 21847, "loc": { "start": { - "line": 706, - "column": 61 + "line": 677, + "column": 23 }, "end": { - "line": 706, - "column": 62 + "line": 677, + "column": 24 } } }, @@ -150897,52 +151292,50 @@ "postfix": false, "binop": null }, - "value": "domElement", - "start": 22257, - "end": 22267, + "value": "model", + "start": 21847, + "end": 21852, "loc": { "start": { - "line": 706, - "column": 62 + "line": 677, + "column": 24 }, "end": { - "line": 706, - "column": 72 + "line": 677, + "column": 29 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 22267, - "end": 22268, + "start": 21852, + "end": 21853, "loc": { "start": { - "line": 706, - "column": 72 + "line": 677, + "column": 29 }, "end": { - "line": 706, - "column": 73 + "line": 677, + "column": 30 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -150951,23 +151344,22 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 22269, - "end": 22273, + "start": 21853, + "end": 21854, "loc": { "start": { - "line": 706, - "column": 74 + "line": 677, + "column": 30 }, "end": { - "line": 706, - "column": 78 + "line": 677, + "column": 31 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -150975,27 +151367,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 22273, - "end": 22274, + "start": 21861, + "end": 21862, "loc": { "start": { - "line": 706, - "column": 78 + "line": 678, + "column": 6 }, "end": { - "line": 706, - "column": 79 + "line": 678, + "column": 7 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -151003,23 +151394,22 @@ "postfix": false, "binop": null }, - "value": "configuration", - "start": 22274, - "end": 22287, + "start": 21867, + "end": 21868, "loc": { "start": { - "line": 706, - "column": 79 + "line": 679, + "column": 4 }, "end": { - "line": 706, - "column": 92 + "line": 679, + "column": 5 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -151027,19 +151417,34 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 22287, - "end": 22288, + "start": 21871, + "end": 21872, "loc": { "start": { - "line": 706, - "column": 92 + "line": 680, + "column": 2 }, "end": { - "line": 706, - "column": 93 + "line": 680, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get current recognizer\n * @return {Recognizer}\n ", + "start": 21876, + "end": 21939, + "loc": { + "start": { + "line": 682, + "column": 2 + }, + "end": { + "line": 685, + "column": 5 } } }, @@ -151055,50 +151460,50 @@ "postfix": false, "binop": null }, - "value": "renderingParams", - "start": 22288, - "end": 22303, + "value": "get", + "start": 21942, + "end": 21945, "loc": { "start": { - "line": 706, - "column": 93 + "line": 686, + "column": 2 }, "end": { - "line": 706, - "column": 108 + "line": 686, + "column": 5 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 22303, - "end": 22304, + "value": "recognizer", + "start": 21946, + "end": 21956, "loc": { "start": { - "line": 706, - "column": 108 + "line": 686, + "column": 6 }, "end": { - "line": 706, - "column": 109 + "line": 686, + "column": 16 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -151107,78 +151512,74 @@ "postfix": false, "binop": null }, - "value": "minHeight", - "start": 22304, - "end": 22313, + "start": 21956, + "end": 21957, "loc": { "start": { - "line": 706, - "column": 109 + "line": 686, + "column": 16 }, "end": { - "line": 706, - "column": 118 + "line": 686, + "column": 17 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 22313, - "end": 22314, + "start": 21957, + "end": 21958, "loc": { "start": { - "line": 706, - "column": 118 + "line": 686, + "column": 17 }, "end": { - "line": 706, - "column": 119 + "line": 686, + "column": 18 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 22315, - "end": 22319, + "start": 21959, + "end": 21960, "loc": { "start": { - "line": 706, - "column": 120 + "line": 686, + "column": 19 }, "end": { - "line": 706, - "column": 124 + "line": 686, + "column": 20 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "return", + "keyword": "return", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -151188,22 +151589,24 @@ "binop": null, "updateContext": null }, - "start": 22319, - "end": 22320, + "value": "return", + "start": 21965, + "end": 21971, "loc": { "start": { - "line": 706, - "column": 124 + "line": 687, + "column": 4 }, "end": { - "line": 706, - "column": 125 + "line": 687, + "column": 10 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -151211,19 +151614,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "configuration", - "start": 22320, - "end": 22333, + "value": "this", + "start": 21972, + "end": 21976, "loc": { "start": { - "line": 706, - "column": 125 + "line": 687, + "column": 11 }, "end": { - "line": 706, - "column": 138 + "line": 687, + "column": 15 } } }, @@ -151240,16 +151644,16 @@ "binop": null, "updateContext": null }, - "start": 22333, - "end": 22334, + "start": 21976, + "end": 21977, "loc": { "start": { - "line": 706, - "column": 138 + "line": 687, + "column": 15 }, "end": { - "line": 706, - "column": 139 + "line": 687, + "column": 16 } } }, @@ -151265,24 +151669,24 @@ "postfix": false, "binop": null }, - "value": "renderingParams", - "start": 22334, - "end": 22349, + "value": "innerRecognizer", + "start": 21977, + "end": 21992, "loc": { "start": { - "line": 706, - "column": 139 + "line": 687, + "column": 16 }, "end": { - "line": 706, - "column": 154 + "line": 687, + "column": 31 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -151292,24 +151696,24 @@ "binop": null, "updateContext": null }, - "start": 22349, - "end": 22350, + "start": 21992, + "end": 21993, "loc": { "start": { - "line": 706, - "column": 154 + "line": 687, + "column": 31 }, "end": { - "line": 706, - "column": 155 + "line": 687, + "column": 32 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -151317,25 +151721,40 @@ "postfix": false, "binop": null }, - "value": "minWidth", - "start": 22350, - "end": 22358, + "start": 21996, + "end": 21997, "loc": { "start": { - "line": 706, - "column": 155 + "line": 688, + "column": 2 }, "end": { - "line": 706, - "column": 163 + "line": 688, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Set the current renderer\n * @private\n * @param {Renderer} renderer\n ", + "start": 22001, + "end": 22086, + "loc": { + "start": { + "line": 690, + "column": 2 + }, + "end": { + "line": 694, + "column": 5 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -151343,50 +151762,51 @@ "postfix": false, "binop": null }, - "start": 22358, - "end": 22359, + "value": "set", + "start": 22089, + "end": 22092, "loc": { "start": { - "line": 706, - "column": 163 + "line": 695, + "column": 2 }, "end": { - "line": 706, - "column": 164 + "line": 695, + "column": 5 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 22359, - "end": 22360, + "value": "renderer", + "start": 22093, + "end": 22101, "loc": { "start": { - "line": 706, - "column": 164 + "line": 695, + "column": 6 }, "end": { - "line": 706, - "column": 165 + "line": 695, + "column": 14 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -151394,24 +151814,24 @@ "postfix": false, "binop": null }, - "start": 22367, - "end": 22368, + "start": 22101, + "end": 22102, "loc": { "start": { - "line": 707, - "column": 6 + "line": 695, + "column": 14 }, "end": { - "line": 707, - "column": 7 + "line": 695, + "column": 15 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -151419,22 +151839,23 @@ "postfix": false, "binop": null }, - "start": 22373, - "end": 22374, + "value": "renderer", + "start": 22102, + "end": 22110, "loc": { "start": { - "line": 708, - "column": 4 + "line": 695, + "column": 15 }, "end": { - "line": 708, - "column": 5 + "line": 695, + "column": 23 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -151444,65 +151865,76 @@ "postfix": false, "binop": null }, - "start": 22377, - "end": 22378, + "start": 22110, + "end": 22111, "loc": { "start": { - "line": 709, - "column": 2 + "line": 695, + "column": 23 }, "end": { - "line": 709, - "column": 3 + "line": 695, + "column": 24 } } }, { - "type": "CommentBlock", - "value": "*\n * Get current renderer\n * @return {Renderer}\n ", - "start": 22382, - "end": 22441, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 22112, + "end": 22113, "loc": { "start": { - "line": 711, - "column": 2 + "line": 695, + "column": 25 }, "end": { - "line": 714, - "column": 5 + "line": 695, + "column": 26 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "get", - "start": 22444, - "end": 22447, + "value": "if", + "start": 22118, + "end": 22120, "loc": { "start": { - "line": 715, - "column": 2 + "line": 696, + "column": 4 }, "end": { - "line": 715, - "column": 5 + "line": 696, + "column": 6 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -151511,24 +151943,23 @@ "postfix": false, "binop": null }, - "value": "renderer", - "start": 22448, - "end": 22456, + "start": 22121, + "end": 22122, "loc": { "start": { - "line": 715, - "column": 6 + "line": 696, + "column": 7 }, "end": { - "line": 715, - "column": 14 + "line": 696, + "column": 8 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -151537,16 +151968,17 @@ "postfix": false, "binop": null }, - "start": 22456, - "end": 22457, + "value": "renderer", + "start": 22122, + "end": 22130, "loc": { "start": { - "line": 715, - "column": 14 + "line": 696, + "column": 8 }, "end": { - "line": 715, - "column": 15 + "line": 696, + "column": 16 } } }, @@ -151562,16 +151994,16 @@ "postfix": false, "binop": null }, - "start": 22457, - "end": 22458, + "start": 22130, + "end": 22131, "loc": { "start": { - "line": 715, - "column": 15 + "line": 696, + "column": 16 }, "end": { - "line": 715, - "column": 16 + "line": 696, + "column": 17 } } }, @@ -151587,24 +152019,24 @@ "postfix": false, "binop": null }, - "start": 22459, - "end": 22460, + "start": 22132, + "end": 22133, "loc": { "start": { - "line": 715, - "column": 17 + "line": 696, + "column": 18 }, "end": { - "line": 715, - "column": 18 + "line": 696, + "column": 19 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -151614,16 +152046,41 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 22465, - "end": 22471, + "value": "if", + "start": 22140, + "end": 22142, "loc": { "start": { - "line": 716, - "column": 4 + "line": 697, + "column": 6 }, "end": { - "line": 716, + "line": 697, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 22143, + "end": 22144, + "loc": { + "start": { + "line": 697, + "column": 9 + }, + "end": { + "line": 697, "column": 10 } } @@ -151643,16 +152100,16 @@ "updateContext": null }, "value": "this", - "start": 22472, - "end": 22476, + "start": 22144, + "end": 22148, "loc": { "start": { - "line": 716, - "column": 11 + "line": 697, + "column": 10 }, "end": { - "line": 716, - "column": 15 + "line": 697, + "column": 14 } } }, @@ -151669,16 +152126,16 @@ "binop": null, "updateContext": null }, - "start": 22476, - "end": 22477, + "start": 22148, + "end": 22149, "loc": { "start": { - "line": 716, - "column": 15 + "line": 697, + "column": 14 }, "end": { - "line": 716, - "column": 16 + "line": 697, + "column": 15 } } }, @@ -151695,50 +152152,49 @@ "binop": null }, "value": "innerRenderer", - "start": 22477, - "end": 22490, + "start": 22149, + "end": 22162, "loc": { "start": { - "line": 716, - "column": 16 + "line": 697, + "column": 15 }, "end": { - "line": 716, - "column": 29 + "line": 697, + "column": 28 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 22490, - "end": 22491, + "start": 22162, + "end": 22163, "loc": { "start": { - "line": 716, - "column": 29 + "line": 697, + "column": 28 }, "end": { - "line": 716, - "column": 30 + "line": 697, + "column": 29 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -151746,38 +152202,23 @@ "postfix": false, "binop": null }, - "start": 22494, - "end": 22495, - "loc": { - "start": { - "line": 717, - "column": 2 - }, - "end": { - "line": 717, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get current grabber\n * @return {Grabber}\n ", - "start": 22499, - "end": 22556, + "start": 22164, + "end": 22165, "loc": { "start": { - "line": 719, - "column": 2 + "line": 697, + "column": 30 }, "end": { - "line": 722, - "column": 5 + "line": 697, + "column": 31 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -151785,52 +152226,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "get", - "start": 22559, - "end": 22562, + "value": "this", + "start": 22174, + "end": 22178, "loc": { "start": { - "line": 723, - "column": 2 + "line": 698, + "column": 8 }, "end": { - "line": 723, - "column": 5 + "line": 698, + "column": 12 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "grabber", - "start": 22563, - "end": 22570, + "start": 22178, + "end": 22179, "loc": { "start": { - "line": 723, - "column": 6 + "line": 698, + "column": 12 }, "end": { - "line": 723, + "line": 698, "column": 13 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -151839,22 +152281,23 @@ "postfix": false, "binop": null }, - "start": 22570, - "end": 22571, + "value": "innerRenderer", + "start": 22179, + "end": 22192, "loc": { "start": { - "line": 723, + "line": 698, "column": 13 }, "end": { - "line": 723, - "column": 14 + "line": 698, + "column": 26 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -151862,25 +152305,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 22571, - "end": 22572, + "start": 22192, + "end": 22193, "loc": { "start": { - "line": 723, - "column": 14 + "line": 698, + "column": 26 }, "end": { - "line": 723, - "column": 15 + "line": 698, + "column": 27 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -151889,44 +152333,42 @@ "postfix": false, "binop": null }, - "start": 22573, - "end": 22574, + "value": "detach", + "start": 22193, + "end": 22199, "loc": { "start": { - "line": 723, - "column": 16 + "line": 698, + "column": 27 }, "end": { - "line": 723, - "column": 17 + "line": 698, + "column": 33 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 22579, - "end": 22585, + "start": 22199, + "end": 22200, "loc": { "start": { - "line": 724, - "column": 4 + "line": 698, + "column": 33 }, "end": { - "line": 724, - "column": 10 + "line": 698, + "column": 34 } } }, @@ -151945,16 +152387,16 @@ "updateContext": null }, "value": "this", - "start": 22586, - "end": 22590, + "start": 22200, + "end": 22204, "loc": { "start": { - "line": 724, - "column": 11 + "line": 698, + "column": 34 }, "end": { - "line": 724, - "column": 15 + "line": 698, + "column": 38 } } }, @@ -151971,16 +152413,16 @@ "binop": null, "updateContext": null }, - "start": 22590, - "end": 22591, + "start": 22204, + "end": 22205, "loc": { "start": { - "line": 724, - "column": 15 + "line": 698, + "column": 38 }, "end": { - "line": 724, - "column": 16 + "line": 698, + "column": 39 } } }, @@ -151996,23 +152438,23 @@ "postfix": false, "binop": null }, - "value": "behavior", - "start": 22591, - "end": 22599, + "value": "domElement", + "start": 22205, + "end": 22215, "loc": { "start": { - "line": 724, - "column": 16 + "line": 698, + "column": 39 }, "end": { - "line": 724, - "column": 24 + "line": 698, + "column": 49 } } }, { "type": { - "label": "?", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -152023,16 +152465,16 @@ "binop": null, "updateContext": null }, - "start": 22600, - "end": 22601, + "start": 22215, + "end": 22216, "loc": { "start": { - "line": 724, - "column": 25 + "line": 698, + "column": 49 }, "end": { - "line": 724, - "column": 26 + "line": 698, + "column": 50 } } }, @@ -152051,16 +152493,16 @@ "updateContext": null }, "value": "this", - "start": 22602, - "end": 22606, + "start": 22217, + "end": 22221, "loc": { "start": { - "line": 724, - "column": 27 + "line": 698, + "column": 51 }, "end": { - "line": 724, - "column": 31 + "line": 698, + "column": 55 } } }, @@ -152077,16 +152519,16 @@ "binop": null, "updateContext": null }, - "start": 22606, - "end": 22607, + "start": 22221, + "end": 22222, "loc": { "start": { - "line": 724, - "column": 31 + "line": 698, + "column": 55 }, "end": { - "line": 724, - "column": 32 + "line": 698, + "column": 56 } } }, @@ -152102,23 +152544,23 @@ "postfix": false, "binop": null }, - "value": "behavior", - "start": 22607, - "end": 22615, + "value": "rendererContext", + "start": 22222, + "end": 22237, "loc": { "start": { - "line": 724, - "column": 32 + "line": 698, + "column": 56 }, "end": { - "line": 724, - "column": 40 + "line": 698, + "column": 71 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -152126,105 +152568,94 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 22615, - "end": 22616, + "start": 22237, + "end": 22238, "loc": { "start": { - "line": 724, - "column": 40 + "line": 698, + "column": 71 }, "end": { - "line": 724, - "column": 41 + "line": 698, + "column": 72 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "grabber", - "start": 22616, - "end": 22623, + "start": 22238, + "end": 22239, "loc": { "start": { - "line": 724, - "column": 41 + "line": 698, + "column": 72 }, "end": { - "line": 724, - "column": 48 + "line": 698, + "column": 73 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 22624, - "end": 22625, + "start": 22246, + "end": 22247, "loc": { "start": { - "line": 724, - "column": 49 + "line": 699, + "column": 6 }, "end": { - "line": 724, - "column": 50 + "line": 699, + "column": 7 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "undefined", - "start": 22626, - "end": 22635, + "type": "CommentBlock", + "value": "*\n * @private\n * @type {Renderer}\n ", + "start": 22255, + "end": 22312, "loc": { "start": { - "line": 724, - "column": 51 + "line": 701, + "column": 6 }, "end": { - "line": 724, - "column": 60 + "line": 704, + "column": 9 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -152233,22 +152664,23 @@ "binop": null, "updateContext": null }, - "start": 22635, - "end": 22636, + "value": "this", + "start": 22319, + "end": 22323, "loc": { "start": { - "line": 724, - "column": 60 + "line": 705, + "column": 6 }, "end": { - "line": 724, - "column": 61 + "line": 705, + "column": 10 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -152256,34 +152688,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 22639, - "end": 22640, - "loc": { - "start": { - "line": 725, - "column": 2 - }, - "end": { - "line": 725, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get current stroker\n * @return {Stroker}\n ", - "start": 22644, - "end": 22701, + "start": 22323, + "end": 22324, "loc": { "start": { - "line": 727, - "column": 2 + "line": 705, + "column": 10 }, "end": { - "line": 730, - "column": 5 + "line": 705, + "column": 11 } } }, @@ -152299,50 +152716,51 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 22704, - "end": 22707, + "value": "innerRenderer", + "start": 22324, + "end": 22337, "loc": { "start": { - "line": 731, - "column": 2 + "line": 705, + "column": 11 }, "end": { - "line": 731, - "column": 5 + "line": 705, + "column": 24 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "stroker", - "start": 22708, - "end": 22715, + "value": "=", + "start": 22338, + "end": 22339, "loc": { "start": { - "line": 731, - "column": 6 + "line": 705, + "column": 25 }, "end": { - "line": 731, - "column": 13 + "line": 705, + "column": 26 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -152351,93 +152769,95 @@ "postfix": false, "binop": null }, - "start": 22715, - "end": 22716, + "value": "renderer", + "start": 22340, + "end": 22348, "loc": { "start": { - "line": 731, - "column": 13 + "line": 705, + "column": 27 }, "end": { - "line": 731, - "column": 14 + "line": 705, + "column": 35 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 22716, - "end": 22717, + "start": 22348, + "end": 22349, "loc": { "start": { - "line": 731, - "column": 14 + "line": 705, + "column": 35 }, "end": { - "line": 731, - "column": 15 + "line": 705, + "column": 36 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 22718, - "end": 22719, + "value": "if", + "start": 22356, + "end": 22358, "loc": { "start": { - "line": 731, - "column": 16 + "line": 706, + "column": 6 }, "end": { - "line": 731, - "column": 17 + "line": 706, + "column": 8 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 22724, - "end": 22730, + "start": 22359, + "end": 22360, "loc": { "start": { - "line": 732, - "column": 4 + "line": 706, + "column": 9 }, "end": { - "line": 732, + "line": 706, "column": 10 } } @@ -152457,16 +152877,16 @@ "updateContext": null }, "value": "this", - "start": 22731, - "end": 22735, + "start": 22360, + "end": 22364, "loc": { "start": { - "line": 732, - "column": 11 + "line": 706, + "column": 10 }, "end": { - "line": 732, - "column": 15 + "line": 706, + "column": 14 } } }, @@ -152483,16 +152903,16 @@ "binop": null, "updateContext": null }, - "start": 22735, - "end": 22736, + "start": 22364, + "end": 22365, "loc": { "start": { - "line": 732, - "column": 15 + "line": 706, + "column": 14 }, "end": { - "line": 732, - "column": 16 + "line": 706, + "column": 15 } } }, @@ -152508,103 +152928,90 @@ "postfix": false, "binop": null }, - "value": "behavior", - "start": 22736, - "end": 22744, + "value": "innerRenderer", + "start": 22365, + "end": 22378, "loc": { "start": { - "line": 732, - "column": 16 + "line": 706, + "column": 15 }, "end": { - "line": 732, - "column": 24 + "line": 706, + "column": 28 } } }, { "type": { - "label": "?", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 22745, - "end": 22746, + "start": 22378, + "end": 22379, "loc": { "start": { - "line": 732, - "column": 25 + "line": 706, + "column": 28 }, "end": { - "line": 732, - "column": 26 + "line": 706, + "column": 29 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 22747, - "end": 22751, + "start": 22380, + "end": 22381, "loc": { "start": { - "line": 732, - "column": 27 + "line": 706, + "column": 30 }, "end": { - "line": 732, + "line": 706, "column": 31 } } }, { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 22751, - "end": 22752, + "type": "CommentBlock", + "value": "*\n * Current rendering context\n * @type {Object}\n ", + "start": 22390, + "end": 22468, "loc": { "start": { - "line": 732, - "column": 31 + "line": 707, + "column": 8 }, "end": { - "line": 732, - "column": 32 + "line": 710, + "column": 11 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -152612,19 +153019,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "behavior", - "start": 22752, - "end": 22760, + "value": "this", + "start": 22477, + "end": 22481, "loc": { "start": { - "line": 732, - "column": 32 + "line": 711, + "column": 8 }, "end": { - "line": 732, - "column": 40 + "line": 711, + "column": 12 } } }, @@ -152641,16 +153049,16 @@ "binop": null, "updateContext": null }, - "start": 22760, - "end": 22761, + "start": 22481, + "end": 22482, "loc": { "start": { - "line": 732, - "column": 40 + "line": 711, + "column": 12 }, "end": { - "line": 732, - "column": 41 + "line": 711, + "column": 13 } } }, @@ -152666,49 +153074,51 @@ "postfix": false, "binop": null }, - "value": "stroker", - "start": 22761, - "end": 22768, + "value": "rendererContext", + "start": 22482, + "end": 22497, "loc": { "start": { - "line": 732, - "column": 41 + "line": 711, + "column": 13 }, "end": { - "line": 732, - "column": 48 + "line": 711, + "column": 28 } } }, { "type": { - "label": ":", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 22769, - "end": 22770, + "value": "=", + "start": 22498, + "end": 22499, "loc": { "start": { - "line": 732, - "column": 49 + "line": 711, + "column": 29 }, "end": { - "line": 732, - "column": 50 + "line": 711, + "column": 30 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -152716,26 +153126,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "undefined", - "start": 22771, - "end": 22780, + "value": "this", + "start": 22500, + "end": 22504, "loc": { "start": { - "line": 732, - "column": 51 + "line": 711, + "column": 31 }, "end": { - "line": 732, - "column": 60 + "line": 711, + "column": 35 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -152745,24 +153156,24 @@ "binop": null, "updateContext": null }, - "start": 22780, - "end": 22781, + "start": 22504, + "end": 22505, "loc": { "start": { - "line": 732, - "column": 60 + "line": 711, + "column": 35 }, "end": { - "line": 732, - "column": 61 + "line": 711, + "column": 36 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -152770,32 +153181,43 @@ "postfix": false, "binop": null }, - "start": 22784, - "end": 22785, + "value": "innerRenderer", + "start": 22505, + "end": 22518, "loc": { "start": { - "line": 733, - "column": 2 + "line": 711, + "column": 36 }, "end": { - "line": 733, - "column": 3 + "line": 711, + "column": 49 } } }, { - "type": "CommentBlock", - "value": "*\n * Get current callbacks\n * @return {Array}\n ", - "start": 22789, - "end": 22846, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 22518, + "end": 22519, "loc": { "start": { - "line": 735, - "column": 2 + "line": 711, + "column": 49 }, "end": { - "line": 738, - "column": 5 + "line": 711, + "column": 50 } } }, @@ -152811,24 +153233,24 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 22849, - "end": 22852, + "value": "attach", + "start": 22519, + "end": 22525, "loc": { "start": { - "line": 739, - "column": 2 + "line": 711, + "column": 50 }, "end": { - "line": 739, - "column": 5 + "line": 711, + "column": 56 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -152837,48 +153259,50 @@ "postfix": false, "binop": null }, - "value": "callbacks", - "start": 22853, - "end": 22862, + "start": 22525, + "end": 22526, "loc": { "start": { - "line": 739, - "column": 6 + "line": 711, + "column": 56 }, "end": { - "line": 739, - "column": 15 + "line": 711, + "column": 57 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 22862, - "end": 22863, + "value": "this", + "start": 22526, + "end": 22530, "loc": { "start": { - "line": 739, - "column": 15 + "line": 711, + "column": 57 }, "end": { - "line": 739, - "column": 16 + "line": 711, + "column": 61 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -152886,25 +153310,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 22863, - "end": 22864, + "start": 22530, + "end": 22531, "loc": { "start": { - "line": 739, - "column": 16 + "line": 711, + "column": 61 }, "end": { - "line": 739, - "column": 17 + "line": 711, + "column": 62 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -152913,23 +153338,23 @@ "postfix": false, "binop": null }, - "start": 22865, - "end": 22866, + "value": "domElement", + "start": 22531, + "end": 22541, "loc": { "start": { - "line": 739, - "column": 18 + "line": 711, + "column": 62 }, "end": { - "line": 739, - "column": 19 + "line": 711, + "column": 72 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -152940,17 +153365,16 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 22871, - "end": 22877, + "start": 22541, + "end": 22542, "loc": { "start": { - "line": 740, - "column": 4 + "line": 711, + "column": 72 }, "end": { - "line": 740, - "column": 10 + "line": 711, + "column": 73 } } }, @@ -152969,16 +153393,16 @@ "updateContext": null }, "value": "this", - "start": 22878, - "end": 22882, + "start": 22543, + "end": 22547, "loc": { "start": { - "line": 740, - "column": 11 + "line": 711, + "column": 74 }, "end": { - "line": 740, - "column": 15 + "line": 711, + "column": 78 } } }, @@ -152995,16 +153419,16 @@ "binop": null, "updateContext": null }, - "start": 22882, - "end": 22883, + "start": 22547, + "end": 22548, "loc": { "start": { - "line": 740, - "column": 15 + "line": 711, + "column": 78 }, "end": { - "line": 740, - "column": 16 + "line": 711, + "column": 79 } } }, @@ -153020,24 +153444,24 @@ "postfix": false, "binop": null }, - "value": "behavior", - "start": 22883, - "end": 22891, + "value": "configuration", + "start": 22548, + "end": 22561, "loc": { "start": { - "line": 740, - "column": 16 + "line": 711, + "column": 79 }, "end": { - "line": 740, - "column": 24 + "line": 711, + "column": 92 } } }, { "type": { - "label": "?", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -153047,23 +153471,22 @@ "binop": null, "updateContext": null }, - "start": 22892, - "end": 22893, + "start": 22561, + "end": 22562, "loc": { "start": { - "line": 740, - "column": 25 + "line": 711, + "column": 92 }, "end": { - "line": 740, - "column": 26 + "line": 711, + "column": 93 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -153071,20 +153494,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 22894, - "end": 22898, + "value": "renderingParams", + "start": 22562, + "end": 22577, "loc": { "start": { - "line": 740, - "column": 27 + "line": 711, + "column": 93 }, "end": { - "line": 740, - "column": 31 + "line": 711, + "column": 108 } } }, @@ -153101,16 +153523,16 @@ "binop": null, "updateContext": null }, - "start": 22898, - "end": 22899, + "start": 22577, + "end": 22578, "loc": { "start": { - "line": 740, - "column": 31 + "line": 711, + "column": 108 }, "end": { - "line": 740, - "column": 32 + "line": 711, + "column": 109 } } }, @@ -153126,24 +153548,24 @@ "postfix": false, "binop": null }, - "value": "behavior", - "start": 22899, - "end": 22907, + "value": "minHeight", + "start": 22578, + "end": 22587, "loc": { "start": { - "line": 740, - "column": 32 + "line": 711, + "column": 109 }, "end": { - "line": 740, - "column": 40 + "line": 711, + "column": 118 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -153153,22 +153575,23 @@ "binop": null, "updateContext": null }, - "start": 22907, - "end": 22908, + "start": 22587, + "end": 22588, "loc": { "start": { - "line": 740, - "column": 40 + "line": 711, + "column": 118 }, "end": { - "line": 740, - "column": 41 + "line": 711, + "column": 119 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -153176,26 +153599,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "callbacks", - "start": 22908, - "end": 22917, + "value": "this", + "start": 22589, + "end": 22593, "loc": { "start": { - "line": 740, - "column": 41 + "line": 711, + "column": 120 }, "end": { - "line": 740, - "column": 50 + "line": 711, + "column": 124 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -153205,16 +153629,16 @@ "binop": null, "updateContext": null }, - "start": 22918, - "end": 22919, + "start": 22593, + "end": 22594, "loc": { "start": { - "line": 740, - "column": 51 + "line": 711, + "column": 124 }, "end": { - "line": 740, - "column": 52 + "line": 711, + "column": 125 } } }, @@ -153230,24 +153654,24 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 22920, - "end": 22929, + "value": "configuration", + "start": 22594, + "end": 22607, "loc": { "start": { - "line": 740, - "column": 53 + "line": 711, + "column": 125 }, "end": { - "line": 740, - "column": 62 + "line": 711, + "column": 138 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -153257,24 +153681,24 @@ "binop": null, "updateContext": null }, - "start": 22929, - "end": 22930, + "start": 22607, + "end": 22608, "loc": { "start": { - "line": 740, - "column": 62 + "line": 711, + "column": 138 }, "end": { - "line": 740, - "column": 63 + "line": 711, + "column": 139 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -153282,32 +153706,43 @@ "postfix": false, "binop": null }, - "start": 22933, - "end": 22934, + "value": "renderingParams", + "start": 22608, + "end": 22623, "loc": { "start": { - "line": 741, - "column": 2 + "line": 711, + "column": 139 }, "end": { - "line": 741, - "column": 3 + "line": 711, + "column": 154 } } }, { - "type": "CommentBlock", - "value": "*\n * Get a PNG image data url from the data model\n * @return {String}\n ", - "start": 22938, - "end": 23019, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 22623, + "end": 22624, "loc": { "start": { - "line": 743, - "column": 2 + "line": 711, + "column": 154 }, "end": { - "line": 746, - "column": 5 + "line": 711, + "column": 155 } } }, @@ -153323,25 +153758,25 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 23022, - "end": 23025, + "value": "minWidth", + "start": 22624, + "end": 22632, "loc": { "start": { - "line": 747, - "column": 2 + "line": 711, + "column": 155 }, "end": { - "line": 747, - "column": 5 + "line": 711, + "column": 163 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -153349,48 +153784,48 @@ "postfix": false, "binop": null }, - "value": "png", - "start": 23026, - "end": 23029, + "start": 22632, + "end": 22633, "loc": { "start": { - "line": 747, - "column": 6 + "line": 711, + "column": 163 }, "end": { - "line": 747, - "column": 9 + "line": 711, + "column": 164 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 23029, - "end": 23030, + "start": 22633, + "end": 22634, "loc": { "start": { - "line": 747, - "column": 9 + "line": 711, + "column": 164 }, "end": { - "line": 747, - "column": 10 + "line": 711, + "column": 165 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -153400,77 +153835,49 @@ "postfix": false, "binop": null }, - "start": 23030, - "end": 23031, + "start": 22641, + "end": 22642, "loc": { "start": { - "line": 747, - "column": 10 + "line": 712, + "column": 6 }, "end": { - "line": 747, - "column": 11 + "line": 712, + "column": 7 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23032, - "end": 23033, - "loc": { - "start": { - "line": 747, - "column": 12 - }, - "end": { - "line": 747, - "column": 13 - } - } - }, - { - "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 23038, - "end": 23044, + "start": 22647, + "end": 22648, "loc": { "start": { - "line": 748, + "line": 713, "column": 4 }, "end": { - "line": 748, - "column": 10 + "line": 713, + "column": 5 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -153478,43 +153885,32 @@ "postfix": false, "binop": null }, - "value": "ImageRenderer", - "start": 23045, - "end": 23058, + "start": 22651, + "end": 22652, "loc": { "start": { - "line": 748, - "column": 11 + "line": 714, + "column": 2 }, "end": { - "line": 748, - "column": 24 + "line": 714, + "column": 3 } } }, { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23058, - "end": 23059, + "type": "CommentBlock", + "value": "*\n * Get current renderer\n * @return {Renderer}\n ", + "start": 22656, + "end": 22715, "loc": { "start": { - "line": 748, - "column": 24 + "line": 716, + "column": 2 }, "end": { - "line": 748, - "column": 25 + "line": 719, + "column": 5 } } }, @@ -153530,24 +153926,24 @@ "postfix": false, "binop": null }, - "value": "getImage", - "start": 23059, - "end": 23067, + "value": "get", + "start": 22718, + "end": 22721, "loc": { "start": { - "line": 748, - "column": 25 + "line": 720, + "column": 2 }, "end": { - "line": 748, - "column": 33 + "line": 720, + "column": 5 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -153556,50 +153952,48 @@ "postfix": false, "binop": null }, - "start": 23067, - "end": 23068, + "value": "renderer", + "start": 22722, + "end": 22730, "loc": { "start": { - "line": 748, - "column": 33 + "line": 720, + "column": 6 }, "end": { - "line": 748, - "column": 34 + "line": 720, + "column": 14 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 23068, - "end": 23072, + "start": 22730, + "end": 22731, "loc": { "start": { - "line": 748, - "column": 34 + "line": 720, + "column": 14 }, "end": { - "line": 748, - "column": 38 + "line": 720, + "column": 15 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -153607,26 +154001,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 23072, - "end": 23073, + "start": 22731, + "end": 22732, "loc": { "start": { - "line": 748, - "column": 38 + "line": 720, + "column": 15 }, "end": { - "line": 748, - "column": 39 + "line": 720, + "column": 16 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -153635,23 +154028,23 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 23073, - "end": 23078, + "start": 22733, + "end": 22734, "loc": { "start": { - "line": 748, - "column": 39 + "line": 720, + "column": 17 }, "end": { - "line": 748, - "column": 44 + "line": 720, + "column": 18 } } }, { "type": { - "label": ",", + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -153662,16 +154055,17 @@ "binop": null, "updateContext": null }, - "start": 23078, - "end": 23079, + "value": "return", + "start": 22739, + "end": 22745, "loc": { "start": { - "line": 748, - "column": 44 + "line": 721, + "column": 4 }, "end": { - "line": 748, - "column": 45 + "line": 721, + "column": 10 } } }, @@ -153690,16 +154084,16 @@ "updateContext": null }, "value": "this", - "start": 23080, - "end": 23084, + "start": 22746, + "end": 22750, "loc": { "start": { - "line": 748, - "column": 46 + "line": 721, + "column": 11 }, "end": { - "line": 748, - "column": 50 + "line": 721, + "column": 15 } } }, @@ -153716,16 +154110,16 @@ "binop": null, "updateContext": null }, - "start": 23084, - "end": 23085, + "start": 22750, + "end": 22751, "loc": { "start": { - "line": 748, - "column": 50 + "line": 721, + "column": 15 }, "end": { - "line": 748, - "column": 51 + "line": 721, + "column": 16 } } }, @@ -153741,42 +154135,17 @@ "postfix": false, "binop": null }, - "value": "stroker", - "start": 23085, - "end": 23092, - "loc": { - "start": { - "line": 748, - "column": 51 - }, - "end": { - "line": 748, - "column": 58 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23092, - "end": 23093, + "value": "innerRenderer", + "start": 22751, + "end": 22764, "loc": { "start": { - "line": 748, - "column": 58 + "line": 721, + "column": 16 }, "end": { - "line": 748, - "column": 59 + "line": 721, + "column": 29 } } }, @@ -153793,16 +154162,16 @@ "binop": null, "updateContext": null }, - "start": 23093, - "end": 23094, + "start": 22764, + "end": 22765, "loc": { "start": { - "line": 748, - "column": 59 + "line": 721, + "column": 29 }, "end": { - "line": 748, - "column": 60 + "line": 721, + "column": 30 } } }, @@ -153818,31 +154187,31 @@ "postfix": false, "binop": null }, - "start": 23097, - "end": 23098, + "start": 22768, + "end": 22769, "loc": { "start": { - "line": 749, + "line": 722, "column": 2 }, "end": { - "line": 749, + "line": 722, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * Get statistics to monitor what ink size is send to the server.\n * @return {Stats}\n ", - "start": 23102, - "end": 23200, + "value": "*\n * Get current grabber\n * @return {Grabber}\n ", + "start": 22773, + "end": 22830, "loc": { "start": { - "line": 751, + "line": 724, "column": 2 }, "end": { - "line": 754, + "line": 727, "column": 5 } } @@ -153859,17 +154228,43 @@ "postfix": false, "binop": null }, - "value": "getStats", - "start": 23203, - "end": 23211, + "value": "get", + "start": 22833, + "end": 22836, "loc": { "start": { - "line": 755, + "line": 728, "column": 2 }, "end": { - "line": 755, - "column": 10 + "line": 728, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "grabber", + "start": 22837, + "end": 22844, + "loc": { + "start": { + "line": 728, + "column": 6 + }, + "end": { + "line": 728, + "column": 13 } } }, @@ -153885,16 +154280,16 @@ "postfix": false, "binop": null }, - "start": 23211, - "end": 23212, + "start": 22844, + "end": 22845, "loc": { "start": { - "line": 755, - "column": 10 + "line": 728, + "column": 13 }, "end": { - "line": 755, - "column": 11 + "line": 728, + "column": 14 } } }, @@ -153910,16 +154305,16 @@ "postfix": false, "binop": null }, - "start": 23212, - "end": 23213, + "start": 22845, + "end": 22846, "loc": { "start": { - "line": 755, - "column": 11 + "line": 728, + "column": 14 }, "end": { - "line": 755, - "column": 12 + "line": 728, + "column": 15 } } }, @@ -153935,16 +154330,16 @@ "postfix": false, "binop": null }, - "start": 23214, - "end": 23215, + "start": 22847, + "end": 22848, "loc": { "start": { - "line": 755, - "column": 13 + "line": 728, + "column": 16 }, "end": { - "line": 755, - "column": 14 + "line": 728, + "column": 17 } } }, @@ -153963,22 +154358,23 @@ "updateContext": null }, "value": "return", - "start": 23220, - "end": 23226, + "start": 22853, + "end": 22859, "loc": { "start": { - "line": 756, + "line": 729, "column": 4 }, "end": { - "line": 756, + "line": 729, "column": 10 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -153986,19 +154382,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "ModelStats", - "start": 23227, - "end": 23237, + "value": "this", + "start": 22860, + "end": 22864, "loc": { "start": { - "line": 756, + "line": 729, "column": 11 }, "end": { - "line": 756, - "column": 21 + "line": 729, + "column": 15 } } }, @@ -154015,16 +154412,16 @@ "binop": null, "updateContext": null }, - "start": 23237, - "end": 23238, + "start": 22864, + "end": 22865, "loc": { "start": { - "line": 756, - "column": 21 + "line": 729, + "column": 15 }, "end": { - "line": 756, - "column": 22 + "line": 729, + "column": 16 } } }, @@ -154040,42 +154437,43 @@ "postfix": false, "binop": null }, - "value": "computeStats", - "start": 23238, - "end": 23250, + "value": "behavior", + "start": 22865, + "end": 22873, "loc": { "start": { - "line": 756, - "column": 22 + "line": 729, + "column": 16 }, "end": { - "line": 756, - "column": 34 + "line": 729, + "column": 24 } } }, { "type": { - "label": "(", + "label": "?", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 23250, - "end": 23251, + "start": 22874, + "end": 22875, "loc": { "start": { - "line": 756, - "column": 34 + "line": 729, + "column": 25 }, "end": { - "line": 756, - "column": 35 + "line": 729, + "column": 26 } } }, @@ -154094,16 +154492,16 @@ "updateContext": null }, "value": "this", - "start": 23251, - "end": 23255, + "start": 22876, + "end": 22880, "loc": { "start": { - "line": 756, - "column": 35 + "line": 729, + "column": 27 }, "end": { - "line": 756, - "column": 39 + "line": 729, + "column": 31 } } }, @@ -154120,16 +154518,16 @@ "binop": null, "updateContext": null }, - "start": 23255, - "end": 23256, + "start": 22880, + "end": 22881, "loc": { "start": { - "line": 756, - "column": 39 + "line": 729, + "column": 31 }, "end": { - "line": 756, - "column": 40 + "line": 729, + "column": 32 } } }, @@ -154145,42 +154543,121 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 23256, - "end": 23261, + "value": "behavior", + "start": 22881, + "end": 22889, "loc": { "start": { - "line": 756, + "line": 729, + "column": 32 + }, + "end": { + "line": 729, + "column": 40 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 22889, + "end": 22890, + "loc": { + "start": { + "line": 729, "column": 40 }, "end": { - "line": 756, - "column": 45 + "line": 729, + "column": 41 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "grabber", + "start": 22890, + "end": 22897, + "loc": { + "start": { + "line": 729, + "column": 41 + }, + "end": { + "line": 729, + "column": 48 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 22898, + "end": 22899, + "loc": { + "start": { + "line": 729, + "column": 49 + }, + "end": { + "line": 729, + "column": 50 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null }, - "start": 23261, - "end": 23262, + "value": "undefined", + "start": 22900, + "end": 22909, "loc": { "start": { - "line": 756, - "column": 45 + "line": 729, + "column": 51 }, "end": { - "line": 756, - "column": 46 + "line": 729, + "column": 60 } } }, @@ -154197,16 +154674,16 @@ "binop": null, "updateContext": null }, - "start": 23262, - "end": 23263, + "start": 22909, + "end": 22910, "loc": { "start": { - "line": 756, - "column": 46 + "line": 729, + "column": 60 }, "end": { - "line": 756, - "column": 47 + "line": 729, + "column": 61 } } }, @@ -154222,31 +154699,31 @@ "postfix": false, "binop": null }, - "start": 23266, - "end": 23267, + "start": 22913, + "end": 22914, "loc": { "start": { - "line": 757, + "line": 730, "column": 2 }, "end": { - "line": 757, + "line": 730, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * True if initialized, false otherwise\n * @return {Boolean}\n ", - "start": 23271, - "end": 23345, + "value": "*\n * Get current stroker\n * @return {Stroker}\n ", + "start": 22918, + "end": 22975, "loc": { "start": { - "line": 759, + "line": 732, "column": 2 }, "end": { - "line": 762, + "line": 735, "column": 5 } } @@ -154264,15 +154741,15 @@ "binop": null }, "value": "get", - "start": 23348, - "end": 23351, + "start": 22978, + "end": 22981, "loc": { "start": { - "line": 763, + "line": 736, "column": 2 }, "end": { - "line": 763, + "line": 736, "column": 5 } } @@ -154289,17 +154766,17 @@ "postfix": false, "binop": null }, - "value": "initialized", - "start": 23352, - "end": 23363, + "value": "stroker", + "start": 22982, + "end": 22989, "loc": { "start": { - "line": 763, + "line": 736, "column": 6 }, "end": { - "line": 763, - "column": 17 + "line": 736, + "column": 13 } } }, @@ -154315,16 +154792,16 @@ "postfix": false, "binop": null }, - "start": 23363, - "end": 23364, + "start": 22989, + "end": 22990, "loc": { "start": { - "line": 763, - "column": 17 + "line": 736, + "column": 13 }, "end": { - "line": 763, - "column": 18 + "line": 736, + "column": 14 } } }, @@ -154340,16 +154817,16 @@ "postfix": false, "binop": null }, - "start": 23364, - "end": 23365, + "start": 22990, + "end": 22991, "loc": { "start": { - "line": 763, - "column": 18 + "line": 736, + "column": 14 }, "end": { - "line": 763, - "column": 19 + "line": 736, + "column": 15 } } }, @@ -154365,16 +154842,16 @@ "postfix": false, "binop": null }, - "start": 23366, - "end": 23367, + "start": 22992, + "end": 22993, "loc": { "start": { - "line": 763, - "column": 20 + "line": 736, + "column": 16 }, "end": { - "line": 763, - "column": 21 + "line": 736, + "column": 17 } } }, @@ -154393,15 +154870,15 @@ "updateContext": null }, "value": "return", - "start": 23372, - "end": 23378, + "start": 22998, + "end": 23004, "loc": { "start": { - "line": 764, + "line": 737, "column": 4 }, "end": { - "line": 764, + "line": 737, "column": 10 } } @@ -154421,15 +154898,15 @@ "updateContext": null }, "value": "this", - "start": 23379, - "end": 23383, + "start": 23005, + "end": 23009, "loc": { "start": { - "line": 764, + "line": 737, "column": 11 }, "end": { - "line": 764, + "line": 737, "column": 15 } } @@ -154447,15 +154924,15 @@ "binop": null, "updateContext": null }, - "start": 23383, - "end": 23384, + "start": 23009, + "end": 23010, "loc": { "start": { - "line": 764, + "line": 737, "column": 15 }, "end": { - "line": 764, + "line": 737, "column": 16 } } @@ -154472,17 +154949,17 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 23384, - "end": 23401, + "value": "behavior", + "start": 23010, + "end": 23018, "loc": { "start": { - "line": 764, + "line": 737, "column": 16 }, "end": { - "line": 764, - "column": 33 + "line": 737, + "column": 24 } } }, @@ -154499,16 +154976,16 @@ "binop": null, "updateContext": null }, - "start": 23402, - "end": 23403, + "start": 23019, + "end": 23020, "loc": { "start": { - "line": 764, - "column": 34 + "line": 737, + "column": 25 }, "end": { - "line": 764, - "column": 35 + "line": 737, + "column": 26 } } }, @@ -154527,16 +155004,16 @@ "updateContext": null }, "value": "this", - "start": 23404, - "end": 23408, + "start": 23021, + "end": 23025, "loc": { "start": { - "line": 764, - "column": 36 + "line": 737, + "column": 27 }, "end": { - "line": 764, - "column": 40 + "line": 737, + "column": 31 } } }, @@ -154553,16 +155030,16 @@ "binop": null, "updateContext": null }, - "start": 23408, - "end": 23409, + "start": 23025, + "end": 23026, "loc": { "start": { - "line": 764, - "column": 40 + "line": 737, + "column": 31 }, "end": { - "line": 764, - "column": 41 + "line": 737, + "column": 32 } } }, @@ -154578,17 +155055,17 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 23409, - "end": 23426, + "value": "behavior", + "start": 23026, + "end": 23034, "loc": { "start": { - "line": 764, - "column": 41 + "line": 737, + "column": 32 }, "end": { - "line": 764, - "column": 58 + "line": 737, + "column": 40 } } }, @@ -154605,16 +155082,16 @@ "binop": null, "updateContext": null }, - "start": 23426, - "end": 23427, + "start": 23034, + "end": 23035, "loc": { "start": { - "line": 764, - "column": 58 + "line": 737, + "column": 40 }, "end": { - "line": 764, - "column": 59 + "line": 737, + "column": 41 } } }, @@ -154630,17 +155107,17 @@ "postfix": false, "binop": null }, - "value": "initialized", - "start": 23427, - "end": 23438, + "value": "stroker", + "start": 23035, + "end": 23042, "loc": { "start": { - "line": 764, - "column": 59 + "line": 737, + "column": 41 }, "end": { - "line": 764, - "column": 70 + "line": 737, + "column": 48 } } }, @@ -154657,23 +155134,22 @@ "binop": null, "updateContext": null }, - "start": 23439, - "end": 23440, + "start": 23043, + "end": 23044, "loc": { "start": { - "line": 764, - "column": 71 + "line": 737, + "column": 49 }, "end": { - "line": 764, - "column": 72 + "line": 737, + "column": 50 } } }, { "type": { - "label": "false", - "keyword": "false", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -154681,20 +155157,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "false", - "start": 23441, - "end": 23446, + "value": "undefined", + "start": 23045, + "end": 23054, "loc": { "start": { - "line": 764, - "column": 73 + "line": 737, + "column": 51 }, "end": { - "line": 764, - "column": 78 + "line": 737, + "column": 60 } } }, @@ -154711,16 +155186,16 @@ "binop": null, "updateContext": null }, - "start": 23446, - "end": 23447, + "start": 23054, + "end": 23055, "loc": { "start": { - "line": 764, - "column": 78 + "line": 737, + "column": 60 }, "end": { - "line": 764, - "column": 79 + "line": 737, + "column": 61 } } }, @@ -154736,31 +155211,31 @@ "postfix": false, "binop": null }, - "start": 23450, - "end": 23451, + "start": 23058, + "end": 23059, "loc": { "start": { - "line": 765, + "line": 738, "column": 2 }, "end": { - "line": 765, + "line": 738, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * Handle a pointer down\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n * @param {String} [pointerType=mouse] Current pointer type\n * @param {String} [pointerId] Current pointer id\n ", - "start": 23455, - "end": 23686, + "value": "*\n * Get current callbacks\n * @return {Array}\n ", + "start": 23063, + "end": 23120, "loc": { "start": { - "line": 767, + "line": 740, "column": 2 }, "end": { - "line": 772, + "line": 743, "column": 5 } } @@ -154777,17 +155252,43 @@ "postfix": false, "binop": null }, - "value": "pointerDown", - "start": 23689, - "end": 23700, + "value": "get", + "start": 23123, + "end": 23126, "loc": { "start": { - "line": 773, + "line": 744, "column": 2 }, "end": { - "line": 773, - "column": 13 + "line": 744, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "callbacks", + "start": 23127, + "end": 23136, + "loc": { + "start": { + "line": 744, + "column": 6 + }, + "end": { + "line": 744, + "column": 15 } } }, @@ -154803,23 +155304,48 @@ "postfix": false, "binop": null }, - "start": 23700, - "end": 23701, + "start": 23136, + "end": 23137, "loc": { "start": { - "line": 773, - "column": 13 + "line": 744, + "column": 15 }, "end": { - "line": 773, - "column": 14 + "line": 744, + "column": 16 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 23137, + "end": 23138, + "loc": { + "start": { + "line": 744, + "column": 16 + }, + "end": { + "line": 744, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -154828,23 +155354,23 @@ "postfix": false, "binop": null }, - "value": "point", - "start": 23701, - "end": 23706, + "start": 23139, + "end": 23140, "loc": { "start": { - "line": 773, - "column": 14 + "line": 744, + "column": 18 }, "end": { - "line": 773, + "line": 744, "column": 19 } } }, { "type": { - "label": ",", + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -154855,16 +155381,71 @@ "binop": null, "updateContext": null }, - "start": 23706, - "end": 23707, + "value": "return", + "start": 23145, + "end": 23151, "loc": { "start": { - "line": 773, - "column": 19 + "line": 745, + "column": 4 }, "end": { - "line": 773, - "column": 20 + "line": 745, + "column": 10 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 23152, + "end": 23156, + "loc": { + "start": { + "line": 745, + "column": 11 + }, + "end": { + "line": 745, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 23156, + "end": 23157, + "loc": { + "start": { + "line": 745, + "column": 15 + }, + "end": { + "line": 745, + "column": 16 } } }, @@ -154880,50 +155461,50 @@ "postfix": false, "binop": null }, - "value": "pointerType", - "start": 23708, - "end": 23719, + "value": "behavior", + "start": 23157, + "end": 23165, "loc": { "start": { - "line": 773, - "column": 21 + "line": 745, + "column": 16 }, "end": { - "line": 773, - "column": 32 + "line": 745, + "column": 24 } } }, { "type": { - "label": "=", + "label": "?", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 23720, - "end": 23721, + "start": 23166, + "end": 23167, "loc": { "start": { - "line": 773, - "column": 33 + "line": 745, + "column": 25 }, "end": { - "line": 773, - "column": 34 + "line": 745, + "column": 26 } } }, { "type": { - "label": "string", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -154934,24 +155515,76 @@ "binop": null, "updateContext": null }, - "value": "pen", - "start": 23722, - "end": 23727, + "value": "this", + "start": 23168, + "end": 23172, "loc": { "start": { - "line": 773, - "column": 35 + "line": 745, + "column": 27 + }, + "end": { + "line": 745, + "column": 31 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 23172, + "end": 23173, + "loc": { + "start": { + "line": 745, + "column": 31 }, "end": { - "line": 773, + "line": 745, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "behavior", + "start": 23173, + "end": 23181, + "loc": { + "start": { + "line": 745, + "column": 32 + }, + "end": { + "line": 745, "column": 40 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -154961,15 +155594,15 @@ "binop": null, "updateContext": null }, - "start": 23727, - "end": 23728, + "start": 23181, + "end": 23182, "loc": { "start": { - "line": 773, + "line": 745, "column": 40 }, "end": { - "line": 773, + "line": 745, "column": 41 } } @@ -154986,49 +155619,50 @@ "postfix": false, "binop": null }, - "value": "pointerId", - "start": 23729, - "end": 23738, + "value": "callbacks", + "start": 23182, + "end": 23191, "loc": { "start": { - "line": 773, - "column": 42 + "line": 745, + "column": 41 }, "end": { - "line": 773, - "column": 51 + "line": 745, + "column": 50 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 23738, - "end": 23739, + "start": 23192, + "end": 23193, "loc": { "start": { - "line": 773, + "line": 745, "column": 51 }, "end": { - "line": 773, + "line": 745, "column": 52 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -155037,48 +155671,49 @@ "postfix": false, "binop": null }, - "start": 23740, - "end": 23741, + "value": "undefined", + "start": 23194, + "end": 23203, "loc": { "start": { - "line": 773, + "line": 745, "column": 53 }, "end": { - "line": 773, - "column": 54 + "line": 745, + "column": 62 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "logger", - "start": 23746, - "end": 23752, + "start": 23203, + "end": 23204, "loc": { "start": { - "line": 774, - "column": 4 + "line": 745, + "column": 62 }, "end": { - "line": 774, - "column": 10 + "line": 745, + "column": 63 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -155086,52 +155721,41 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 23752, - "end": 23753, + "start": 23207, + "end": 23208, "loc": { "start": { - "line": 774, - "column": 10 + "line": 746, + "column": 2 }, "end": { - "line": 774, - "column": 11 + "line": 746, + "column": 3 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "trace", - "start": 23753, - "end": 23758, + "type": "CommentBlock", + "value": "*\n * Get a PNG image data url from the data model\n * @return {String}\n ", + "start": 23212, + "end": 23293, "loc": { "start": { - "line": 774, - "column": 11 + "line": 748, + "column": 2 }, "end": { - "line": 774, - "column": 16 + "line": 751, + "column": 5 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -155140,22 +155764,23 @@ "postfix": false, "binop": null }, - "start": 23758, - "end": 23759, + "value": "get", + "start": 23296, + "end": 23299, "loc": { "start": { - "line": 774, - "column": 16 + "line": 752, + "column": 2 }, "end": { - "line": 774, - "column": 17 + "line": 752, + "column": 5 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -155163,54 +155788,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "Pointer down", - "start": 23759, - "end": 23773, + "value": "png", + "start": 23300, + "end": 23303, "loc": { "start": { - "line": 774, - "column": 17 + "line": 752, + "column": 6 }, "end": { - "line": 774, - "column": 31 + "line": 752, + "column": 9 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 23773, - "end": 23774, + "start": 23303, + "end": 23304, "loc": { "start": { - "line": 774, - "column": 31 + "line": 752, + "column": 9 }, "end": { - "line": 774, - "column": 32 + "line": 752, + "column": 10 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -155218,25 +155841,24 @@ "postfix": false, "binop": null }, - "value": "point", - "start": 23775, - "end": 23780, + "start": 23304, + "end": 23305, "loc": { "start": { - "line": 774, - "column": 33 + "line": 752, + "column": 10 }, "end": { - "line": 774, - "column": 38 + "line": 752, + "column": 11 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -155244,22 +155866,23 @@ "postfix": false, "binop": null }, - "start": 23780, - "end": 23781, + "start": 23306, + "end": 23307, "loc": { "start": { - "line": 774, - "column": 38 + "line": 752, + "column": 12 }, "end": { - "line": 774, - "column": 39 + "line": 752, + "column": 13 } } }, { "type": { - "label": ";", + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -155270,16 +155893,17 @@ "binop": null, "updateContext": null }, - "start": 23781, - "end": 23782, + "value": "return", + "start": 23312, + "end": 23318, "loc": { "start": { - "line": 774, - "column": 39 + "line": 753, + "column": 4 }, "end": { - "line": 774, - "column": 40 + "line": 753, + "column": 10 } } }, @@ -155295,17 +155919,17 @@ "postfix": false, "binop": null }, - "value": "window", - "start": 23787, - "end": 23793, + "value": "ImageRenderer", + "start": 23319, + "end": 23332, "loc": { "start": { - "line": 775, - "column": 4 + "line": 753, + "column": 11 }, "end": { - "line": 775, - "column": 10 + "line": 753, + "column": 24 } } }, @@ -155322,16 +155946,16 @@ "binop": null, "updateContext": null }, - "start": 23793, - "end": 23794, + "start": 23332, + "end": 23333, "loc": { "start": { - "line": 775, - "column": 10 + "line": 753, + "column": 24 }, "end": { - "line": 775, - "column": 11 + "line": 753, + "column": 25 } } }, @@ -155347,17 +155971,17 @@ "postfix": false, "binop": null }, - "value": "clearTimeout", - "start": 23794, - "end": 23806, + "value": "getImage", + "start": 23333, + "end": 23341, "loc": { "start": { - "line": 775, - "column": 11 + "line": 753, + "column": 25 }, "end": { - "line": 775, - "column": 23 + "line": 753, + "column": 33 } } }, @@ -155373,16 +155997,16 @@ "postfix": false, "binop": null }, - "start": 23806, - "end": 23807, + "start": 23341, + "end": 23342, "loc": { "start": { - "line": 775, - "column": 23 + "line": 753, + "column": 33 }, "end": { - "line": 775, - "column": 24 + "line": 753, + "column": 34 } } }, @@ -155401,16 +156025,16 @@ "updateContext": null }, "value": "this", - "start": 23807, - "end": 23811, + "start": 23342, + "end": 23346, "loc": { "start": { - "line": 775, - "column": 24 + "line": 753, + "column": 34 }, "end": { - "line": 775, - "column": 28 + "line": 753, + "column": 38 } } }, @@ -155427,16 +156051,16 @@ "binop": null, "updateContext": null }, - "start": 23811, - "end": 23812, + "start": 23346, + "end": 23347, "loc": { "start": { - "line": 775, - "column": 28 + "line": 753, + "column": 38 }, "end": { - "line": 775, - "column": 29 + "line": 753, + "column": 39 } } }, @@ -155452,48 +156076,23 @@ "postfix": false, "binop": null }, - "value": "notifyTimer", - "start": 23812, - "end": 23823, - "loc": { - "start": { - "line": 775, - "column": 29 - }, - "end": { - "line": 775, - "column": 40 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 23823, - "end": 23824, + "value": "model", + "start": 23347, + "end": 23352, "loc": { "start": { - "line": 775, - "column": 40 + "line": 753, + "column": 39 }, "end": { - "line": 775, - "column": 41 + "line": 753, + "column": 44 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -155504,22 +156103,23 @@ "binop": null, "updateContext": null }, - "start": 23824, - "end": 23825, + "start": 23352, + "end": 23353, "loc": { "start": { - "line": 775, - "column": 41 + "line": 753, + "column": 44 }, "end": { - "line": 775, - "column": 42 + "line": 753, + "column": 45 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -155527,19 +156127,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "window", - "start": 23830, - "end": 23836, + "value": "this", + "start": 23354, + "end": 23358, "loc": { "start": { - "line": 776, - "column": 4 + "line": 753, + "column": 46 }, "end": { - "line": 776, - "column": 10 + "line": 753, + "column": 50 } } }, @@ -155556,16 +156157,16 @@ "binop": null, "updateContext": null }, - "start": 23836, - "end": 23837, + "start": 23358, + "end": 23359, "loc": { "start": { - "line": 776, - "column": 10 + "line": 753, + "column": 50 }, "end": { - "line": 776, - "column": 11 + "line": 753, + "column": 51 } } }, @@ -155581,25 +156182,25 @@ "postfix": false, "binop": null }, - "value": "clearTimeout", - "start": 23837, - "end": 23849, + "value": "stroker", + "start": 23359, + "end": 23366, "loc": { "start": { - "line": 776, - "column": 11 + "line": 753, + "column": 51 }, "end": { - "line": 776, - "column": 23 + "line": 753, + "column": 58 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -155607,25 +156208,24 @@ "postfix": false, "binop": null }, - "start": 23849, - "end": 23850, + "start": 23366, + "end": 23367, "loc": { "start": { - "line": 776, - "column": 23 + "line": 753, + "column": 58 }, "end": { - "line": 776, - "column": 24 + "line": 753, + "column": 59 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -155634,23 +156234,22 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 23850, - "end": 23854, + "start": 23367, + "end": 23368, "loc": { "start": { - "line": 776, - "column": 24 + "line": 753, + "column": 59 }, "end": { - "line": 776, - "column": 28 + "line": 753, + "column": 60 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -155658,53 +156257,42 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 23854, - "end": 23855, + "start": 23371, + "end": 23372, "loc": { "start": { - "line": 776, - "column": 28 + "line": 754, + "column": 2 }, "end": { - "line": 776, - "column": 29 + "line": 754, + "column": 3 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "exportTimer", - "start": 23855, - "end": 23866, + "type": "CommentBlock", + "value": "*\n * Get statistics to monitor what ink size is send to the server.\n * @return {Stats}\n ", + "start": 23376, + "end": 23474, "loc": { "start": { - "line": 776, - "column": 29 + "line": 756, + "column": 2 }, "end": { - "line": 776, - "column": 40 + "line": 759, + "column": 5 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -155712,76 +156300,48 @@ "postfix": false, "binop": null }, - "start": 23866, - "end": 23867, + "value": "getStats", + "start": 23477, + "end": 23485, "loc": { "start": { - "line": 776, - "column": 40 + "line": 760, + "column": 2 }, "end": { - "line": 776, - "column": 41 + "line": 760, + "column": 10 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 23867, - "end": 23868, - "loc": { - "start": { - "line": 776, - "column": 41 - }, - "end": { - "line": 776, - "column": 42 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 23873, - "end": 23877, + "start": 23485, + "end": 23486, "loc": { "start": { - "line": 777, - "column": 4 + "line": 760, + "column": 10 }, "end": { - "line": 777, - "column": 8 + "line": 760, + "column": 11 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -155789,26 +156349,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 23877, - "end": 23878, + "start": 23486, + "end": 23487, "loc": { "start": { - "line": 777, - "column": 8 + "line": 760, + "column": 11 }, "end": { - "line": 777, - "column": 9 + "line": 760, + "column": 12 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -155817,44 +156376,44 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 23878, - "end": 23883, + "start": 23488, + "end": 23489, "loc": { "start": { - "line": 777, - "column": 9 + "line": 760, + "column": 13 }, "end": { - "line": 777, + "line": 760, "column": 14 } } }, { "type": { - "label": "=", + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 23884, - "end": 23885, + "value": "return", + "start": 23494, + "end": 23500, "loc": { "start": { - "line": 777, - "column": 15 + "line": 761, + "column": 4 }, "end": { - "line": 777, - "column": 16 + "line": 761, + "column": 10 } } }, @@ -155870,17 +156429,17 @@ "postfix": false, "binop": null }, - "value": "InkModel", - "start": 23886, - "end": 23894, + "value": "ModelStats", + "start": 23501, + "end": 23511, "loc": { "start": { - "line": 777, - "column": 17 + "line": 761, + "column": 11 }, "end": { - "line": 777, - "column": 25 + "line": 761, + "column": 21 } } }, @@ -155897,16 +156456,16 @@ "binop": null, "updateContext": null }, - "start": 23894, - "end": 23895, + "start": 23511, + "end": 23512, "loc": { "start": { - "line": 777, - "column": 25 + "line": 761, + "column": 21 }, "end": { - "line": 777, - "column": 26 + "line": 761, + "column": 22 } } }, @@ -155922,17 +156481,17 @@ "postfix": false, "binop": null }, - "value": "initPendingStroke", - "start": 23895, - "end": 23912, + "value": "computeStats", + "start": 23512, + "end": 23524, "loc": { "start": { - "line": 777, - "column": 26 + "line": 761, + "column": 22 }, "end": { - "line": 777, - "column": 43 + "line": 761, + "column": 34 } } }, @@ -155948,16 +156507,16 @@ "postfix": false, "binop": null }, - "start": 23912, - "end": 23913, + "start": 23524, + "end": 23525, "loc": { "start": { - "line": 777, - "column": 43 + "line": 761, + "column": 34 }, "end": { - "line": 777, - "column": 44 + "line": 761, + "column": 35 } } }, @@ -155976,16 +156535,16 @@ "updateContext": null }, "value": "this", - "start": 23913, - "end": 23917, + "start": 23525, + "end": 23529, "loc": { "start": { - "line": 777, - "column": 44 + "line": 761, + "column": 35 }, "end": { - "line": 777, - "column": 48 + "line": 761, + "column": 39 } } }, @@ -156002,16 +156561,16 @@ "binop": null, "updateContext": null }, - "start": 23917, - "end": 23918, + "start": 23529, + "end": 23530, "loc": { "start": { - "line": 777, - "column": 48 + "line": 761, + "column": 39 }, "end": { - "line": 777, - "column": 49 + "line": 761, + "column": 40 } } }, @@ -156028,94 +156587,108 @@ "binop": null }, "value": "model", - "start": 23918, - "end": 23923, + "start": 23530, + "end": 23535, "loc": { "start": { - "line": 777, - "column": 49 + "line": 761, + "column": 40 }, "end": { - "line": 777, - "column": 54 + "line": 761, + "column": 45 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 23923, - "end": 23924, + "start": 23535, + "end": 23536, "loc": { "start": { - "line": 777, - "column": 54 + "line": 761, + "column": 45 }, "end": { - "line": 777, - "column": 55 + "line": 761, + "column": 46 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "point", - "start": 23925, - "end": 23930, + "start": 23536, + "end": 23537, "loc": { "start": { - "line": 777, - "column": 56 + "line": 761, + "column": 46 }, "end": { - "line": 777, - "column": 61 + "line": 761, + "column": 47 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 23930, - "end": 23931, + "start": 23540, + "end": 23541, "loc": { "start": { - "line": 777, - "column": 61 + "line": 762, + "column": 2 }, "end": { - "line": 777, - "column": 62 + "line": 762, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * True if initialized, false otherwise\n * @return {Boolean}\n ", + "start": 23545, + "end": 23619, + "loc": { + "start": { + "line": 764, + "column": 2 + }, + "end": { + "line": 767, + "column": 5 } } }, @@ -156131,50 +156704,50 @@ "postfix": false, "binop": null }, - "value": "Object", - "start": 23932, - "end": 23938, + "value": "get", + "start": 23622, + "end": 23625, "loc": { "start": { - "line": 777, - "column": 63 + "line": 768, + "column": 2 }, "end": { - "line": 777, - "column": 69 + "line": 768, + "column": 5 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 23938, - "end": 23939, + "value": "initialized", + "start": 23626, + "end": 23637, "loc": { "start": { - "line": 777, - "column": 69 + "line": 768, + "column": 6 }, "end": { - "line": 777, - "column": 70 + "line": 768, + "column": 17 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -156183,25 +156756,24 @@ "postfix": false, "binop": null }, - "value": "assign", - "start": 23939, - "end": 23945, + "start": 23637, + "end": 23638, "loc": { "start": { - "line": 777, - "column": 70 + "line": 768, + "column": 17 }, "end": { - "line": 777, - "column": 76 + "line": 768, + "column": 18 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -156209,16 +156781,16 @@ "postfix": false, "binop": null }, - "start": 23945, - "end": 23946, + "start": 23638, + "end": 23639, "loc": { "start": { - "line": 777, - "column": 76 + "line": 768, + "column": 18 }, "end": { - "line": 777, - "column": 77 + "line": 768, + "column": 19 } } }, @@ -156234,50 +156806,53 @@ "postfix": false, "binop": null }, - "start": 23946, - "end": 23947, + "start": 23640, + "end": 23641, "loc": { "start": { - "line": 777, - "column": 77 + "line": 768, + "column": 20 }, "end": { - "line": 777, - "column": 78 + "line": 768, + "column": 21 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pointerType", - "start": 23948, - "end": 23959, + "value": "return", + "start": 23646, + "end": 23652, "loc": { "start": { - "line": 777, - "column": 79 + "line": 769, + "column": 4 }, "end": { - "line": 777, - "column": 90 + "line": 769, + "column": 10 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -156286,50 +156861,51 @@ "binop": null, "updateContext": null }, - "start": 23959, - "end": 23960, + "value": "this", + "start": 23653, + "end": 23657, "loc": { "start": { - "line": 777, - "column": 90 + "line": 769, + "column": 11 }, "end": { - "line": 777, - "column": 91 + "line": 769, + "column": 15 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "pointerId", - "start": 23961, - "end": 23970, + "start": 23657, + "end": 23658, "loc": { "start": { - "line": 777, - "column": 92 + "line": 769, + "column": 15 }, "end": { - "line": 777, - "column": 101 + "line": 769, + "column": 16 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -156337,22 +156913,23 @@ "postfix": false, "binop": null }, - "start": 23971, - "end": 23972, + "value": "recognizerContext", + "start": 23658, + "end": 23675, "loc": { "start": { - "line": 777, - "column": 102 + "line": 769, + "column": 16 }, "end": { - "line": 777, - "column": 103 + "line": 769, + "column": 33 } } }, { "type": { - "label": ",", + "label": "?", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -156363,16 +156940,16 @@ "binop": null, "updateContext": null }, - "start": 23972, - "end": 23973, + "start": 23676, + "end": 23677, "loc": { "start": { - "line": 777, - "column": 103 + "line": 769, + "column": 34 }, "end": { - "line": 777, - "column": 104 + "line": 769, + "column": 35 } } }, @@ -156391,16 +156968,16 @@ "updateContext": null }, "value": "this", - "start": 23974, - "end": 23978, + "start": 23678, + "end": 23682, "loc": { "start": { - "line": 777, - "column": 105 + "line": 769, + "column": 36 }, "end": { - "line": 777, - "column": 109 + "line": 769, + "column": 40 } } }, @@ -156417,16 +156994,16 @@ "binop": null, "updateContext": null }, - "start": 23978, - "end": 23979, + "start": 23682, + "end": 23683, "loc": { "start": { - "line": 777, - "column": 109 + "line": 769, + "column": 40 }, "end": { - "line": 777, - "column": 110 + "line": 769, + "column": 41 } } }, @@ -156442,17 +157019,17 @@ "postfix": false, "binop": null }, - "value": "theme", - "start": 23979, - "end": 23984, + "value": "recognizerContext", + "start": 23683, + "end": 23700, "loc": { "start": { - "line": 777, - "column": 110 + "line": 769, + "column": 41 }, "end": { - "line": 777, - "column": 115 + "line": 769, + "column": 58 } } }, @@ -156469,16 +157046,16 @@ "binop": null, "updateContext": null }, - "start": 23984, - "end": 23985, + "start": 23700, + "end": 23701, "loc": { "start": { - "line": 777, - "column": 115 + "line": 769, + "column": 58 }, "end": { - "line": 777, - "column": 116 + "line": 769, + "column": 59 } } }, @@ -156494,23 +157071,23 @@ "postfix": false, "binop": null }, - "value": "ink", - "start": 23985, - "end": 23988, + "value": "initialized", + "start": 23701, + "end": 23712, "loc": { "start": { - "line": 777, - "column": 116 + "line": 769, + "column": 59 }, "end": { - "line": 777, - "column": 119 + "line": 769, + "column": 70 } } }, { "type": { - "label": ",", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -156521,23 +157098,23 @@ "binop": null, "updateContext": null }, - "start": 23988, - "end": 23989, + "start": 23713, + "end": 23714, "loc": { "start": { - "line": 777, - "column": 119 + "line": 769, + "column": 71 }, "end": { - "line": 777, - "column": 120 + "line": 769, + "column": 72 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "false", + "keyword": "false", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -156548,24 +157125,24 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 23990, - "end": 23994, + "value": "false", + "start": 23715, + "end": 23720, "loc": { "start": { - "line": 777, - "column": 121 + "line": 769, + "column": 73 }, "end": { - "line": 777, - "column": 125 + "line": 769, + "column": 78 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -156575,24 +157152,24 @@ "binop": null, "updateContext": null }, - "start": 23994, - "end": 23995, + "start": 23720, + "end": 23721, "loc": { "start": { - "line": 777, - "column": 125 + "line": 769, + "column": 78 }, "end": { - "line": 777, - "column": 126 + "line": 769, + "column": 79 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -156600,50 +157177,40 @@ "postfix": false, "binop": null }, - "value": "localPenStyle", - "start": 23995, - "end": 24008, + "start": 23724, + "end": 23725, "loc": { "start": { - "line": 777, - "column": 126 + "line": 770, + "column": 2 }, "end": { - "line": 777, - "column": 139 + "line": 770, + "column": 3 } } }, { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 24008, - "end": 24009, + "type": "CommentBlock", + "value": "*\n * Handle a pointer down\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n * @param {String} [pointerType=mouse] Current pointer type\n * @param {String} [pointerId] Current pointer id\n ", + "start": 23729, + "end": 23960, "loc": { "start": { - "line": 777, - "column": 139 + "line": 772, + "column": 2 }, "end": { "line": 777, - "column": 140 + "column": 5 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -156651,49 +157218,48 @@ "postfix": false, "binop": null }, - "start": 24009, - "end": 24010, + "value": "pointerDown", + "start": 23963, + "end": 23974, "loc": { "start": { - "line": 777, - "column": 140 + "line": 778, + "column": 2 }, "end": { - "line": 777, - "column": 141 + "line": 778, + "column": 13 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 24010, - "end": 24011, + "start": 23974, + "end": 23975, "loc": { "start": { - "line": 777, - "column": 141 + "line": 778, + "column": 13 }, "end": { - "line": 777, - "column": 142 + "line": 778, + "column": 14 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -156701,27 +157267,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 24016, - "end": 24020, + "value": "point", + "start": 23975, + "end": 23980, "loc": { "start": { "line": 778, - "column": 4 + "column": 14 }, "end": { "line": 778, - "column": 8 + "column": 19 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -156731,16 +157296,16 @@ "binop": null, "updateContext": null }, - "start": 24020, - "end": 24021, + "start": 23980, + "end": 23981, "loc": { "start": { "line": 778, - "column": 8 + "column": 19 }, "end": { "line": 778, - "column": 9 + "column": 20 } } }, @@ -156756,49 +157321,50 @@ "postfix": false, "binop": null }, - "value": "renderer", - "start": 24021, - "end": 24029, + "value": "pointerType", + "start": 23982, + "end": 23993, "loc": { "start": { "line": 778, - "column": 9 + "column": 21 }, "end": { "line": 778, - "column": 17 + "column": 32 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 24029, - "end": 24030, + "value": "=", + "start": 23994, + "end": 23995, "loc": { "start": { "line": 778, - "column": 17 + "column": 33 }, "end": { "line": 778, - "column": 18 + "column": 34 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -156806,36 +157372,12 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "value": "drawCurrentStroke", - "start": 24030, - "end": 24047, - "loc": { - "start": { - "line": 778, - "column": 18 - }, - "end": { - "line": 778, - "column": 35 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 24047, - "end": 24048, + "value": "pen", + "start": 23996, + "end": 24001, "loc": { "start": { "line": 778, @@ -156843,16 +157385,15 @@ }, "end": { "line": 778, - "column": 36 + "column": 40 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -156861,51 +157402,50 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 24048, - "end": 24052, + "start": 24001, + "end": 24002, "loc": { "start": { "line": 778, - "column": 36 + "column": 40 }, "end": { "line": 778, - "column": 40 + "column": 41 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 24052, - "end": 24053, + "value": "pointerId", + "start": 24003, + "end": 24012, "loc": { "start": { "line": 778, - "column": 40 + "column": 42 }, "end": { "line": 778, - "column": 41 + "column": 51 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -156913,50 +157453,47 @@ "postfix": false, "binop": null }, - "value": "rendererContext", - "start": 24053, - "end": 24068, + "start": 24012, + "end": 24013, "loc": { "start": { "line": 778, - "column": 41 + "column": 51 }, "end": { "line": 778, - "column": 56 + "column": 52 } } }, { "type": { - "label": ",", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 24068, - "end": 24069, + "start": 24014, + "end": 24015, "loc": { "start": { "line": 778, - "column": 56 + "column": 53 }, "end": { "line": 778, - "column": 57 + "column": 54 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -156964,20 +157501,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 24070, - "end": 24074, + "value": "logger", + "start": 24020, + "end": 24026, "loc": { "start": { - "line": 778, - "column": 58 + "line": 779, + "column": 4 }, "end": { - "line": 778, - "column": 62 + "line": 779, + "column": 10 } } }, @@ -156994,16 +157530,16 @@ "binop": null, "updateContext": null }, - "start": 24074, - "end": 24075, + "start": 24026, + "end": 24027, "loc": { "start": { - "line": 778, - "column": 62 + "line": 779, + "column": 10 }, "end": { - "line": 778, - "column": 63 + "line": 779, + "column": 11 } } }, @@ -157019,50 +157555,48 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 24075, - "end": 24080, + "value": "trace", + "start": 24027, + "end": 24032, "loc": { "start": { - "line": 778, - "column": 63 + "line": 779, + "column": 11 }, "end": { - "line": 778, - "column": 68 + "line": 779, + "column": 16 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 24080, - "end": 24081, + "start": 24032, + "end": 24033, "loc": { "start": { - "line": 778, - "column": 68 + "line": 779, + "column": 16 }, "end": { - "line": 778, - "column": 69 + "line": 779, + "column": 17 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -157073,24 +157607,24 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 24082, - "end": 24086, + "value": "Pointer down", + "start": 24033, + "end": 24047, "loc": { "start": { - "line": 778, - "column": 70 + "line": 779, + "column": 17 }, "end": { - "line": 778, - "column": 74 + "line": 779, + "column": 31 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -157100,16 +157634,16 @@ "binop": null, "updateContext": null }, - "start": 24086, - "end": 24087, + "start": 24047, + "end": 24048, "loc": { "start": { - "line": 778, - "column": 74 + "line": 779, + "column": 31 }, "end": { - "line": 778, - "column": 75 + "line": 779, + "column": 32 } } }, @@ -157125,17 +157659,17 @@ "postfix": false, "binop": null }, - "value": "stroker", - "start": 24087, - "end": 24094, + "value": "point", + "start": 24049, + "end": 24054, "loc": { "start": { - "line": 778, - "column": 75 + "line": 779, + "column": 33 }, "end": { - "line": 778, - "column": 82 + "line": 779, + "column": 38 } } }, @@ -157151,16 +157685,16 @@ "postfix": false, "binop": null }, - "start": 24094, - "end": 24095, + "start": 24054, + "end": 24055, "loc": { "start": { - "line": 778, - "column": 82 + "line": 779, + "column": 38 }, "end": { - "line": 778, - "column": 83 + "line": 779, + "column": 39 } } }, @@ -157177,40 +157711,24 @@ "binop": null, "updateContext": null }, - "start": 24095, - "end": 24096, - "loc": { - "start": { - "line": 778, - "column": 83 - }, - "end": { - "line": 778, - "column": 84 - } - } - }, - { - "type": "CommentLine", - "value": " Currently no recognition on pointer down", - "start": 24101, - "end": 24144, + "start": 24055, + "end": 24056, "loc": { "start": { "line": 779, - "column": 4 + "column": 39 }, "end": { "line": 779, - "column": 47 + "column": 40 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -157218,32 +157736,43 @@ "postfix": false, "binop": null }, - "start": 24147, - "end": 24148, + "value": "window", + "start": 24061, + "end": 24067, "loc": { "start": { "line": 780, - "column": 2 + "column": 4 }, "end": { "line": 780, - "column": 3 + "column": 10 } } }, { - "type": "CommentBlock", - "value": "*\n * Handle a pointer move\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n ", - "start": 24152, - "end": 24269, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 24067, + "end": 24068, "loc": { "start": { - "line": 782, - "column": 2 + "line": 780, + "column": 10 }, "end": { - "line": 785, - "column": 5 + "line": 780, + "column": 11 } } }, @@ -157259,17 +157788,17 @@ "postfix": false, "binop": null }, - "value": "pointerMove", - "start": 24272, - "end": 24283, + "value": "clearTimeout", + "start": 24068, + "end": 24080, "loc": { "start": { - "line": 786, - "column": 2 + "line": 780, + "column": 11 }, "end": { - "line": 786, - "column": 13 + "line": 780, + "column": 23 } } }, @@ -157285,22 +157814,23 @@ "postfix": false, "binop": null }, - "start": 24283, - "end": 24284, + "start": 24080, + "end": 24081, "loc": { "start": { - "line": 786, - "column": 13 + "line": 780, + "column": 23 }, "end": { - "line": 786, - "column": 14 + "line": 780, + "column": 24 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -157308,25 +157838,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "point", - "start": 24284, - "end": 24289, + "value": "this", + "start": 24081, + "end": 24085, "loc": { "start": { - "line": 786, - "column": 14 + "line": 780, + "column": 24 }, "end": { - "line": 786, - "column": 19 + "line": 780, + "column": 28 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -157334,25 +157865,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 24289, - "end": 24290, + "start": 24085, + "end": 24086, "loc": { "start": { - "line": 786, - "column": 19 + "line": 780, + "column": 28 }, "end": { - "line": 786, - "column": 20 + "line": 780, + "column": 29 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -157361,16 +157893,68 @@ "postfix": false, "binop": null }, - "start": 24291, - "end": 24292, + "value": "notifyTimer", + "start": 24086, + "end": 24097, "loc": { "start": { - "line": 786, - "column": 21 + "line": 780, + "column": 29 }, "end": { - "line": 786, - "column": 22 + "line": 780, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 24097, + "end": 24098, + "loc": { + "start": { + "line": 780, + "column": 40 + }, + "end": { + "line": 780, + "column": 41 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 24098, + "end": 24099, + "loc": { + "start": { + "line": 780, + "column": 41 + }, + "end": { + "line": 780, + "column": 42 } } }, @@ -157386,16 +157970,16 @@ "postfix": false, "binop": null }, - "value": "logger", - "start": 24297, - "end": 24303, + "value": "window", + "start": 24104, + "end": 24110, "loc": { "start": { - "line": 787, + "line": 781, "column": 4 }, "end": { - "line": 787, + "line": 781, "column": 10 } } @@ -157413,15 +157997,15 @@ "binop": null, "updateContext": null }, - "start": 24303, - "end": 24304, + "start": 24110, + "end": 24111, "loc": { "start": { - "line": 787, + "line": 781, "column": 10 }, "end": { - "line": 787, + "line": 781, "column": 11 } } @@ -157438,17 +158022,17 @@ "postfix": false, "binop": null }, - "value": "trace", - "start": 24304, - "end": 24309, + "value": "clearTimeout", + "start": 24111, + "end": 24123, "loc": { "start": { - "line": 787, + "line": 781, "column": 11 }, "end": { - "line": 787, - "column": 16 + "line": 781, + "column": 23 } } }, @@ -157464,22 +158048,23 @@ "postfix": false, "binop": null }, - "start": 24309, - "end": 24310, + "start": 24123, + "end": 24124, "loc": { "start": { - "line": 787, - "column": 16 + "line": 781, + "column": 23 }, "end": { - "line": 787, - "column": 17 + "line": 781, + "column": 24 } } }, { "type": { - "label": "string", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -157490,24 +158075,24 @@ "binop": null, "updateContext": null }, - "value": "Pointer move", - "start": 24310, - "end": 24324, + "value": "this", + "start": 24124, + "end": 24128, "loc": { "start": { - "line": 787, - "column": 17 + "line": 781, + "column": 24 }, "end": { - "line": 787, - "column": 31 + "line": 781, + "column": 28 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -157517,16 +158102,16 @@ "binop": null, "updateContext": null }, - "start": 24324, - "end": 24325, + "start": 24128, + "end": 24129, "loc": { "start": { - "line": 787, - "column": 31 + "line": 781, + "column": 28 }, "end": { - "line": 787, - "column": 32 + "line": 781, + "column": 29 } } }, @@ -157542,17 +158127,17 @@ "postfix": false, "binop": null }, - "value": "point", - "start": 24326, - "end": 24331, + "value": "exportTimer", + "start": 24129, + "end": 24140, "loc": { "start": { - "line": 787, - "column": 33 + "line": 781, + "column": 29 }, "end": { - "line": 787, - "column": 38 + "line": 781, + "column": 40 } } }, @@ -157568,16 +158153,16 @@ "postfix": false, "binop": null }, - "start": 24331, - "end": 24332, + "start": 24140, + "end": 24141, "loc": { "start": { - "line": 787, - "column": 38 + "line": 781, + "column": 40 }, "end": { - "line": 787, - "column": 39 + "line": 781, + "column": 41 } } }, @@ -157594,16 +158179,16 @@ "binop": null, "updateContext": null }, - "start": 24332, - "end": 24333, + "start": 24141, + "end": 24142, "loc": { "start": { - "line": 787, - "column": 39 + "line": 781, + "column": 41 }, "end": { - "line": 787, - "column": 40 + "line": 781, + "column": 42 } } }, @@ -157622,15 +158207,15 @@ "updateContext": null }, "value": "this", - "start": 24338, - "end": 24342, + "start": 24147, + "end": 24151, "loc": { "start": { - "line": 788, + "line": 782, "column": 4 }, "end": { - "line": 788, + "line": 782, "column": 8 } } @@ -157648,15 +158233,15 @@ "binop": null, "updateContext": null }, - "start": 24342, - "end": 24343, + "start": 24151, + "end": 24152, "loc": { "start": { - "line": 788, + "line": 782, "column": 8 }, "end": { - "line": 788, + "line": 782, "column": 9 } } @@ -157674,15 +158259,15 @@ "binop": null }, "value": "model", - "start": 24343, - "end": 24348, + "start": 24152, + "end": 24157, "loc": { "start": { - "line": 788, + "line": 782, "column": 9 }, "end": { - "line": 788, + "line": 782, "column": 14 } } @@ -157701,15 +158286,15 @@ "updateContext": null }, "value": "=", - "start": 24349, - "end": 24350, + "start": 24158, + "end": 24159, "loc": { "start": { - "line": 788, + "line": 782, "column": 15 }, "end": { - "line": 788, + "line": 782, "column": 16 } } @@ -157727,15 +158312,15 @@ "binop": null }, "value": "InkModel", - "start": 24351, - "end": 24359, + "start": 24160, + "end": 24168, "loc": { "start": { - "line": 788, + "line": 782, "column": 17 }, "end": { - "line": 788, + "line": 782, "column": 25 } } @@ -157753,15 +158338,15 @@ "binop": null, "updateContext": null }, - "start": 24359, - "end": 24360, + "start": 24168, + "end": 24169, "loc": { "start": { - "line": 788, + "line": 782, "column": 25 }, "end": { - "line": 788, + "line": 782, "column": 26 } } @@ -157778,17 +158363,17 @@ "postfix": false, "binop": null }, - "value": "appendToPendingStroke", - "start": 24360, - "end": 24381, + "value": "initPendingStroke", + "start": 24169, + "end": 24186, "loc": { "start": { - "line": 788, + "line": 782, "column": 26 }, "end": { - "line": 788, - "column": 47 + "line": 782, + "column": 43 } } }, @@ -157804,16 +158389,16 @@ "postfix": false, "binop": null }, - "start": 24381, - "end": 24382, + "start": 24186, + "end": 24187, "loc": { "start": { - "line": 788, - "column": 47 + "line": 782, + "column": 43 }, "end": { - "line": 788, - "column": 48 + "line": 782, + "column": 44 } } }, @@ -157832,16 +158417,16 @@ "updateContext": null }, "value": "this", - "start": 24382, - "end": 24386, + "start": 24187, + "end": 24191, "loc": { "start": { - "line": 788, - "column": 48 + "line": 782, + "column": 44 }, "end": { - "line": 788, - "column": 52 + "line": 782, + "column": 48 } } }, @@ -157858,16 +158443,16 @@ "binop": null, "updateContext": null }, - "start": 24386, - "end": 24387, + "start": 24191, + "end": 24192, "loc": { "start": { - "line": 788, - "column": 52 + "line": 782, + "column": 48 }, "end": { - "line": 788, - "column": 53 + "line": 782, + "column": 49 } } }, @@ -157884,16 +158469,16 @@ "binop": null }, "value": "model", - "start": 24387, - "end": 24392, + "start": 24192, + "end": 24197, "loc": { "start": { - "line": 788, - "column": 53 + "line": 782, + "column": 49 }, "end": { - "line": 788, - "column": 58 + "line": 782, + "column": 54 } } }, @@ -157910,16 +158495,16 @@ "binop": null, "updateContext": null }, - "start": 24392, - "end": 24393, + "start": 24197, + "end": 24198, "loc": { "start": { - "line": 788, - "column": 58 + "line": 782, + "column": 54 }, "end": { - "line": 788, - "column": 59 + "line": 782, + "column": 55 } } }, @@ -157936,16 +158521,537 @@ "binop": null }, "value": "point", - "start": 24394, - "end": 24399, + "start": 24199, + "end": 24204, "loc": { "start": { - "line": 788, - "column": 60 + "line": 782, + "column": 56 }, "end": { - "line": 788, - "column": 65 + "line": 782, + "column": 61 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 24204, + "end": 24205, + "loc": { + "start": { + "line": 782, + "column": 61 + }, + "end": { + "line": 782, + "column": 62 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Object", + "start": 24206, + "end": 24212, + "loc": { + "start": { + "line": 782, + "column": 63 + }, + "end": { + "line": 782, + "column": 69 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 24212, + "end": 24213, + "loc": { + "start": { + "line": 782, + "column": 69 + }, + "end": { + "line": 782, + "column": 70 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "assign", + "start": 24213, + "end": 24219, + "loc": { + "start": { + "line": 782, + "column": 70 + }, + "end": { + "line": 782, + "column": 76 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 24219, + "end": 24220, + "loc": { + "start": { + "line": 782, + "column": 76 + }, + "end": { + "line": 782, + "column": 77 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 24220, + "end": 24221, + "loc": { + "start": { + "line": 782, + "column": 77 + }, + "end": { + "line": 782, + "column": 78 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pointerType", + "start": 24222, + "end": 24233, + "loc": { + "start": { + "line": 782, + "column": 79 + }, + "end": { + "line": 782, + "column": 90 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 24233, + "end": 24234, + "loc": { + "start": { + "line": 782, + "column": 90 + }, + "end": { + "line": 782, + "column": 91 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pointerId", + "start": 24235, + "end": 24244, + "loc": { + "start": { + "line": 782, + "column": 92 + }, + "end": { + "line": 782, + "column": 101 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 24245, + "end": 24246, + "loc": { + "start": { + "line": 782, + "column": 102 + }, + "end": { + "line": 782, + "column": 103 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 24246, + "end": 24247, + "loc": { + "start": { + "line": 782, + "column": 103 + }, + "end": { + "line": 782, + "column": 104 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 24248, + "end": 24252, + "loc": { + "start": { + "line": 782, + "column": 105 + }, + "end": { + "line": 782, + "column": 109 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 24252, + "end": 24253, + "loc": { + "start": { + "line": 782, + "column": 109 + }, + "end": { + "line": 782, + "column": 110 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "theme", + "start": 24253, + "end": 24258, + "loc": { + "start": { + "line": 782, + "column": 110 + }, + "end": { + "line": 782, + "column": 115 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 24258, + "end": 24259, + "loc": { + "start": { + "line": 782, + "column": 115 + }, + "end": { + "line": 782, + "column": 116 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ink", + "start": 24259, + "end": 24262, + "loc": { + "start": { + "line": 782, + "column": 116 + }, + "end": { + "line": 782, + "column": 119 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 24262, + "end": 24263, + "loc": { + "start": { + "line": 782, + "column": 119 + }, + "end": { + "line": 782, + "column": 120 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 24264, + "end": 24268, + "loc": { + "start": { + "line": 782, + "column": 121 + }, + "end": { + "line": 782, + "column": 125 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 24268, + "end": 24269, + "loc": { + "start": { + "line": 782, + "column": 125 + }, + "end": { + "line": 782, + "column": 126 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "localPenStyle", + "start": 24269, + "end": 24282, + "loc": { + "start": { + "line": 782, + "column": 126 + }, + "end": { + "line": 782, + "column": 139 } } }, @@ -157961,16 +159067,41 @@ "postfix": false, "binop": null }, - "start": 24399, - "end": 24400, + "start": 24282, + "end": 24283, "loc": { "start": { - "line": 788, - "column": 65 + "line": 782, + "column": 139 }, "end": { - "line": 788, - "column": 66 + "line": 782, + "column": 140 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 24283, + "end": 24284, + "loc": { + "start": { + "line": 782, + "column": 140 + }, + "end": { + "line": 782, + "column": 141 } } }, @@ -157987,16 +159118,16 @@ "binop": null, "updateContext": null }, - "start": 24400, - "end": 24401, + "start": 24284, + "end": 24285, "loc": { "start": { - "line": 788, - "column": 66 + "line": 782, + "column": 141 }, "end": { - "line": 788, - "column": 67 + "line": 782, + "column": 142 } } }, @@ -158015,15 +159146,15 @@ "updateContext": null }, "value": "this", - "start": 24406, - "end": 24410, + "start": 24290, + "end": 24294, "loc": { "start": { - "line": 789, + "line": 783, "column": 4 }, "end": { - "line": 789, + "line": 783, "column": 8 } } @@ -158041,15 +159172,15 @@ "binop": null, "updateContext": null }, - "start": 24410, - "end": 24411, + "start": 24294, + "end": 24295, "loc": { "start": { - "line": 789, + "line": 783, "column": 8 }, "end": { - "line": 789, + "line": 783, "column": 9 } } @@ -158067,15 +159198,15 @@ "binop": null }, "value": "renderer", - "start": 24411, - "end": 24419, + "start": 24295, + "end": 24303, "loc": { "start": { - "line": 789, + "line": 783, "column": 9 }, "end": { - "line": 789, + "line": 783, "column": 17 } } @@ -158093,15 +159224,15 @@ "binop": null, "updateContext": null }, - "start": 24419, - "end": 24420, + "start": 24303, + "end": 24304, "loc": { "start": { - "line": 789, + "line": 783, "column": 17 }, "end": { - "line": 789, + "line": 783, "column": 18 } } @@ -158119,15 +159250,15 @@ "binop": null }, "value": "drawCurrentStroke", - "start": 24420, - "end": 24437, + "start": 24304, + "end": 24321, "loc": { "start": { - "line": 789, + "line": 783, "column": 18 }, "end": { - "line": 789, + "line": 783, "column": 35 } } @@ -158144,15 +159275,15 @@ "postfix": false, "binop": null }, - "start": 24437, - "end": 24438, + "start": 24321, + "end": 24322, "loc": { "start": { - "line": 789, + "line": 783, "column": 35 }, "end": { - "line": 789, + "line": 783, "column": 36 } } @@ -158172,15 +159303,15 @@ "updateContext": null }, "value": "this", - "start": 24438, - "end": 24442, + "start": 24322, + "end": 24326, "loc": { "start": { - "line": 789, + "line": 783, "column": 36 }, "end": { - "line": 789, + "line": 783, "column": 40 } } @@ -158198,15 +159329,15 @@ "binop": null, "updateContext": null }, - "start": 24442, - "end": 24443, + "start": 24326, + "end": 24327, "loc": { "start": { - "line": 789, + "line": 783, "column": 40 }, "end": { - "line": 789, + "line": 783, "column": 41 } } @@ -158224,15 +159355,15 @@ "binop": null }, "value": "rendererContext", - "start": 24443, - "end": 24458, + "start": 24327, + "end": 24342, "loc": { "start": { - "line": 789, + "line": 783, "column": 41 }, "end": { - "line": 789, + "line": 783, "column": 56 } } @@ -158250,15 +159381,15 @@ "binop": null, "updateContext": null }, - "start": 24458, - "end": 24459, + "start": 24342, + "end": 24343, "loc": { "start": { - "line": 789, + "line": 783, "column": 56 }, "end": { - "line": 789, + "line": 783, "column": 57 } } @@ -158278,15 +159409,15 @@ "updateContext": null }, "value": "this", - "start": 24460, - "end": 24464, + "start": 24344, + "end": 24348, "loc": { "start": { - "line": 789, + "line": 783, "column": 58 }, "end": { - "line": 789, + "line": 783, "column": 62 } } @@ -158304,15 +159435,15 @@ "binop": null, "updateContext": null }, - "start": 24464, - "end": 24465, + "start": 24348, + "end": 24349, "loc": { "start": { - "line": 789, + "line": 783, "column": 62 }, "end": { - "line": 789, + "line": 783, "column": 63 } } @@ -158330,15 +159461,15 @@ "binop": null }, "value": "model", - "start": 24465, - "end": 24470, + "start": 24349, + "end": 24354, "loc": { "start": { - "line": 789, + "line": 783, "column": 63 }, "end": { - "line": 789, + "line": 783, "column": 68 } } @@ -158356,15 +159487,15 @@ "binop": null, "updateContext": null }, - "start": 24470, - "end": 24471, + "start": 24354, + "end": 24355, "loc": { "start": { - "line": 789, + "line": 783, "column": 68 }, "end": { - "line": 789, + "line": 783, "column": 69 } } @@ -158384,15 +159515,15 @@ "updateContext": null }, "value": "this", - "start": 24472, - "end": 24476, + "start": 24356, + "end": 24360, "loc": { "start": { - "line": 789, + "line": 783, "column": 70 }, "end": { - "line": 789, + "line": 783, "column": 74 } } @@ -158410,15 +159541,15 @@ "binop": null, "updateContext": null }, - "start": 24476, - "end": 24477, + "start": 24360, + "end": 24361, "loc": { "start": { - "line": 789, + "line": 783, "column": 74 }, "end": { - "line": 789, + "line": 783, "column": 75 } } @@ -158436,15 +159567,15 @@ "binop": null }, "value": "stroker", - "start": 24477, - "end": 24484, + "start": 24361, + "end": 24368, "loc": { "start": { - "line": 789, + "line": 783, "column": 75 }, "end": { - "line": 789, + "line": 783, "column": 82 } } @@ -158461,15 +159592,15 @@ "postfix": false, "binop": null }, - "start": 24484, - "end": 24485, + "start": 24368, + "end": 24369, "loc": { "start": { - "line": 789, + "line": 783, "column": 82 }, "end": { - "line": 789, + "line": 783, "column": 83 } } @@ -158487,31 +159618,31 @@ "binop": null, "updateContext": null }, - "start": 24485, - "end": 24486, + "start": 24369, + "end": 24370, "loc": { "start": { - "line": 789, + "line": 783, "column": 83 }, "end": { - "line": 789, + "line": 783, "column": 84 } } }, { "type": "CommentLine", - "value": " Currently no recognition on pointer move", - "start": 24491, - "end": 24534, + "value": " Currently no recognition on pointer down", + "start": 24375, + "end": 24418, "loc": { "start": { - "line": 790, + "line": 784, "column": 4 }, "end": { - "line": 790, + "line": 784, "column": 47 } } @@ -158528,31 +159659,31 @@ "postfix": false, "binop": null }, - "start": 24537, - "end": 24538, + "start": 24421, + "end": 24422, "loc": { "start": { - "line": 791, + "line": 785, "column": 2 }, "end": { - "line": 791, + "line": 785, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * Handle a pointer up\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n ", - "start": 24542, - "end": 24657, + "value": "*\n * Handle a pointer move\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n ", + "start": 24426, + "end": 24543, "loc": { "start": { - "line": 793, + "line": 787, "column": 2 }, "end": { - "line": 796, + "line": 790, "column": 5 } } @@ -158569,17 +159700,17 @@ "postfix": false, "binop": null }, - "value": "pointerUp", - "start": 24660, - "end": 24669, + "value": "pointerMove", + "start": 24546, + "end": 24557, "loc": { "start": { - "line": 797, + "line": 791, "column": 2 }, "end": { - "line": 797, - "column": 11 + "line": 791, + "column": 13 } } }, @@ -158595,16 +159726,16 @@ "postfix": false, "binop": null }, - "start": 24669, - "end": 24670, + "start": 24557, + "end": 24558, "loc": { "start": { - "line": 797, - "column": 11 + "line": 791, + "column": 13 }, "end": { - "line": 797, - "column": 12 + "line": 791, + "column": 14 } } }, @@ -158621,16 +159752,16 @@ "binop": null }, "value": "point", - "start": 24670, - "end": 24675, + "start": 24558, + "end": 24563, "loc": { "start": { - "line": 797, - "column": 12 + "line": 791, + "column": 14 }, "end": { - "line": 797, - "column": 17 + "line": 791, + "column": 19 } } }, @@ -158646,16 +159777,16 @@ "postfix": false, "binop": null }, - "start": 24675, - "end": 24676, + "start": 24563, + "end": 24564, "loc": { "start": { - "line": 797, - "column": 17 + "line": 791, + "column": 19 }, "end": { - "line": 797, - "column": 18 + "line": 791, + "column": 20 } } }, @@ -158671,16 +159802,16 @@ "postfix": false, "binop": null }, - "start": 24677, - "end": 24678, + "start": 24565, + "end": 24566, "loc": { "start": { - "line": 797, - "column": 19 + "line": 791, + "column": 21 }, "end": { - "line": 797, - "column": 20 + "line": 791, + "column": 22 } } }, @@ -158697,15 +159828,15 @@ "binop": null }, "value": "logger", - "start": 24683, - "end": 24689, + "start": 24571, + "end": 24577, "loc": { "start": { - "line": 798, + "line": 792, "column": 4 }, "end": { - "line": 798, + "line": 792, "column": 10 } } @@ -158723,15 +159854,15 @@ "binop": null, "updateContext": null }, - "start": 24689, - "end": 24690, + "start": 24577, + "end": 24578, "loc": { "start": { - "line": 798, + "line": 792, "column": 10 }, "end": { - "line": 798, + "line": 792, "column": 11 } } @@ -158749,15 +159880,15 @@ "binop": null }, "value": "trace", - "start": 24690, - "end": 24695, + "start": 24578, + "end": 24583, "loc": { "start": { - "line": 798, + "line": 792, "column": 11 }, "end": { - "line": 798, + "line": 792, "column": 16 } } @@ -158774,15 +159905,15 @@ "postfix": false, "binop": null }, - "start": 24695, - "end": 24696, + "start": 24583, + "end": 24584, "loc": { "start": { - "line": 798, + "line": 792, "column": 16 }, "end": { - "line": 798, + "line": 792, "column": 17 } } @@ -158800,17 +159931,17 @@ "binop": null, "updateContext": null }, - "value": "Pointer up", - "start": 24696, - "end": 24708, + "value": "Pointer move", + "start": 24584, + "end": 24598, "loc": { "start": { - "line": 798, + "line": 792, "column": 17 }, "end": { - "line": 798, - "column": 29 + "line": 792, + "column": 31 } } }, @@ -158827,16 +159958,16 @@ "binop": null, "updateContext": null }, - "start": 24708, - "end": 24709, + "start": 24598, + "end": 24599, "loc": { "start": { - "line": 798, - "column": 29 + "line": 792, + "column": 31 }, "end": { - "line": 798, - "column": 30 + "line": 792, + "column": 32 } } }, @@ -158853,16 +159984,16 @@ "binop": null }, "value": "point", - "start": 24710, - "end": 24715, + "start": 24600, + "end": 24605, "loc": { "start": { - "line": 798, - "column": 31 + "line": 792, + "column": 33 }, "end": { - "line": 798, - "column": 36 + "line": 792, + "column": 38 } } }, @@ -158878,16 +160009,16 @@ "postfix": false, "binop": null }, - "start": 24715, - "end": 24716, + "start": 24605, + "end": 24606, "loc": { "start": { - "line": 798, - "column": 36 + "line": 792, + "column": 38 }, "end": { - "line": 798, - "column": 37 + "line": 792, + "column": 39 } } }, @@ -158904,16 +160035,16 @@ "binop": null, "updateContext": null }, - "start": 24716, - "end": 24717, + "start": 24606, + "end": 24607, "loc": { "start": { - "line": 798, - "column": 37 + "line": 792, + "column": 39 }, "end": { - "line": 798, - "column": 38 + "line": 792, + "column": 40 } } }, @@ -158932,15 +160063,15 @@ "updateContext": null }, "value": "this", - "start": 24722, - "end": 24726, + "start": 24612, + "end": 24616, "loc": { "start": { - "line": 799, + "line": 793, "column": 4 }, "end": { - "line": 799, + "line": 793, "column": 8 } } @@ -158958,15 +160089,15 @@ "binop": null, "updateContext": null }, - "start": 24726, - "end": 24727, + "start": 24616, + "end": 24617, "loc": { "start": { - "line": 799, + "line": 793, "column": 8 }, "end": { - "line": 799, + "line": 793, "column": 9 } } @@ -158984,15 +160115,15 @@ "binop": null }, "value": "model", - "start": 24727, - "end": 24732, + "start": 24617, + "end": 24622, "loc": { "start": { - "line": 799, + "line": 793, "column": 9 }, "end": { - "line": 799, + "line": 793, "column": 14 } } @@ -159011,15 +160142,15 @@ "updateContext": null }, "value": "=", - "start": 24733, - "end": 24734, + "start": 24623, + "end": 24624, "loc": { "start": { - "line": 799, + "line": 793, "column": 15 }, "end": { - "line": 799, + "line": 793, "column": 16 } } @@ -159037,15 +160168,15 @@ "binop": null }, "value": "InkModel", - "start": 24735, - "end": 24743, + "start": 24625, + "end": 24633, "loc": { "start": { - "line": 799, + "line": 793, "column": 17 }, "end": { - "line": 799, + "line": 793, "column": 25 } } @@ -159063,15 +160194,15 @@ "binop": null, "updateContext": null }, - "start": 24743, - "end": 24744, + "start": 24633, + "end": 24634, "loc": { "start": { - "line": 799, + "line": 793, "column": 25 }, "end": { - "line": 799, + "line": 793, "column": 26 } } @@ -159088,17 +160219,17 @@ "postfix": false, "binop": null }, - "value": "endPendingStroke", - "start": 24744, - "end": 24760, + "value": "appendToPendingStroke", + "start": 24634, + "end": 24655, "loc": { "start": { - "line": 799, + "line": 793, "column": 26 }, "end": { - "line": 799, - "column": 42 + "line": 793, + "column": 47 } } }, @@ -159114,16 +160245,16 @@ "postfix": false, "binop": null }, - "start": 24760, - "end": 24761, + "start": 24655, + "end": 24656, "loc": { "start": { - "line": 799, - "column": 42 + "line": 793, + "column": 47 }, "end": { - "line": 799, - "column": 43 + "line": 793, + "column": 48 } } }, @@ -159142,16 +160273,16 @@ "updateContext": null }, "value": "this", - "start": 24761, - "end": 24765, + "start": 24656, + "end": 24660, "loc": { "start": { - "line": 799, - "column": 43 + "line": 793, + "column": 48 }, "end": { - "line": 799, - "column": 47 + "line": 793, + "column": 52 } } }, @@ -159168,16 +160299,16 @@ "binop": null, "updateContext": null }, - "start": 24765, - "end": 24766, + "start": 24660, + "end": 24661, "loc": { "start": { - "line": 799, - "column": 47 + "line": 793, + "column": 52 }, "end": { - "line": 799, - "column": 48 + "line": 793, + "column": 53 } } }, @@ -159194,16 +160325,16 @@ "binop": null }, "value": "model", - "start": 24766, - "end": 24771, + "start": 24661, + "end": 24666, "loc": { "start": { - "line": 799, - "column": 48 + "line": 793, + "column": 53 }, "end": { - "line": 799, - "column": 53 + "line": 793, + "column": 58 } } }, @@ -159220,16 +160351,16 @@ "binop": null, "updateContext": null }, - "start": 24771, - "end": 24772, + "start": 24666, + "end": 24667, "loc": { "start": { - "line": 799, - "column": 53 + "line": 793, + "column": 58 }, "end": { - "line": 799, - "column": 54 + "line": 793, + "column": 59 } } }, @@ -159246,122 +160377,16 @@ "binop": null }, "value": "point", - "start": 24773, - "end": 24778, - "loc": { - "start": { - "line": 799, - "column": 55 - }, - "end": { - "line": 799, - "column": 60 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 24778, - "end": 24779, + "start": 24668, + "end": 24673, "loc": { "start": { - "line": 799, + "line": 793, "column": 60 }, "end": { - "line": 799, - "column": 61 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 24780, - "end": 24784, - "loc": { - "start": { - "line": 799, - "column": 62 - }, - "end": { - "line": 799, - "column": 66 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 24784, - "end": 24785, - "loc": { - "start": { - "line": 799, - "column": 66 - }, - "end": { - "line": 799, - "column": 67 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "penStyle", - "start": 24785, - "end": 24793, - "loc": { - "start": { - "line": 799, - "column": 67 - }, - "end": { - "line": 799, - "column": 75 + "line": 793, + "column": 65 } } }, @@ -159377,16 +160402,16 @@ "postfix": false, "binop": null }, - "start": 24793, - "end": 24794, + "start": 24673, + "end": 24674, "loc": { "start": { - "line": 799, - "column": 75 + "line": 793, + "column": 65 }, "end": { - "line": 799, - "column": 76 + "line": 793, + "column": 66 } } }, @@ -159403,16 +160428,16 @@ "binop": null, "updateContext": null }, - "start": 24794, - "end": 24795, + "start": 24674, + "end": 24675, "loc": { "start": { - "line": 799, - "column": 76 + "line": 793, + "column": 66 }, "end": { - "line": 799, - "column": 77 + "line": 793, + "column": 67 } } }, @@ -159431,15 +160456,15 @@ "updateContext": null }, "value": "this", - "start": 24800, - "end": 24804, + "start": 24680, + "end": 24684, "loc": { "start": { - "line": 800, + "line": 794, "column": 4 }, "end": { - "line": 800, + "line": 794, "column": 8 } } @@ -159457,15 +160482,15 @@ "binop": null, "updateContext": null }, - "start": 24804, - "end": 24805, + "start": 24684, + "end": 24685, "loc": { "start": { - "line": 800, + "line": 794, "column": 8 }, "end": { - "line": 800, + "line": 794, "column": 9 } } @@ -159483,15 +160508,15 @@ "binop": null }, "value": "renderer", - "start": 24805, - "end": 24813, + "start": 24685, + "end": 24693, "loc": { "start": { - "line": 800, + "line": 794, "column": 9 }, "end": { - "line": 800, + "line": 794, "column": 17 } } @@ -159509,15 +160534,15 @@ "binop": null, "updateContext": null }, - "start": 24813, - "end": 24814, + "start": 24693, + "end": 24694, "loc": { "start": { - "line": 800, + "line": 794, "column": 17 }, "end": { - "line": 800, + "line": 794, "column": 18 } } @@ -159534,17 +160559,17 @@ "postfix": false, "binop": null }, - "value": "drawModel", - "start": 24814, - "end": 24823, + "value": "drawCurrentStroke", + "start": 24694, + "end": 24711, "loc": { "start": { - "line": 800, + "line": 794, "column": 18 }, "end": { - "line": 800, - "column": 27 + "line": 794, + "column": 35 } } }, @@ -159560,16 +160585,16 @@ "postfix": false, "binop": null }, - "start": 24823, - "end": 24824, + "start": 24711, + "end": 24712, "loc": { "start": { - "line": 800, - "column": 27 + "line": 794, + "column": 35 }, "end": { - "line": 800, - "column": 28 + "line": 794, + "column": 36 } } }, @@ -159588,16 +160613,16 @@ "updateContext": null }, "value": "this", - "start": 24824, - "end": 24828, + "start": 24712, + "end": 24716, "loc": { "start": { - "line": 800, - "column": 28 + "line": 794, + "column": 36 }, "end": { - "line": 800, - "column": 32 + "line": 794, + "column": 40 } } }, @@ -159614,16 +160639,16 @@ "binop": null, "updateContext": null }, - "start": 24828, - "end": 24829, + "start": 24716, + "end": 24717, "loc": { "start": { - "line": 800, - "column": 32 + "line": 794, + "column": 40 }, "end": { - "line": 800, - "column": 33 + "line": 794, + "column": 41 } } }, @@ -159640,16 +160665,16 @@ "binop": null }, "value": "rendererContext", - "start": 24829, - "end": 24844, + "start": 24717, + "end": 24732, "loc": { "start": { - "line": 800, - "column": 33 + "line": 794, + "column": 41 }, "end": { - "line": 800, - "column": 48 + "line": 794, + "column": 56 } } }, @@ -159666,16 +160691,16 @@ "binop": null, "updateContext": null }, - "start": 24844, - "end": 24845, + "start": 24732, + "end": 24733, "loc": { "start": { - "line": 800, - "column": 48 + "line": 794, + "column": 56 }, "end": { - "line": 800, - "column": 49 + "line": 794, + "column": 57 } } }, @@ -159694,16 +160719,16 @@ "updateContext": null }, "value": "this", - "start": 24846, - "end": 24850, + "start": 24734, + "end": 24738, "loc": { "start": { - "line": 800, - "column": 50 + "line": 794, + "column": 58 }, "end": { - "line": 800, - "column": 54 + "line": 794, + "column": 62 } } }, @@ -159720,16 +160745,16 @@ "binop": null, "updateContext": null }, - "start": 24850, - "end": 24851, + "start": 24738, + "end": 24739, "loc": { "start": { - "line": 800, - "column": 54 + "line": 794, + "column": 62 }, "end": { - "line": 800, - "column": 55 + "line": 794, + "column": 63 } } }, @@ -159746,16 +160771,16 @@ "binop": null }, "value": "model", - "start": 24851, - "end": 24856, + "start": 24739, + "end": 24744, "loc": { "start": { - "line": 800, - "column": 55 + "line": 794, + "column": 63 }, "end": { - "line": 800, - "column": 60 + "line": 794, + "column": 68 } } }, @@ -159772,16 +160797,16 @@ "binop": null, "updateContext": null }, - "start": 24856, - "end": 24857, + "start": 24744, + "end": 24745, "loc": { "start": { - "line": 800, - "column": 60 + "line": 794, + "column": 68 }, "end": { - "line": 800, - "column": 61 + "line": 794, + "column": 69 } } }, @@ -159800,16 +160825,16 @@ "updateContext": null }, "value": "this", - "start": 24858, - "end": 24862, + "start": 24746, + "end": 24750, "loc": { "start": { - "line": 800, - "column": 62 + "line": 794, + "column": 70 }, "end": { - "line": 800, - "column": 66 + "line": 794, + "column": 74 } } }, @@ -159826,16 +160851,16 @@ "binop": null, "updateContext": null }, - "start": 24862, - "end": 24863, + "start": 24750, + "end": 24751, "loc": { "start": { - "line": 800, - "column": 66 + "line": 794, + "column": 74 }, "end": { - "line": 800, - "column": 67 + "line": 794, + "column": 75 } } }, @@ -159852,16 +160877,16 @@ "binop": null }, "value": "stroker", - "start": 24863, - "end": 24870, + "start": 24751, + "end": 24758, "loc": { "start": { - "line": 800, - "column": 67 + "line": 794, + "column": 75 }, "end": { - "line": 800, - "column": 74 + "line": 794, + "column": 82 } } }, @@ -159877,16 +160902,16 @@ "postfix": false, "binop": null }, - "start": 24870, - "end": 24871, + "start": 24758, + "end": 24759, "loc": { "start": { - "line": 800, - "column": 74 + "line": 794, + "column": 82 }, "end": { - "line": 800, - "column": 75 + "line": 794, + "column": 83 } } }, @@ -159903,52 +160928,40 @@ "binop": null, "updateContext": null }, - "start": 24871, - "end": 24872, + "start": 24759, + "end": 24760, "loc": { "start": { - "line": 800, - "column": 75 + "line": 794, + "column": 83 }, "end": { - "line": 800, - "column": 76 + "line": 794, + "column": 84 } } }, { - "type": { - "label": "if", - "keyword": "if", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "if", - "start": 24878, - "end": 24880, + "type": "CommentLine", + "value": " Currently no recognition on pointer move", + "start": 24765, + "end": 24808, "loc": { "start": { - "line": 802, + "line": 795, "column": 4 }, "end": { - "line": 802, - "column": 6 + "line": 795, + "column": 47 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -159956,23 +160969,38 @@ "postfix": false, "binop": null }, - "start": 24881, - "end": 24882, + "start": 24811, + "end": 24812, "loc": { "start": { - "line": 802, - "column": 7 + "line": 796, + "column": 2 }, "end": { - "line": 802, - "column": 8 + "line": 796, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Handle a pointer up\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n ", + "start": 24816, + "end": 24931, + "loc": { + "start": { + "line": 798, + "column": 2 + }, + "end": { + "line": 801, + "column": 5 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -159980,46 +161008,44 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 24882, - "end": 24886, + "value": "pointerUp", + "start": 24934, + "end": 24943, "loc": { "start": { "line": 802, - "column": 8 + "column": 2 }, "end": { "line": 802, - "column": 12 + "column": 11 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 24886, - "end": 24887, + "start": 24943, + "end": 24944, "loc": { "start": { "line": 802, - "column": 12 + "column": 11 }, "end": { "line": 802, - "column": 13 + "column": 12 } } }, @@ -160035,23 +161061,23 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 24887, - "end": 24897, + "value": "point", + "start": 24944, + "end": 24949, "loc": { "start": { "line": 802, - "column": 13 + "column": 12 }, "end": { "line": 802, - "column": 23 + "column": 17 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -160059,26 +161085,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 24897, - "end": 24898, + "start": 24949, + "end": 24950, "loc": { "start": { "line": 802, - "column": 23 + "column": 17 }, "end": { "line": 802, - "column": 24 + "column": 18 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -160087,25 +161112,24 @@ "postfix": false, "binop": null }, - "value": "addStrokes", - "start": 24898, - "end": 24908, + "start": 24951, + "end": 24952, "loc": { "start": { "line": 802, - "column": 24 + "column": 19 }, "end": { "line": 802, - "column": 34 + "column": 20 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -160113,41 +161137,43 @@ "postfix": false, "binop": null }, - "start": 24908, - "end": 24909, + "value": "logger", + "start": 24957, + "end": 24963, "loc": { "start": { - "line": 802, - "column": 34 + "line": 803, + "column": 4 }, "end": { - "line": 802, - "column": 35 + "line": 803, + "column": 10 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 24910, - "end": 24911, + "start": 24963, + "end": 24964, "loc": { "start": { - "line": 802, - "column": 36 + "line": 803, + "column": 10 }, "end": { - "line": 802, - "column": 37 + "line": 803, + "column": 11 } } }, @@ -160163,13 +161189,13 @@ "postfix": false, "binop": null }, - "value": "addStrokes", - "start": 24918, - "end": 24928, + "value": "trace", + "start": 24964, + "end": 24969, "loc": { "start": { "line": 803, - "column": 6 + "column": 11 }, "end": { "line": 803, @@ -160189,8 +161215,8 @@ "postfix": false, "binop": null }, - "start": 24928, - "end": 24929, + "start": 24969, + "end": 24970, "loc": { "start": { "line": 803, @@ -160204,8 +161230,7 @@ }, { "type": { - "label": "this", - "keyword": "this", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -160216,9 +161241,9 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 24929, - "end": 24933, + "value": "Pointer up", + "start": 24970, + "end": 24982, "loc": { "start": { "line": 803, @@ -160226,7 +161251,7 @@ }, "end": { "line": 803, - "column": 21 + "column": 29 } } }, @@ -160243,23 +161268,22 @@ "binop": null, "updateContext": null }, - "start": 24933, - "end": 24934, + "start": 24982, + "end": 24983, "loc": { "start": { "line": 803, - "column": 21 + "column": 29 }, "end": { "line": 803, - "column": 22 + "column": 30 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -160267,26 +161291,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 24935, - "end": 24939, + "value": "point", + "start": 24984, + "end": 24989, "loc": { "start": { "line": 803, - "column": 23 + "column": 31 }, "end": { "line": 803, - "column": 27 + "column": 36 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -160294,77 +161317,79 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 24939, - "end": 24940, + "start": 24989, + "end": 24990, "loc": { "start": { "line": 803, - "column": 27 + "column": 36 }, "end": { "line": 803, - "column": 28 + "column": 37 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "model", - "start": 24940, - "end": 24945, + "start": 24990, + "end": 24991, "loc": { "start": { "line": 803, - "column": 28 + "column": 37 }, "end": { "line": 803, - "column": 33 + "column": 38 } } }, { "type": { - "label": ")", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 24945, - "end": 24946, + "value": "this", + "start": 24996, + "end": 25000, "loc": { "start": { - "line": 803, - "column": 33 + "line": 804, + "column": 4 }, "end": { - "line": 803, - "column": 34 + "line": 804, + "column": 8 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -160374,24 +161399,24 @@ "binop": null, "updateContext": null }, - "start": 24946, - "end": 24947, + "start": 25000, + "end": 25001, "loc": { "start": { - "line": 803, - "column": 34 + "line": 804, + "column": 8 }, "end": { - "line": 803, - "column": 35 + "line": 804, + "column": 9 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -160399,51 +161424,51 @@ "postfix": false, "binop": null }, - "start": 24952, - "end": 24953, + "value": "model", + "start": 25001, + "end": 25006, "loc": { "start": { "line": 804, - "column": 4 + "column": 9 }, "end": { "line": 804, - "column": 5 + "column": 14 } } }, { "type": { - "label": "else", - "keyword": "else", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "else", - "start": 24954, - "end": 24958, + "value": "=", + "start": 25007, + "end": 25008, "loc": { "start": { "line": 804, - "column": 6 + "column": 15 }, "end": { "line": 804, - "column": 10 + "column": 16 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -160452,32 +161477,43 @@ "postfix": false, "binop": null }, - "start": 24959, - "end": 24960, + "value": "InkModel", + "start": 25009, + "end": 25017, "loc": { "start": { "line": 804, - "column": 11 + "column": 17 }, "end": { "line": 804, - "column": 12 + "column": 25 } } }, { - "type": "CommentLine", - "value": " Push model in undo redo manager", - "start": 24967, - "end": 25001, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 25017, + "end": 25018, "loc": { "start": { - "line": 805, - "column": 6 + "line": 804, + "column": 25 }, "end": { - "line": 805, - "column": 40 + "line": 804, + "column": 26 } } }, @@ -160493,17 +161529,17 @@ "postfix": false, "binop": null }, - "value": "recognizerCallback", - "start": 25008, - "end": 25026, + "value": "endPendingStroke", + "start": 25018, + "end": 25034, "loc": { "start": { - "line": 806, - "column": 6 + "line": 804, + "column": 26 }, "end": { - "line": 806, - "column": 24 + "line": 804, + "column": 42 } } }, @@ -160519,16 +161555,16 @@ "postfix": false, "binop": null }, - "start": 25026, - "end": 25027, + "start": 25034, + "end": 25035, "loc": { "start": { - "line": 806, - "column": 24 + "line": 804, + "column": 42 }, "end": { - "line": 806, - "column": 25 + "line": 804, + "column": 43 } } }, @@ -160547,16 +161583,68 @@ "updateContext": null }, "value": "this", - "start": 25027, - "end": 25031, + "start": 25035, + "end": 25039, "loc": { "start": { - "line": 806, - "column": 25 + "line": 804, + "column": 43 }, "end": { - "line": 806, - "column": 29 + "line": 804, + "column": 47 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 25039, + "end": 25040, + "loc": { + "start": { + "line": 804, + "column": 47 + }, + "end": { + "line": 804, + "column": 48 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "model", + "start": 25040, + "end": 25045, + "loc": { + "start": { + "line": 804, + "column": 48 + }, + "end": { + "line": 804, + "column": 53 } } }, @@ -160573,16 +161661,16 @@ "binop": null, "updateContext": null }, - "start": 25031, - "end": 25032, + "start": 25045, + "end": 25046, "loc": { "start": { - "line": 806, - "column": 29 + "line": 804, + "column": 53 }, "end": { - "line": 806, - "column": 30 + "line": 804, + "column": 54 } } }, @@ -160598,17 +161686,17 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 25033, - "end": 25042, + "value": "point", + "start": 25047, + "end": 25052, "loc": { "start": { - "line": 806, - "column": 31 + "line": 804, + "column": 55 }, "end": { - "line": 806, - "column": 40 + "line": 804, + "column": 60 } } }, @@ -160625,16 +161713,16 @@ "binop": null, "updateContext": null }, - "start": 25042, - "end": 25043, + "start": 25052, + "end": 25053, "loc": { "start": { - "line": 806, - "column": 40 + "line": 804, + "column": 60 }, "end": { - "line": 806, - "column": 41 + "line": 804, + "column": 61 } } }, @@ -160653,16 +161741,16 @@ "updateContext": null }, "value": "this", - "start": 25044, - "end": 25048, + "start": 25054, + "end": 25058, "loc": { "start": { - "line": 806, - "column": 42 + "line": 804, + "column": 62 }, "end": { - "line": 806, - "column": 46 + "line": 804, + "column": 66 } } }, @@ -160679,16 +161767,16 @@ "binop": null, "updateContext": null }, - "start": 25048, - "end": 25049, + "start": 25058, + "end": 25059, "loc": { "start": { - "line": 806, - "column": 46 + "line": 804, + "column": 66 }, "end": { - "line": 806, - "column": 47 + "line": 804, + "column": 67 } } }, @@ -160704,17 +161792,17 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 25049, - "end": 25054, + "value": "penStyle", + "start": 25059, + "end": 25067, "loc": { "start": { - "line": 806, - "column": 47 + "line": 804, + "column": 67 }, "end": { - "line": 806, - "column": 52 + "line": 804, + "column": 75 } } }, @@ -160730,16 +161818,16 @@ "postfix": false, "binop": null }, - "start": 25054, - "end": 25055, + "start": 25067, + "end": 25068, "loc": { "start": { - "line": 806, - "column": 52 + "line": 804, + "column": 75 }, "end": { - "line": 806, - "column": 53 + "line": 804, + "column": 76 } } }, @@ -160756,47 +161844,50 @@ "binop": null, "updateContext": null }, - "start": 25055, - "end": 25056, + "start": 25068, + "end": 25069, "loc": { "start": { - "line": 806, - "column": 53 + "line": 804, + "column": 76 }, "end": { - "line": 806, - "column": 54 + "line": 804, + "column": 77 } } }, { "type": { - "label": "}", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25061, - "end": 25062, + "value": "this", + "start": 25074, + "end": 25078, "loc": { "start": { - "line": 807, + "line": 805, "column": 4 }, "end": { - "line": 807, - "column": 5 + "line": 805, + "column": 8 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -160804,18 +161895,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25065, - "end": 25066, + "start": 25078, + "end": 25079, "loc": { "start": { - "line": 808, - "column": 2 + "line": 805, + "column": 8 }, "end": { - "line": 808, - "column": 3 + "line": 805, + "column": 9 } } }, @@ -160831,42 +161923,43 @@ "postfix": false, "binop": null }, - "value": "removeStroke", - "start": 25070, - "end": 25082, + "value": "renderer", + "start": 25079, + "end": 25087, "loc": { "start": { - "line": 810, - "column": 2 + "line": 805, + "column": 9 }, "end": { - "line": 810, - "column": 14 + "line": 805, + "column": 17 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25082, - "end": 25083, + "start": 25087, + "end": 25088, "loc": { "start": { - "line": 810, - "column": 14 + "line": 805, + "column": 17 }, "end": { - "line": 810, - "column": 15 + "line": 805, + "column": 18 } } }, @@ -160882,48 +161975,23 @@ "postfix": false, "binop": null }, - "value": "stroke", - "start": 25083, - "end": 25089, - "loc": { - "start": { - "line": 810, - "column": 15 - }, - "end": { - "line": 810, - "column": 21 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25089, - "end": 25090, + "value": "drawModel", + "start": 25088, + "end": 25097, "loc": { "start": { - "line": 810, - "column": 21 + "line": 805, + "column": 18 }, "end": { - "line": 810, - "column": 22 + "line": 805, + "column": 27 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -160933,16 +162001,16 @@ "postfix": false, "binop": null }, - "start": 25091, - "end": 25092, + "start": 25097, + "end": 25098, "loc": { "start": { - "line": 810, - "column": 23 + "line": 805, + "column": 27 }, "end": { - "line": 810, - "column": 24 + "line": 805, + "column": 28 } } }, @@ -160961,16 +162029,16 @@ "updateContext": null }, "value": "this", - "start": 25097, - "end": 25101, + "start": 25098, + "end": 25102, "loc": { "start": { - "line": 811, - "column": 4 + "line": 805, + "column": 28 }, "end": { - "line": 811, - "column": 8 + "line": 805, + "column": 32 } } }, @@ -160987,16 +162055,16 @@ "binop": null, "updateContext": null }, - "start": 25101, - "end": 25102, + "start": 25102, + "end": 25103, "loc": { "start": { - "line": 811, - "column": 8 + "line": 805, + "column": 32 }, "end": { - "line": 811, - "column": 9 + "line": 805, + "column": 33 } } }, @@ -161012,24 +162080,24 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 25102, - "end": 25107, + "value": "rendererContext", + "start": 25103, + "end": 25118, "loc": { "start": { - "line": 811, - "column": 9 + "line": 805, + "column": 33 }, "end": { - "line": 811, - "column": 14 + "line": 805, + "column": 48 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -161039,22 +162107,23 @@ "binop": null, "updateContext": null }, - "start": 25107, - "end": 25108, + "start": 25118, + "end": 25119, "loc": { "start": { - "line": 811, - "column": 14 + "line": 805, + "column": 48 }, "end": { - "line": 811, - "column": 15 + "line": 805, + "column": 49 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -161062,19 +162131,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "strokeGroups", - "start": 25108, - "end": 25120, + "value": "this", + "start": 25120, + "end": 25124, "loc": { "start": { - "line": 811, - "column": 15 + "line": 805, + "column": 50 }, "end": { - "line": 811, - "column": 27 + "line": 805, + "column": 54 } } }, @@ -161091,16 +162161,16 @@ "binop": null, "updateContext": null }, - "start": 25120, - "end": 25121, + "start": 25124, + "end": 25125, "loc": { "start": { - "line": 811, - "column": 27 + "line": 805, + "column": 54 }, "end": { - "line": 811, - "column": 28 + "line": 805, + "column": 55 } } }, @@ -161116,67 +162186,97 @@ "postfix": false, "binop": null }, - "value": "forEach", - "start": 25121, - "end": 25128, + "value": "model", + "start": 25125, + "end": 25130, "loc": { "start": { - "line": 811, - "column": 28 + "line": 805, + "column": 55 }, "end": { - "line": 811, - "column": 35 + "line": 805, + "column": 60 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25128, - "end": 25129, + "start": 25130, + "end": 25131, "loc": { "start": { - "line": 811, - "column": 35 + "line": 805, + "column": 60 }, "end": { - "line": 811, - "column": 36 + "line": 805, + "column": 61 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25129, - "end": 25130, + "value": "this", + "start": 25132, + "end": 25136, "loc": { "start": { - "line": 811, - "column": 36 + "line": 805, + "column": 62 }, "end": { - "line": 811, - "column": 37 + "line": 805, + "column": 66 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 25136, + "end": 25137, + "loc": { + "start": { + "line": 805, + "column": 66 + }, + "end": { + "line": 805, + "column": 67 } } }, @@ -161192,17 +162292,17 @@ "postfix": false, "binop": null }, - "value": "group", - "start": 25130, - "end": 25135, + "value": "stroker", + "start": 25137, + "end": 25144, "loc": { "start": { - "line": 811, - "column": 37 + "line": 805, + "column": 67 }, "end": { - "line": 811, - "column": 42 + "line": 805, + "column": 74 } } }, @@ -161218,22 +162318,22 @@ "postfix": false, "binop": null }, - "start": 25135, - "end": 25136, + "start": 25144, + "end": 25145, "loc": { "start": { - "line": 811, - "column": 42 + "line": 805, + "column": 74 }, "end": { - "line": 811, - "column": 43 + "line": 805, + "column": 75 } } }, { "type": { - "label": "=>", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -161244,75 +162344,76 @@ "binop": null, "updateContext": null }, - "start": 25137, - "end": 25139, + "start": 25145, + "end": 25146, "loc": { "start": { - "line": 811, - "column": 44 + "line": 805, + "column": 75 }, "end": { - "line": 811, - "column": 46 + "line": 805, + "column": 76 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25140, - "end": 25141, + "value": "if", + "start": 25152, + "end": 25154, "loc": { "start": { - "line": 811, - "column": 47 + "line": 807, + "column": 4 }, "end": { - "line": 811, - "column": 48 + "line": 807, + "column": 6 } } }, { "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "const", - "start": 25148, - "end": 25153, + "start": 25155, + "end": 25156, "loc": { "start": { - "line": 812, - "column": 6 + "line": 807, + "column": 7 }, "end": { - "line": 812, - "column": 11 + "line": 807, + "column": 8 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -161320,46 +162421,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "stringStrokes", - "start": 25154, - "end": 25167, + "value": "this", + "start": 25156, + "end": 25160, "loc": { "start": { - "line": 812, - "column": 12 + "line": 807, + "column": 8 }, "end": { - "line": 812, - "column": 25 + "line": 807, + "column": 12 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 25168, - "end": 25169, + "start": 25160, + "end": 25161, "loc": { "start": { - "line": 812, - "column": 26 + "line": 807, + "column": 12 }, "end": { - "line": 812, - "column": 27 + "line": 807, + "column": 13 } } }, @@ -161375,17 +162476,17 @@ "postfix": false, "binop": null }, - "value": "group", - "start": 25170, - "end": 25175, + "value": "recognizer", + "start": 25161, + "end": 25171, "loc": { "start": { - "line": 812, - "column": 28 + "line": 807, + "column": 13 }, "end": { - "line": 812, - "column": 33 + "line": 807, + "column": 23 } } }, @@ -161402,16 +162503,16 @@ "binop": null, "updateContext": null }, - "start": 25175, - "end": 25176, + "start": 25171, + "end": 25172, "loc": { "start": { - "line": 812, - "column": 33 + "line": 807, + "column": 23 }, "end": { - "line": 812, - "column": 34 + "line": 807, + "column": 24 } } }, @@ -161427,23 +162528,23 @@ "postfix": false, "binop": null }, - "value": "strokes", - "start": 25176, - "end": 25183, + "value": "addStrokes", + "start": 25172, + "end": 25182, "loc": { "start": { - "line": 812, - "column": 34 + "line": 807, + "column": 24 }, "end": { - "line": 812, - "column": 41 + "line": 807, + "column": 34 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -161451,26 +162552,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 25183, - "end": 25184, + "start": 25182, + "end": 25183, "loc": { "start": { - "line": 812, - "column": 41 + "line": 807, + "column": 34 }, "end": { - "line": 812, - "column": 42 + "line": 807, + "column": 35 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -161479,24 +162579,23 @@ "postfix": false, "binop": null }, - "value": "map", "start": 25184, - "end": 25187, + "end": 25185, "loc": { "start": { - "line": 812, - "column": 42 + "line": 807, + "column": 36 }, "end": { - "line": 812, - "column": 45 + "line": 807, + "column": 37 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -161505,23 +162604,24 @@ "postfix": false, "binop": null }, - "start": 25187, - "end": 25188, + "value": "addStrokes", + "start": 25192, + "end": 25202, "loc": { "start": { - "line": 812, - "column": 45 + "line": 808, + "column": 6 }, "end": { - "line": 812, - "column": 46 + "line": 808, + "column": 16 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -161530,25 +162630,25 @@ "postfix": false, "binop": null }, - "value": "strokeFromGroup", - "start": 25188, + "start": 25202, "end": 25203, "loc": { "start": { - "line": 812, - "column": 46 + "line": 808, + "column": 16 }, "end": { - "line": 812, - "column": 61 + "line": 808, + "column": 17 } } }, { "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -161557,50 +162657,52 @@ "binop": null, "updateContext": null }, - "start": 25204, - "end": 25206, + "value": "this", + "start": 25203, + "end": 25207, "loc": { "start": { - "line": 812, - "column": 62 + "line": 808, + "column": 17 }, "end": { - "line": 812, - "column": 64 + "line": 808, + "column": 21 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "JSON", "start": 25207, - "end": 25211, + "end": 25208, "loc": { "start": { - "line": 812, - "column": 65 + "line": 808, + "column": 21 }, "end": { - "line": 812, - "column": 69 + "line": 808, + "column": 22 } } }, { "type": { - "label": ".", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -161609,49 +162711,50 @@ "binop": null, "updateContext": null }, - "start": 25211, - "end": 25212, + "value": "this", + "start": 25209, + "end": 25213, "loc": { "start": { - "line": 812, - "column": 69 + "line": 808, + "column": 23 }, "end": { - "line": 812, - "column": 70 + "line": 808, + "column": 27 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "stringify", - "start": 25212, - "end": 25221, + "start": 25213, + "end": 25214, "loc": { "start": { - "line": 812, - "column": 70 + "line": 808, + "column": 27 }, "end": { - "line": 812, - "column": 79 + "line": 808, + "column": 28 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -161660,24 +162763,25 @@ "postfix": false, "binop": null }, - "start": 25221, - "end": 25222, + "value": "model", + "start": 25214, + "end": 25219, "loc": { "start": { - "line": 812, - "column": 79 + "line": 808, + "column": 28 }, "end": { - "line": 812, - "column": 80 + "line": 808, + "column": 33 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -161685,48 +162789,48 @@ "postfix": false, "binop": null }, - "value": "strokeFromGroup", - "start": 25222, - "end": 25237, + "start": 25219, + "end": 25220, "loc": { "start": { - "line": 812, - "column": 80 + "line": 808, + "column": 33 }, "end": { - "line": 812, - "column": 95 + "line": 808, + "column": 34 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25237, - "end": 25238, + "start": 25220, + "end": 25221, "loc": { "start": { - "line": 812, - "column": 95 + "line": 808, + "column": 34 }, "end": { - "line": 812, - "column": 96 + "line": 808, + "column": 35 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -161736,22 +162840,23 @@ "postfix": false, "binop": null }, - "start": 25238, - "end": 25239, + "start": 25226, + "end": 25227, "loc": { "start": { - "line": 812, - "column": 96 + "line": 809, + "column": 4 }, "end": { - "line": 812, - "column": 97 + "line": 809, + "column": 5 } } }, { "type": { - "label": ";", + "label": "else", + "keyword": "else", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -161762,44 +162867,58 @@ "binop": null, "updateContext": null }, - "start": 25239, - "end": 25240, + "value": "else", + "start": 25228, + "end": 25232, "loc": { "start": { - "line": 812, - "column": 97 + "line": 809, + "column": 6 }, "end": { - "line": 812, - "column": 98 + "line": 809, + "column": 10 } } }, { "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "const", - "start": 25247, - "end": 25252, + "start": 25233, + "end": 25234, "loc": { "start": { - "line": 813, + "line": 809, + "column": 11 + }, + "end": { + "line": 809, + "column": 12 + } + } + }, + { + "type": "CommentLine", + "value": " Push model in undo redo manager", + "start": 25241, + "end": 25275, + "loc": { + "start": { + "line": 810, "column": 6 }, "end": { - "line": 813, - "column": 11 + "line": 810, + "column": 40 } } }, @@ -161815,50 +162934,49 @@ "postfix": false, "binop": null }, - "value": "strokeIndex", - "start": 25253, - "end": 25264, + "value": "recognizerCallback", + "start": 25282, + "end": 25300, "loc": { "start": { - "line": 813, - "column": 12 + "line": 811, + "column": 6 }, "end": { - "line": 813, - "column": 23 + "line": 811, + "column": 24 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 25265, - "end": 25266, + "start": 25300, + "end": 25301, "loc": { "start": { - "line": 813, + "line": 811, "column": 24 }, "end": { - "line": 813, + "line": 811, "column": 25 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -161866,26 +162984,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "stringStrokes", - "start": 25267, - "end": 25280, + "value": "this", + "start": 25301, + "end": 25305, "loc": { "start": { - "line": 813, - "column": 26 + "line": 811, + "column": 25 }, "end": { - "line": 813, - "column": 39 + "line": 811, + "column": 29 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -161895,16 +163014,16 @@ "binop": null, "updateContext": null }, - "start": 25280, - "end": 25281, + "start": 25305, + "end": 25306, "loc": { "start": { - "line": 813, - "column": 39 + "line": 811, + "column": 29 }, "end": { - "line": 813, - "column": 40 + "line": 811, + "column": 30 } } }, @@ -161920,48 +163039,50 @@ "postfix": false, "binop": null }, - "value": "indexOf", - "start": 25281, - "end": 25288, + "value": "undefined", + "start": 25307, + "end": 25316, "loc": { "start": { - "line": 813, - "column": 40 + "line": 811, + "column": 31 }, "end": { - "line": 813, - "column": 47 + "line": 811, + "column": 40 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25288, - "end": 25289, + "start": 25316, + "end": 25317, "loc": { "start": { - "line": 813, - "column": 47 + "line": 811, + "column": 40 }, "end": { - "line": 813, - "column": 48 + "line": 811, + "column": 41 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -161969,19 +163090,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "JSON", - "start": 25289, - "end": 25293, + "value": "this", + "start": 25318, + "end": 25322, "loc": { "start": { - "line": 813, - "column": 48 + "line": 811, + "column": 42 }, "end": { - "line": 813, - "column": 52 + "line": 811, + "column": 46 } } }, @@ -161998,16 +163120,16 @@ "binop": null, "updateContext": null }, - "start": 25293, - "end": 25294, + "start": 25322, + "end": 25323, "loc": { "start": { - "line": 813, - "column": 52 + "line": 811, + "column": 46 }, "end": { - "line": 813, - "column": 53 + "line": 811, + "column": 47 } } }, @@ -162023,50 +163145,25 @@ "postfix": false, "binop": null }, - "value": "stringify", - "start": 25294, - "end": 25303, - "loc": { - "start": { - "line": 813, - "column": 53 - }, - "end": { - "line": 813, - "column": 62 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25303, - "end": 25304, + "value": "model", + "start": 25323, + "end": 25328, "loc": { "start": { - "line": 813, - "column": 62 + "line": 811, + "column": 47 }, "end": { - "line": 813, - "column": 63 + "line": 811, + "column": 52 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -162074,48 +163171,48 @@ "postfix": false, "binop": null }, - "value": "stroke", - "start": 25304, - "end": 25310, + "start": 25328, + "end": 25329, "loc": { "start": { - "line": 813, - "column": 63 + "line": 811, + "column": 52 }, "end": { - "line": 813, - "column": 69 + "line": 811, + "column": 53 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25310, - "end": 25311, + "start": 25329, + "end": 25330, "loc": { "start": { - "line": 813, - "column": 69 + "line": 811, + "column": 53 }, "end": { - "line": 813, - "column": 70 + "line": 811, + "column": 54 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -162125,70 +163222,67 @@ "postfix": false, "binop": null }, - "start": 25311, - "end": 25312, + "start": 25335, + "end": 25336, "loc": { "start": { - "line": 813, - "column": 70 + "line": 812, + "column": 4 }, "end": { - "line": 813, - "column": 71 + "line": 812, + "column": 5 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 25312, - "end": 25313, + "start": 25339, + "end": 25340, "loc": { "start": { "line": 813, - "column": 71 + "column": 2 }, "end": { "line": 813, - "column": 72 + "column": 3 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 25320, - "end": 25322, + "value": "removeStroke", + "start": 25344, + "end": 25356, "loc": { "start": { - "line": 814, - "column": 6 + "line": 815, + "column": 2 }, "end": { - "line": 814, - "column": 8 + "line": 815, + "column": 14 } } }, @@ -162204,16 +163298,16 @@ "postfix": false, "binop": null }, - "start": 25323, - "end": 25324, + "start": 25356, + "end": 25357, "loc": { "start": { - "line": 814, - "column": 9 + "line": 815, + "column": 14 }, "end": { - "line": 814, - "column": 10 + "line": 815, + "column": 15 } } }, @@ -162229,77 +163323,74 @@ "postfix": false, "binop": null }, - "value": "strokeIndex", - "start": 25324, - "end": 25335, + "value": "stroke", + "start": 25357, + "end": 25363, "loc": { "start": { - "line": 814, - "column": 10 + "line": 815, + "column": 15 }, "end": { - "line": 814, + "line": 815, "column": 21 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "!==", - "start": 25336, - "end": 25339, + "start": 25363, + "end": 25364, "loc": { "start": { - "line": 814, - "column": 22 + "line": 815, + "column": 21 }, "end": { - "line": 814, - "column": 25 + "line": 815, + "column": 22 } } }, { "type": { - "label": "+/-", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": 9, - "updateContext": null + "binop": null }, - "value": "-", - "start": 25340, - "end": 25341, + "start": 25365, + "end": 25366, "loc": { "start": { - "line": 814, - "column": 26 + "line": 815, + "column": 23 }, "end": { - "line": 814, - "column": 27 + "line": 815, + "column": 24 } } }, { "type": { - "label": "num", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -162310,23 +163401,23 @@ "binop": null, "updateContext": null }, - "value": 1, - "start": 25341, - "end": 25342, + "value": "this", + "start": 25371, + "end": 25375, "loc": { "start": { - "line": 814, - "column": 27 + "line": 816, + "column": 4 }, "end": { - "line": 814, - "column": 28 + "line": 816, + "column": 8 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -162334,43 +163425,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 25342, - "end": 25343, - "loc": { - "start": { - "line": 814, - "column": 28 - }, - "end": { - "line": 814, - "column": 29 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25344, - "end": 25345, + "start": 25375, + "end": 25376, "loc": { "start": { - "line": 814, - "column": 30 + "line": 816, + "column": 8 }, "end": { - "line": 814, - "column": 31 + "line": 816, + "column": 9 } } }, @@ -162386,17 +163453,17 @@ "postfix": false, "binop": null }, - "value": "group", - "start": 25354, - "end": 25359, + "value": "model", + "start": 25376, + "end": 25381, "loc": { "start": { - "line": 815, - "column": 8 + "line": 816, + "column": 9 }, "end": { - "line": 815, - "column": 13 + "line": 816, + "column": 14 } } }, @@ -162413,16 +163480,16 @@ "binop": null, "updateContext": null }, - "start": 25359, - "end": 25360, + "start": 25381, + "end": 25382, "loc": { "start": { - "line": 815, - "column": 13 + "line": 816, + "column": 14 }, "end": { - "line": 815, - "column": 14 + "line": 816, + "column": 15 } } }, @@ -162438,17 +163505,17 @@ "postfix": false, "binop": null }, - "value": "strokes", - "start": 25360, - "end": 25367, + "value": "strokeGroups", + "start": 25382, + "end": 25394, "loc": { "start": { - "line": 815, - "column": 14 + "line": 816, + "column": 15 }, "end": { - "line": 815, - "column": 21 + "line": 816, + "column": 27 } } }, @@ -162465,16 +163532,16 @@ "binop": null, "updateContext": null }, - "start": 25367, - "end": 25368, + "start": 25394, + "end": 25395, "loc": { "start": { - "line": 815, - "column": 21 + "line": 816, + "column": 27 }, "end": { - "line": 815, - "column": 22 + "line": 816, + "column": 28 } } }, @@ -162490,17 +163557,17 @@ "postfix": false, "binop": null }, - "value": "splice", - "start": 25368, - "end": 25374, + "value": "forEach", + "start": 25395, + "end": 25402, "loc": { "start": { - "line": 815, - "column": 22 + "line": 816, + "column": 28 }, "end": { - "line": 815, - "column": 28 + "line": 816, + "column": 35 } } }, @@ -162516,23 +163583,23 @@ "postfix": false, "binop": null }, - "start": 25374, - "end": 25375, + "start": 25402, + "end": 25403, "loc": { "start": { - "line": 815, - "column": 28 + "line": 816, + "column": 35 }, "end": { - "line": 815, - "column": 29 + "line": 816, + "column": 36 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -162541,49 +163608,22 @@ "postfix": false, "binop": null }, - "value": "strokeIndex", - "start": 25375, - "end": 25386, - "loc": { - "start": { - "line": 815, - "column": 29 - }, - "end": { - "line": 815, - "column": 40 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25386, - "end": 25387, + "start": 25403, + "end": 25404, "loc": { "start": { - "line": 815, - "column": 40 + "line": 816, + "column": 36 }, "end": { - "line": 815, - "column": 41 + "line": 816, + "column": 37 } } }, { "type": { - "label": "num", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -162591,20 +163631,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": 1, - "start": 25388, - "end": 25389, + "value": "group", + "start": 25404, + "end": 25409, "loc": { "start": { - "line": 815, - "column": 42 + "line": 816, + "column": 37 }, "end": { - "line": 815, - "column": 43 + "line": 816, + "column": 42 } } }, @@ -162620,22 +163659,22 @@ "postfix": false, "binop": null }, - "start": 25389, - "end": 25390, + "start": 25409, + "end": 25410, "loc": { "start": { - "line": 815, - "column": 43 + "line": 816, + "column": 42 }, "end": { - "line": 815, - "column": 44 + "line": 816, + "column": 43 } } }, { "type": { - "label": ";", + "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -162646,24 +163685,24 @@ "binop": null, "updateContext": null }, - "start": 25390, - "end": 25391, + "start": 25411, + "end": 25413, "loc": { "start": { - "line": 815, + "line": 816, "column": 44 }, "end": { - "line": 815, - "column": 45 + "line": 816, + "column": 46 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -162671,92 +163710,16 @@ "postfix": false, "binop": null }, - "start": 25398, - "end": 25399, + "start": 25414, + "end": 25415, "loc": { "start": { "line": 816, - "column": 6 + "column": 47 }, "end": { "line": 816, - "column": 7 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25404, - "end": 25405, - "loc": { - "start": { - "line": 817, - "column": 4 - }, - "end": { - "line": 817, - "column": 5 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 25405, - "end": 25406, - "loc": { - "start": { - "line": 817, - "column": 5 - }, - "end": { - "line": 817, - "column": 6 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25406, - "end": 25407, - "loc": { - "start": { - "line": 817, - "column": 6 - }, - "end": { - "line": 817, - "column": 7 + "column": 48 } } }, @@ -162775,16 +163738,16 @@ "updateContext": null }, "value": "const", - "start": 25412, - "end": 25417, + "start": 25422, + "end": 25427, "loc": { "start": { - "line": 818, - "column": 4 + "line": 817, + "column": 6 }, "end": { - "line": 818, - "column": 9 + "line": 817, + "column": 11 } } }, @@ -162800,17 +163763,17 @@ "postfix": false, "binop": null }, - "value": "stringRawStrokes", - "start": 25418, - "end": 25434, + "value": "stringStrokes", + "start": 25428, + "end": 25441, "loc": { "start": { - "line": 818, - "column": 10 + "line": 817, + "column": 12 }, "end": { - "line": 818, - "column": 26 + "line": 817, + "column": 25 } } }, @@ -162828,23 +163791,22 @@ "updateContext": null }, "value": "=", - "start": 25435, - "end": 25436, + "start": 25442, + "end": 25443, "loc": { "start": { - "line": 818, - "column": 27 + "line": 817, + "column": 26 }, "end": { - "line": 818, - "column": 28 + "line": 817, + "column": 27 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -162852,19 +163814,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 25437, - "end": 25441, + "value": "group", + "start": 25444, + "end": 25449, "loc": { "start": { - "line": 818, - "column": 29 + "line": 817, + "column": 28 }, "end": { - "line": 818, + "line": 817, "column": 33 } } @@ -162882,15 +163843,15 @@ "binop": null, "updateContext": null }, - "start": 25441, - "end": 25442, + "start": 25449, + "end": 25450, "loc": { "start": { - "line": 818, + "line": 817, "column": 33 }, "end": { - "line": 818, + "line": 817, "column": 34 } } @@ -162907,17 +163868,17 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 25442, - "end": 25447, + "value": "strokes", + "start": 25450, + "end": 25457, "loc": { "start": { - "line": 818, + "line": 817, "column": 34 }, "end": { - "line": 818, - "column": 39 + "line": 817, + "column": 41 } } }, @@ -162934,68 +163895,16 @@ "binop": null, "updateContext": null }, - "start": 25447, - "end": 25448, - "loc": { - "start": { - "line": 818, - "column": 39 - }, - "end": { - "line": 818, - "column": 40 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "rawStrokes", - "start": 25448, + "start": 25457, "end": 25458, "loc": { "start": { - "line": 818, - "column": 40 - }, - "end": { - "line": 818, - "column": 50 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25458, - "end": 25459, - "loc": { - "start": { - "line": 818, - "column": 50 + "line": 817, + "column": 41 }, "end": { - "line": 818, - "column": 51 + "line": 817, + "column": 42 } } }, @@ -163012,16 +163921,16 @@ "binop": null }, "value": "map", - "start": 25459, - "end": 25462, + "start": 25458, + "end": 25461, "loc": { "start": { - "line": 818, - "column": 51 + "line": 817, + "column": 42 }, "end": { - "line": 818, - "column": 54 + "line": 817, + "column": 45 } } }, @@ -163037,16 +163946,16 @@ "postfix": false, "binop": null }, - "start": 25462, - "end": 25463, + "start": 25461, + "end": 25462, "loc": { "start": { - "line": 818, - "column": 54 + "line": 817, + "column": 45 }, "end": { - "line": 818, - "column": 55 + "line": 817, + "column": 46 } } }, @@ -163062,17 +163971,17 @@ "postfix": false, "binop": null }, - "value": "strokes", - "start": 25463, - "end": 25470, + "value": "strokeFromGroup", + "start": 25462, + "end": 25477, "loc": { "start": { - "line": 818, - "column": 55 + "line": 817, + "column": 46 }, "end": { - "line": 818, - "column": 62 + "line": 817, + "column": 61 } } }, @@ -163089,16 +163998,16 @@ "binop": null, "updateContext": null }, - "start": 25471, - "end": 25473, + "start": 25478, + "end": 25480, "loc": { "start": { - "line": 818, - "column": 63 + "line": 817, + "column": 62 }, "end": { - "line": 818, - "column": 65 + "line": 817, + "column": 64 } } }, @@ -163115,16 +164024,16 @@ "binop": null }, "value": "JSON", - "start": 25474, - "end": 25478, + "start": 25481, + "end": 25485, "loc": { "start": { - "line": 818, - "column": 66 + "line": 817, + "column": 65 }, "end": { - "line": 818, - "column": 70 + "line": 817, + "column": 69 } } }, @@ -163141,16 +164050,16 @@ "binop": null, "updateContext": null }, - "start": 25478, - "end": 25479, + "start": 25485, + "end": 25486, "loc": { "start": { - "line": 818, - "column": 70 + "line": 817, + "column": 69 }, "end": { - "line": 818, - "column": 71 + "line": 817, + "column": 70 } } }, @@ -163167,16 +164076,16 @@ "binop": null }, "value": "stringify", - "start": 25479, - "end": 25488, + "start": 25486, + "end": 25495, "loc": { "start": { - "line": 818, - "column": 71 + "line": 817, + "column": 70 }, "end": { - "line": 818, - "column": 80 + "line": 817, + "column": 79 } } }, @@ -163192,16 +164101,16 @@ "postfix": false, "binop": null }, - "start": 25488, - "end": 25489, + "start": 25495, + "end": 25496, "loc": { "start": { - "line": 818, - "column": 80 + "line": 817, + "column": 79 }, "end": { - "line": 818, - "column": 81 + "line": 817, + "column": 80 } } }, @@ -163217,17 +164126,17 @@ "postfix": false, "binop": null }, - "value": "strokes", - "start": 25489, - "end": 25496, + "value": "strokeFromGroup", + "start": 25496, + "end": 25511, "loc": { "start": { - "line": 818, - "column": 81 + "line": 817, + "column": 80 }, "end": { - "line": 818, - "column": 88 + "line": 817, + "column": 95 } } }, @@ -163243,16 +164152,16 @@ "postfix": false, "binop": null }, - "start": 25496, - "end": 25497, + "start": 25511, + "end": 25512, "loc": { "start": { - "line": 818, - "column": 88 + "line": 817, + "column": 95 }, "end": { - "line": 818, - "column": 89 + "line": 817, + "column": 96 } } }, @@ -163268,16 +164177,16 @@ "postfix": false, "binop": null }, - "start": 25497, - "end": 25498, + "start": 25512, + "end": 25513, "loc": { "start": { - "line": 818, - "column": 89 + "line": 817, + "column": 96 }, "end": { - "line": 818, - "column": 90 + "line": 817, + "column": 97 } } }, @@ -163294,16 +164203,16 @@ "binop": null, "updateContext": null }, - "start": 25498, - "end": 25499, + "start": 25513, + "end": 25514, "loc": { "start": { - "line": 818, - "column": 90 + "line": 817, + "column": 97 }, "end": { - "line": 818, - "column": 91 + "line": 817, + "column": 98 } } }, @@ -163322,16 +164231,16 @@ "updateContext": null }, "value": "const", - "start": 25504, - "end": 25509, + "start": 25521, + "end": 25526, "loc": { "start": { - "line": 819, - "column": 4 + "line": 818, + "column": 6 }, "end": { - "line": 819, - "column": 9 + "line": 818, + "column": 11 } } }, @@ -163348,16 +164257,16 @@ "binop": null }, "value": "strokeIndex", - "start": 25510, - "end": 25521, + "start": 25527, + "end": 25538, "loc": { "start": { - "line": 819, - "column": 10 + "line": 818, + "column": 12 }, "end": { - "line": 819, - "column": 21 + "line": 818, + "column": 23 } } }, @@ -163375,16 +164284,16 @@ "updateContext": null }, "value": "=", - "start": 25522, - "end": 25523, + "start": 25539, + "end": 25540, "loc": { "start": { - "line": 819, - "column": 22 + "line": 818, + "column": 24 }, "end": { - "line": 819, - "column": 23 + "line": 818, + "column": 25 } } }, @@ -163400,17 +164309,17 @@ "postfix": false, "binop": null }, - "value": "stringRawStrokes", - "start": 25524, - "end": 25540, + "value": "stringStrokes", + "start": 25541, + "end": 25554, "loc": { "start": { - "line": 819, - "column": 24 + "line": 818, + "column": 26 }, "end": { - "line": 819, - "column": 40 + "line": 818, + "column": 39 } } }, @@ -163427,16 +164336,16 @@ "binop": null, "updateContext": null }, - "start": 25540, - "end": 25541, + "start": 25554, + "end": 25555, "loc": { "start": { - "line": 819, - "column": 40 + "line": 818, + "column": 39 }, "end": { - "line": 819, - "column": 41 + "line": 818, + "column": 40 } } }, @@ -163453,16 +164362,16 @@ "binop": null }, "value": "indexOf", - "start": 25541, - "end": 25548, + "start": 25555, + "end": 25562, "loc": { "start": { - "line": 819, - "column": 41 + "line": 818, + "column": 40 }, "end": { - "line": 819, - "column": 48 + "line": 818, + "column": 47 } } }, @@ -163478,16 +164387,16 @@ "postfix": false, "binop": null }, - "start": 25548, - "end": 25549, + "start": 25562, + "end": 25563, "loc": { "start": { - "line": 819, - "column": 48 + "line": 818, + "column": 47 }, "end": { - "line": 819, - "column": 49 + "line": 818, + "column": 48 } } }, @@ -163504,16 +164413,16 @@ "binop": null }, "value": "JSON", - "start": 25549, - "end": 25553, + "start": 25563, + "end": 25567, "loc": { "start": { - "line": 819, - "column": 49 + "line": 818, + "column": 48 }, "end": { - "line": 819, - "column": 53 + "line": 818, + "column": 52 } } }, @@ -163530,16 +164439,16 @@ "binop": null, "updateContext": null }, - "start": 25553, - "end": 25554, + "start": 25567, + "end": 25568, "loc": { "start": { - "line": 819, - "column": 53 + "line": 818, + "column": 52 }, "end": { - "line": 819, - "column": 54 + "line": 818, + "column": 53 } } }, @@ -163556,16 +164465,16 @@ "binop": null }, "value": "stringify", - "start": 25554, - "end": 25563, + "start": 25568, + "end": 25577, "loc": { "start": { - "line": 819, - "column": 54 + "line": 818, + "column": 53 }, "end": { - "line": 819, - "column": 63 + "line": 818, + "column": 62 } } }, @@ -163581,16 +164490,16 @@ "postfix": false, "binop": null }, - "start": 25563, - "end": 25564, + "start": 25577, + "end": 25578, "loc": { "start": { - "line": 819, - "column": 63 + "line": 818, + "column": 62 }, "end": { - "line": 819, - "column": 64 + "line": 818, + "column": 63 } } }, @@ -163607,16 +164516,16 @@ "binop": null }, "value": "stroke", - "start": 25564, - "end": 25570, + "start": 25578, + "end": 25584, "loc": { "start": { - "line": 819, - "column": 64 + "line": 818, + "column": 63 }, "end": { - "line": 819, - "column": 70 + "line": 818, + "column": 69 } } }, @@ -163632,16 +164541,16 @@ "postfix": false, "binop": null }, - "start": 25570, - "end": 25571, + "start": 25584, + "end": 25585, "loc": { "start": { - "line": 819, - "column": 70 + "line": 818, + "column": 69 }, "end": { - "line": 819, - "column": 71 + "line": 818, + "column": 70 } } }, @@ -163657,16 +164566,16 @@ "postfix": false, "binop": null }, - "start": 25571, - "end": 25572, + "start": 25585, + "end": 25586, "loc": { "start": { - "line": 819, - "column": 71 + "line": 818, + "column": 70 }, "end": { - "line": 819, - "column": 72 + "line": 818, + "column": 71 } } }, @@ -163683,16 +164592,16 @@ "binop": null, "updateContext": null }, - "start": 25572, - "end": 25573, + "start": 25586, + "end": 25587, "loc": { "start": { - "line": 819, - "column": 72 + "line": 818, + "column": 71 }, "end": { - "line": 819, - "column": 73 + "line": 818, + "column": 72 } } }, @@ -163711,16 +164620,16 @@ "updateContext": null }, "value": "if", - "start": 25578, - "end": 25580, + "start": 25594, + "end": 25596, "loc": { "start": { - "line": 820, - "column": 4 + "line": 819, + "column": 6 }, "end": { - "line": 820, - "column": 6 + "line": 819, + "column": 8 } } }, @@ -163736,16 +164645,16 @@ "postfix": false, "binop": null }, - "start": 25581, - "end": 25582, + "start": 25597, + "end": 25598, "loc": { "start": { - "line": 820, - "column": 7 + "line": 819, + "column": 9 }, "end": { - "line": 820, - "column": 8 + "line": 819, + "column": 10 } } }, @@ -163762,16 +164671,16 @@ "binop": null }, "value": "strokeIndex", - "start": 25582, - "end": 25593, + "start": 25598, + "end": 25609, "loc": { "start": { - "line": 820, - "column": 8 + "line": 819, + "column": 10 }, "end": { - "line": 820, - "column": 19 + "line": 819, + "column": 21 } } }, @@ -163789,16 +164698,16 @@ "updateContext": null }, "value": "!==", - "start": 25594, - "end": 25597, + "start": 25610, + "end": 25613, "loc": { "start": { - "line": 820, - "column": 20 + "line": 819, + "column": 22 }, "end": { - "line": 820, - "column": 23 + "line": 819, + "column": 25 } } }, @@ -163816,16 +164725,16 @@ "updateContext": null }, "value": "-", - "start": 25598, - "end": 25599, + "start": 25614, + "end": 25615, "loc": { "start": { - "line": 820, - "column": 24 + "line": 819, + "column": 26 }, "end": { - "line": 820, - "column": 25 + "line": 819, + "column": 27 } } }, @@ -163843,16 +164752,16 @@ "updateContext": null }, "value": 1, - "start": 25599, - "end": 25600, + "start": 25615, + "end": 25616, "loc": { "start": { - "line": 820, - "column": 25 + "line": 819, + "column": 27 }, "end": { - "line": 820, - "column": 26 + "line": 819, + "column": 28 } } }, @@ -163868,16 +164777,16 @@ "postfix": false, "binop": null }, - "start": 25600, - "end": 25601, + "start": 25616, + "end": 25617, "loc": { "start": { - "line": 820, - "column": 26 + "line": 819, + "column": 28 }, "end": { - "line": 820, - "column": 27 + "line": 819, + "column": 29 } } }, @@ -163893,70 +164802,16 @@ "postfix": false, "binop": null }, - "start": 25602, - "end": 25603, - "loc": { - "start": { - "line": 820, - "column": 28 - }, - "end": { - "line": 820, - "column": 29 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 25610, - "end": 25614, - "loc": { - "start": { - "line": 821, - "column": 6 - }, - "end": { - "line": 821, - "column": 10 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 25614, - "end": 25615, + "start": 25618, + "end": 25619, "loc": { "start": { - "line": 821, - "column": 10 + "line": 819, + "column": 30 }, "end": { - "line": 821, - "column": 11 + "line": 819, + "column": 31 } } }, @@ -163972,17 +164827,17 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 25615, - "end": 25620, + "value": "group", + "start": 25628, + "end": 25633, "loc": { "start": { - "line": 821, - "column": 11 + "line": 820, + "column": 8 }, "end": { - "line": 821, - "column": 16 + "line": 820, + "column": 13 } } }, @@ -163999,16 +164854,16 @@ "binop": null, "updateContext": null }, - "start": 25620, - "end": 25621, + "start": 25633, + "end": 25634, "loc": { "start": { - "line": 821, - "column": 16 + "line": 820, + "column": 13 }, "end": { - "line": 821, - "column": 17 + "line": 820, + "column": 14 } } }, @@ -164024,17 +164879,17 @@ "postfix": false, "binop": null }, - "value": "rawStrokes", - "start": 25621, - "end": 25631, + "value": "strokes", + "start": 25634, + "end": 25641, "loc": { "start": { - "line": 821, - "column": 17 + "line": 820, + "column": 14 }, "end": { - "line": 821, - "column": 27 + "line": 820, + "column": 21 } } }, @@ -164051,16 +164906,16 @@ "binop": null, "updateContext": null }, - "start": 25631, - "end": 25632, + "start": 25641, + "end": 25642, "loc": { "start": { - "line": 821, - "column": 27 + "line": 820, + "column": 21 }, "end": { - "line": 821, - "column": 28 + "line": 820, + "column": 22 } } }, @@ -164077,16 +164932,16 @@ "binop": null }, "value": "splice", - "start": 25632, - "end": 25638, + "start": 25642, + "end": 25648, "loc": { "start": { - "line": 821, - "column": 28 + "line": 820, + "column": 22 }, "end": { - "line": 821, - "column": 34 + "line": 820, + "column": 28 } } }, @@ -164102,16 +164957,16 @@ "postfix": false, "binop": null }, - "start": 25638, - "end": 25639, + "start": 25648, + "end": 25649, "loc": { "start": { - "line": 821, - "column": 34 + "line": 820, + "column": 28 }, "end": { - "line": 821, - "column": 35 + "line": 820, + "column": 29 } } }, @@ -164128,16 +164983,16 @@ "binop": null }, "value": "strokeIndex", - "start": 25639, - "end": 25650, + "start": 25649, + "end": 25660, "loc": { "start": { - "line": 821, - "column": 35 + "line": 820, + "column": 29 }, "end": { - "line": 821, - "column": 46 + "line": 820, + "column": 40 } } }, @@ -164154,16 +165009,16 @@ "binop": null, "updateContext": null }, - "start": 25650, - "end": 25651, + "start": 25660, + "end": 25661, "loc": { "start": { - "line": 821, - "column": 46 + "line": 820, + "column": 40 }, "end": { - "line": 821, - "column": 47 + "line": 820, + "column": 41 } } }, @@ -164181,16 +165036,16 @@ "updateContext": null }, "value": 1, - "start": 25652, - "end": 25653, + "start": 25662, + "end": 25663, "loc": { "start": { - "line": 821, - "column": 48 + "line": 820, + "column": 42 }, "end": { - "line": 821, - "column": 49 + "line": 820, + "column": 43 } } }, @@ -164206,16 +165061,16 @@ "postfix": false, "binop": null }, - "start": 25653, - "end": 25654, + "start": 25663, + "end": 25664, "loc": { "start": { - "line": 821, - "column": 49 + "line": 820, + "column": 43 }, "end": { - "line": 821, - "column": 50 + "line": 820, + "column": 44 } } }, @@ -164232,16 +165087,16 @@ "binop": null, "updateContext": null }, - "start": 25654, - "end": 25655, + "start": 25664, + "end": 25665, "loc": { "start": { - "line": 821, - "column": 50 + "line": 820, + "column": 44 }, "end": { - "line": 821, - "column": 51 + "line": 820, + "column": 45 } } }, @@ -164257,50 +165112,47 @@ "postfix": false, "binop": null }, - "start": 25660, - "end": 25661, + "start": 25672, + "end": 25673, "loc": { "start": { - "line": 822, - "column": 4 + "line": 821, + "column": 6 }, "end": { - "line": 822, - "column": 5 + "line": 821, + "column": 7 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 25666, - "end": 25670, + "start": 25678, + "end": 25679, "loc": { "start": { - "line": 823, + "line": 822, "column": 4 }, "end": { - "line": 823, - "column": 8 + "line": 822, + "column": 5 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -164308,51 +165160,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 25670, - "end": 25671, + "start": 25679, + "end": 25680, "loc": { "start": { - "line": 823, - "column": 8 + "line": 822, + "column": 5 }, "end": { - "line": 823, - "column": 9 + "line": 822, + "column": 6 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "renderer", - "start": 25671, - "end": 25679, + "start": 25680, + "end": 25681, "loc": { "start": { - "line": 823, - "column": 9 + "line": 822, + "column": 6 }, "end": { - "line": 823, - "column": 17 + "line": 822, + "column": 7 } } }, { "type": { - "label": ".", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -164363,16 +165215,17 @@ "binop": null, "updateContext": null }, - "start": 25679, - "end": 25680, + "value": "const", + "start": 25686, + "end": 25691, "loc": { "start": { "line": 823, - "column": 17 + "column": 4 }, "end": { "line": 823, - "column": 18 + "column": 9 } } }, @@ -164388,34 +165241,36 @@ "postfix": false, "binop": null }, - "value": "drawModel", - "start": 25680, - "end": 25689, + "value": "stringRawStrokes", + "start": 25692, + "end": 25708, "loc": { "start": { "line": 823, - "column": 18 + "column": 10 }, "end": { "line": 823, - "column": 27 + "column": 26 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25689, - "end": 25690, + "value": "=", + "start": 25709, + "end": 25710, "loc": { "start": { "line": 823, @@ -164442,16 +165297,16 @@ "updateContext": null }, "value": "this", - "start": 25690, - "end": 25694, + "start": 25711, + "end": 25715, "loc": { "start": { "line": 823, - "column": 28 + "column": 29 }, "end": { "line": 823, - "column": 32 + "column": 33 } } }, @@ -164468,16 +165323,16 @@ "binop": null, "updateContext": null }, - "start": 25694, - "end": 25695, + "start": 25715, + "end": 25716, "loc": { "start": { "line": 823, - "column": 32 + "column": 33 }, "end": { "line": 823, - "column": 33 + "column": 34 } } }, @@ -164493,24 +165348,24 @@ "postfix": false, "binop": null }, - "value": "rendererContext", - "start": 25695, - "end": 25710, + "value": "model", + "start": 25716, + "end": 25721, "loc": { "start": { "line": 823, - "column": 33 + "column": 34 }, "end": { "line": 823, - "column": 48 + "column": 39 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -164520,23 +165375,22 @@ "binop": null, "updateContext": null }, - "start": 25710, - "end": 25711, + "start": 25721, + "end": 25722, "loc": { "start": { "line": 823, - "column": 48 + "column": 39 }, "end": { "line": 823, - "column": 49 + "column": 40 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -164544,20 +165398,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 25712, - "end": 25716, + "value": "rawStrokes", + "start": 25722, + "end": 25732, "loc": { "start": { "line": 823, - "column": 50 + "column": 40 }, "end": { "line": 823, - "column": 54 + "column": 50 } } }, @@ -164574,8 +165427,59 @@ "binop": null, "updateContext": null }, - "start": 25716, - "end": 25717, + "start": 25732, + "end": 25733, + "loc": { + "start": { + "line": 823, + "column": 50 + }, + "end": { + "line": 823, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "map", + "start": 25733, + "end": 25736, + "loc": { + "start": { + "line": 823, + "column": 51 + }, + "end": { + "line": 823, + "column": 54 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 25736, + "end": 25737, "loc": { "start": { "line": 823, @@ -164599,9 +165503,9 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 25717, - "end": 25722, + "value": "strokes", + "start": 25737, + "end": 25744, "loc": { "start": { "line": 823, @@ -164609,13 +165513,13 @@ }, "end": { "line": 823, - "column": 60 + "column": 62 } } }, { "type": { - "label": ",", + "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -164626,23 +165530,22 @@ "binop": null, "updateContext": null }, - "start": 25722, - "end": 25723, + "start": 25745, + "end": 25747, "loc": { "start": { "line": 823, - "column": 60 + "column": 63 }, "end": { "line": 823, - "column": 61 + "column": 65 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -164650,20 +165553,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 25724, - "end": 25728, + "value": "JSON", + "start": 25748, + "end": 25752, "loc": { "start": { "line": 823, - "column": 62 + "column": 66 }, "end": { "line": 823, - "column": 66 + "column": 70 } } }, @@ -164680,16 +165582,16 @@ "binop": null, "updateContext": null }, - "start": 25728, - "end": 25729, + "start": 25752, + "end": 25753, "loc": { "start": { "line": 823, - "column": 66 + "column": 70 }, "end": { "line": 823, - "column": 67 + "column": 71 } } }, @@ -164705,25 +165607,25 @@ "postfix": false, "binop": null }, - "value": "stroker", - "start": 25729, - "end": 25736, + "value": "stringify", + "start": 25753, + "end": 25762, "loc": { "start": { "line": 823, - "column": 67 + "column": 71 }, "end": { "line": 823, - "column": 74 + "column": 80 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -164731,50 +165633,50 @@ "postfix": false, "binop": null }, - "start": 25736, - "end": 25737, + "start": 25762, + "end": 25763, "loc": { "start": { "line": 823, - "column": 74 + "column": 80 }, "end": { "line": 823, - "column": 75 + "column": 81 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 25737, - "end": 25738, + "value": "strokes", + "start": 25763, + "end": 25770, "loc": { "start": { "line": 823, - "column": 75 + "column": 81 }, "end": { "line": 823, - "column": 76 + "column": 88 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -164782,25 +165684,24 @@ "postfix": false, "binop": null }, - "value": "recognizerCallback", - "start": 25743, - "end": 25761, + "start": 25770, + "end": 25771, "loc": { "start": { - "line": 824, - "column": 4 + "line": 823, + "column": 88 }, "end": { - "line": 824, - "column": 22 + "line": 823, + "column": 89 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -164808,25 +165709,24 @@ "postfix": false, "binop": null }, - "start": 25761, - "end": 25762, + "start": 25771, + "end": 25772, "loc": { "start": { - "line": 824, - "column": 22 + "line": 823, + "column": 89 }, "end": { - "line": 824, - "column": 23 + "line": 823, + "column": 90 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -164835,24 +165735,24 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 25762, - "end": 25766, + "start": 25772, + "end": 25773, "loc": { "start": { - "line": 824, - "column": 23 + "line": 823, + "column": 90 }, "end": { - "line": 824, - "column": 27 + "line": 823, + "column": 91 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "const", + "keyword": "const", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -164862,16 +165762,17 @@ "binop": null, "updateContext": null }, - "start": 25766, - "end": 25767, + "value": "const", + "start": 25778, + "end": 25783, "loc": { "start": { "line": 824, - "column": 27 + "column": 4 }, "end": { "line": 824, - "column": 28 + "column": 9 } } }, @@ -164887,50 +165788,50 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 25768, - "end": 25777, + "value": "strokeIndex", + "start": 25784, + "end": 25795, "loc": { "start": { "line": 824, - "column": 29 + "column": 10 }, "end": { "line": 824, - "column": 38 + "column": 21 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 25777, - "end": 25778, + "value": "=", + "start": 25796, + "end": 25797, "loc": { "start": { "line": 824, - "column": 38 + "column": 22 }, "end": { "line": 824, - "column": 39 + "column": 23 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -164938,20 +165839,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 25779, - "end": 25783, + "value": "stringRawStrokes", + "start": 25798, + "end": 25814, "loc": { "start": { "line": 824, - "column": 40 + "column": 24 }, "end": { "line": 824, - "column": 44 + "column": 40 } } }, @@ -164968,16 +165868,16 @@ "binop": null, "updateContext": null }, - "start": 25783, - "end": 25784, + "start": 25814, + "end": 25815, "loc": { "start": { "line": 824, - "column": 44 + "column": 40 }, "end": { "line": 824, - "column": 45 + "column": 41 } } }, @@ -164993,25 +165893,25 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 25784, - "end": 25789, + "value": "indexOf", + "start": 25815, + "end": 25822, "loc": { "start": { "line": 824, - "column": 45 + "column": 41 }, "end": { "line": 824, - "column": 50 + "column": 48 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -165019,49 +165919,48 @@ "postfix": false, "binop": null }, - "start": 25789, - "end": 25790, + "start": 25822, + "end": 25823, "loc": { "start": { "line": 824, - "column": 50 + "column": 48 }, "end": { "line": 824, - "column": 51 + "column": 49 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 25790, - "end": 25791, + "value": "JSON", + "start": 25823, + "end": 25827, "loc": { "start": { "line": 824, - "column": 51 + "column": 49 }, "end": { "line": 824, - "column": 52 + "column": 53 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -165072,24 +165971,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 25796, - "end": 25798, + "start": 25827, + "end": 25828, "loc": { "start": { - "line": 825, - "column": 4 + "line": 824, + "column": 53 }, "end": { - "line": 825, - "column": 6 + "line": 824, + "column": 54 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -165098,43 +165996,17 @@ "postfix": false, "binop": null }, - "start": 25799, - "end": 25800, - "loc": { - "start": { - "line": 825, - "column": 7 - }, - "end": { - "line": 825, - "column": 8 - } - } - }, - { - "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": true, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "!", - "start": 25800, - "end": 25801, + "value": "stringify", + "start": 25828, + "end": 25837, "loc": { "start": { - "line": 825, - "column": 8 + "line": 824, + "column": 54 }, "end": { - "line": 825, - "column": 9 + "line": 824, + "column": 63 } } }, @@ -165150,23 +166022,22 @@ "postfix": false, "binop": null }, - "start": 25801, - "end": 25802, + "start": 25837, + "end": 25838, "loc": { "start": { - "line": 825, - "column": 9 + "line": 824, + "column": 63 }, "end": { - "line": 825, - "column": 10 + "line": 824, + "column": 64 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -165174,26 +166045,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 25802, - "end": 25806, + "value": "stroke", + "start": 25838, + "end": 25844, "loc": { "start": { - "line": 825, - "column": 10 + "line": 824, + "column": 64 }, "end": { - "line": 825, - "column": 14 + "line": 824, + "column": 70 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -165201,27 +166071,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 25806, - "end": 25807, + "start": 25844, + "end": 25845, "loc": { "start": { - "line": 825, - "column": 14 + "line": 824, + "column": 70 }, "end": { - "line": 825, - "column": 15 + "line": 824, + "column": 71 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -165229,24 +166098,23 @@ "postfix": false, "binop": null }, - "value": "configuration", - "start": 25807, - "end": 25820, + "start": 25845, + "end": 25846, "loc": { "start": { - "line": 825, - "column": 15 + "line": 824, + "column": 71 }, "end": { - "line": 825, - "column": 28 + "line": 824, + "column": 72 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -165256,68 +166124,69 @@ "binop": null, "updateContext": null }, - "start": 25820, - "end": 25821, + "start": 25846, + "end": 25847, "loc": { "start": { - "line": 825, - "column": 28 + "line": 824, + "column": 72 }, "end": { - "line": 825, - "column": 29 + "line": 824, + "column": 73 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "triggers", - "start": 25821, - "end": 25829, + "value": "if", + "start": 25852, + "end": 25854, "loc": { "start": { "line": 825, - "column": 29 + "column": 4 }, "end": { "line": 825, - "column": 37 + "column": 6 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 25829, - "end": 25830, + "start": 25855, + "end": 25856, "loc": { "start": { "line": 825, - "column": 37 + "column": 7 }, "end": { "line": 825, - "column": 38 + "column": 8 } } }, @@ -165333,17 +166202,17 @@ "postfix": false, "binop": null }, - "value": "exportContent", - "start": 25830, - "end": 25843, + "value": "strokeIndex", + "start": 25856, + "end": 25867, "loc": { "start": { "line": 825, - "column": 38 + "column": 8 }, "end": { "line": 825, - "column": 51 + "column": 19 } } }, @@ -165360,69 +166229,71 @@ "binop": 6, "updateContext": null }, - "value": "===", - "start": 25844, - "end": 25847, + "value": "!==", + "start": 25868, + "end": 25871, "loc": { "start": { "line": 825, - "column": 52 + "column": 20 }, "end": { "line": 825, - "column": 55 + "column": 23 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "+/-", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null, + "binop": 9, "updateContext": null }, - "value": "DEMAND", - "start": 25848, - "end": 25856, + "value": "-", + "start": 25872, + "end": 25873, "loc": { "start": { "line": 825, - "column": 56 + "column": 24 }, "end": { "line": 825, - "column": 64 + "column": 25 } } }, { "type": { - "label": ")", + "label": "num", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25856, - "end": 25857, + "value": 1, + "start": 25873, + "end": 25874, "loc": { "start": { "line": 825, - "column": 64 + "column": 25 }, "end": { "line": 825, - "column": 65 + "column": 26 } } }, @@ -165438,16 +166309,16 @@ "postfix": false, "binop": null }, - "start": 25857, - "end": 25858, + "start": 25874, + "end": 25875, "loc": { "start": { "line": 825, - "column": 65 + "column": 26 }, "end": { "line": 825, - "column": 66 + "column": 27 } } }, @@ -165463,22 +166334,23 @@ "postfix": false, "binop": null }, - "start": 25859, - "end": 25860, + "start": 25876, + "end": 25877, "loc": { "start": { "line": 825, - "column": 67 + "column": 28 }, "end": { "line": 825, - "column": 68 + "column": 29 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -165486,11 +166358,12 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "launchExport", - "start": 25867, - "end": 25879, + "value": "this", + "start": 25884, + "end": 25888, "loc": { "start": { "line": 826, @@ -165498,39 +166371,39 @@ }, "end": { "line": 826, - "column": 18 + "column": 10 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25879, - "end": 25880, + "start": 25888, + "end": 25889, "loc": { "start": { "line": 826, - "column": 18 + "column": 10 }, "end": { "line": 826, - "column": 19 + "column": 11 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -165538,27 +166411,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 25880, - "end": 25884, + "value": "model", + "start": 25889, + "end": 25894, "loc": { "start": { "line": 826, - "column": 19 + "column": 11 }, "end": { "line": 826, - "column": 23 + "column": 16 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -165568,23 +166440,22 @@ "binop": null, "updateContext": null }, - "start": 25884, - "end": 25885, + "start": 25894, + "end": 25895, "loc": { "start": { "line": 826, - "column": 23 + "column": 16 }, "end": { "line": 826, - "column": 24 + "column": 17 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -165592,20 +166463,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 25886, - "end": 25890, + "value": "rawStrokes", + "start": 25895, + "end": 25905, "loc": { "start": { "line": 826, - "column": 25 + "column": 17 }, "end": { "line": 826, - "column": 29 + "column": 27 } } }, @@ -165622,16 +166492,16 @@ "binop": null, "updateContext": null }, - "start": 25890, - "end": 25891, + "start": 25905, + "end": 25906, "loc": { "start": { "line": 826, - "column": 29 + "column": 27 }, "end": { "line": 826, - "column": 30 + "column": 28 } } }, @@ -165647,13 +166517,38 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 25891, - "end": 25896, + "value": "splice", + "start": 25906, + "end": 25912, "loc": { "start": { "line": 826, - "column": 30 + "column": 28 + }, + "end": { + "line": 826, + "column": 34 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 25912, + "end": 25913, + "loc": { + "start": { + "line": 826, + "column": 34 }, "end": { "line": 826, @@ -165663,9 +166558,9 @@ }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -165673,8 +166568,9 @@ "postfix": false, "binop": null }, - "start": 25896, - "end": 25897, + "value": "strokeIndex", + "start": 25913, + "end": 25924, "loc": { "start": { "line": 826, @@ -165682,13 +166578,13 @@ }, "end": { "line": 826, - "column": 36 + "column": 46 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -165699,47 +166595,49 @@ "binop": null, "updateContext": null }, - "start": 25897, - "end": 25898, + "start": 25924, + "end": 25925, "loc": { "start": { "line": 826, - "column": 36 + "column": 46 }, "end": { "line": 826, - "column": 37 + "column": 47 } } }, { "type": { - "label": "}", + "label": "num", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25903, - "end": 25904, + "value": 1, + "start": 25926, + "end": 25927, "loc": { "start": { - "line": 827, - "column": 4 + "line": 826, + "column": 48 }, "end": { - "line": 827, - "column": 5 + "line": 826, + "column": 49 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -165749,50 +166647,50 @@ "postfix": false, "binop": null }, - "start": 25907, - "end": 25908, + "start": 25927, + "end": 25928, "loc": { "start": { - "line": 828, - "column": 2 + "line": 826, + "column": 49 }, "end": { - "line": 828, - "column": 3 + "line": 826, + "column": 50 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "reDraw", - "start": 25912, - "end": 25918, + "start": 25928, + "end": 25929, "loc": { "start": { - "line": 830, - "column": 2 + "line": 826, + "column": 50 }, "end": { - "line": 830, - "column": 8 + "line": 826, + "column": 51 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -165800,22 +166698,23 @@ "postfix": false, "binop": null }, - "start": 25918, - "end": 25919, + "start": 25934, + "end": 25935, "loc": { "start": { - "line": 830, - "column": 8 + "line": 827, + "column": 4 }, "end": { - "line": 830, - "column": 9 + "line": 827, + "column": 5 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -165823,26 +166722,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "rawStrokes", - "start": 25919, - "end": 25929, + "value": "this", + "start": 25940, + "end": 25944, "loc": { "start": { - "line": 830, - "column": 9 + "line": 828, + "column": 4 }, "end": { - "line": 830, - "column": 19 + "line": 828, + "column": 8 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -165852,16 +166752,16 @@ "binop": null, "updateContext": null }, - "start": 25929, - "end": 25930, + "start": 25944, + "end": 25945, "loc": { "start": { - "line": 830, - "column": 19 + "line": 828, + "column": 8 }, "end": { - "line": 830, - "column": 20 + "line": 828, + "column": 9 } } }, @@ -165877,23 +166777,23 @@ "postfix": false, "binop": null }, - "value": "strokeGroups", - "start": 25931, - "end": 25943, + "value": "renderer", + "start": 25945, + "end": 25953, "loc": { "start": { - "line": 830, - "column": 21 + "line": 828, + "column": 9 }, "end": { - "line": 830, - "column": 33 + "line": 828, + "column": 17 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -165901,25 +166801,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25943, - "end": 25944, + "start": 25953, + "end": 25954, "loc": { "start": { - "line": 830, - "column": 33 + "line": 828, + "column": 17 }, "end": { - "line": 830, - "column": 34 + "line": 828, + "column": 18 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -165928,23 +166829,24 @@ "postfix": false, "binop": null }, - "start": 25945, - "end": 25946, + "value": "drawModel", + "start": 25954, + "end": 25963, "loc": { "start": { - "line": 830, - "column": 35 + "line": 828, + "column": 18 }, "end": { - "line": 830, - "column": 36 + "line": 828, + "column": 27 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -165953,25 +166855,25 @@ "postfix": false, "binop": null }, - "value": "rawStrokes", - "start": 25951, - "end": 25961, + "start": 25963, + "end": 25964, "loc": { "start": { - "line": 831, - "column": 4 + "line": 828, + "column": 27 }, "end": { - "line": 831, - "column": 14 + "line": 828, + "column": 28 } } }, { "type": { - "label": ".", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -165980,49 +166882,50 @@ "binop": null, "updateContext": null }, - "start": 25961, - "end": 25962, + "value": "this", + "start": 25964, + "end": 25968, "loc": { "start": { - "line": 831, - "column": 14 + "line": 828, + "column": 28 }, "end": { - "line": 831, - "column": 15 + "line": 828, + "column": 32 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "forEach", - "start": 25962, + "start": 25968, "end": 25969, "loc": { "start": { - "line": 831, - "column": 15 + "line": 828, + "column": 32 }, "end": { - "line": 831, - "column": 22 + "line": 828, + "column": 33 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -166031,47 +166934,50 @@ "postfix": false, "binop": null }, + "value": "rendererContext", "start": 25969, - "end": 25970, + "end": 25984, "loc": { "start": { - "line": 831, - "column": 22 + "line": 828, + "column": 33 }, "end": { - "line": 831, - "column": 23 + "line": 828, + "column": 48 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25970, - "end": 25971, + "start": 25984, + "end": 25985, "loc": { "start": { - "line": 831, - "column": 23 + "line": 828, + "column": 48 }, "end": { - "line": 831, - "column": 24 + "line": 828, + "column": 49 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -166079,25 +166985,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "stroke", - "start": 25971, - "end": 25977, + "value": "this", + "start": 25986, + "end": 25990, "loc": { "start": { - "line": 831, - "column": 24 + "line": 828, + "column": 50 }, "end": { - "line": 831, - "column": 30 + "line": 828, + "column": 54 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -166105,75 +167012,78 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25977, - "end": 25978, + "start": 25990, + "end": 25991, "loc": { "start": { - "line": 831, - "column": 30 + "line": 828, + "column": 54 }, "end": { - "line": 831, - "column": 31 + "line": 828, + "column": 55 } } }, { "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 25979, - "end": 25981, + "value": "model", + "start": 25991, + "end": 25996, "loc": { "start": { - "line": 831, - "column": 32 + "line": 828, + "column": 55 }, "end": { - "line": 831, - "column": 34 + "line": 828, + "column": 60 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 25982, - "end": 25983, + "start": 25996, + "end": 25997, "loc": { "start": { - "line": 831, - "column": 35 + "line": 828, + "column": 60 }, "end": { - "line": 831, - "column": 36 + "line": 828, + "column": 61 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -166181,19 +167091,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "InkModel", - "start": 25990, - "end": 25998, + "value": "this", + "start": 25998, + "end": 26002, "loc": { "start": { - "line": 832, - "column": 6 + "line": 828, + "column": 62 }, "end": { - "line": 832, - "column": 14 + "line": 828, + "column": 66 } } }, @@ -166210,16 +167121,16 @@ "binop": null, "updateContext": null }, - "start": 25998, - "end": 25999, + "start": 26002, + "end": 26003, "loc": { "start": { - "line": 832, - "column": 14 + "line": 828, + "column": 66 }, "end": { - "line": 832, - "column": 15 + "line": 828, + "column": 67 } } }, @@ -166235,25 +167146,25 @@ "postfix": false, "binop": null }, - "value": "addStroke", - "start": 25999, - "end": 26008, + "value": "stroker", + "start": 26003, + "end": 26010, "loc": { "start": { - "line": 832, - "column": 15 + "line": 828, + "column": 67 }, "end": { - "line": 832, - "column": 24 + "line": 828, + "column": 74 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -166261,25 +167172,24 @@ "postfix": false, "binop": null }, - "start": 26008, - "end": 26009, + "start": 26010, + "end": 26011, "loc": { "start": { - "line": 832, - "column": 24 + "line": 828, + "column": 74 }, "end": { - "line": 832, - "column": 25 + "line": 828, + "column": 75 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -166288,50 +167198,49 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 26009, - "end": 26013, + "start": 26011, + "end": 26012, "loc": { "start": { - "line": 832, - "column": 25 + "line": 828, + "column": 75 }, "end": { - "line": 832, - "column": 29 + "line": 828, + "column": 76 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26013, - "end": 26014, + "value": "recognizerCallback", + "start": 26017, + "end": 26035, "loc": { "start": { - "line": 832, - "column": 29 + "line": 829, + "column": 4 }, "end": { - "line": 832, - "column": 30 + "line": 829, + "column": 22 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -166340,25 +167249,25 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 26014, - "end": 26019, + "start": 26035, + "end": 26036, "loc": { "start": { - "line": 832, - "column": 30 + "line": 829, + "column": 22 }, "end": { - "line": 832, - "column": 35 + "line": 829, + "column": 23 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -166367,50 +167276,51 @@ "binop": null, "updateContext": null }, - "start": 26019, - "end": 26020, + "value": "this", + "start": 26036, + "end": 26040, "loc": { "start": { - "line": 832, - "column": 35 + "line": 829, + "column": 23 }, "end": { - "line": 832, - "column": 36 + "line": 829, + "column": 27 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "stroke", - "start": 26021, - "end": 26027, + "start": 26040, + "end": 26041, "loc": { "start": { - "line": 832, - "column": 37 + "line": 829, + "column": 27 }, "end": { - "line": 832, - "column": 43 + "line": 829, + "column": 28 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -166418,22 +167328,23 @@ "postfix": false, "binop": null }, - "start": 26027, - "end": 26028, + "value": "undefined", + "start": 26042, + "end": 26051, "loc": { "start": { - "line": 832, - "column": 43 + "line": 829, + "column": 29 }, "end": { - "line": 832, - "column": 44 + "line": 829, + "column": 38 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -166444,47 +167355,50 @@ "binop": null, "updateContext": null }, - "start": 26028, - "end": 26029, + "start": 26051, + "end": 26052, "loc": { "start": { - "line": 832, - "column": 44 + "line": 829, + "column": 38 }, "end": { - "line": 832, - "column": 45 + "line": 829, + "column": 39 } } }, { "type": { - "label": "}", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 26034, - "end": 26035, + "value": "this", + "start": 26053, + "end": 26057, "loc": { "start": { - "line": 833, - "column": 4 + "line": 829, + "column": 40 }, "end": { - "line": 833, - "column": 5 + "line": 829, + "column": 44 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -166492,52 +167406,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 26035, - "end": 26036, + "start": 26057, + "end": 26058, "loc": { "start": { - "line": 833, - "column": 5 + "line": 829, + "column": 44 }, "end": { - "line": 833, - "column": 6 + "line": 829, + "column": 45 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26036, - "end": 26037, + "value": "model", + "start": 26058, + "end": 26063, "loc": { "start": { - "line": 833, - "column": 6 + "line": 829, + "column": 45 }, "end": { - "line": 833, - "column": 7 + "line": 829, + "column": 50 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -166545,24 +167460,23 @@ "postfix": false, "binop": null }, - "value": "strokeGroups", - "start": 26042, - "end": 26054, + "start": 26063, + "end": 26064, "loc": { "start": { - "line": 834, - "column": 4 + "line": 829, + "column": 50 }, "end": { - "line": 834, - "column": 16 + "line": 829, + "column": 51 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -166572,42 +167486,44 @@ "binop": null, "updateContext": null }, - "start": 26054, - "end": 26055, + "start": 26064, + "end": 26065, "loc": { "start": { - "line": 834, - "column": 16 + "line": 829, + "column": 51 }, "end": { - "line": 834, - "column": 17 + "line": 829, + "column": 52 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "forEach", - "start": 26055, - "end": 26062, + "value": "if", + "start": 26070, + "end": 26072, "loc": { "start": { - "line": 834, - "column": 17 + "line": 830, + "column": 4 }, "end": { - "line": 834, - "column": 24 + "line": 830, + "column": 6 } } }, @@ -166623,48 +167539,50 @@ "postfix": false, "binop": null }, - "start": 26062, - "end": 26063, + "start": 26073, + "end": 26074, "loc": { "start": { - "line": 834, - "column": 24 + "line": 830, + "column": 7 }, "end": { - "line": 834, - "column": 25 + "line": 830, + "column": 8 } } }, { "type": { - "label": "(", + "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 26063, - "end": 26064, + "value": "!", + "start": 26074, + "end": 26075, "loc": { "start": { - "line": 834, - "column": 25 + "line": 830, + "column": 8 }, "end": { - "line": 834, - "column": 26 + "line": 830, + "column": 9 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -166673,49 +167591,51 @@ "postfix": false, "binop": null }, - "value": "group", - "start": 26064, - "end": 26069, + "start": 26075, + "end": 26076, "loc": { "start": { - "line": 834, - "column": 26 + "line": 830, + "column": 9 }, "end": { - "line": 834, - "column": 31 + "line": 830, + "column": 10 } } }, { "type": { - "label": ")", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 26069, - "end": 26070, + "value": "this", + "start": 26076, + "end": 26080, "loc": { "start": { - "line": 834, - "column": 31 + "line": 830, + "column": 10 }, "end": { - "line": 834, - "column": 32 + "line": 830, + "column": 14 } } }, { "type": { - "label": "=>", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -166725,41 +167645,16 @@ "binop": null, "updateContext": null }, - "start": 26071, - "end": 26073, - "loc": { - "start": { - "line": 834, - "column": 33 - }, - "end": { - "line": 834, - "column": 35 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26074, - "end": 26075, + "start": 26080, + "end": 26081, "loc": { "start": { - "line": 834, - "column": 36 + "line": 830, + "column": 14 }, "end": { - "line": 834, - "column": 37 + "line": 830, + "column": 15 } } }, @@ -166775,17 +167670,17 @@ "postfix": false, "binop": null }, - "value": "group", - "start": 26082, - "end": 26087, + "value": "configuration", + "start": 26081, + "end": 26094, "loc": { "start": { - "line": 835, - "column": 6 + "line": 830, + "column": 15 }, "end": { - "line": 835, - "column": 11 + "line": 830, + "column": 28 } } }, @@ -166802,16 +167697,16 @@ "binop": null, "updateContext": null }, - "start": 26087, - "end": 26088, + "start": 26094, + "end": 26095, "loc": { "start": { - "line": 835, - "column": 11 + "line": 830, + "column": 28 }, "end": { - "line": 835, - "column": 12 + "line": 830, + "column": 29 } } }, @@ -166827,17 +167722,17 @@ "postfix": false, "binop": null }, - "value": "strokes", - "start": 26088, - "end": 26095, + "value": "triggers", + "start": 26095, + "end": 26103, "loc": { "start": { - "line": 835, - "column": 12 + "line": 830, + "column": 29 }, "end": { - "line": 835, - "column": 19 + "line": 830, + "column": 37 } } }, @@ -166854,16 +167749,16 @@ "binop": null, "updateContext": null }, - "start": 26095, - "end": 26096, + "start": 26103, + "end": 26104, "loc": { "start": { - "line": 835, - "column": 19 + "line": 830, + "column": 37 }, "end": { - "line": 835, - "column": 20 + "line": 830, + "column": 38 } } }, @@ -166879,75 +167774,79 @@ "postfix": false, "binop": null }, - "value": "forEach", - "start": 26096, - "end": 26103, + "value": "exportContent", + "start": 26104, + "end": 26117, "loc": { "start": { - "line": 835, - "column": 20 + "line": 830, + "column": 38 }, "end": { - "line": 835, - "column": 27 + "line": 830, + "column": 51 } } }, { "type": { - "label": "(", + "label": "==/!=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "start": 26103, - "end": 26104, + "value": "===", + "start": 26118, + "end": 26121, "loc": { "start": { - "line": 835, - "column": 27 + "line": 830, + "column": 52 }, "end": { - "line": 835, - "column": 28 + "line": 830, + "column": 55 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 26104, - "end": 26105, + "value": "DEMAND", + "start": 26122, + "end": 26130, "loc": { "start": { - "line": 835, - "column": 28 + "line": 830, + "column": 56 }, "end": { - "line": 835, - "column": 29 + "line": 830, + "column": 64 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -166955,17 +167854,16 @@ "postfix": false, "binop": null }, - "value": "strokeFromGroup", - "start": 26105, - "end": 26120, + "start": 26130, + "end": 26131, "loc": { "start": { - "line": 835, - "column": 29 + "line": 830, + "column": 64 }, "end": { - "line": 835, - "column": 44 + "line": 830, + "column": 65 } } }, @@ -166981,49 +167879,48 @@ "postfix": false, "binop": null }, - "start": 26120, - "end": 26121, + "start": 26131, + "end": 26132, "loc": { "start": { - "line": 835, - "column": 44 + "line": 830, + "column": 65 }, "end": { - "line": 835, - "column": 45 + "line": 830, + "column": 66 } } }, { "type": { - "label": "=>", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26122, - "end": 26124, + "start": 26133, + "end": 26134, "loc": { "start": { - "line": 835, - "column": 46 + "line": 830, + "column": 67 }, "end": { - "line": 835, - "column": 48 + "line": 830, + "column": 68 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -167032,23 +167929,24 @@ "postfix": false, "binop": null }, - "start": 26125, - "end": 26126, + "value": "launchExport", + "start": 26141, + "end": 26153, "loc": { "start": { - "line": 835, - "column": 49 + "line": 831, + "column": 6 }, "end": { - "line": 835, - "column": 50 + "line": 831, + "column": 18 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -167057,25 +167955,25 @@ "postfix": false, "binop": null }, - "value": "InkModel", - "start": 26135, - "end": 26143, + "start": 26153, + "end": 26154, "loc": { "start": { - "line": 836, - "column": 8 + "line": 831, + "column": 18 }, "end": { - "line": 836, - "column": 16 + "line": 831, + "column": 19 } } }, { "type": { - "label": ".", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -167084,76 +167982,79 @@ "binop": null, "updateContext": null }, - "start": 26143, - "end": 26144, + "value": "this", + "start": 26154, + "end": 26158, "loc": { "start": { - "line": 836, - "column": 16 + "line": 831, + "column": 19 }, "end": { - "line": 836, - "column": 17 + "line": 831, + "column": 23 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "addStrokeToGroup", - "start": 26144, - "end": 26160, + "start": 26158, + "end": 26159, "loc": { "start": { - "line": 836, - "column": 17 + "line": 831, + "column": 23 }, "end": { - "line": 836, - "column": 33 + "line": 831, + "column": 24 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, + "value": "this", "start": 26160, - "end": 26161, + "end": 26164, "loc": { "start": { - "line": 836, - "column": 33 + "line": 831, + "column": 25 }, "end": { - "line": 836, - "column": 34 + "line": 831, + "column": 29 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -167162,51 +168063,50 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 26161, + "start": 26164, "end": 26165, "loc": { "start": { - "line": 836, - "column": 34 + "line": 831, + "column": 29 }, "end": { - "line": 836, - "column": 38 + "line": 831, + "column": 30 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, + "value": "model", "start": 26165, - "end": 26166, + "end": 26170, "loc": { "start": { - "line": 836, - "column": 38 + "line": 831, + "column": 30 }, "end": { - "line": 836, - "column": 39 + "line": 831, + "column": 35 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -167214,23 +168114,22 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 26166, + "start": 26170, "end": 26171, "loc": { "start": { - "line": 836, - "column": 39 + "line": 831, + "column": 35 }, "end": { - "line": 836, - "column": 44 + "line": 831, + "column": 36 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -167245,20 +168144,20 @@ "end": 26172, "loc": { "start": { - "line": 836, - "column": 44 + "line": 831, + "column": 36 }, "end": { - "line": 836, - "column": 45 + "line": 831, + "column": 37 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -167266,102 +168165,90 @@ "postfix": false, "binop": null }, - "value": "strokeFromGroup", - "start": 26173, - "end": 26188, + "start": 26177, + "end": 26178, "loc": { "start": { - "line": 836, - "column": 46 + "line": 832, + "column": 4 }, "end": { - "line": 836, - "column": 61 + "line": 832, + "column": 5 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26188, - "end": 26189, + "start": 26181, + "end": 26182, "loc": { "start": { - "line": 836, - "column": 61 + "line": 833, + "column": 2 }, "end": { - "line": 836, - "column": 62 + "line": 833, + "column": 3 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "group", - "start": 26190, - "end": 26195, + "type": "CommentBlock", + "value": "*\n * @Deprecated\n * @param rawStrokes\n * @param strokeGroups\n ", + "start": 26186, + "end": 26260, "loc": { "start": { - "line": 836, - "column": 63 + "line": 835, + "column": 2 }, "end": { - "line": 836, - "column": 68 + "line": 839, + "column": 5 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26195, - "end": 26196, + "value": "reDraw", + "start": 26263, + "end": 26269, "loc": { "start": { - "line": 836, - "column": 68 + "line": 840, + "column": 2 }, "end": { - "line": 836, - "column": 69 + "line": 840, + "column": 8 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -167370,25 +168257,24 @@ "postfix": false, "binop": null }, - "value": "penStyle", - "start": 26196, - "end": 26204, + "start": 26269, + "end": 26270, "loc": { "start": { - "line": 836, - "column": 69 + "line": 840, + "column": 8 }, "end": { - "line": 836, - "column": 77 + "line": 840, + "column": 9 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -167396,22 +168282,23 @@ "postfix": false, "binop": null }, - "start": 26204, - "end": 26205, + "value": "rawStrokes", + "start": 26270, + "end": 26280, "loc": { "start": { - "line": 836, - "column": 77 + "line": 840, + "column": 9 }, "end": { - "line": 836, - "column": 78 + "line": 840, + "column": 19 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -167422,24 +168309,24 @@ "binop": null, "updateContext": null }, - "start": 26205, - "end": 26206, + "start": 26280, + "end": 26281, "loc": { "start": { - "line": 836, - "column": 78 + "line": 840, + "column": 19 }, "end": { - "line": 836, - "column": 79 + "line": 840, + "column": 20 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -167447,16 +168334,17 @@ "postfix": false, "binop": null }, - "start": 26213, - "end": 26214, + "value": "strokeGroups", + "start": 26282, + "end": 26294, "loc": { "start": { - "line": 837, - "column": 6 + "line": 840, + "column": 21 }, "end": { - "line": 837, - "column": 7 + "line": 840, + "column": 33 } } }, @@ -167472,50 +168360,49 @@ "postfix": false, "binop": null }, - "start": 26214, - "end": 26215, + "start": 26294, + "end": 26295, "loc": { "start": { - "line": 837, - "column": 7 + "line": 840, + "column": 33 }, "end": { - "line": 837, - "column": 8 + "line": 840, + "column": 34 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26215, - "end": 26216, + "start": 26296, + "end": 26297, "loc": { "start": { - "line": 837, - "column": 8 + "line": 840, + "column": 35 }, "end": { - "line": 837, - "column": 9 + "line": 840, + "column": 36 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -167523,22 +168410,23 @@ "postfix": false, "binop": null }, - "start": 26221, - "end": 26222, + "value": "rawStrokes", + "start": 26302, + "end": 26312, "loc": { "start": { - "line": 838, + "line": 841, "column": 4 }, "end": { - "line": 838, - "column": 5 + "line": 841, + "column": 14 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -167546,98 +168434,95 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 26222, - "end": 26223, + "start": 26312, + "end": 26313, "loc": { "start": { - "line": 838, - "column": 5 + "line": 841, + "column": 14 }, "end": { - "line": 838, - "column": 6 + "line": 841, + "column": 15 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26223, - "end": 26224, + "value": "forEach", + "start": 26313, + "end": 26320, "loc": { "start": { - "line": 838, - "column": 6 + "line": 841, + "column": 15 }, "end": { - "line": 838, - "column": 7 + "line": 841, + "column": 22 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 26229, - "end": 26233, + "start": 26320, + "end": 26321, "loc": { "start": { - "line": 839, - "column": 4 + "line": 841, + "column": 22 }, "end": { - "line": 839, - "column": 8 + "line": 841, + "column": 23 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26233, - "end": 26234, + "start": 26321, + "end": 26322, "loc": { "start": { - "line": 839, - "column": 8 + "line": 841, + "column": 23 }, "end": { - "line": 839, - "column": 9 + "line": 841, + "column": 24 } } }, @@ -167653,23 +168538,23 @@ "postfix": false, "binop": null }, - "value": "renderer", - "start": 26234, - "end": 26242, + "value": "stroke", + "start": 26322, + "end": 26328, "loc": { "start": { - "line": 839, - "column": 9 + "line": 841, + "column": 24 }, "end": { - "line": 839, - "column": 17 + "line": 841, + "column": 30 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -167677,51 +168562,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26242, - "end": 26243, + "start": 26328, + "end": 26329, "loc": { "start": { - "line": 839, - "column": 17 + "line": 841, + "column": 30 }, "end": { - "line": 839, - "column": 18 + "line": 841, + "column": 31 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "drawModel", - "start": 26243, - "end": 26252, + "start": 26330, + "end": 26332, "loc": { "start": { - "line": 839, - "column": 18 + "line": 841, + "column": 32 }, "end": { - "line": 839, - "column": 27 + "line": 841, + "column": 34 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -167731,23 +168615,22 @@ "postfix": false, "binop": null }, - "start": 26252, - "end": 26253, + "start": 26333, + "end": 26334, "loc": { "start": { - "line": 839, - "column": 27 + "line": 841, + "column": 35 }, "end": { - "line": 839, - "column": 28 + "line": 841, + "column": 36 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -167755,20 +168638,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 26253, - "end": 26257, + "value": "InkModel", + "start": 26341, + "end": 26349, "loc": { "start": { - "line": 839, - "column": 28 + "line": 842, + "column": 6 }, "end": { - "line": 839, - "column": 32 + "line": 842, + "column": 14 } } }, @@ -167785,16 +168667,16 @@ "binop": null, "updateContext": null }, - "start": 26257, - "end": 26258, + "start": 26349, + "end": 26350, "loc": { "start": { - "line": 839, - "column": 32 + "line": 842, + "column": 14 }, "end": { - "line": 839, - "column": 33 + "line": 842, + "column": 15 } } }, @@ -167810,43 +168692,42 @@ "postfix": false, "binop": null }, - "value": "rendererContext", - "start": 26258, - "end": 26273, + "value": "addStroke", + "start": 26350, + "end": 26359, "loc": { "start": { - "line": 839, - "column": 33 + "line": 842, + "column": 15 }, "end": { - "line": 839, - "column": 48 + "line": 842, + "column": 24 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26273, - "end": 26274, + "start": 26359, + "end": 26360, "loc": { "start": { - "line": 839, - "column": 48 + "line": 842, + "column": 24 }, "end": { - "line": 839, - "column": 49 + "line": 842, + "column": 25 } } }, @@ -167865,16 +168746,16 @@ "updateContext": null }, "value": "this", - "start": 26275, - "end": 26279, + "start": 26360, + "end": 26364, "loc": { "start": { - "line": 839, - "column": 50 + "line": 842, + "column": 25 }, "end": { - "line": 839, - "column": 54 + "line": 842, + "column": 29 } } }, @@ -167891,16 +168772,16 @@ "binop": null, "updateContext": null }, - "start": 26279, - "end": 26280, + "start": 26364, + "end": 26365, "loc": { "start": { - "line": 839, - "column": 54 + "line": 842, + "column": 29 }, "end": { - "line": 839, - "column": 55 + "line": 842, + "column": 30 } } }, @@ -167917,16 +168798,16 @@ "binop": null }, "value": "model", - "start": 26280, - "end": 26285, + "start": 26365, + "end": 26370, "loc": { "start": { - "line": 839, - "column": 55 + "line": 842, + "column": 30 }, "end": { - "line": 839, - "column": 60 + "line": 842, + "column": 35 } } }, @@ -167943,23 +168824,22 @@ "binop": null, "updateContext": null }, - "start": 26285, - "end": 26286, + "start": 26370, + "end": 26371, "loc": { "start": { - "line": 839, - "column": 60 + "line": 842, + "column": 35 }, "end": { - "line": 839, - "column": 61 + "line": 842, + "column": 36 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -167967,26 +168847,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 26287, - "end": 26291, + "value": "stroke", + "start": 26372, + "end": 26378, "loc": { "start": { - "line": 839, - "column": 62 + "line": 842, + "column": 37 }, "end": { - "line": 839, - "column": 66 + "line": 842, + "column": 43 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -167994,27 +168873,52 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "start": 26378, + "end": 26379, + "loc": { + "start": { + "line": 842, + "column": 43 + }, + "end": { + "line": 842, + "column": 44 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "start": 26291, - "end": 26292, + "start": 26379, + "end": 26380, "loc": { "start": { - "line": 839, - "column": 66 + "line": 842, + "column": 44 }, "end": { - "line": 839, - "column": 67 + "line": 842, + "column": 45 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -168022,17 +168926,16 @@ "postfix": false, "binop": null }, - "value": "stroker", - "start": 26292, - "end": 26299, + "start": 26385, + "end": 26386, "loc": { "start": { - "line": 839, - "column": 67 + "line": 843, + "column": 4 }, "end": { - "line": 839, - "column": 74 + "line": 843, + "column": 5 } } }, @@ -168048,16 +168951,16 @@ "postfix": false, "binop": null }, - "start": 26299, - "end": 26300, + "start": 26386, + "end": 26387, "loc": { "start": { - "line": 839, - "column": 74 + "line": 843, + "column": 5 }, "end": { - "line": 839, - "column": 75 + "line": 843, + "column": 6 } } }, @@ -168074,16 +168977,16 @@ "binop": null, "updateContext": null }, - "start": 26300, - "end": 26301, + "start": 26387, + "end": 26388, "loc": { "start": { - "line": 839, - "column": 75 + "line": 843, + "column": 6 }, "end": { - "line": 839, - "column": 76 + "line": 843, + "column": 7 } } }, @@ -168099,49 +169002,49 @@ "postfix": false, "binop": null }, - "value": "recognizerCallback", - "start": 26306, - "end": 26324, + "value": "strokeGroups", + "start": 26393, + "end": 26405, "loc": { "start": { - "line": 840, + "line": 844, "column": 4 }, "end": { - "line": 840, - "column": 22 + "line": 844, + "column": 16 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 26324, - "end": 26325, + "start": 26405, + "end": 26406, "loc": { "start": { - "line": 840, - "column": 22 + "line": 844, + "column": 16 }, "end": { - "line": 840, - "column": 23 + "line": 844, + "column": 17 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -168149,53 +169052,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 26325, - "end": 26329, + "value": "forEach", + "start": 26406, + "end": 26413, "loc": { "start": { - "line": 840, - "column": 23 + "line": 844, + "column": 17 }, "end": { - "line": 840, - "column": 27 + "line": 844, + "column": 24 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26329, - "end": 26330, + "start": 26413, + "end": 26414, "loc": { "start": { - "line": 840, - "column": 27 + "line": 844, + "column": 24 }, "end": { - "line": 840, - "column": 28 + "line": 844, + "column": 25 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -168204,78 +169105,74 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 26331, - "end": 26340, + "start": 26414, + "end": 26415, "loc": { "start": { - "line": 840, - "column": 29 + "line": 844, + "column": 25 }, "end": { - "line": 840, - "column": 38 + "line": 844, + "column": 26 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26340, - "end": 26341, + "value": "group", + "start": 26415, + "end": 26420, "loc": { "start": { - "line": 840, - "column": 38 + "line": 844, + "column": 26 }, "end": { - "line": 840, - "column": 39 + "line": 844, + "column": 31 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 26342, - "end": 26346, + "start": 26420, + "end": 26421, "loc": { "start": { - "line": 840, - "column": 40 + "line": 844, + "column": 31 }, "end": { - "line": 840, - "column": 44 + "line": 844, + "column": 32 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=>", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -168285,23 +169182,23 @@ "binop": null, "updateContext": null }, - "start": 26346, - "end": 26347, + "start": 26422, + "end": 26424, "loc": { "start": { - "line": 840, - "column": 44 + "line": 844, + "column": 33 }, "end": { - "line": 840, - "column": 45 + "line": 844, + "column": 35 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -168310,25 +169207,24 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 26347, - "end": 26352, + "start": 26425, + "end": 26426, "loc": { "start": { - "line": 840, - "column": 45 + "line": 844, + "column": 36 }, "end": { - "line": 840, - "column": 50 + "line": 844, + "column": 37 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -168336,23 +169232,24 @@ "postfix": false, "binop": null }, - "start": 26352, - "end": 26353, + "value": "group", + "start": 26433, + "end": 26438, "loc": { "start": { - "line": 840, - "column": 50 + "line": 845, + "column": 6 }, "end": { - "line": 840, - "column": 51 + "line": 845, + "column": 11 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -168362,24 +169259,24 @@ "binop": null, "updateContext": null }, - "start": 26353, - "end": 26354, + "start": 26438, + "end": 26439, "loc": { "start": { - "line": 840, - "column": 51 + "line": 845, + "column": 11 }, "end": { - "line": 840, - "column": 52 + "line": 845, + "column": 12 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -168387,32 +169284,43 @@ "postfix": false, "binop": null }, - "start": 26357, - "end": 26358, + "value": "strokes", + "start": 26439, + "end": 26446, "loc": { "start": { - "line": 841, - "column": 2 + "line": 845, + "column": 12 }, "end": { - "line": 841, - "column": 3 + "line": 845, + "column": 19 } } }, { - "type": "CommentBlock", - "value": "*\n * True if idle state\n * @return {Boolean}\n ", - "start": 26362, - "end": 26418, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 26446, + "end": 26447, "loc": { "start": { - "line": 843, - "column": 2 + "line": 845, + "column": 19 }, "end": { - "line": 846, - "column": 5 + "line": 845, + "column": 20 } } }, @@ -168428,24 +169336,24 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 26421, - "end": 26424, + "value": "forEach", + "start": 26447, + "end": 26454, "loc": { "start": { - "line": 847, - "column": 2 + "line": 845, + "column": 20 }, "end": { - "line": 847, - "column": 5 + "line": 845, + "column": 27 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -168454,17 +169362,16 @@ "postfix": false, "binop": null }, - "value": "idle", - "start": 26425, - "end": 26429, + "start": 26454, + "end": 26455, "loc": { "start": { - "line": 847, - "column": 6 + "line": 845, + "column": 27 }, "end": { - "line": 847, - "column": 10 + "line": 845, + "column": 28 } } }, @@ -168480,24 +169387,24 @@ "postfix": false, "binop": null }, - "start": 26429, - "end": 26430, + "start": 26455, + "end": 26456, "loc": { "start": { - "line": 847, - "column": 10 + "line": 845, + "column": 28 }, "end": { - "line": 847, - "column": 11 + "line": 845, + "column": 29 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -168505,24 +169412,25 @@ "postfix": false, "binop": null }, - "start": 26430, - "end": 26431, + "value": "strokeFromGroup", + "start": 26456, + "end": 26471, "loc": { "start": { - "line": 847, - "column": 11 + "line": 845, + "column": 29 }, "end": { - "line": 847, - "column": 12 + "line": 845, + "column": 44 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -168530,23 +169438,22 @@ "postfix": false, "binop": null }, - "start": 26432, - "end": 26433, + "start": 26471, + "end": 26472, "loc": { "start": { - "line": 847, - "column": 13 + "line": 845, + "column": 44 }, "end": { - "line": 847, - "column": 14 + "line": 845, + "column": 45 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -168557,24 +169464,47 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 26438, - "end": 26444, + "start": 26473, + "end": 26475, "loc": { "start": { - "line": 848, - "column": 4 + "line": 845, + "column": 46 }, "end": { - "line": 848, - "column": 10 + "line": 845, + "column": 48 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 26476, + "end": 26477, + "loc": { + "start": { + "line": 845, + "column": 49 + }, + "end": { + "line": 845, + "column": 50 + } + } + }, + { + "type": { + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -168582,20 +169512,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 26445, - "end": 26449, + "value": "InkModel", + "start": 26486, + "end": 26494, "loc": { "start": { - "line": 848, - "column": 11 + "line": 846, + "column": 8 }, "end": { - "line": 848, - "column": 15 + "line": 846, + "column": 16 } } }, @@ -168612,16 +169541,16 @@ "binop": null, "updateContext": null }, - "start": 26449, - "end": 26450, + "start": 26494, + "end": 26495, "loc": { "start": { - "line": 848, - "column": 15 + "line": 846, + "column": 16 }, "end": { - "line": 848, - "column": 16 + "line": 846, + "column": 17 } } }, @@ -168637,49 +169566,49 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 26450, - "end": 26467, + "value": "addStrokeToGroup", + "start": 26495, + "end": 26511, "loc": { "start": { - "line": 848, - "column": 16 + "line": 846, + "column": 17 }, "end": { - "line": 848, + "line": 846, "column": 33 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26467, - "end": 26468, + "start": 26511, + "end": 26512, "loc": { "start": { - "line": 848, + "line": 846, "column": 33 }, "end": { - "line": 848, + "line": 846, "column": 34 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -168687,26 +169616,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "idle", - "start": 26468, - "end": 26472, + "value": "this", + "start": 26512, + "end": 26516, "loc": { "start": { - "line": 848, + "line": 846, "column": 34 }, "end": { - "line": 848, + "line": 846, "column": 38 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -168716,24 +169646,24 @@ "binop": null, "updateContext": null }, - "start": 26472, - "end": 26473, + "start": 26516, + "end": 26517, "loc": { "start": { - "line": 848, + "line": 846, "column": 38 }, "end": { - "line": 848, + "line": 846, "column": 39 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -168741,32 +169671,43 @@ "postfix": false, "binop": null }, - "start": 26476, - "end": 26477, + "value": "model", + "start": 26517, + "end": 26522, "loc": { "start": { - "line": 849, - "column": 2 + "line": 846, + "column": 39 }, "end": { - "line": 849, - "column": 3 + "line": 846, + "column": 44 } } }, { - "type": "CommentBlock", - "value": "*\n * Wait for idle state.\n ", - "start": 26481, - "end": 26516, + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 26522, + "end": 26523, "loc": { "start": { - "line": 851, - "column": 2 + "line": 846, + "column": 44 }, "end": { - "line": 853, - "column": 5 + "line": 846, + "column": 45 } } }, @@ -168782,50 +169723,51 @@ "postfix": false, "binop": null }, - "value": "waitForIdle", - "start": 26519, - "end": 26530, + "value": "strokeFromGroup", + "start": 26524, + "end": 26539, "loc": { "start": { - "line": 854, - "column": 2 + "line": 846, + "column": 46 }, "end": { - "line": 854, - "column": 13 + "line": 846, + "column": 61 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 26530, - "end": 26531, + "start": 26539, + "end": 26540, "loc": { "start": { - "line": 854, - "column": 13 + "line": 846, + "column": 61 }, "end": { - "line": 854, - "column": 14 + "line": 846, + "column": 62 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -168833,41 +169775,43 @@ "postfix": false, "binop": null }, - "start": 26531, - "end": 26532, + "value": "group", + "start": 26541, + "end": 26546, "loc": { "start": { - "line": 854, - "column": 14 + "line": 846, + "column": 63 }, "end": { - "line": 854, - "column": 15 + "line": 846, + "column": 68 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 26533, - "end": 26534, + "start": 26546, + "end": 26547, "loc": { "start": { - "line": 854, - "column": 16 + "line": 846, + "column": 68 }, "end": { - "line": 854, - "column": 17 + "line": 846, + "column": 69 } } }, @@ -168883,25 +169827,25 @@ "postfix": false, "binop": null }, - "value": "triggerCallbacks", - "start": 26539, + "value": "penStyle", + "start": 26547, "end": 26555, "loc": { "start": { - "line": 855, - "column": 4 + "line": 846, + "column": 69 }, "end": { - "line": 855, - "column": 20 + "line": 846, + "column": 77 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -168913,21 +169857,20 @@ "end": 26556, "loc": { "start": { - "line": 855, - "column": 20 + "line": 846, + "column": 77 }, "end": { - "line": 855, - "column": 21 + "line": 846, + "column": 78 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -168936,51 +169879,49 @@ "binop": null, "updateContext": null }, - "value": "this", "start": 26556, - "end": 26560, + "end": 26557, "loc": { "start": { - "line": 855, - "column": 21 + "line": 846, + "column": 78 }, "end": { - "line": 855, - "column": 25 + "line": 846, + "column": 79 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26560, - "end": 26561, + "start": 26564, + "end": 26565, "loc": { "start": { - "line": 855, - "column": 25 + "line": 847, + "column": 6 }, "end": { - "line": 855, - "column": 26 + "line": 847, + "column": 7 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -168988,23 +169929,22 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 26562, - "end": 26571, + "start": 26565, + "end": 26566, "loc": { "start": { - "line": 855, - "column": 27 + "line": 847, + "column": 7 }, "end": { - "line": 855, - "column": 36 + "line": 847, + "column": 8 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -169015,24 +169955,24 @@ "binop": null, "updateContext": null }, - "start": 26571, - "end": 26572, + "start": 26566, + "end": 26567, "loc": { "start": { - "line": 855, - "column": 36 + "line": 847, + "column": 8 }, "end": { - "line": 855, - "column": 37 + "line": 847, + "column": 9 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -169040,23 +169980,22 @@ "postfix": false, "binop": null }, - "value": "Constants", - "start": 26573, - "end": 26582, + "start": 26572, + "end": 26573, "loc": { "start": { - "line": 855, - "column": 38 + "line": 848, + "column": 4 }, "end": { - "line": 855, - "column": 47 + "line": 848, + "column": 5 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -169064,53 +170003,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26582, - "end": 26583, + "start": 26573, + "end": 26574, "loc": { "start": { - "line": 855, - "column": 47 + "line": 848, + "column": 5 }, "end": { - "line": 855, - "column": 48 + "line": 848, + "column": 6 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "EventType", - "start": 26583, - "end": 26592, + "start": 26574, + "end": 26575, "loc": { "start": { - "line": 855, - "column": 48 + "line": 848, + "column": 6 }, "end": { - "line": 855, - "column": 57 + "line": 848, + "column": 7 } } }, { "type": { - "label": ".", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -169119,50 +170058,51 @@ "binop": null, "updateContext": null }, - "start": 26592, - "end": 26593, + "value": "this", + "start": 26580, + "end": 26584, "loc": { "start": { - "line": 855, - "column": 57 + "line": 849, + "column": 4 }, "end": { - "line": 855, - "column": 58 + "line": 849, + "column": 8 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "IDLE", - "start": 26593, - "end": 26597, + "start": 26584, + "end": 26585, "loc": { "start": { - "line": 855, - "column": 58 + "line": 849, + "column": 8 }, "end": { - "line": 855, - "column": 62 + "line": 849, + "column": 9 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -169170,23 +170110,24 @@ "postfix": false, "binop": null }, - "start": 26597, - "end": 26598, + "value": "renderer", + "start": 26585, + "end": 26593, "loc": { "start": { - "line": 855, - "column": 62 + "line": 849, + "column": 9 }, "end": { - "line": 855, - "column": 63 + "line": 849, + "column": 17 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -169196,16 +170137,16 @@ "binop": null, "updateContext": null }, - "start": 26598, - "end": 26599, + "start": 26593, + "end": 26594, "loc": { "start": { - "line": 855, - "column": 63 + "line": 849, + "column": 17 }, "end": { - "line": 855, - "column": 64 + "line": 849, + "column": 18 } } }, @@ -169221,17 +170162,17 @@ "postfix": false, "binop": null }, - "value": "launchWaitForIdle", - "start": 26604, - "end": 26621, + "value": "drawModel", + "start": 26594, + "end": 26603, "loc": { "start": { - "line": 856, - "column": 4 + "line": 849, + "column": 18 }, "end": { - "line": 856, - "column": 21 + "line": 849, + "column": 27 } } }, @@ -169247,16 +170188,16 @@ "postfix": false, "binop": null }, - "start": 26621, - "end": 26622, + "start": 26603, + "end": 26604, "loc": { "start": { - "line": 856, - "column": 21 + "line": 849, + "column": 27 }, "end": { - "line": 856, - "column": 22 + "line": 849, + "column": 28 } } }, @@ -169275,16 +170216,68 @@ "updateContext": null }, "value": "this", - "start": 26622, - "end": 26626, + "start": 26604, + "end": 26608, "loc": { "start": { - "line": 856, - "column": 22 + "line": 849, + "column": 28 }, "end": { - "line": 856, - "column": 26 + "line": 849, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 26608, + "end": 26609, + "loc": { + "start": { + "line": 849, + "column": 32 + }, + "end": { + "line": 849, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rendererContext", + "start": 26609, + "end": 26624, + "loc": { + "start": { + "line": 849, + "column": 33 + }, + "end": { + "line": 849, + "column": 48 } } }, @@ -169301,16 +170294,16 @@ "binop": null, "updateContext": null }, - "start": 26626, - "end": 26627, + "start": 26624, + "end": 26625, "loc": { "start": { - "line": 856, - "column": 26 + "line": 849, + "column": 48 }, "end": { - "line": 856, - "column": 27 + "line": 849, + "column": 49 } } }, @@ -169329,16 +170322,16 @@ "updateContext": null }, "value": "this", - "start": 26628, - "end": 26632, + "start": 26626, + "end": 26630, "loc": { "start": { - "line": 856, - "column": 28 + "line": 849, + "column": 50 }, "end": { - "line": 856, - "column": 32 + "line": 849, + "column": 54 } } }, @@ -169355,16 +170348,16 @@ "binop": null, "updateContext": null }, - "start": 26632, - "end": 26633, + "start": 26630, + "end": 26631, "loc": { "start": { - "line": 856, - "column": 32 + "line": 849, + "column": 54 }, "end": { - "line": 856, - "column": 33 + "line": 849, + "column": 55 } } }, @@ -169381,49 +170374,51 @@ "binop": null }, "value": "model", - "start": 26633, - "end": 26638, + "start": 26631, + "end": 26636, "loc": { "start": { - "line": 856, - "column": 33 + "line": 849, + "column": 55 }, "end": { - "line": 856, - "column": 38 + "line": 849, + "column": 60 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 26638, - "end": 26639, + "start": 26636, + "end": 26637, "loc": { "start": { - "line": 856, - "column": 38 + "line": 849, + "column": 60 }, "end": { - "line": 856, - "column": 39 + "line": 849, + "column": 61 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -169432,22 +170427,23 @@ "binop": null, "updateContext": null }, - "start": 26639, - "end": 26640, + "value": "this", + "start": 26638, + "end": 26642, "loc": { "start": { - "line": 856, - "column": 39 + "line": 849, + "column": 62 }, "end": { - "line": 856, - "column": 40 + "line": 849, + "column": 66 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -169455,42 +170451,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 26643, - "end": 26644, + "start": 26642, + "end": 26643, "loc": { "start": { - "line": 857, - "column": 2 + "line": 849, + "column": 66 }, "end": { - "line": 857, - "column": 3 + "line": 849, + "column": 67 } } }, { - "type": "CommentBlock", - "value": "*\n * True if can undo, false otherwise.\n * @return {Boolean}\n ", - "start": 26648, - "end": 26720, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stroker", + "start": 26643, + "end": 26650, "loc": { "start": { - "line": 859, - "column": 2 + "line": 849, + "column": 67 }, "end": { - "line": 862, - "column": 5 + "line": 849, + "column": 74 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -169498,50 +170505,49 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 26723, - "end": 26726, + "start": 26650, + "end": 26651, "loc": { "start": { - "line": 863, - "column": 2 + "line": 849, + "column": 74 }, "end": { - "line": 863, - "column": 5 + "line": 849, + "column": 75 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "canUndo", - "start": 26727, - "end": 26734, + "start": 26651, + "end": 26652, "loc": { "start": { - "line": 863, - "column": 6 + "line": 849, + "column": 75 }, "end": { - "line": 863, - "column": 13 + "line": 849, + "column": 76 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -169550,24 +170556,25 @@ "postfix": false, "binop": null }, - "start": 26734, - "end": 26735, + "value": "recognizerCallback", + "start": 26657, + "end": 26675, "loc": { "start": { - "line": 863, - "column": 13 + "line": 850, + "column": 4 }, "end": { - "line": 863, - "column": 14 + "line": 850, + "column": 22 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -169575,48 +170582,50 @@ "postfix": false, "binop": null }, - "start": 26735, - "end": 26736, + "start": 26675, + "end": 26676, "loc": { "start": { - "line": 863, - "column": 14 + "line": 850, + "column": 22 }, "end": { - "line": 863, - "column": 15 + "line": 850, + "column": 23 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 26737, - "end": 26738, + "value": "this", + "start": 26676, + "end": 26680, "loc": { "start": { - "line": 863, - "column": 16 + "line": 850, + "column": 23 }, "end": { - "line": 863, - "column": 17 + "line": 850, + "column": 27 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -169627,24 +170636,22 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 26743, - "end": 26749, + "start": 26680, + "end": 26681, "loc": { "start": { - "line": 864, - "column": 4 + "line": 850, + "column": 27 }, "end": { - "line": 864, - "column": 10 + "line": 850, + "column": 28 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -169652,27 +170659,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 26750, - "end": 26754, + "value": "undefined", + "start": 26682, + "end": 26691, "loc": { "start": { - "line": 864, - "column": 11 + "line": 850, + "column": 29 }, "end": { - "line": 864, - "column": 15 + "line": 850, + "column": 38 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -169682,22 +170688,23 @@ "binop": null, "updateContext": null }, - "start": 26754, - "end": 26755, + "start": 26691, + "end": 26692, "loc": { "start": { - "line": 864, - "column": 15 + "line": 850, + "column": 38 }, "end": { - "line": 864, - "column": 16 + "line": 850, + "column": 39 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -169705,19 +170712,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "undoRedoContext", - "start": 26755, - "end": 26770, + "value": "this", + "start": 26693, + "end": 26697, "loc": { "start": { - "line": 864, - "column": 16 + "line": 850, + "column": 40 }, "end": { - "line": 864, - "column": 31 + "line": 850, + "column": 44 } } }, @@ -169734,16 +170742,16 @@ "binop": null, "updateContext": null }, - "start": 26770, - "end": 26771, + "start": 26697, + "end": 26698, "loc": { "start": { - "line": 864, - "column": 31 + "line": 850, + "column": 44 }, "end": { - "line": 864, - "column": 32 + "line": 850, + "column": 45 } } }, @@ -169759,17 +170767,42 @@ "postfix": false, "binop": null }, - "value": "canUndo", - "start": 26771, - "end": 26778, + "value": "model", + "start": 26698, + "end": 26703, "loc": { "start": { - "line": 864, - "column": 32 + "line": 850, + "column": 45 }, "end": { - "line": 864, - "column": 39 + "line": 850, + "column": 50 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 26703, + "end": 26704, + "loc": { + "start": { + "line": 850, + "column": 50 + }, + "end": { + "line": 850, + "column": 51 } } }, @@ -169786,16 +170819,16 @@ "binop": null, "updateContext": null }, - "start": 26778, - "end": 26779, + "start": 26704, + "end": 26705, "loc": { "start": { - "line": 864, - "column": 39 + "line": 850, + "column": 51 }, "end": { - "line": 864, - "column": 40 + "line": 850, + "column": 52 } } }, @@ -169811,31 +170844,31 @@ "postfix": false, "binop": null }, - "start": 26782, - "end": 26783, + "start": 26708, + "end": 26709, "loc": { "start": { - "line": 865, + "line": 851, "column": 2 }, "end": { - "line": 865, + "line": 851, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * Undo the last action.\n ", - "start": 26787, - "end": 26823, + "value": "*\n * True if idle state\n * @return {Boolean}\n ", + "start": 26713, + "end": 26769, "loc": { "start": { - "line": 867, + "line": 853, "column": 2 }, "end": { - "line": 869, + "line": 856, "column": 5 } } @@ -169852,17 +170885,43 @@ "postfix": false, "binop": null }, - "value": "undo", - "start": 26826, - "end": 26830, + "value": "get", + "start": 26772, + "end": 26775, "loc": { "start": { - "line": 870, + "line": 857, "column": 2 }, "end": { - "line": 870, + "line": 857, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "idle", + "start": 26776, + "end": 26780, + "loc": { + "start": { + "line": 857, "column": 6 + }, + "end": { + "line": 857, + "column": 10 } } }, @@ -169878,16 +170937,16 @@ "postfix": false, "binop": null }, - "start": 26830, - "end": 26831, + "start": 26780, + "end": 26781, "loc": { "start": { - "line": 870, - "column": 6 + "line": 857, + "column": 10 }, "end": { - "line": 870, - "column": 7 + "line": 857, + "column": 11 } } }, @@ -169903,16 +170962,16 @@ "postfix": false, "binop": null }, - "start": 26831, - "end": 26832, + "start": 26781, + "end": 26782, "loc": { "start": { - "line": 870, - "column": 7 + "line": 857, + "column": 11 }, "end": { - "line": 870, - "column": 8 + "line": 857, + "column": 12 } } }, @@ -169928,50 +170987,53 @@ "postfix": false, "binop": null }, - "start": 26833, - "end": 26834, + "start": 26783, + "end": 26784, "loc": { "start": { - "line": 870, - "column": 9 + "line": 857, + "column": 13 }, "end": { - "line": 870, - "column": 10 + "line": 857, + "column": 14 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "logger", - "start": 26839, - "end": 26845, + "value": "return", + "start": 26789, + "end": 26795, "loc": { "start": { - "line": 871, + "line": 858, "column": 4 }, "end": { - "line": 871, + "line": 858, "column": 10 } } }, { "type": { - "label": ".", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -169980,49 +171042,50 @@ "binop": null, "updateContext": null }, - "start": 26845, - "end": 26846, + "value": "this", + "start": 26796, + "end": 26800, "loc": { "start": { - "line": 871, - "column": 10 + "line": 858, + "column": 11 }, "end": { - "line": 871, - "column": 11 + "line": 858, + "column": 15 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "debug", - "start": 26846, - "end": 26851, + "start": 26800, + "end": 26801, "loc": { "start": { - "line": 871, - "column": 11 + "line": 858, + "column": 15 }, "end": { - "line": 871, + "line": 858, "column": 16 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -170031,24 +171094,25 @@ "postfix": false, "binop": null }, - "start": 26851, - "end": 26852, + "value": "recognizerContext", + "start": 26801, + "end": 26818, "loc": { "start": { - "line": 871, + "line": 858, "column": 16 }, "end": { - "line": 871, - "column": 17 + "line": 858, + "column": 33 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -170057,52 +171121,50 @@ "binop": null, "updateContext": null }, - "value": "Undo current model", - "start": 26852, - "end": 26872, + "start": 26818, + "end": 26819, "loc": { "start": { - "line": 871, - "column": 17 + "line": 858, + "column": 33 }, "end": { - "line": 871, - "column": 37 + "line": 858, + "column": 34 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26872, - "end": 26873, + "value": "idle", + "start": 26819, + "end": 26823, "loc": { "start": { - "line": 871, - "column": 37 + "line": 858, + "column": 34 }, "end": { - "line": 871, + "line": 858, "column": 38 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -170111,23 +171173,22 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 26874, - "end": 26878, + "start": 26823, + "end": 26824, "loc": { "start": { - "line": 871, - "column": 39 + "line": 858, + "column": 38 }, "end": { - "line": 871, - "column": 43 + "line": 858, + "column": 39 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -170135,19 +171196,34 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26878, - "end": 26879, + "start": 26827, + "end": 26828, "loc": { "start": { - "line": 871, - "column": 43 + "line": 859, + "column": 2 }, "end": { - "line": 871, - "column": 44 + "line": 859, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Wait for idle state.\n ", + "start": 26832, + "end": 26867, + "loc": { + "start": { + "line": 861, + "column": 2 + }, + "end": { + "line": 863, + "column": 5 } } }, @@ -170163,17 +171239,42 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 26879, - "end": 26884, + "value": "waitForIdle", + "start": 26870, + "end": 26881, "loc": { "start": { - "line": 871, - "column": 44 + "line": 864, + "column": 2 }, "end": { - "line": 871, - "column": 49 + "line": 864, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 26881, + "end": 26882, + "loc": { + "start": { + "line": 864, + "column": 13 + }, + "end": { + "line": 864, + "column": 14 } } }, @@ -170189,42 +171290,41 @@ "postfix": false, "binop": null }, - "start": 26884, - "end": 26885, + "start": 26882, + "end": 26883, "loc": { "start": { - "line": 871, - "column": 49 + "line": 864, + "column": 14 }, "end": { - "line": 871, - "column": 50 + "line": 864, + "column": 15 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26885, - "end": 26886, + "start": 26884, + "end": 26885, "loc": { "start": { - "line": 871, - "column": 50 + "line": 864, + "column": 16 }, "end": { - "line": 871, - "column": 51 + "line": 864, + "column": 17 } } }, @@ -170241,15 +171341,15 @@ "binop": null }, "value": "triggerCallbacks", - "start": 26891, - "end": 26907, + "start": 26890, + "end": 26906, "loc": { "start": { - "line": 872, + "line": 865, "column": 4 }, "end": { - "line": 872, + "line": 865, "column": 20 } } @@ -170266,15 +171366,15 @@ "postfix": false, "binop": null }, - "start": 26907, - "end": 26908, + "start": 26906, + "end": 26907, "loc": { "start": { - "line": 872, + "line": 865, "column": 20 }, "end": { - "line": 872, + "line": 865, "column": 21 } } @@ -170294,15 +171394,15 @@ "updateContext": null }, "value": "this", - "start": 26908, - "end": 26912, + "start": 26907, + "end": 26911, "loc": { "start": { - "line": 872, + "line": 865, "column": 21 }, "end": { - "line": 872, + "line": 865, "column": 25 } } @@ -170320,15 +171420,15 @@ "binop": null, "updateContext": null }, - "start": 26912, - "end": 26913, + "start": 26911, + "end": 26912, "loc": { "start": { - "line": 872, + "line": 865, "column": 25 }, "end": { - "line": 872, + "line": 865, "column": 26 } } @@ -170346,15 +171446,15 @@ "binop": null }, "value": "undefined", - "start": 26914, - "end": 26923, + "start": 26913, + "end": 26922, "loc": { "start": { - "line": 872, + "line": 865, "column": 27 }, "end": { - "line": 872, + "line": 865, "column": 36 } } @@ -170372,15 +171472,15 @@ "binop": null, "updateContext": null }, - "start": 26923, - "end": 26924, + "start": 26922, + "end": 26923, "loc": { "start": { - "line": 872, + "line": 865, "column": 36 }, "end": { - "line": 872, + "line": 865, "column": 37 } } @@ -170398,15 +171498,15 @@ "binop": null }, "value": "Constants", - "start": 26925, - "end": 26934, + "start": 26924, + "end": 26933, "loc": { "start": { - "line": 872, + "line": 865, "column": 38 }, "end": { - "line": 872, + "line": 865, "column": 47 } } @@ -170424,15 +171524,15 @@ "binop": null, "updateContext": null }, - "start": 26934, - "end": 26935, + "start": 26933, + "end": 26934, "loc": { "start": { - "line": 872, + "line": 865, "column": 47 }, "end": { - "line": 872, + "line": 865, "column": 48 } } @@ -170450,15 +171550,15 @@ "binop": null }, "value": "EventType", - "start": 26935, - "end": 26944, + "start": 26934, + "end": 26943, "loc": { "start": { - "line": 872, + "line": 865, "column": 48 }, "end": { - "line": 872, + "line": 865, "column": 57 } } @@ -170476,15 +171576,15 @@ "binop": null, "updateContext": null }, - "start": 26944, - "end": 26945, + "start": 26943, + "end": 26944, "loc": { "start": { - "line": 872, + "line": 865, "column": 57 }, "end": { - "line": 872, + "line": 865, "column": 58 } } @@ -170501,16 +171601,16 @@ "postfix": false, "binop": null }, - "value": "UNDO", - "start": 26945, - "end": 26949, + "value": "IDLE", + "start": 26944, + "end": 26948, "loc": { "start": { - "line": 872, + "line": 865, "column": 58 }, "end": { - "line": 872, + "line": 865, "column": 62 } } @@ -170527,15 +171627,15 @@ "postfix": false, "binop": null }, - "start": 26949, - "end": 26950, + "start": 26948, + "end": 26949, "loc": { "start": { - "line": 872, + "line": 865, "column": 62 }, "end": { - "line": 872, + "line": 865, "column": 63 } } @@ -170553,23 +171653,22 @@ "binop": null, "updateContext": null }, - "start": 26950, - "end": 26951, + "start": 26949, + "end": 26950, "loc": { "start": { - "line": 872, + "line": 865, "column": 63 }, "end": { - "line": 872, + "line": 865, "column": 64 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -170577,52 +171676,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 26956, - "end": 26960, + "value": "launchWaitForIdle", + "start": 26955, + "end": 26972, "loc": { "start": { - "line": 873, + "line": 866, "column": 4 }, "end": { - "line": 873, - "column": 8 + "line": 866, + "column": 21 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 26960, - "end": 26961, + "start": 26972, + "end": 26973, "loc": { "start": { - "line": 873, - "column": 8 + "line": 866, + "column": 21 }, "end": { - "line": 873, - "column": 9 + "line": 866, + "column": 22 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -170630,411 +171728,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "undoRedoManager", - "start": 26961, - "end": 26976, + "value": "this", + "start": 26973, + "end": 26977, "loc": { "start": { - "line": 873, - "column": 9 - }, - "end": { - "line": 873, - "column": 24 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26976, - "end": 26977, - "loc": { - "start": { - "line": 873, - "column": 24 - }, - "end": { - "line": 873, - "column": 25 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "undo", - "start": 26977, - "end": 26981, - "loc": { - "start": { - "line": 873, - "column": 25 - }, - "end": { - "line": 873, - "column": 29 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 26981, - "end": 26982, - "loc": { - "start": { - "line": 873, - "column": 29 - }, - "end": { - "line": 873, - "column": 30 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 26982, - "end": 26986, - "loc": { - "start": { - "line": 873, - "column": 30 - }, - "end": { - "line": 873, - "column": 34 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 26986, - "end": 26987, - "loc": { - "start": { - "line": 873, - "column": 34 - }, - "end": { - "line": 873, - "column": 35 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "undoRedoContext", - "start": 26987, - "end": 27002, - "loc": { - "start": { - "line": 873, - "column": 35 - }, - "end": { - "line": 873, - "column": 50 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27002, - "end": 27003, - "loc": { - "start": { - "line": 873, - "column": 50 - }, - "end": { - "line": 873, - "column": 51 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 27004, - "end": 27008, - "loc": { - "start": { - "line": 873, - "column": 52 - }, - "end": { - "line": 873, - "column": 56 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27008, - "end": 27009, - "loc": { - "start": { - "line": 873, - "column": 56 - }, - "end": { - "line": 873, - "column": 57 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "model", - "start": 27009, - "end": 27014, - "loc": { - "start": { - "line": 873, - "column": 57 - }, - "end": { - "line": 873, - "column": 62 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27014, - "end": 27015, - "loc": { - "start": { - "line": 873, - "column": 62 - }, - "end": { - "line": 873, - "column": 63 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27016, - "end": 27017, - "loc": { - "start": { - "line": 873, - "column": 64 - }, - "end": { - "line": 873, - "column": 65 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "err", - "start": 27017, - "end": 27020, - "loc": { - "start": { - "line": 873, - "column": 65 - }, - "end": { - "line": 873, - "column": 68 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27020, - "end": 27021, - "loc": { - "start": { - "line": 873, - "column": 68 - }, - "end": { - "line": 873, - "column": 69 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "res", - "start": 27022, - "end": 27025, - "loc": { - "start": { - "line": 873, - "column": 70 + "line": 866, + "column": 22 }, "end": { - "line": 873, - "column": 73 + "line": 866, + "column": 26 } } }, @@ -171051,195 +171758,16 @@ "binop": null, "updateContext": null }, - "start": 27025, - "end": 27026, - "loc": { - "start": { - "line": 873, - "column": 73 - }, - "end": { - "line": 873, - "column": 74 - } - } - }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27027, - "end": 27030, - "loc": { - "start": { - "line": 873, - "column": 75 - }, - "end": { - "line": 873, - "column": 78 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "types", - "start": 27030, - "end": 27035, - "loc": { - "start": { - "line": 873, - "column": 78 - }, - "end": { - "line": 873, - "column": 83 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27035, - "end": 27036, - "loc": { - "start": { - "line": 873, - "column": 83 - }, - "end": { - "line": 873, - "column": 84 - } - } - }, - { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27037, - "end": 27039, - "loc": { - "start": { - "line": 873, - "column": 85 - }, - "end": { - "line": 873, - "column": 87 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27040, - "end": 27041, - "loc": { - "start": { - "line": 873, - "column": 88 - }, - "end": { - "line": 873, - "column": 89 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "manageRecognizedModel", - "start": 27048, - "end": 27069, + "start": 26977, + "end": 26978, "loc": { "start": { - "line": 874, - "column": 6 + "line": 866, + "column": 26 }, "end": { - "line": 874, - "column": 27 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27069, - "end": 27070, - "loc": { - "start": { - "line": 874, + "line": 866, "column": 27 - }, - "end": { - "line": 874, - "column": 28 } } }, @@ -171258,23 +171786,23 @@ "updateContext": null }, "value": "this", - "start": 27070, - "end": 27074, + "start": 26979, + "end": 26983, "loc": { "start": { - "line": 874, + "line": 866, "column": 28 }, "end": { - "line": 874, + "line": 866, "column": 32 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -171284,15 +171812,15 @@ "binop": null, "updateContext": null }, - "start": 27074, - "end": 27075, + "start": 26983, + "end": 26984, "loc": { "start": { - "line": 874, + "line": 866, "column": 32 }, "end": { - "line": 874, + "line": 866, "column": 33 } } @@ -171309,174 +171837,20 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 27076, - "end": 27079, - "loc": { - "start": { - "line": 874, - "column": 34 - }, - "end": { - "line": 874, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27079, - "end": 27080, + "value": "model", + "start": 26984, + "end": 26989, "loc": { "start": { - "line": 874, - "column": 37 + "line": 866, + "column": 33 }, "end": { - "line": 874, + "line": 866, "column": 38 } } }, - { - "type": { - "label": "...", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27081, - "end": 27084, - "loc": { - "start": { - "line": 874, - "column": 39 - }, - "end": { - "line": 874, - "column": 42 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "types", - "start": 27084, - "end": 27089, - "loc": { - "start": { - "line": 874, - "column": 42 - }, - "end": { - "line": 874, - "column": 47 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27089, - "end": 27090, - "loc": { - "start": { - "line": 874, - "column": 47 - }, - "end": { - "line": 874, - "column": 48 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27090, - "end": 27091, - "loc": { - "start": { - "line": 874, - "column": 48 - }, - "end": { - "line": 874, - "column": 49 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27096, - "end": 27097, - "loc": { - "start": { - "line": 875, - "column": 4 - }, - "end": { - "line": 875, - "column": 5 - } - } - }, { "type": { "label": ")", @@ -171489,16 +171863,16 @@ "postfix": false, "binop": null }, - "start": 27097, - "end": 27098, + "start": 26989, + "end": 26990, "loc": { "start": { - "line": 875, - "column": 5 + "line": 866, + "column": 38 }, "end": { - "line": 875, - "column": 6 + "line": 866, + "column": 39 } } }, @@ -171515,16 +171889,16 @@ "binop": null, "updateContext": null }, - "start": 27098, - "end": 27099, + "start": 26990, + "end": 26991, "loc": { "start": { - "line": 875, - "column": 6 + "line": 866, + "column": 39 }, "end": { - "line": 875, - "column": 7 + "line": 866, + "column": 40 } } }, @@ -171540,31 +171914,31 @@ "postfix": false, "binop": null }, - "start": 27102, - "end": 27103, + "start": 26994, + "end": 26995, "loc": { "start": { - "line": 876, + "line": 867, "column": 2 }, "end": { - "line": 876, + "line": 867, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * True if can redo, false otherwise.\n * @return {Boolean}\n ", - "start": 27107, - "end": 27179, + "value": "*\n * True if can undo, false otherwise.\n * @return {Boolean}\n ", + "start": 26999, + "end": 27071, "loc": { "start": { - "line": 878, + "line": 869, "column": 2 }, "end": { - "line": 881, + "line": 872, "column": 5 } } @@ -171582,15 +171956,15 @@ "binop": null }, "value": "get", - "start": 27182, - "end": 27185, + "start": 27074, + "end": 27077, "loc": { "start": { - "line": 882, + "line": 873, "column": 2 }, "end": { - "line": 882, + "line": 873, "column": 5 } } @@ -171607,16 +171981,16 @@ "postfix": false, "binop": null }, - "value": "canRedo", - "start": 27186, - "end": 27193, + "value": "canUndo", + "start": 27078, + "end": 27085, "loc": { "start": { - "line": 882, + "line": 873, "column": 6 }, "end": { - "line": 882, + "line": 873, "column": 13 } } @@ -171633,15 +172007,15 @@ "postfix": false, "binop": null }, - "start": 27193, - "end": 27194, + "start": 27085, + "end": 27086, "loc": { "start": { - "line": 882, + "line": 873, "column": 13 }, "end": { - "line": 882, + "line": 873, "column": 14 } } @@ -171658,15 +172032,15 @@ "postfix": false, "binop": null }, - "start": 27194, - "end": 27195, + "start": 27086, + "end": 27087, "loc": { "start": { - "line": 882, + "line": 873, "column": 14 }, "end": { - "line": 882, + "line": 873, "column": 15 } } @@ -171683,15 +172057,15 @@ "postfix": false, "binop": null }, - "start": 27196, - "end": 27197, + "start": 27088, + "end": 27089, "loc": { "start": { - "line": 882, + "line": 873, "column": 16 }, "end": { - "line": 882, + "line": 873, "column": 17 } } @@ -171711,15 +172085,15 @@ "updateContext": null }, "value": "return", - "start": 27202, - "end": 27208, + "start": 27094, + "end": 27100, "loc": { "start": { - "line": 883, + "line": 874, "column": 4 }, "end": { - "line": 883, + "line": 874, "column": 10 } } @@ -171739,15 +172113,15 @@ "updateContext": null }, "value": "this", - "start": 27209, - "end": 27213, + "start": 27101, + "end": 27105, "loc": { "start": { - "line": 883, + "line": 874, "column": 11 }, "end": { - "line": 883, + "line": 874, "column": 15 } } @@ -171765,15 +172139,15 @@ "binop": null, "updateContext": null }, - "start": 27213, - "end": 27214, + "start": 27105, + "end": 27106, "loc": { "start": { - "line": 883, + "line": 874, "column": 15 }, "end": { - "line": 883, + "line": 874, "column": 16 } } @@ -171791,15 +172165,15 @@ "binop": null }, "value": "undoRedoContext", - "start": 27214, - "end": 27229, + "start": 27106, + "end": 27121, "loc": { "start": { - "line": 883, + "line": 874, "column": 16 }, "end": { - "line": 883, + "line": 874, "column": 31 } } @@ -171817,15 +172191,15 @@ "binop": null, "updateContext": null }, - "start": 27229, - "end": 27230, + "start": 27121, + "end": 27122, "loc": { "start": { - "line": 883, + "line": 874, "column": 31 }, "end": { - "line": 883, + "line": 874, "column": 32 } } @@ -171842,16 +172216,16 @@ "postfix": false, "binop": null }, - "value": "canRedo", - "start": 27230, - "end": 27237, + "value": "canUndo", + "start": 27122, + "end": 27129, "loc": { "start": { - "line": 883, + "line": 874, "column": 32 }, "end": { - "line": 883, + "line": 874, "column": 39 } } @@ -171869,15 +172243,15 @@ "binop": null, "updateContext": null }, - "start": 27237, - "end": 27238, + "start": 27129, + "end": 27130, "loc": { "start": { - "line": 883, + "line": 874, "column": 39 }, "end": { - "line": 883, + "line": 874, "column": 40 } } @@ -171894,31 +172268,31 @@ "postfix": false, "binop": null }, - "start": 27241, - "end": 27242, + "start": 27133, + "end": 27134, "loc": { "start": { - "line": 884, + "line": 875, "column": 2 }, "end": { - "line": 884, + "line": 875, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * Redo the last action.\n ", - "start": 27246, - "end": 27282, + "value": "*\n * Undo the last action.\n ", + "start": 27138, + "end": 27174, "loc": { "start": { - "line": 886, + "line": 877, "column": 2 }, "end": { - "line": 888, + "line": 879, "column": 5 } } @@ -171935,16 +172309,16 @@ "postfix": false, "binop": null }, - "value": "redo", - "start": 27285, - "end": 27289, + "value": "undo", + "start": 27177, + "end": 27181, "loc": { "start": { - "line": 889, + "line": 880, "column": 2 }, "end": { - "line": 889, + "line": 880, "column": 6 } } @@ -171961,15 +172335,15 @@ "postfix": false, "binop": null }, - "start": 27289, - "end": 27290, + "start": 27181, + "end": 27182, "loc": { "start": { - "line": 889, + "line": 880, "column": 6 }, "end": { - "line": 889, + "line": 880, "column": 7 } } @@ -171986,15 +172360,15 @@ "postfix": false, "binop": null }, - "start": 27290, - "end": 27291, + "start": 27182, + "end": 27183, "loc": { "start": { - "line": 889, + "line": 880, "column": 7 }, "end": { - "line": 889, + "line": 880, "column": 8 } } @@ -172011,15 +172385,15 @@ "postfix": false, "binop": null }, - "start": 27292, - "end": 27293, + "start": 27184, + "end": 27185, "loc": { "start": { - "line": 889, + "line": 880, "column": 9 }, "end": { - "line": 889, + "line": 880, "column": 10 } } @@ -172037,15 +172411,15 @@ "binop": null }, "value": "logger", - "start": 27298, - "end": 27304, + "start": 27190, + "end": 27196, "loc": { "start": { - "line": 890, + "line": 881, "column": 4 }, "end": { - "line": 890, + "line": 881, "column": 10 } } @@ -172063,15 +172437,15 @@ "binop": null, "updateContext": null }, - "start": 27304, - "end": 27305, + "start": 27196, + "end": 27197, "loc": { "start": { - "line": 890, + "line": 881, "column": 10 }, "end": { - "line": 890, + "line": 881, "column": 11 } } @@ -172089,15 +172463,15 @@ "binop": null }, "value": "debug", - "start": 27305, - "end": 27310, + "start": 27197, + "end": 27202, "loc": { "start": { - "line": 890, + "line": 881, "column": 11 }, "end": { - "line": 890, + "line": 881, "column": 16 } } @@ -172114,15 +172488,15 @@ "postfix": false, "binop": null }, - "start": 27310, - "end": 27311, + "start": 27202, + "end": 27203, "loc": { "start": { - "line": 890, + "line": 881, "column": 16 }, "end": { - "line": 890, + "line": 881, "column": 17 } } @@ -172140,16 +172514,16 @@ "binop": null, "updateContext": null }, - "value": "Redo current model", - "start": 27311, - "end": 27331, + "value": "Undo current model", + "start": 27203, + "end": 27223, "loc": { "start": { - "line": 890, + "line": 881, "column": 17 }, "end": { - "line": 890, + "line": 881, "column": 37 } } @@ -172167,15 +172541,15 @@ "binop": null, "updateContext": null }, - "start": 27331, - "end": 27332, + "start": 27223, + "end": 27224, "loc": { "start": { - "line": 890, + "line": 881, "column": 37 }, "end": { - "line": 890, + "line": 881, "column": 38 } } @@ -172195,15 +172569,15 @@ "updateContext": null }, "value": "this", - "start": 27333, - "end": 27337, + "start": 27225, + "end": 27229, "loc": { "start": { - "line": 890, + "line": 881, "column": 39 }, "end": { - "line": 890, + "line": 881, "column": 43 } } @@ -172221,15 +172595,15 @@ "binop": null, "updateContext": null }, - "start": 27337, - "end": 27338, + "start": 27229, + "end": 27230, "loc": { "start": { - "line": 890, + "line": 881, "column": 43 }, "end": { - "line": 890, + "line": 881, "column": 44 } } @@ -172247,15 +172621,15 @@ "binop": null }, "value": "model", - "start": 27338, - "end": 27343, + "start": 27230, + "end": 27235, "loc": { "start": { - "line": 890, + "line": 881, "column": 44 }, "end": { - "line": 890, + "line": 881, "column": 49 } } @@ -172272,15 +172646,15 @@ "postfix": false, "binop": null }, - "start": 27343, - "end": 27344, + "start": 27235, + "end": 27236, "loc": { "start": { - "line": 890, + "line": 881, "column": 49 }, "end": { - "line": 890, + "line": 881, "column": 50 } } @@ -172298,15 +172672,15 @@ "binop": null, "updateContext": null }, - "start": 27344, - "end": 27345, + "start": 27236, + "end": 27237, "loc": { "start": { - "line": 890, + "line": 881, "column": 50 }, "end": { - "line": 890, + "line": 881, "column": 51 } } @@ -172324,15 +172698,15 @@ "binop": null }, "value": "triggerCallbacks", - "start": 27350, - "end": 27366, + "start": 27242, + "end": 27258, "loc": { "start": { - "line": 891, + "line": 882, "column": 4 }, "end": { - "line": 891, + "line": 882, "column": 20 } } @@ -172349,15 +172723,15 @@ "postfix": false, "binop": null }, - "start": 27366, - "end": 27367, + "start": 27258, + "end": 27259, "loc": { "start": { - "line": 891, + "line": 882, "column": 20 }, "end": { - "line": 891, + "line": 882, "column": 21 } } @@ -172377,15 +172751,15 @@ "updateContext": null }, "value": "this", - "start": 27367, - "end": 27371, + "start": 27259, + "end": 27263, "loc": { "start": { - "line": 891, + "line": 882, "column": 21 }, "end": { - "line": 891, + "line": 882, "column": 25 } } @@ -172403,15 +172777,15 @@ "binop": null, "updateContext": null }, - "start": 27371, - "end": 27372, + "start": 27263, + "end": 27264, "loc": { "start": { - "line": 891, + "line": 882, "column": 25 }, "end": { - "line": 891, + "line": 882, "column": 26 } } @@ -172429,15 +172803,15 @@ "binop": null }, "value": "undefined", - "start": 27373, - "end": 27382, + "start": 27265, + "end": 27274, "loc": { "start": { - "line": 891, + "line": 882, "column": 27 }, "end": { - "line": 891, + "line": 882, "column": 36 } } @@ -172455,15 +172829,15 @@ "binop": null, "updateContext": null }, - "start": 27382, - "end": 27383, + "start": 27274, + "end": 27275, "loc": { "start": { - "line": 891, + "line": 882, "column": 36 }, "end": { - "line": 891, + "line": 882, "column": 37 } } @@ -172481,15 +172855,15 @@ "binop": null }, "value": "Constants", - "start": 27384, - "end": 27393, + "start": 27276, + "end": 27285, "loc": { "start": { - "line": 891, + "line": 882, "column": 38 }, "end": { - "line": 891, + "line": 882, "column": 47 } } @@ -172507,15 +172881,15 @@ "binop": null, "updateContext": null }, - "start": 27393, - "end": 27394, + "start": 27285, + "end": 27286, "loc": { "start": { - "line": 891, + "line": 882, "column": 47 }, "end": { - "line": 891, + "line": 882, "column": 48 } } @@ -172533,15 +172907,15 @@ "binop": null }, "value": "EventType", - "start": 27394, - "end": 27403, + "start": 27286, + "end": 27295, "loc": { "start": { - "line": 891, + "line": 882, "column": 48 }, "end": { - "line": 891, + "line": 882, "column": 57 } } @@ -172559,15 +172933,15 @@ "binop": null, "updateContext": null }, - "start": 27403, - "end": 27404, + "start": 27295, + "end": 27296, "loc": { "start": { - "line": 891, + "line": 882, "column": 57 }, "end": { - "line": 891, + "line": 882, "column": 58 } } @@ -172584,16 +172958,16 @@ "postfix": false, "binop": null }, - "value": "REDO", - "start": 27404, - "end": 27408, + "value": "UNDO", + "start": 27296, + "end": 27300, "loc": { "start": { - "line": 891, + "line": 882, "column": 58 }, "end": { - "line": 891, + "line": 882, "column": 62 } } @@ -172610,15 +172984,15 @@ "postfix": false, "binop": null }, - "start": 27408, - "end": 27409, + "start": 27300, + "end": 27301, "loc": { "start": { - "line": 891, + "line": 882, "column": 62 }, "end": { - "line": 891, + "line": 882, "column": 63 } } @@ -172636,15 +173010,15 @@ "binop": null, "updateContext": null }, - "start": 27409, - "end": 27410, + "start": 27301, + "end": 27302, "loc": { "start": { - "line": 891, + "line": 882, "column": 63 }, "end": { - "line": 891, + "line": 882, "column": 64 } } @@ -172664,15 +173038,15 @@ "updateContext": null }, "value": "this", - "start": 27415, - "end": 27419, + "start": 27307, + "end": 27311, "loc": { "start": { - "line": 892, + "line": 883, "column": 4 }, "end": { - "line": 892, + "line": 883, "column": 8 } } @@ -172690,15 +173064,15 @@ "binop": null, "updateContext": null }, - "start": 27419, - "end": 27420, + "start": 27311, + "end": 27312, "loc": { "start": { - "line": 892, + "line": 883, "column": 8 }, "end": { - "line": 892, + "line": 883, "column": 9 } } @@ -172716,15 +173090,15 @@ "binop": null }, "value": "undoRedoManager", - "start": 27420, - "end": 27435, + "start": 27312, + "end": 27327, "loc": { "start": { - "line": 892, + "line": 883, "column": 9 }, "end": { - "line": 892, + "line": 883, "column": 24 } } @@ -172742,15 +173116,15 @@ "binop": null, "updateContext": null }, - "start": 27435, - "end": 27436, + "start": 27327, + "end": 27328, "loc": { "start": { - "line": 892, + "line": 883, "column": 24 }, "end": { - "line": 892, + "line": 883, "column": 25 } } @@ -172767,16 +173141,16 @@ "postfix": false, "binop": null }, - "value": "redo", - "start": 27436, - "end": 27440, + "value": "undo", + "start": 27328, + "end": 27332, "loc": { "start": { - "line": 892, + "line": 883, "column": 25 }, "end": { - "line": 892, + "line": 883, "column": 29 } } @@ -172793,15 +173167,15 @@ "postfix": false, "binop": null }, - "start": 27440, - "end": 27441, + "start": 27332, + "end": 27333, "loc": { "start": { - "line": 892, + "line": 883, "column": 29 }, "end": { - "line": 892, + "line": 883, "column": 30 } } @@ -172821,15 +173195,15 @@ "updateContext": null }, "value": "this", - "start": 27441, - "end": 27445, + "start": 27333, + "end": 27337, "loc": { "start": { - "line": 892, + "line": 883, "column": 30 }, "end": { - "line": 892, + "line": 883, "column": 34 } } @@ -172847,15 +173221,15 @@ "binop": null, "updateContext": null }, - "start": 27445, - "end": 27446, + "start": 27337, + "end": 27338, "loc": { "start": { - "line": 892, + "line": 883, "column": 34 }, "end": { - "line": 892, + "line": 883, "column": 35 } } @@ -172873,15 +173247,15 @@ "binop": null }, "value": "undoRedoContext", - "start": 27446, - "end": 27461, + "start": 27338, + "end": 27353, "loc": { "start": { - "line": 892, + "line": 883, "column": 35 }, "end": { - "line": 892, + "line": 883, "column": 50 } } @@ -172899,15 +173273,15 @@ "binop": null, "updateContext": null }, - "start": 27461, - "end": 27462, + "start": 27353, + "end": 27354, "loc": { "start": { - "line": 892, + "line": 883, "column": 50 }, "end": { - "line": 892, + "line": 883, "column": 51 } } @@ -172927,15 +173301,15 @@ "updateContext": null }, "value": "this", - "start": 27463, - "end": 27467, + "start": 27355, + "end": 27359, "loc": { "start": { - "line": 892, + "line": 883, "column": 52 }, "end": { - "line": 892, + "line": 883, "column": 56 } } @@ -172953,15 +173327,15 @@ "binop": null, "updateContext": null }, - "start": 27467, - "end": 27468, + "start": 27359, + "end": 27360, "loc": { "start": { - "line": 892, + "line": 883, "column": 56 }, "end": { - "line": 892, + "line": 883, "column": 57 } } @@ -172979,15 +173353,15 @@ "binop": null }, "value": "model", - "start": 27468, - "end": 27473, + "start": 27360, + "end": 27365, "loc": { "start": { - "line": 892, + "line": 883, "column": 57 }, "end": { - "line": 892, + "line": 883, "column": 62 } } @@ -173005,15 +173379,15 @@ "binop": null, "updateContext": null }, - "start": 27473, - "end": 27474, + "start": 27365, + "end": 27366, "loc": { "start": { - "line": 892, + "line": 883, "column": 62 }, "end": { - "line": 892, + "line": 883, "column": 63 } } @@ -173030,15 +173404,15 @@ "postfix": false, "binop": null }, - "start": 27475, - "end": 27476, + "start": 27367, + "end": 27368, "loc": { "start": { - "line": 892, + "line": 883, "column": 64 }, "end": { - "line": 892, + "line": 883, "column": 65 } } @@ -173056,15 +173430,15 @@ "binop": null }, "value": "err", - "start": 27476, - "end": 27479, + "start": 27368, + "end": 27371, "loc": { "start": { - "line": 892, + "line": 883, "column": 65 }, "end": { - "line": 892, + "line": 883, "column": 68 } } @@ -173082,15 +173456,15 @@ "binop": null, "updateContext": null }, - "start": 27479, - "end": 27480, + "start": 27371, + "end": 27372, "loc": { "start": { - "line": 892, + "line": 883, "column": 68 }, "end": { - "line": 892, + "line": 883, "column": 69 } } @@ -173108,15 +173482,15 @@ "binop": null }, "value": "res", - "start": 27481, - "end": 27484, + "start": 27373, + "end": 27376, "loc": { "start": { - "line": 892, + "line": 883, "column": 70 }, "end": { - "line": 892, + "line": 883, "column": 73 } } @@ -173134,15 +173508,15 @@ "binop": null, "updateContext": null }, - "start": 27484, - "end": 27485, + "start": 27376, + "end": 27377, "loc": { "start": { - "line": 892, + "line": 883, "column": 73 }, "end": { - "line": 892, + "line": 883, "column": 74 } } @@ -173160,15 +173534,15 @@ "binop": null, "updateContext": null }, - "start": 27486, - "end": 27489, + "start": 27378, + "end": 27381, "loc": { "start": { - "line": 892, + "line": 883, "column": 75 }, "end": { - "line": 892, + "line": 883, "column": 78 } } @@ -173186,15 +173560,15 @@ "binop": null }, "value": "types", - "start": 27489, - "end": 27494, + "start": 27381, + "end": 27386, "loc": { "start": { - "line": 892, + "line": 883, "column": 78 }, "end": { - "line": 892, + "line": 883, "column": 83 } } @@ -173211,15 +173585,15 @@ "postfix": false, "binop": null }, - "start": 27494, - "end": 27495, + "start": 27386, + "end": 27387, "loc": { "start": { - "line": 892, + "line": 883, "column": 83 }, "end": { - "line": 892, + "line": 883, "column": 84 } } @@ -173237,15 +173611,15 @@ "binop": null, "updateContext": null }, - "start": 27496, - "end": 27498, + "start": 27388, + "end": 27390, "loc": { "start": { - "line": 892, + "line": 883, "column": 85 }, "end": { - "line": 892, + "line": 883, "column": 87 } } @@ -173262,15 +173636,15 @@ "postfix": false, "binop": null }, - "start": 27499, - "end": 27500, + "start": 27391, + "end": 27392, "loc": { "start": { - "line": 892, + "line": 883, "column": 88 }, "end": { - "line": 892, + "line": 883, "column": 89 } } @@ -173288,15 +173662,15 @@ "binop": null }, "value": "manageRecognizedModel", - "start": 27507, - "end": 27528, + "start": 27399, + "end": 27420, "loc": { "start": { - "line": 893, + "line": 884, "column": 6 }, "end": { - "line": 893, + "line": 884, "column": 27 } } @@ -173313,15 +173687,15 @@ "postfix": false, "binop": null }, - "start": 27528, - "end": 27529, + "start": 27420, + "end": 27421, "loc": { "start": { - "line": 893, + "line": 884, "column": 27 }, "end": { - "line": 893, + "line": 884, "column": 28 } } @@ -173341,15 +173715,15 @@ "updateContext": null }, "value": "this", - "start": 27529, - "end": 27533, + "start": 27421, + "end": 27425, "loc": { "start": { - "line": 893, + "line": 884, "column": 28 }, "end": { - "line": 893, + "line": 884, "column": 32 } } @@ -173367,15 +173741,15 @@ "binop": null, "updateContext": null }, - "start": 27533, - "end": 27534, + "start": 27425, + "end": 27426, "loc": { "start": { - "line": 893, + "line": 884, "column": 32 }, "end": { - "line": 893, + "line": 884, "column": 33 } } @@ -173393,15 +173767,15 @@ "binop": null }, "value": "res", - "start": 27535, - "end": 27538, + "start": 27427, + "end": 27430, "loc": { "start": { - "line": 893, + "line": 884, "column": 34 }, "end": { - "line": 893, + "line": 884, "column": 37 } } @@ -173419,15 +173793,15 @@ "binop": null, "updateContext": null }, - "start": 27538, - "end": 27539, + "start": 27430, + "end": 27431, "loc": { "start": { - "line": 893, + "line": 884, "column": 37 }, "end": { - "line": 893, + "line": 884, "column": 38 } } @@ -173445,15 +173819,15 @@ "binop": null, "updateContext": null }, - "start": 27540, - "end": 27543, + "start": 27432, + "end": 27435, "loc": { "start": { - "line": 893, + "line": 884, "column": 39 }, "end": { - "line": 893, + "line": 884, "column": 42 } } @@ -173471,15 +173845,15 @@ "binop": null }, "value": "types", - "start": 27543, - "end": 27548, + "start": 27435, + "end": 27440, "loc": { "start": { - "line": 893, + "line": 884, "column": 42 }, "end": { - "line": 893, + "line": 884, "column": 47 } } @@ -173496,15 +173870,15 @@ "postfix": false, "binop": null }, - "start": 27548, - "end": 27549, + "start": 27440, + "end": 27441, "loc": { "start": { - "line": 893, + "line": 884, "column": 47 }, "end": { - "line": 893, + "line": 884, "column": 48 } } @@ -173522,15 +173896,15 @@ "binop": null, "updateContext": null }, - "start": 27549, - "end": 27550, + "start": 27441, + "end": 27442, "loc": { "start": { - "line": 893, + "line": 884, "column": 48 }, "end": { - "line": 893, + "line": 884, "column": 49 } } @@ -173547,15 +173921,15 @@ "postfix": false, "binop": null }, - "start": 27555, - "end": 27556, + "start": 27447, + "end": 27448, "loc": { "start": { - "line": 894, + "line": 885, "column": 4 }, "end": { - "line": 894, + "line": 885, "column": 5 } } @@ -173572,15 +173946,15 @@ "postfix": false, "binop": null }, - "start": 27556, - "end": 27557, + "start": 27448, + "end": 27449, "loc": { "start": { - "line": 894, + "line": 885, "column": 5 }, "end": { - "line": 894, + "line": 885, "column": 6 } } @@ -173598,15 +173972,15 @@ "binop": null, "updateContext": null }, - "start": 27557, - "end": 27558, + "start": 27449, + "end": 27450, "loc": { "start": { - "line": 894, + "line": 885, "column": 6 }, "end": { - "line": 894, + "line": 885, "column": 7 } } @@ -173623,31 +173997,31 @@ "postfix": false, "binop": null }, - "start": 27561, - "end": 27562, + "start": 27453, + "end": 27454, "loc": { "start": { - "line": 895, + "line": 886, "column": 2 }, "end": { - "line": 895, + "line": 886, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * True if empty, false otherwise\n * @returns {boolean}\n ", - "start": 27566, - "end": 27635, + "value": "*\n * True if can redo, false otherwise.\n * @return {Boolean}\n ", + "start": 27458, + "end": 27530, "loc": { "start": { - "line": 897, + "line": 888, "column": 2 }, "end": { - "line": 900, + "line": 891, "column": 5 } } @@ -173665,15 +174039,15 @@ "binop": null }, "value": "get", - "start": 27638, - "end": 27641, + "start": 27533, + "end": 27536, "loc": { "start": { - "line": 901, + "line": 892, "column": 2 }, "end": { - "line": 901, + "line": 892, "column": 5 } } @@ -173690,16 +174064,16 @@ "postfix": false, "binop": null }, - "value": "isEmpty", - "start": 27642, - "end": 27649, + "value": "canRedo", + "start": 27537, + "end": 27544, "loc": { "start": { - "line": 901, + "line": 892, "column": 6 }, "end": { - "line": 901, + "line": 892, "column": 13 } } @@ -173716,15 +174090,15 @@ "postfix": false, "binop": null }, - "start": 27649, - "end": 27650, + "start": 27544, + "end": 27545, "loc": { "start": { - "line": 901, + "line": 892, "column": 13 }, "end": { - "line": 901, + "line": 892, "column": 14 } } @@ -173741,15 +174115,15 @@ "postfix": false, "binop": null }, - "start": 27650, - "end": 27651, + "start": 27545, + "end": 27546, "loc": { "start": { - "line": 901, + "line": 892, "column": 14 }, "end": { - "line": 901, + "line": 892, "column": 15 } } @@ -173766,15 +174140,15 @@ "postfix": false, "binop": null }, - "start": 27652, - "end": 27653, + "start": 27547, + "end": 27548, "loc": { "start": { - "line": 901, + "line": 892, "column": 16 }, "end": { - "line": 901, + "line": 892, "column": 17 } } @@ -173794,15 +174168,15 @@ "updateContext": null }, "value": "return", - "start": 27658, - "end": 27664, + "start": 27553, + "end": 27559, "loc": { "start": { - "line": 902, + "line": 893, "column": 4 }, "end": { - "line": 902, + "line": 893, "column": 10 } } @@ -173822,15 +174196,15 @@ "updateContext": null }, "value": "this", - "start": 27665, - "end": 27669, + "start": 27560, + "end": 27564, "loc": { "start": { - "line": 902, + "line": 893, "column": 11 }, "end": { - "line": 902, + "line": 893, "column": 15 } } @@ -173848,15 +174222,15 @@ "binop": null, "updateContext": null }, - "start": 27669, - "end": 27670, + "start": 27564, + "end": 27565, "loc": { "start": { - "line": 902, + "line": 893, "column": 15 }, "end": { - "line": 902, + "line": 893, "column": 16 } } @@ -173873,17 +174247,17 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 27670, - "end": 27687, + "value": "undoRedoContext", + "start": 27565, + "end": 27580, "loc": { "start": { - "line": 902, + "line": 893, "column": 16 }, "end": { - "line": 902, - "column": 33 + "line": 893, + "column": 31 } } }, @@ -173900,16 +174274,16 @@ "binop": null, "updateContext": null }, - "start": 27687, - "end": 27688, + "start": 27580, + "end": 27581, "loc": { "start": { - "line": 902, - "column": 33 + "line": 893, + "column": 31 }, "end": { - "line": 902, - "column": 34 + "line": 893, + "column": 32 } } }, @@ -173925,17 +174299,17 @@ "postfix": false, "binop": null }, - "value": "isEmpty", - "start": 27688, - "end": 27695, + "value": "canRedo", + "start": 27581, + "end": 27588, "loc": { "start": { - "line": 902, - "column": 34 + "line": 893, + "column": 32 }, "end": { - "line": 902, - "column": 41 + "line": 893, + "column": 39 } } }, @@ -173952,16 +174326,16 @@ "binop": null, "updateContext": null }, - "start": 27695, - "end": 27696, + "start": 27588, + "end": 27589, "loc": { "start": { - "line": 902, - "column": 41 + "line": 893, + "column": 39 }, "end": { - "line": 902, - "column": 42 + "line": 893, + "column": 40 } } }, @@ -173977,31 +174351,31 @@ "postfix": false, "binop": null }, - "start": 27699, - "end": 27700, + "start": 27592, + "end": 27593, "loc": { "start": { - "line": 903, + "line": 894, "column": 2 }, "end": { - "line": 903, + "line": 894, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * True if can clear, false otherwise.\n * @return {Boolean}\n ", - "start": 27704, - "end": 27777, + "value": "*\n * Redo the last action.\n ", + "start": 27597, + "end": 27633, "loc": { "start": { - "line": 905, + "line": 896, "column": 2 }, "end": { - "line": 908, + "line": 898, "column": 5 } } @@ -174018,24 +174392,24 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 27780, - "end": 27783, + "value": "redo", + "start": 27636, + "end": 27640, "loc": { "start": { - "line": 909, + "line": 899, "column": 2 }, "end": { - "line": 909, - "column": 5 + "line": 899, + "column": 6 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -174044,25 +174418,24 @@ "postfix": false, "binop": null }, - "value": "canClear", - "start": 27784, - "end": 27792, + "start": 27640, + "end": 27641, "loc": { "start": { - "line": 909, + "line": 899, "column": 6 }, "end": { - "line": 909, - "column": 14 + "line": 899, + "column": 7 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -174070,24 +174443,24 @@ "postfix": false, "binop": null }, - "start": 27792, - "end": 27793, + "start": 27641, + "end": 27642, "loc": { "start": { - "line": 909, - "column": 14 + "line": 899, + "column": 7 }, "end": { - "line": 909, - "column": 15 + "line": 899, + "column": 8 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -174095,23 +174468,23 @@ "postfix": false, "binop": null }, - "start": 27793, - "end": 27794, + "start": 27643, + "end": 27644, "loc": { "start": { - "line": 909, - "column": 15 + "line": 899, + "column": 9 }, "end": { - "line": 909, - "column": 16 + "line": 899, + "column": 10 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -174120,24 +174493,24 @@ "postfix": false, "binop": null }, - "start": 27795, - "end": 27796, + "value": "logger", + "start": 27649, + "end": 27655, "loc": { "start": { - "line": 909, - "column": 17 + "line": 900, + "column": 4 }, "end": { - "line": 909, - "column": 18 + "line": 900, + "column": 10 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -174147,24 +174520,22 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 27801, - "end": 27807, + "start": 27655, + "end": 27656, "loc": { "start": { - "line": 910, - "column": 4 + "line": 900, + "column": 10 }, "end": { - "line": 910, - "column": 10 + "line": 900, + "column": 11 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -174172,52 +174543,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 27808, - "end": 27812, + "value": "debug", + "start": 27656, + "end": 27661, "loc": { "start": { - "line": 910, + "line": 900, "column": 11 }, "end": { - "line": 910, - "column": 15 + "line": 900, + "column": 16 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 27812, - "end": 27813, + "start": 27661, + "end": 27662, "loc": { "start": { - "line": 910, - "column": 15 + "line": 900, + "column": 16 }, "end": { - "line": 910, - "column": 16 + "line": 900, + "column": 17 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -174225,25 +174594,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "canUndo", - "start": 27813, - "end": 27820, + "value": "Redo current model", + "start": 27662, + "end": 27682, "loc": { "start": { - "line": 910, - "column": 16 + "line": 900, + "column": 17 }, "end": { - "line": 910, - "column": 23 + "line": 900, + "column": 37 } } }, { "type": { - "label": "&&", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -174251,20 +174621,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 27821, - "end": 27823, + "start": 27682, + "end": 27683, "loc": { "start": { - "line": 910, - "column": 24 + "line": 900, + "column": 37 }, "end": { - "line": 910, - "column": 26 + "line": 900, + "column": 38 } } }, @@ -174283,16 +174652,16 @@ "updateContext": null }, "value": "this", - "start": 27824, - "end": 27828, + "start": 27684, + "end": 27688, "loc": { "start": { - "line": 910, - "column": 27 + "line": 900, + "column": 39 }, "end": { - "line": 910, - "column": 31 + "line": 900, + "column": 43 } } }, @@ -174309,16 +174678,16 @@ "binop": null, "updateContext": null }, - "start": 27828, - "end": 27829, + "start": 27688, + "end": 27689, "loc": { "start": { - "line": 910, - "column": 31 + "line": 900, + "column": 43 }, "end": { - "line": 910, - "column": 32 + "line": 900, + "column": 44 } } }, @@ -174335,22 +174704,22 @@ "binop": null }, "value": "model", - "start": 27829, - "end": 27834, + "start": 27689, + "end": 27694, "loc": { "start": { - "line": 910, - "column": 32 + "line": 900, + "column": 44 }, "end": { - "line": 910, - "column": 37 + "line": 900, + "column": 49 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -174358,52 +174727,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 27834, - "end": 27835, - "loc": { - "start": { - "line": 910, - "column": 37 - }, - "end": { - "line": 910, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null }, - "value": "rawStrokes", - "start": 27835, - "end": 27845, + "start": 27694, + "end": 27695, "loc": { "start": { - "line": 910, - "column": 38 + "line": 900, + "column": 49 }, "end": { - "line": 910, - "column": 48 + "line": 900, + "column": 50 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -174413,16 +174755,16 @@ "binop": null, "updateContext": null }, - "start": 27845, - "end": 27846, + "start": 27695, + "end": 27696, "loc": { "start": { - "line": 910, - "column": 48 + "line": 900, + "column": 50 }, "end": { - "line": 910, - "column": 49 + "line": 900, + "column": 51 } } }, @@ -174438,50 +174780,49 @@ "postfix": false, "binop": null }, - "value": "length", - "start": 27846, - "end": 27852, + "value": "triggerCallbacks", + "start": 27701, + "end": 27717, "loc": { "start": { - "line": 910, - "column": 49 + "line": 901, + "column": 4 }, "end": { - "line": 910, - "column": 55 + "line": 901, + "column": 20 } } }, { "type": { - "label": "", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, - "updateContext": null + "binop": null }, - "value": ">", - "start": 27853, - "end": 27854, + "start": 27717, + "end": 27718, "loc": { "start": { - "line": 910, - "column": 56 + "line": 901, + "column": 20 }, "end": { - "line": 910, - "column": 57 + "line": 901, + "column": 21 } } }, { "type": { - "label": "num", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -174492,23 +174833,23 @@ "binop": null, "updateContext": null }, - "value": 0, - "start": 27855, - "end": 27856, + "value": "this", + "start": 27718, + "end": 27722, "loc": { "start": { - "line": 910, - "column": 58 + "line": 901, + "column": 21 }, "end": { - "line": 910, - "column": 59 + "line": 901, + "column": 25 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -174519,57 +174860,16 @@ "binop": null, "updateContext": null }, - "start": 27856, - "end": 27857, + "start": 27722, + "end": 27723, "loc": { "start": { - "line": 910, - "column": 59 - }, - "end": { - "line": 910, - "column": 60 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27860, - "end": 27861, - "loc": { - "start": { - "line": 911, - "column": 2 - }, - "end": { - "line": 911, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Clear the output and the recognition result.\n ", - "start": 27865, - "end": 27924, - "loc": { - "start": { - "line": 913, - "column": 2 + "line": 901, + "column": 25 }, "end": { - "line": 915, - "column": 5 + "line": 901, + "column": 26 } } }, @@ -174585,50 +174885,51 @@ "postfix": false, "binop": null }, - "value": "clear", - "start": 27927, - "end": 27932, + "value": "undefined", + "start": 27724, + "end": 27733, "loc": { "start": { - "line": 916, - "column": 2 + "line": 901, + "column": 27 }, "end": { - "line": 916, - "column": 7 + "line": 901, + "column": 36 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 27932, - "end": 27933, + "start": 27733, + "end": 27734, "loc": { "start": { - "line": 916, - "column": 7 + "line": 901, + "column": 36 }, "end": { - "line": 916, - "column": 8 + "line": 901, + "column": 37 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -174636,41 +174937,43 @@ "postfix": false, "binop": null }, - "start": 27933, - "end": 27934, + "value": "Constants", + "start": 27735, + "end": 27744, "loc": { "start": { - "line": 916, - "column": 8 + "line": 901, + "column": 38 }, "end": { - "line": 916, - "column": 9 + "line": 901, + "column": 47 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 27935, - "end": 27936, + "start": 27744, + "end": 27745, "loc": { "start": { - "line": 916, - "column": 10 + "line": 901, + "column": 47 }, "end": { - "line": 916, - "column": 11 + "line": 901, + "column": 48 } } }, @@ -174686,17 +174989,17 @@ "postfix": false, "binop": null }, - "value": "logger", - "start": 27941, - "end": 27947, + "value": "EventType", + "start": 27745, + "end": 27754, "loc": { "start": { - "line": 917, - "column": 4 + "line": 901, + "column": 48 }, "end": { - "line": 917, - "column": 10 + "line": 901, + "column": 57 } } }, @@ -174713,16 +175016,16 @@ "binop": null, "updateContext": null }, - "start": 27947, - "end": 27948, + "start": 27754, + "end": 27755, "loc": { "start": { - "line": 917, - "column": 10 + "line": 901, + "column": 57 }, "end": { - "line": 917, - "column": 11 + "line": 901, + "column": 58 } } }, @@ -174738,75 +175041,48 @@ "postfix": false, "binop": null }, - "value": "debug", - "start": 27948, - "end": 27953, - "loc": { - "start": { - "line": 917, - "column": 11 - }, - "end": { - "line": 917, - "column": 16 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 27953, - "end": 27954, + "value": "REDO", + "start": 27755, + "end": 27759, "loc": { "start": { - "line": 917, - "column": 16 + "line": 901, + "column": 58 }, "end": { - "line": 917, - "column": 17 + "line": 901, + "column": 62 } } }, { "type": { - "label": "string", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "Clear current model", - "start": 27954, - "end": 27975, + "start": 27759, + "end": 27760, "loc": { "start": { - "line": 917, - "column": 17 + "line": 901, + "column": 62 }, "end": { - "line": 917, - "column": 38 + "line": 901, + "column": 63 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -174817,16 +175093,16 @@ "binop": null, "updateContext": null }, - "start": 27975, - "end": 27976, + "start": 27760, + "end": 27761, "loc": { "start": { - "line": 917, - "column": 38 + "line": 901, + "column": 63 }, "end": { - "line": 917, - "column": 39 + "line": 901, + "column": 64 } } }, @@ -174845,16 +175121,16 @@ "updateContext": null }, "value": "this", - "start": 27977, - "end": 27981, + "start": 27766, + "end": 27770, "loc": { "start": { - "line": 917, - "column": 40 + "line": 902, + "column": 4 }, "end": { - "line": 917, - "column": 44 + "line": 902, + "column": 8 } } }, @@ -174871,16 +175147,16 @@ "binop": null, "updateContext": null }, - "start": 27981, - "end": 27982, + "start": 27770, + "end": 27771, "loc": { "start": { - "line": 917, - "column": 44 + "line": 902, + "column": 8 }, "end": { - "line": 917, - "column": 45 + "line": 902, + "column": 9 } } }, @@ -174896,23 +175172,23 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 27982, - "end": 27987, + "value": "undoRedoManager", + "start": 27771, + "end": 27786, "loc": { "start": { - "line": 917, - "column": 45 + "line": 902, + "column": 9 }, "end": { - "line": 917, - "column": 50 + "line": 902, + "column": 24 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -174920,44 +175196,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 27987, - "end": 27988, - "loc": { - "start": { - "line": 917, - "column": 50 - }, - "end": { - "line": 917, - "column": 51 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null, "updateContext": null }, - "start": 27988, - "end": 27989, + "start": 27786, + "end": 27787, "loc": { "start": { - "line": 917, - "column": 51 + "line": 902, + "column": 24 }, "end": { - "line": 917, - "column": 52 + "line": 902, + "column": 25 } } }, @@ -174973,17 +175224,17 @@ "postfix": false, "binop": null }, - "value": "triggerCallbacks", - "start": 27994, - "end": 28010, + "value": "redo", + "start": 27787, + "end": 27791, "loc": { "start": { - "line": 918, - "column": 4 + "line": 902, + "column": 25 }, "end": { - "line": 918, - "column": 20 + "line": 902, + "column": 29 } } }, @@ -174999,16 +175250,16 @@ "postfix": false, "binop": null }, - "start": 28010, - "end": 28011, + "start": 27791, + "end": 27792, "loc": { "start": { - "line": 918, - "column": 20 + "line": 902, + "column": 29 }, "end": { - "line": 918, - "column": 21 + "line": 902, + "column": 30 } } }, @@ -175027,23 +175278,23 @@ "updateContext": null }, "value": "this", - "start": 28011, - "end": 28015, + "start": 27792, + "end": 27796, "loc": { "start": { - "line": 918, - "column": 21 + "line": 902, + "column": 30 }, "end": { - "line": 918, - "column": 25 + "line": 902, + "column": 34 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -175053,16 +175304,16 @@ "binop": null, "updateContext": null }, - "start": 28015, - "end": 28016, + "start": 27796, + "end": 27797, "loc": { "start": { - "line": 918, - "column": 25 + "line": 902, + "column": 34 }, "end": { - "line": 918, - "column": 26 + "line": 902, + "column": 35 } } }, @@ -175078,17 +175329,17 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 28017, - "end": 28026, + "value": "undoRedoContext", + "start": 27797, + "end": 27812, "loc": { "start": { - "line": 918, - "column": 27 + "line": 902, + "column": 35 }, "end": { - "line": 918, - "column": 36 + "line": 902, + "column": 50 } } }, @@ -175105,22 +175356,23 @@ "binop": null, "updateContext": null }, - "start": 28026, - "end": 28027, + "start": 27812, + "end": 27813, "loc": { "start": { - "line": 918, - "column": 36 + "line": 902, + "column": 50 }, "end": { - "line": 918, - "column": 37 + "line": 902, + "column": 51 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -175128,19 +175380,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "Constants", - "start": 28028, - "end": 28037, + "value": "this", + "start": 27814, + "end": 27818, "loc": { "start": { - "line": 918, - "column": 38 + "line": 902, + "column": 52 }, "end": { - "line": 918, - "column": 47 + "line": 902, + "column": 56 } } }, @@ -175157,16 +175410,16 @@ "binop": null, "updateContext": null }, - "start": 28037, - "end": 28038, + "start": 27818, + "end": 27819, "loc": { "start": { - "line": 918, - "column": 47 + "line": 902, + "column": 56 }, "end": { - "line": 918, - "column": 48 + "line": 902, + "column": 57 } } }, @@ -175182,24 +175435,24 @@ "postfix": false, "binop": null }, - "value": "EventType", - "start": 28038, - "end": 28047, + "value": "model", + "start": 27819, + "end": 27824, "loc": { "start": { - "line": 918, - "column": 48 + "line": 902, + "column": 57 }, "end": { - "line": 918, - "column": 57 + "line": 902, + "column": 62 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -175209,23 +175462,23 @@ "binop": null, "updateContext": null }, - "start": 28047, - "end": 28048, + "start": 27824, + "end": 27825, "loc": { "start": { - "line": 918, - "column": 57 + "line": 902, + "column": 62 }, "end": { - "line": 918, - "column": 58 + "line": 902, + "column": 63 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -175234,25 +175487,24 @@ "postfix": false, "binop": null }, - "value": "CLEAR", - "start": 28048, - "end": 28053, + "start": 27826, + "end": 27827, "loc": { "start": { - "line": 918, - "column": 58 + "line": 902, + "column": 64 }, "end": { - "line": 918, - "column": 63 + "line": 902, + "column": 65 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -175260,22 +175512,23 @@ "postfix": false, "binop": null }, - "start": 28053, - "end": 28054, + "value": "err", + "start": 27827, + "end": 27830, "loc": { "start": { - "line": 918, - "column": 63 + "line": 902, + "column": 65 }, "end": { - "line": 918, - "column": 64 + "line": 902, + "column": 68 } } }, { "type": { - "label": ";", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -175286,23 +175539,22 @@ "binop": null, "updateContext": null }, - "start": 28054, - "end": 28055, + "start": 27830, + "end": 27831, "loc": { "start": { - "line": 918, - "column": 64 + "line": 902, + "column": 68 }, "end": { - "line": 918, - "column": 65 + "line": 902, + "column": 69 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -175310,27 +175562,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 28060, - "end": 28064, + "value": "res", + "start": 27832, + "end": 27835, "loc": { "start": { - "line": 919, - "column": 4 + "line": 902, + "column": 70 }, "end": { - "line": 919, - "column": 8 + "line": 902, + "column": 73 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -175340,49 +175591,23 @@ "binop": null, "updateContext": null }, - "start": 28064, - "end": 28065, - "loc": { - "start": { - "line": 919, - "column": 8 - }, - "end": { - "line": 919, - "column": 9 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "recognizer", - "start": 28065, - "end": 28075, + "start": 27835, + "end": 27836, "loc": { "start": { - "line": 919, - "column": 9 + "line": 902, + "column": 73 }, "end": { - "line": 919, - "column": 19 + "line": 902, + "column": 74 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "...", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -175392,16 +175617,16 @@ "binop": null, "updateContext": null }, - "start": 28075, - "end": 28076, + "start": 27837, + "end": 27840, "loc": { "start": { - "line": 919, - "column": 19 + "line": 902, + "column": 75 }, "end": { - "line": 919, - "column": 20 + "line": 902, + "column": 78 } } }, @@ -175417,25 +175642,25 @@ "postfix": false, "binop": null }, - "value": "clear", - "start": 28076, - "end": 28081, + "value": "types", + "start": 27840, + "end": 27845, "loc": { "start": { - "line": 919, - "column": 20 + "line": 902, + "column": 78 }, "end": { - "line": 919, - "column": 25 + "line": 902, + "column": 83 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -175443,25 +175668,24 @@ "postfix": false, "binop": null }, - "start": 28081, - "end": 28082, + "start": 27845, + "end": 27846, "loc": { "start": { - "line": 919, - "column": 25 + "line": 902, + "column": 83 }, "end": { - "line": 919, - "column": 26 + "line": 902, + "column": 84 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": "=>", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -175470,43 +175694,41 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 28082, - "end": 28086, + "start": 27847, + "end": 27849, "loc": { "start": { - "line": 919, - "column": 26 + "line": 902, + "column": 85 }, "end": { - "line": 919, - "column": 30 + "line": 902, + "column": 87 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 28086, - "end": 28087, + "start": 27850, + "end": 27851, "loc": { "start": { - "line": 919, - "column": 30 + "line": 902, + "column": 88 }, "end": { - "line": 919, - "column": 31 + "line": 902, + "column": 89 } } }, @@ -175522,43 +175744,42 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 28087, - "end": 28104, + "value": "manageRecognizedModel", + "start": 27858, + "end": 27879, "loc": { "start": { - "line": 919, - "column": 31 + "line": 903, + "column": 6 }, "end": { - "line": 919, - "column": 48 + "line": 903, + "column": 27 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 28104, - "end": 28105, + "start": 27879, + "end": 27880, "loc": { "start": { - "line": 919, - "column": 48 + "line": 903, + "column": 27 }, "end": { - "line": 919, - "column": 49 + "line": 903, + "column": 28 } } }, @@ -175577,23 +175798,23 @@ "updateContext": null }, "value": "this", - "start": 28106, - "end": 28110, + "start": 27880, + "end": 27884, "loc": { "start": { - "line": 919, - "column": 50 + "line": 903, + "column": 28 }, "end": { - "line": 919, - "column": 54 + "line": 903, + "column": 32 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -175603,16 +175824,16 @@ "binop": null, "updateContext": null }, - "start": 28110, - "end": 28111, + "start": 27884, + "end": 27885, "loc": { "start": { - "line": 919, - "column": 54 + "line": 903, + "column": 32 }, "end": { - "line": 919, - "column": 55 + "line": 903, + "column": 33 } } }, @@ -175628,17 +175849,17 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 28111, - "end": 28116, + "value": "res", + "start": 27886, + "end": 27889, "loc": { "start": { - "line": 919, - "column": 55 + "line": 903, + "column": 34 }, "end": { - "line": 919, - "column": 60 + "line": 903, + "column": 37 } } }, @@ -175655,41 +175876,42 @@ "binop": null, "updateContext": null }, - "start": 28116, - "end": 28117, + "start": 27889, + "end": 27890, "loc": { "start": { - "line": 919, - "column": 60 + "line": 903, + "column": 37 }, "end": { - "line": 919, - "column": 61 + "line": 903, + "column": 38 } } }, { "type": { - "label": "(", + "label": "...", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 28118, - "end": 28119, + "start": 27891, + "end": 27894, "loc": { "start": { - "line": 919, - "column": 62 + "line": 903, + "column": 39 }, "end": { - "line": 919, - "column": 63 + "line": 903, + "column": 42 } } }, @@ -175705,23 +175927,48 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 28119, - "end": 28122, + "value": "types", + "start": 27894, + "end": 27899, "loc": { "start": { - "line": 919, - "column": 63 + "line": 903, + "column": 42 }, "end": { - "line": 919, - "column": 66 + "line": 903, + "column": 47 } } }, { "type": { - "label": ",", + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 27899, + "end": 27900, + "loc": { + "start": { + "line": 903, + "column": 47 + }, + "end": { + "line": 903, + "column": 48 + } + } + }, + { + "type": { + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -175732,24 +175979,24 @@ "binop": null, "updateContext": null }, - "start": 28122, - "end": 28123, + "start": 27900, + "end": 27901, "loc": { "start": { - "line": 919, - "column": 66 + "line": 903, + "column": 48 }, "end": { - "line": 919, - "column": 67 + "line": 903, + "column": 49 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -175757,49 +176004,47 @@ "postfix": false, "binop": null }, - "value": "res", - "start": 28124, - "end": 28127, + "start": 27906, + "end": 27907, "loc": { "start": { - "line": 919, - "column": 68 + "line": 904, + "column": 4 }, "end": { - "line": 919, - "column": 71 + "line": 904, + "column": 5 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 28127, - "end": 28128, + "start": 27907, + "end": 27908, "loc": { "start": { - "line": 919, - "column": 71 + "line": 904, + "column": 5 }, "end": { - "line": 919, - "column": 72 + "line": 904, + "column": 6 } } }, { "type": { - "label": "...", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -175810,24 +176055,24 @@ "binop": null, "updateContext": null }, - "start": 28129, - "end": 28132, + "start": 27908, + "end": 27909, "loc": { "start": { - "line": 919, - "column": 73 + "line": 904, + "column": 6 }, "end": { - "line": 919, - "column": 76 + "line": 904, + "column": 7 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -175835,75 +176080,39 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 28132, - "end": 28137, + "start": 27912, + "end": 27913, "loc": { "start": { - "line": 919, - "column": 76 - }, - "end": { - "line": 919, - "column": 81 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28137, - "end": 28138, - "loc": { - "start": { - "line": 919, - "column": 81 + "line": 905, + "column": 2 }, "end": { - "line": 919, - "column": 82 + "line": 905, + "column": 3 } } }, { - "type": { - "label": "=>", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28139, - "end": 28141, + "type": "CommentBlock", + "value": "*\n * True if empty, false otherwise\n * @returns {boolean}\n ", + "start": 27917, + "end": 27986, "loc": { "start": { - "line": 919, - "column": 83 + "line": 907, + "column": 2 }, "end": { - "line": 919, - "column": 85 + "line": 910, + "column": 5 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -175912,16 +176121,17 @@ "postfix": false, "binop": null }, - "start": 28142, - "end": 28143, + "value": "get", + "start": 27989, + "end": 27992, "loc": { "start": { - "line": 919, - "column": 86 + "line": 911, + "column": 2 }, "end": { - "line": 919, - "column": 87 + "line": 911, + "column": 5 } } }, @@ -175937,17 +176147,17 @@ "postfix": false, "binop": null }, - "value": "recognizerCallback", - "start": 28150, - "end": 28168, + "value": "isEmpty", + "start": 27993, + "end": 28000, "loc": { "start": { - "line": 920, + "line": 911, "column": 6 }, "end": { - "line": 920, - "column": 24 + "line": 911, + "column": 13 } } }, @@ -175963,77 +176173,48 @@ "postfix": false, "binop": null }, - "start": 28168, - "end": 28169, + "start": 28000, + "end": 28001, "loc": { "start": { - "line": 920, - "column": 24 + "line": 911, + "column": 13 }, "end": { - "line": 920, - "column": 25 + "line": 911, + "column": 14 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": ")", "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 28169, - "end": 28173, - "loc": { - "start": { - "line": 920, - "column": 25 - }, - "end": { - "line": 920, - "column": 29 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 28173, - "end": 28174, + "start": 28001, + "end": 28002, "loc": { "start": { - "line": 920, - "column": 29 + "line": 911, + "column": 14 }, "end": { - "line": 920, - "column": 30 + "line": 911, + "column": 15 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -176042,23 +176223,23 @@ "postfix": false, "binop": null }, - "value": "err", - "start": 28175, - "end": 28178, + "start": 28003, + "end": 28004, "loc": { "start": { - "line": 920, - "column": 31 + "line": 911, + "column": 16 }, "end": { - "line": 920, - "column": 34 + "line": 911, + "column": 17 } } }, { "type": { - "label": ",", + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -176069,22 +176250,24 @@ "binop": null, "updateContext": null }, - "start": 28178, - "end": 28179, + "value": "return", + "start": 28009, + "end": 28015, "loc": { "start": { - "line": 920, - "column": 34 + "line": 912, + "column": 4 }, "end": { - "line": 920, - "column": 35 + "line": 912, + "column": 10 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -176092,52 +176275,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "value": "res", - "start": 28180, - "end": 28183, - "loc": { - "start": { - "line": 920, - "column": 36 - }, - "end": { - "line": 920, - "column": 39 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null, "updateContext": null }, - "start": 28183, - "end": 28184, + "value": "this", + "start": 28016, + "end": 28020, "loc": { "start": { - "line": 920, - "column": 39 + "line": 912, + "column": 11 }, "end": { - "line": 920, - "column": 40 + "line": 912, + "column": 15 } } }, { "type": { - "label": "...", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -176147,16 +176305,16 @@ "binop": null, "updateContext": null }, - "start": 28185, - "end": 28188, + "start": 28020, + "end": 28021, "loc": { "start": { - "line": 920, - "column": 41 + "line": 912, + "column": 15 }, "end": { - "line": 920, - "column": 44 + "line": 912, + "column": 16 } } }, @@ -176172,23 +176330,23 @@ "postfix": false, "binop": null }, - "value": "types", - "start": 28188, - "end": 28193, + "value": "recognizerContext", + "start": 28021, + "end": 28038, "loc": { "start": { - "line": 920, - "column": 44 + "line": 912, + "column": 16 }, "end": { - "line": 920, - "column": 49 + "line": 912, + "column": 33 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -176196,77 +176354,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 28193, - "end": 28194, - "loc": { - "start": { - "line": 920, - "column": 49 - }, - "end": { - "line": 920, - "column": 50 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null, "updateContext": null }, - "start": 28194, - "end": 28195, - "loc": { - "start": { - "line": 920, - "column": 50 - }, - "end": { - "line": 920, - "column": 51 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 28200, - "end": 28201, + "start": 28038, + "end": 28039, "loc": { "start": { - "line": 921, - "column": 4 + "line": 912, + "column": 33 }, "end": { - "line": 921, - "column": 5 + "line": 912, + "column": 34 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -176274,16 +176382,17 @@ "postfix": false, "binop": null }, - "start": 28201, - "end": 28202, + "value": "isEmpty", + "start": 28039, + "end": 28046, "loc": { "start": { - "line": 921, - "column": 5 + "line": 912, + "column": 34 }, "end": { - "line": 921, - "column": 6 + "line": 912, + "column": 41 } } }, @@ -176300,16 +176409,16 @@ "binop": null, "updateContext": null }, - "start": 28202, - "end": 28203, + "start": 28046, + "end": 28047, "loc": { "start": { - "line": 921, - "column": 6 + "line": 912, + "column": 41 }, "end": { - "line": 921, - "column": 7 + "line": 912, + "column": 42 } } }, @@ -176325,31 +176434,31 @@ "postfix": false, "binop": null }, - "start": 28206, - "end": 28207, + "start": 28050, + "end": 28051, "loc": { "start": { - "line": 922, + "line": 913, "column": 2 }, "end": { - "line": 922, + "line": 913, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * True if can convert, false otherwise.\n * @return {Boolean}\n ", - "start": 28211, - "end": 28286, + "value": "*\n * True if can clear, false otherwise.\n * @return {Boolean}\n ", + "start": 28055, + "end": 28128, "loc": { "start": { - "line": 924, + "line": 915, "column": 2 }, "end": { - "line": 927, + "line": 918, "column": 5 } } @@ -176367,15 +176476,15 @@ "binop": null }, "value": "get", - "start": 28289, - "end": 28292, + "start": 28131, + "end": 28134, "loc": { "start": { - "line": 928, + "line": 919, "column": 2 }, "end": { - "line": 928, + "line": 919, "column": 5 } } @@ -176392,17 +176501,17 @@ "postfix": false, "binop": null }, - "value": "canConvert", - "start": 28293, - "end": 28303, + "value": "canClear", + "start": 28135, + "end": 28143, "loc": { "start": { - "line": 928, + "line": 919, "column": 6 }, "end": { - "line": 928, - "column": 16 + "line": 919, + "column": 14 } } }, @@ -176418,16 +176527,16 @@ "postfix": false, "binop": null }, - "start": 28303, - "end": 28304, + "start": 28143, + "end": 28144, "loc": { "start": { - "line": 928, - "column": 16 + "line": 919, + "column": 14 }, "end": { - "line": 928, - "column": 17 + "line": 919, + "column": 15 } } }, @@ -176443,16 +176552,16 @@ "postfix": false, "binop": null }, - "start": 28304, - "end": 28305, + "start": 28144, + "end": 28145, "loc": { "start": { - "line": 928, - "column": 17 + "line": 919, + "column": 15 }, "end": { - "line": 928, - "column": 18 + "line": 919, + "column": 16 } } }, @@ -176468,16 +176577,16 @@ "postfix": false, "binop": null }, - "start": 28306, - "end": 28307, + "start": 28146, + "end": 28147, "loc": { "start": { - "line": 928, - "column": 19 + "line": 919, + "column": 17 }, "end": { - "line": 928, - "column": 20 + "line": 919, + "column": 18 } } }, @@ -176496,15 +176605,15 @@ "updateContext": null }, "value": "return", - "start": 28312, - "end": 28318, + "start": 28152, + "end": 28158, "loc": { "start": { - "line": 929, + "line": 920, "column": 4 }, "end": { - "line": 929, + "line": 920, "column": 10 } } @@ -176524,15 +176633,15 @@ "updateContext": null }, "value": "this", - "start": 28319, - "end": 28323, + "start": 28159, + "end": 28163, "loc": { "start": { - "line": 929, + "line": 920, "column": 11 }, "end": { - "line": 929, + "line": 920, "column": 15 } } @@ -176550,15 +176659,15 @@ "binop": null, "updateContext": null }, - "start": 28323, - "end": 28324, + "start": 28163, + "end": 28164, "loc": { "start": { - "line": 929, + "line": 920, "column": 15 }, "end": { - "line": 929, + "line": 920, "column": 16 } } @@ -176576,15 +176685,15 @@ "binop": null }, "value": "canUndo", - "start": 28324, - "end": 28331, + "start": 28164, + "end": 28171, "loc": { "start": { - "line": 929, + "line": 920, "column": 16 }, "end": { - "line": 929, + "line": 920, "column": 23 } } @@ -176603,15 +176712,15 @@ "updateContext": null }, "value": "&&", - "start": 28332, - "end": 28334, + "start": 28172, + "end": 28174, "loc": { "start": { - "line": 929, + "line": 920, "column": 24 }, "end": { - "line": 929, + "line": 920, "column": 26 } } @@ -176631,15 +176740,15 @@ "updateContext": null }, "value": "this", - "start": 28335, - "end": 28339, + "start": 28175, + "end": 28179, "loc": { "start": { - "line": 929, + "line": 920, "column": 27 }, "end": { - "line": 929, + "line": 920, "column": 31 } } @@ -176657,15 +176766,15 @@ "binop": null, "updateContext": null }, - "start": 28339, - "end": 28340, + "start": 28179, + "end": 28180, "loc": { "start": { - "line": 929, + "line": 920, "column": 31 }, "end": { - "line": 929, + "line": 920, "column": 32 } } @@ -176682,51 +176791,49 @@ "postfix": false, "binop": null }, - "value": "canClear", - "start": 28340, - "end": 28348, + "value": "model", + "start": 28180, + "end": 28185, "loc": { "start": { - "line": 929, + "line": 920, "column": 32 }, "end": { - "line": 929, - "column": 40 + "line": 920, + "column": 37 } } }, { "type": { - "label": "&&", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 28349, - "end": 28351, + "start": 28185, + "end": 28186, "loc": { "start": { - "line": 929, - "column": 41 + "line": 920, + "column": 37 }, "end": { - "line": 929, - "column": 43 + "line": 920, + "column": 38 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -176734,19 +176841,18 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 28352, - "end": 28356, + "value": "rawStrokes", + "start": 28186, + "end": 28196, "loc": { "start": { - "line": 929, - "column": 44 + "line": 920, + "column": 38 }, "end": { - "line": 929, + "line": 920, "column": 48 } } @@ -176764,15 +176870,15 @@ "binop": null, "updateContext": null }, - "start": 28356, - "end": 28357, + "start": 28196, + "end": 28197, "loc": { "start": { - "line": 929, + "line": 920, "column": 48 }, "end": { - "line": 929, + "line": 920, "column": 49 } } @@ -176789,23 +176895,23 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 28357, - "end": 28367, + "value": "length", + "start": 28197, + "end": 28203, "loc": { "start": { - "line": 929, + "line": 920, "column": 49 }, "end": { - "line": 929, - "column": 59 + "line": 920, + "column": 55 } } }, { "type": { - "label": "&&", + "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -176813,27 +176919,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": 7, "updateContext": null }, - "value": "&&", - "start": 28368, - "end": 28370, + "value": ">", + "start": 28204, + "end": 28205, "loc": { "start": { - "line": 929, - "column": 60 + "line": 920, + "column": 56 }, "end": { - "line": 929, - "column": 62 + "line": 920, + "column": 57 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -176844,24 +176949,24 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 28371, - "end": 28375, + "value": 0, + "start": 28206, + "end": 28207, "loc": { "start": { - "line": 929, - "column": 63 + "line": 920, + "column": 58 }, "end": { - "line": 929, - "column": 67 + "line": 920, + "column": 59 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -176871,24 +176976,24 @@ "binop": null, "updateContext": null }, - "start": 28375, - "end": 28376, + "start": 28207, + "end": 28208, "loc": { "start": { - "line": 929, - "column": 67 + "line": 920, + "column": 59 }, "end": { - "line": 929, - "column": 68 + "line": 920, + "column": 60 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -176896,43 +177001,32 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 28376, - "end": 28386, + "start": 28211, + "end": 28212, "loc": { "start": { - "line": 929, - "column": 68 + "line": 921, + "column": 2 }, "end": { - "line": 929, - "column": 78 + "line": 921, + "column": 3 } } }, { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28386, - "end": 28387, + "type": "CommentBlock", + "value": "*\n * Clear the output and the recognition result.\n ", + "start": 28216, + "end": 28275, "loc": { "start": { - "line": 929, - "column": 78 + "line": 923, + "column": 2 }, "end": { - "line": 929, - "column": 79 + "line": 925, + "column": 5 } } }, @@ -176948,51 +177042,25 @@ "postfix": false, "binop": null }, - "value": "convert", - "start": 28387, - "end": 28394, + "value": "clear", + "start": 28278, + "end": 28283, "loc": { "start": { - "line": 929, - "column": 79 + "line": 926, + "column": 2 }, "end": { - "line": 929, - "column": 86 + "line": 926, + "column": 7 } } }, { "type": { - "label": ";", + "label": "(", "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 28394, - "end": 28395, - "loc": { - "start": { - "line": 929, - "column": 86 - }, - "end": { - "line": 929, - "column": 87 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -177000,40 +177068,24 @@ "postfix": false, "binop": null }, - "start": 28398, - "end": 28399, - "loc": { - "start": { - "line": 930, - "column": 2 - }, - "end": { - "line": 930, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Convert the current content\n ", - "start": 28403, - "end": 28445, + "start": 28283, + "end": 28284, "loc": { "start": { - "line": 932, - "column": 2 + "line": 926, + "column": 7 }, "end": { - "line": 934, - "column": 5 + "line": 926, + "column": 8 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -177041,23 +177093,22 @@ "postfix": false, "binop": null }, - "value": "convert", - "start": 28448, - "end": 28455, + "start": 28284, + "end": 28285, "loc": { "start": { - "line": 935, - "column": 2 + "line": 926, + "column": 8 }, "end": { - "line": 935, + "line": 926, "column": 9 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -177067,16 +177118,16 @@ "postfix": false, "binop": null }, - "start": 28455, - "end": 28456, + "start": 28286, + "end": 28287, "loc": { "start": { - "line": 935, - "column": 9 + "line": 926, + "column": 10 }, "end": { - "line": 935, - "column": 10 + "line": 926, + "column": 11 } } }, @@ -177092,52 +177143,25 @@ "postfix": false, "binop": null }, - "value": "conversionState", - "start": 28456, - "end": 28471, - "loc": { - "start": { - "line": 935, - "column": 10 - }, - "end": { - "line": 935, - "column": 25 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 28472, - "end": 28473, + "value": "logger", + "start": 28292, + "end": 28298, "loc": { "start": { - "line": 935, - "column": 26 + "line": 927, + "column": 4 }, "end": { - "line": 935, - "column": 27 + "line": 927, + "column": 10 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -177146,25 +177170,24 @@ "binop": null, "updateContext": null }, - "value": "DIGITAL_EDIT", - "start": 28474, - "end": 28488, + "start": 28298, + "end": 28299, "loc": { "start": { - "line": 935, - "column": 28 + "line": 927, + "column": 10 }, "end": { - "line": 935, - "column": 42 + "line": 927, + "column": 11 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -177172,22 +177195,23 @@ "postfix": false, "binop": null }, - "start": 28488, - "end": 28489, + "value": "debug", + "start": 28299, + "end": 28304, "loc": { "start": { - "line": 935, - "column": 42 + "line": 927, + "column": 11 }, "end": { - "line": 935, - "column": 43 + "line": 927, + "column": 16 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -177197,25 +177221,24 @@ "postfix": false, "binop": null }, - "start": 28490, - "end": 28491, + "start": 28304, + "end": 28305, "loc": { "start": { - "line": 935, - "column": 44 + "line": 927, + "column": 16 }, "end": { - "line": 935, - "column": 45 + "line": 927, + "column": 17 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -177224,42 +177247,43 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 28496, - "end": 28498, + "value": "Clear current model", + "start": 28305, + "end": 28326, "loc": { "start": { - "line": 936, - "column": 4 + "line": 927, + "column": 17 }, "end": { - "line": 936, - "column": 6 + "line": 927, + "column": 38 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 28499, - "end": 28500, + "start": 28326, + "end": 28327, "loc": { "start": { - "line": 936, - "column": 7 + "line": 927, + "column": 38 }, "end": { - "line": 936, - "column": 8 + "line": 927, + "column": 39 } } }, @@ -177278,16 +177302,16 @@ "updateContext": null }, "value": "this", - "start": 28500, - "end": 28504, + "start": 28328, + "end": 28332, "loc": { "start": { - "line": 936, - "column": 8 + "line": 927, + "column": 40 }, "end": { - "line": 936, - "column": 12 + "line": 927, + "column": 44 } } }, @@ -177304,16 +177328,16 @@ "binop": null, "updateContext": null }, - "start": 28504, - "end": 28505, + "start": 28332, + "end": 28333, "loc": { "start": { - "line": 936, - "column": 12 + "line": 927, + "column": 44 }, "end": { - "line": 936, - "column": 13 + "line": 927, + "column": 45 } } }, @@ -177329,17 +177353,17 @@ "postfix": false, "binop": null }, - "value": "canConvert", - "start": 28505, - "end": 28515, + "value": "model", + "start": 28333, + "end": 28338, "loc": { "start": { - "line": 936, - "column": 13 + "line": 927, + "column": 45 }, "end": { - "line": 936, - "column": 23 + "line": 927, + "column": 50 } } }, @@ -177355,41 +177379,42 @@ "postfix": false, "binop": null }, - "start": 28515, - "end": 28516, + "start": 28338, + "end": 28339, "loc": { "start": { - "line": 936, - "column": 23 + "line": 927, + "column": 50 }, "end": { - "line": 936, - "column": 24 + "line": 927, + "column": 51 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 28517, - "end": 28518, + "start": 28339, + "end": 28340, "loc": { "start": { - "line": 936, - "column": 25 + "line": 927, + "column": 51 }, "end": { - "line": 936, - "column": 26 + "line": 927, + "column": 52 } } }, @@ -177406,16 +177431,16 @@ "binop": null }, "value": "triggerCallbacks", - "start": 28525, - "end": 28541, + "start": 28345, + "end": 28361, "loc": { "start": { - "line": 937, - "column": 6 + "line": 928, + "column": 4 }, "end": { - "line": 937, - "column": 22 + "line": 928, + "column": 20 } } }, @@ -177431,16 +177456,16 @@ "postfix": false, "binop": null }, - "start": 28541, - "end": 28542, + "start": 28361, + "end": 28362, "loc": { "start": { - "line": 937, - "column": 22 + "line": 928, + "column": 20 }, "end": { - "line": 937, - "column": 23 + "line": 928, + "column": 21 } } }, @@ -177459,16 +177484,16 @@ "updateContext": null }, "value": "this", - "start": 28542, - "end": 28546, + "start": 28362, + "end": 28366, "loc": { "start": { - "line": 937, - "column": 23 + "line": 928, + "column": 21 }, "end": { - "line": 937, - "column": 27 + "line": 928, + "column": 25 } } }, @@ -177485,16 +177510,16 @@ "binop": null, "updateContext": null }, - "start": 28546, - "end": 28547, + "start": 28366, + "end": 28367, "loc": { "start": { - "line": 937, - "column": 27 + "line": 928, + "column": 25 }, "end": { - "line": 937, - "column": 28 + "line": 928, + "column": 26 } } }, @@ -177511,16 +177536,16 @@ "binop": null }, "value": "undefined", - "start": 28548, - "end": 28557, + "start": 28368, + "end": 28377, "loc": { "start": { - "line": 937, - "column": 29 + "line": 928, + "column": 27 }, "end": { - "line": 937, - "column": 38 + "line": 928, + "column": 36 } } }, @@ -177537,16 +177562,16 @@ "binop": null, "updateContext": null }, - "start": 28557, - "end": 28558, + "start": 28377, + "end": 28378, "loc": { "start": { - "line": 937, - "column": 38 + "line": 928, + "column": 36 }, "end": { - "line": 937, - "column": 39 + "line": 928, + "column": 37 } } }, @@ -177563,16 +177588,16 @@ "binop": null }, "value": "Constants", - "start": 28559, - "end": 28568, + "start": 28379, + "end": 28388, "loc": { "start": { - "line": 937, - "column": 40 + "line": 928, + "column": 38 }, "end": { - "line": 937, - "column": 49 + "line": 928, + "column": 47 } } }, @@ -177589,16 +177614,16 @@ "binop": null, "updateContext": null }, - "start": 28568, - "end": 28569, + "start": 28388, + "end": 28389, "loc": { "start": { - "line": 937, - "column": 49 + "line": 928, + "column": 47 }, "end": { - "line": 937, - "column": 50 + "line": 928, + "column": 48 } } }, @@ -177615,16 +177640,16 @@ "binop": null }, "value": "EventType", - "start": 28569, - "end": 28578, + "start": 28389, + "end": 28398, "loc": { "start": { - "line": 937, - "column": 50 + "line": 928, + "column": 48 }, "end": { - "line": 937, - "column": 59 + "line": 928, + "column": 57 } } }, @@ -177641,16 +177666,16 @@ "binop": null, "updateContext": null }, - "start": 28578, - "end": 28579, + "start": 28398, + "end": 28399, "loc": { "start": { - "line": 937, - "column": 59 + "line": 928, + "column": 57 }, "end": { - "line": 937, - "column": 60 + "line": 928, + "column": 58 } } }, @@ -177666,17 +177691,17 @@ "postfix": false, "binop": null }, - "value": "CONVERT", - "start": 28579, - "end": 28586, + "value": "CLEAR", + "start": 28399, + "end": 28404, "loc": { "start": { - "line": 937, - "column": 60 + "line": 928, + "column": 58 }, "end": { - "line": 937, - "column": 67 + "line": 928, + "column": 63 } } }, @@ -177692,16 +177717,16 @@ "postfix": false, "binop": null }, - "start": 28586, - "end": 28587, + "start": 28404, + "end": 28405, "loc": { "start": { - "line": 937, - "column": 67 + "line": 928, + "column": 63 }, "end": { - "line": 937, - "column": 68 + "line": 928, + "column": 64 } } }, @@ -177718,16 +177743,70 @@ "binop": null, "updateContext": null }, - "start": 28587, - "end": 28588, + "start": 28405, + "end": 28406, "loc": { "start": { - "line": 937, - "column": 68 + "line": 928, + "column": 64 }, "end": { - "line": 937, - "column": 69 + "line": 928, + "column": 65 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 28411, + "end": 28415, + "loc": { + "start": { + "line": 929, + "column": 4 + }, + "end": { + "line": 929, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 28415, + "end": 28416, + "loc": { + "start": { + "line": 929, + "column": 8 + }, + "end": { + "line": 929, + "column": 9 } } }, @@ -177743,49 +177822,49 @@ "postfix": false, "binop": null }, - "value": "launchConvert", - "start": 28595, - "end": 28608, + "value": "recognizer", + "start": 28416, + "end": 28426, "loc": { "start": { - "line": 938, - "column": 6 + "line": 929, + "column": 9 }, "end": { - "line": 938, + "line": 929, "column": 19 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 28608, - "end": 28609, + "start": 28426, + "end": 28427, "loc": { "start": { - "line": 938, + "line": 929, "column": 19 }, "end": { - "line": 938, + "line": 929, "column": 20 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -177793,46 +177872,44 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 28609, - "end": 28613, + "value": "clear", + "start": 28427, + "end": 28432, "loc": { "start": { - "line": 938, + "line": 929, "column": 20 }, "end": { - "line": 938, - "column": 24 + "line": 929, + "column": 25 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 28613, - "end": 28614, + "start": 28432, + "end": 28433, "loc": { "start": { - "line": 938, - "column": 24 + "line": 929, + "column": 25 }, "end": { - "line": 938, - "column": 25 + "line": 929, + "column": 26 } } }, @@ -177851,15 +177928,15 @@ "updateContext": null }, "value": "this", - "start": 28615, - "end": 28619, + "start": 28433, + "end": 28437, "loc": { "start": { - "line": 938, + "line": 929, "column": 26 }, "end": { - "line": 938, + "line": 929, "column": 30 } } @@ -177877,15 +177954,15 @@ "binop": null, "updateContext": null }, - "start": 28619, - "end": 28620, + "start": 28437, + "end": 28438, "loc": { "start": { - "line": 938, + "line": 929, "column": 30 }, "end": { - "line": 938, + "line": 929, "column": 31 } } @@ -177902,17 +177979,17 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 28620, - "end": 28625, + "value": "recognizerContext", + "start": 28438, + "end": 28455, "loc": { "start": { - "line": 938, + "line": 929, "column": 31 }, "end": { - "line": 938, - "column": 36 + "line": 929, + "column": 48 } } }, @@ -177929,22 +178006,23 @@ "binop": null, "updateContext": null }, - "start": 28625, - "end": 28626, + "start": 28455, + "end": 28456, "loc": { "start": { - "line": 938, - "column": 36 + "line": 929, + "column": 48 }, "end": { - "line": 938, - "column": 37 + "line": 929, + "column": 49 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -177952,25 +178030,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "conversionState", - "start": 28627, - "end": 28642, + "value": "this", + "start": 28457, + "end": 28461, "loc": { "start": { - "line": 938, - "column": 38 + "line": 929, + "column": 50 }, "end": { - "line": 938, - "column": 53 + "line": 929, + "column": 54 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -177978,77 +178057,79 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 28642, - "end": 28643, + "start": 28461, + "end": 28462, "loc": { "start": { - "line": 938, - "column": 53 + "line": 929, + "column": 54 }, "end": { - "line": 938, - "column": 54 + "line": 929, + "column": 55 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 28643, - "end": 28644, + "value": "model", + "start": 28462, + "end": 28467, "loc": { "start": { - "line": 938, - "column": 54 + "line": 929, + "column": 55 }, "end": { - "line": 938, - "column": 55 + "line": 929, + "column": 60 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 28649, - "end": 28650, + "start": 28467, + "end": 28468, "loc": { "start": { - "line": 939, - "column": 4 + "line": 929, + "column": 60 }, "end": { - "line": 939, - "column": 5 + "line": 929, + "column": 61 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -178056,65 +178137,75 @@ "postfix": false, "binop": null }, - "start": 28653, - "end": 28654, + "start": 28469, + "end": 28470, "loc": { "start": { - "line": 940, - "column": 2 + "line": 929, + "column": 62 }, "end": { - "line": 940, - "column": 3 + "line": 929, + "column": 63 } } }, { - "type": "CommentBlock", - "value": "*\n * Set the guides for text\n * @param {Boolean} [enable]\n ", - "start": 28658, - "end": 28727, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "err", + "start": 28470, + "end": 28473, "loc": { "start": { - "line": 942, - "column": 2 + "line": 929, + "column": 63 }, "end": { - "line": 945, - "column": 5 + "line": 929, + "column": 66 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "setGuides", - "start": 28730, - "end": 28739, + "start": 28473, + "end": 28474, "loc": { "start": { - "line": 946, - "column": 2 + "line": 929, + "column": 66 }, "end": { - "line": 946, - "column": 11 + "line": 929, + "column": 67 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -178123,76 +178214,75 @@ "postfix": false, "binop": null }, - "start": 28739, - "end": 28740, + "value": "res", + "start": 28475, + "end": 28478, "loc": { "start": { - "line": 946, - "column": 11 + "line": 929, + "column": 68 }, "end": { - "line": 946, - "column": 12 + "line": 929, + "column": 71 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "enable", - "start": 28740, - "end": 28746, + "start": 28478, + "end": 28479, "loc": { "start": { - "line": 946, - "column": 12 + "line": 929, + "column": 71 }, "end": { - "line": 946, - "column": 18 + "line": 929, + "column": 72 } } }, { "type": { - "label": "=", + "label": "...", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 28747, - "end": 28748, + "start": 28480, + "end": 28483, "loc": { "start": { - "line": 946, - "column": 19 + "line": 929, + "column": 73 }, "end": { - "line": 946, - "column": 20 + "line": 929, + "column": 76 } } }, { "type": { - "label": "true", - "keyword": "true", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -178200,20 +178290,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "true", - "start": 28749, - "end": 28753, + "value": "types", + "start": 28483, + "end": 28488, "loc": { "start": { - "line": 946, - "column": 21 + "line": 929, + "column": 76 }, "end": { - "line": 946, - "column": 25 + "line": 929, + "column": 81 } } }, @@ -178229,16 +178318,42 @@ "postfix": false, "binop": null }, - "start": 28753, - "end": 28754, + "start": 28488, + "end": 28489, "loc": { "start": { - "line": 946, - "column": 25 + "line": 929, + "column": 81 }, "end": { - "line": 946, - "column": 26 + "line": 929, + "column": 82 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 28490, + "end": 28492, + "loc": { + "start": { + "line": 929, + "column": 83 + }, + "end": { + "line": 929, + "column": 85 } } }, @@ -178254,23 +178369,22 @@ "postfix": false, "binop": null }, - "start": 28755, - "end": 28756, + "start": 28493, + "end": 28494, "loc": { "start": { - "line": 946, - "column": 27 + "line": 929, + "column": 86 }, "end": { - "line": 946, - "column": 28 + "line": 929, + "column": 87 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -178278,52 +178392,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 28761, - "end": 28765, + "value": "recognizerCallback", + "start": 28501, + "end": 28519, "loc": { "start": { - "line": 947, - "column": 4 + "line": 930, + "column": 6 }, "end": { - "line": 947, - "column": 8 + "line": 930, + "column": 24 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 28765, - "end": 28766, + "start": 28519, + "end": 28520, "loc": { "start": { - "line": 947, - "column": 8 + "line": 930, + "column": 24 }, "end": { - "line": 947, - "column": 9 + "line": 930, + "column": 25 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -178331,26 +178444,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "configuration", - "start": 28766, - "end": 28779, + "value": "this", + "start": 28520, + "end": 28524, "loc": { "start": { - "line": 947, - "column": 9 + "line": 930, + "column": 25 }, "end": { - "line": 947, - "column": 22 + "line": 930, + "column": 29 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -178360,16 +178474,16 @@ "binop": null, "updateContext": null }, - "start": 28779, - "end": 28780, + "start": 28524, + "end": 28525, "loc": { "start": { - "line": 947, - "column": 22 + "line": 930, + "column": 29 }, "end": { - "line": 947, - "column": 23 + "line": 930, + "column": 30 } } }, @@ -178385,24 +178499,24 @@ "postfix": false, "binop": null }, - "value": "recognitionParams", - "start": 28780, - "end": 28797, + "value": "err", + "start": 28526, + "end": 28529, "loc": { "start": { - "line": 947, - "column": 23 + "line": 930, + "column": 31 }, "end": { - "line": 947, - "column": 40 + "line": 930, + "column": 34 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -178412,16 +178526,16 @@ "binop": null, "updateContext": null }, - "start": 28797, - "end": 28798, + "start": 28529, + "end": 28530, "loc": { "start": { - "line": 947, - "column": 40 + "line": 930, + "column": 34 }, "end": { - "line": 947, - "column": 41 + "line": 930, + "column": 35 } } }, @@ -178437,24 +178551,24 @@ "postfix": false, "binop": null }, - "value": "v4", - "start": 28798, - "end": 28800, + "value": "res", + "start": 28531, + "end": 28534, "loc": { "start": { - "line": 947, - "column": 41 + "line": 930, + "column": 36 }, "end": { - "line": 947, - "column": 43 + "line": 930, + "column": 39 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -178464,15 +178578,41 @@ "binop": null, "updateContext": null }, - "start": 28800, - "end": 28801, + "start": 28534, + "end": 28535, "loc": { "start": { - "line": 947, - "column": 43 + "line": 930, + "column": 39 }, "end": { - "line": 947, + "line": 930, + "column": 40 + } + } + }, + { + "type": { + "label": "...", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 28536, + "end": 28539, + "loc": { + "start": { + "line": 930, + "column": 41 + }, + "end": { + "line": 930, "column": 44 } } @@ -178489,23 +178629,23 @@ "postfix": false, "binop": null }, - "value": "text", - "start": 28801, - "end": 28805, + "value": "types", + "start": 28539, + "end": 28544, "loc": { "start": { - "line": 947, + "line": 930, "column": 44 }, "end": { - "line": 947, - "column": 48 + "line": 930, + "column": 49 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -178513,51 +178653,50 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 28805, - "end": 28806, + "start": 28544, + "end": 28545, "loc": { "start": { - "line": 947, - "column": 48 + "line": 930, + "column": 49 }, "end": { - "line": 947, - "column": 49 + "line": 930, + "column": 50 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "guides", - "start": 28806, - "end": 28812, + "start": 28545, + "end": 28546, "loc": { "start": { - "line": 947, - "column": 49 + "line": 930, + "column": 50 }, "end": { - "line": 947, - "column": 55 + "line": 930, + "column": 51 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -178565,27 +178704,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 28812, - "end": 28813, + "start": 28551, + "end": 28552, "loc": { "start": { - "line": 947, - "column": 55 + "line": 931, + "column": 4 }, "end": { - "line": 947, - "column": 56 + "line": 931, + "column": 5 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -178593,52 +178731,50 @@ "postfix": false, "binop": null }, - "value": "enable", - "start": 28813, - "end": 28819, + "start": 28552, + "end": 28553, "loc": { "start": { - "line": 947, - "column": 56 + "line": 931, + "column": 5 }, "end": { - "line": 947, - "column": 62 + "line": 931, + "column": 6 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 28820, - "end": 28821, + "start": 28553, + "end": 28554, "loc": { "start": { - "line": 947, - "column": 63 + "line": 931, + "column": 6 }, "end": { - "line": 947, - "column": 64 + "line": 931, + "column": 7 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -178646,43 +178782,58 @@ "postfix": false, "binop": null }, - "value": "enable", - "start": 28822, - "end": 28828, + "start": 28557, + "end": 28558, "loc": { "start": { - "line": 947, - "column": 65 + "line": 932, + "column": 2 }, "end": { - "line": 947, - "column": 71 + "line": 932, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * True if can convert, false otherwise.\n * @return {Boolean}\n ", + "start": 28562, + "end": 28637, + "loc": { + "start": { + "line": 934, + "column": 2 + }, + "end": { + "line": 937, + "column": 5 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 28828, - "end": 28829, + "value": "get", + "start": 28640, + "end": 28643, "loc": { "start": { - "line": 947, - "column": 71 + "line": 938, + "column": 2 }, "end": { - "line": 947, - "column": 72 + "line": 938, + "column": 5 } } }, @@ -178698,16 +178849,16 @@ "postfix": false, "binop": null }, - "value": "launchConfig", - "start": 28834, - "end": 28846, + "value": "canConvert", + "start": 28644, + "end": 28654, "loc": { "start": { - "line": 948, - "column": 4 + "line": 938, + "column": 6 }, "end": { - "line": 948, + "line": 938, "column": 16 } } @@ -178724,50 +178875,73 @@ "postfix": false, "binop": null }, - "start": 28846, - "end": 28847, + "start": 28654, + "end": 28655, "loc": { "start": { - "line": 948, + "line": 938, "column": 16 }, "end": { - "line": 948, + "line": 938, "column": 17 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 28847, - "end": 28851, + "start": 28655, + "end": 28656, "loc": { "start": { - "line": 948, + "line": 938, "column": 17 }, "end": { - "line": 948, - "column": 21 + "line": 938, + "column": 18 } } }, { "type": { - "label": ",", + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 28657, + "end": 28658, + "loc": { + "start": { + "line": 938, + "column": 19 + }, + "end": { + "line": 938, + "column": 20 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -178778,16 +178952,17 @@ "binop": null, "updateContext": null }, - "start": 28851, - "end": 28852, + "value": "return", + "start": 28663, + "end": 28669, "loc": { "start": { - "line": 948, - "column": 21 + "line": 939, + "column": 4 }, "end": { - "line": 948, - "column": 22 + "line": 939, + "column": 10 } } }, @@ -178806,16 +178981,16 @@ "updateContext": null }, "value": "this", - "start": 28853, - "end": 28857, + "start": 28670, + "end": 28674, "loc": { "start": { - "line": 948, - "column": 23 + "line": 939, + "column": 11 }, "end": { - "line": 948, - "column": 27 + "line": 939, + "column": 15 } } }, @@ -178832,16 +179007,16 @@ "binop": null, "updateContext": null }, - "start": 28857, - "end": 28858, + "start": 28674, + "end": 28675, "loc": { "start": { - "line": 948, - "column": 27 + "line": 939, + "column": 15 }, "end": { - "line": 948, - "column": 28 + "line": 939, + "column": 16 } } }, @@ -178857,50 +179032,53 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 28858, - "end": 28863, + "value": "canUndo", + "start": 28675, + "end": 28682, "loc": { "start": { - "line": 948, - "column": 28 + "line": 939, + "column": 16 }, "end": { - "line": 948, - "column": 33 + "line": 939, + "column": 23 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "&&", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 2, + "updateContext": null }, - "start": 28863, - "end": 28864, + "value": "&&", + "start": 28683, + "end": 28685, "loc": { "start": { - "line": 948, - "column": 33 + "line": 939, + "column": 24 }, "end": { - "line": 948, - "column": 34 + "line": 939, + "column": 26 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -178909,22 +179087,23 @@ "binop": null, "updateContext": null }, - "start": 28864, - "end": 28865, + "value": "this", + "start": 28686, + "end": 28690, "loc": { "start": { - "line": 948, - "column": 34 + "line": 939, + "column": 27 }, "end": { - "line": 948, - "column": 35 + "line": 939, + "column": 31 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -178932,34 +179111,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 28868, - "end": 28869, - "loc": { - "start": { - "line": 949, - "column": 2 - }, - "end": { - "line": 949, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Return the position of the cursor identifying the current state in the internal iink undo/redo stack.\n * @returns {Number}\n ", - "start": 28873, - "end": 29012, + "start": 28690, + "end": 28691, "loc": { "start": { - "line": 951, - "column": 2 + "line": 939, + "column": 31 }, "end": { - "line": 954, - "column": 5 + "line": 939, + "column": 32 } } }, @@ -178975,74 +179139,78 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 29015, - "end": 29018, + "value": "canClear", + "start": 28691, + "end": 28699, "loc": { "start": { - "line": 955, - "column": 2 + "line": 939, + "column": 32 }, "end": { - "line": 955, - "column": 5 + "line": 939, + "column": 40 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "&&", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 2, + "updateContext": null }, - "value": "possibleUndoCount", - "start": 29019, - "end": 29036, + "value": "&&", + "start": 28700, + "end": 28702, "loc": { "start": { - "line": 955, - "column": 6 + "line": 939, + "column": 41 }, "end": { - "line": 955, - "column": 23 + "line": 939, + "column": 43 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 29036, - "end": 29037, + "value": "this", + "start": 28703, + "end": 28707, "loc": { "start": { - "line": 955, - "column": 23 + "line": 939, + "column": 44 }, "end": { - "line": 955, - "column": 24 + "line": 939, + "column": 48 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -179050,25 +179218,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 29037, - "end": 29038, + "start": 28707, + "end": 28708, "loc": { "start": { - "line": 955, - "column": 24 + "line": 939, + "column": 48 }, "end": { - "line": 955, - "column": 25 + "line": 939, + "column": 49 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -179077,23 +179246,23 @@ "postfix": false, "binop": null }, - "start": 29039, - "end": 29040, + "value": "recognizer", + "start": 28708, + "end": 28718, "loc": { "start": { - "line": 955, - "column": 26 + "line": 939, + "column": 49 }, "end": { - "line": 955, - "column": 27 + "line": 939, + "column": 59 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -179101,20 +179270,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "value": "return", - "start": 29045, - "end": 29051, + "value": "&&", + "start": 28719, + "end": 28721, "loc": { "start": { - "line": 956, - "column": 4 + "line": 939, + "column": 60 }, "end": { - "line": 956, - "column": 10 + "line": 939, + "column": 62 } } }, @@ -179133,16 +179302,16 @@ "updateContext": null }, "value": "this", - "start": 29052, - "end": 29056, + "start": 28722, + "end": 28726, "loc": { "start": { - "line": 956, - "column": 11 + "line": 939, + "column": 63 }, "end": { - "line": 956, - "column": 15 + "line": 939, + "column": 67 } } }, @@ -179159,16 +179328,16 @@ "binop": null, "updateContext": null }, - "start": 29056, - "end": 29057, + "start": 28726, + "end": 28727, "loc": { "start": { - "line": 956, - "column": 15 + "line": 939, + "column": 67 }, "end": { - "line": 956, - "column": 16 + "line": 939, + "column": 68 } } }, @@ -179184,17 +179353,17 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 29057, - "end": 29074, + "value": "recognizer", + "start": 28727, + "end": 28737, "loc": { "start": { - "line": 956, - "column": 16 + "line": 939, + "column": 68 }, "end": { - "line": 956, - "column": 33 + "line": 939, + "column": 78 } } }, @@ -179211,16 +179380,16 @@ "binop": null, "updateContext": null }, - "start": 29074, - "end": 29075, + "start": 28737, + "end": 28738, "loc": { "start": { - "line": 956, - "column": 33 + "line": 939, + "column": 78 }, "end": { - "line": 956, - "column": 34 + "line": 939, + "column": 79 } } }, @@ -179236,17 +179405,17 @@ "postfix": false, "binop": null }, - "value": "possibleUndoCount", - "start": 29075, - "end": 29092, + "value": "convert", + "start": 28738, + "end": 28745, "loc": { "start": { - "line": 956, - "column": 34 + "line": 939, + "column": 79 }, "end": { - "line": 956, - "column": 51 + "line": 939, + "column": 86 } } }, @@ -179263,16 +179432,16 @@ "binop": null, "updateContext": null }, - "start": 29092, - "end": 29093, + "start": 28745, + "end": 28746, "loc": { "start": { - "line": 956, - "column": 51 + "line": 939, + "column": 86 }, "end": { - "line": 956, - "column": 52 + "line": 939, + "column": 87 } } }, @@ -179288,31 +179457,31 @@ "postfix": false, "binop": null }, - "start": 29096, - "end": 29097, + "start": 28749, + "end": 28750, "loc": { "start": { - "line": 957, + "line": 940, "column": 2 }, "end": { - "line": 957, + "line": 940, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * The number of operations that it is currently possible to undo.\n * @returns {Number}\n ", - "start": 29101, - "end": 29202, + "value": "*\n * Convert the current content\n ", + "start": 28754, + "end": 28796, "loc": { "start": { - "line": 959, + "line": 942, "column": 2 }, "end": { - "line": 962, + "line": 944, "column": 5 } } @@ -179329,24 +179498,24 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 29205, - "end": 29208, + "value": "convert", + "start": 28799, + "end": 28806, "loc": { "start": { - "line": 963, + "line": 945, "column": 2 }, "end": { - "line": 963, - "column": 5 + "line": 945, + "column": 9 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -179355,24 +179524,23 @@ "postfix": false, "binop": null }, - "value": "undoStackIndex", - "start": 29209, - "end": 29223, + "start": 28806, + "end": 28807, "loc": { "start": { - "line": 963, - "column": 6 + "line": 945, + "column": 9 }, "end": { - "line": 963, - "column": 20 + "line": 945, + "column": 10 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -179381,128 +179549,128 @@ "postfix": false, "binop": null }, - "start": 29223, - "end": 29224, + "value": "conversionState", + "start": 28807, + "end": 28822, "loc": { "start": { - "line": 963, - "column": 20 + "line": 945, + "column": 10 }, "end": { - "line": 963, - "column": 21 + "line": 945, + "column": 25 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 29224, - "end": 29225, + "value": "=", + "start": 28823, + "end": 28824, "loc": { "start": { - "line": 963, - "column": 21 + "line": 945, + "column": 26 }, "end": { - "line": 963, - "column": 22 + "line": 945, + "column": 27 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 29226, - "end": 29227, + "value": "DIGITAL_EDIT", + "start": 28825, + "end": 28839, "loc": { "start": { - "line": 963, - "column": 23 + "line": 945, + "column": 28 }, "end": { - "line": 963, - "column": 24 + "line": 945, + "column": 42 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 29232, - "end": 29238, + "start": 28839, + "end": 28840, "loc": { "start": { - "line": 964, - "column": 4 + "line": 945, + "column": 42 }, "end": { - "line": 964, - "column": 10 + "line": 945, + "column": 43 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 29239, - "end": 29243, + "start": 28841, + "end": 28842, "loc": { "start": { - "line": 964, - "column": 11 + "line": 945, + "column": 44 }, "end": { - "line": 964, - "column": 15 + "line": 945, + "column": 45 } } }, { "type": { - "label": ".", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -179513,23 +179681,24 @@ "binop": null, "updateContext": null }, - "start": 29243, - "end": 29244, + "value": "if", + "start": 28847, + "end": 28849, "loc": { "start": { - "line": 964, - "column": 15 + "line": 946, + "column": 4 }, "end": { - "line": 964, - "column": 16 + "line": 946, + "column": 6 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -179538,25 +179707,25 @@ "postfix": false, "binop": null }, - "value": "recognizerContext", - "start": 29244, - "end": 29261, + "start": 28850, + "end": 28851, "loc": { "start": { - "line": 964, - "column": 16 + "line": 946, + "column": 7 }, "end": { - "line": 964, - "column": 33 + "line": 946, + "column": 8 } } }, { "type": { - "label": ".", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -179565,74 +179734,75 @@ "binop": null, "updateContext": null }, - "start": 29261, - "end": 29262, + "value": "this", + "start": 28851, + "end": 28855, "loc": { "start": { - "line": 964, - "column": 33 + "line": 946, + "column": 8 }, "end": { - "line": 964, - "column": 34 + "line": 946, + "column": 12 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "undoStackIndex", - "start": 29262, - "end": 29276, + "start": 28855, + "end": 28856, "loc": { "start": { - "line": 964, - "column": 34 + "line": 946, + "column": 12 }, "end": { - "line": 964, - "column": 48 + "line": 946, + "column": 13 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 29276, - "end": 29277, + "value": "canConvert", + "start": 28856, + "end": 28866, "loc": { "start": { - "line": 964, - "column": 48 + "line": 946, + "column": 13 }, "end": { - "line": 964, - "column": 49 + "line": 946, + "column": 23 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -179642,32 +179812,41 @@ "postfix": false, "binop": null }, - "start": 29280, - "end": 29281, + "start": 28866, + "end": 28867, "loc": { "start": { - "line": 965, - "column": 2 + "line": 946, + "column": 23 }, "end": { - "line": 965, - "column": 3 + "line": 946, + "column": 24 } } }, { - "type": "CommentBlock", - "value": "*\n * True if can export, false otherwise.\n * @return {Boolean}\n ", - "start": 29285, - "end": 29359, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 28868, + "end": 28869, "loc": { "start": { - "line": 967, - "column": 2 + "line": 946, + "column": 25 }, "end": { - "line": 970, - "column": 5 + "line": 946, + "column": 26 } } }, @@ -179683,24 +179862,24 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 29362, - "end": 29365, + "value": "triggerCallbacks", + "start": 28876, + "end": 28892, "loc": { "start": { - "line": 971, - "column": 2 + "line": 947, + "column": 6 }, "end": { - "line": 971, - "column": 5 + "line": 947, + "column": 22 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -179709,74 +179888,77 @@ "postfix": false, "binop": null }, - "value": "canExport", - "start": 29366, - "end": 29375, + "start": 28892, + "end": 28893, "loc": { "start": { - "line": 971, - "column": 6 + "line": 947, + "column": 22 }, "end": { - "line": 971, - "column": 15 + "line": 947, + "column": 23 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 29375, - "end": 29376, + "value": "this", + "start": 28893, + "end": 28897, "loc": { "start": { - "line": 971, - "column": 15 + "line": 947, + "column": 23 }, "end": { - "line": 971, - "column": 16 + "line": 947, + "column": 27 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 29376, - "end": 29377, + "start": 28897, + "end": 28898, "loc": { "start": { - "line": 971, - "column": 16 + "line": 947, + "column": 27 }, "end": { - "line": 971, - "column": 17 + "line": 947, + "column": 28 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -179785,23 +179967,23 @@ "postfix": false, "binop": null }, - "start": 29378, - "end": 29379, + "value": "undefined", + "start": 28899, + "end": 28908, "loc": { "start": { - "line": 971, - "column": 18 + "line": 947, + "column": 29 }, "end": { - "line": 971, - "column": 19 + "line": 947, + "column": 38 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -179812,24 +179994,22 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 29384, - "end": 29390, + "start": 28908, + "end": 28909, "loc": { "start": { - "line": 972, - "column": 4 + "line": 947, + "column": 38 }, "end": { - "line": 972, - "column": 10 + "line": 947, + "column": 39 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -179837,20 +180017,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 29391, - "end": 29395, + "value": "Constants", + "start": 28910, + "end": 28919, "loc": { "start": { - "line": 972, - "column": 11 + "line": 947, + "column": 40 }, "end": { - "line": 972, - "column": 15 + "line": 947, + "column": 49 } } }, @@ -179867,16 +180046,16 @@ "binop": null, "updateContext": null }, - "start": 29395, - "end": 29396, + "start": 28919, + "end": 28920, "loc": { "start": { - "line": 972, - "column": 15 + "line": 947, + "column": 49 }, "end": { - "line": 972, - "column": 16 + "line": 947, + "column": 50 } } }, @@ -179892,51 +180071,49 @@ "postfix": false, "binop": null }, - "value": "canUndo", - "start": 29396, - "end": 29403, + "value": "EventType", + "start": 28920, + "end": 28929, "loc": { "start": { - "line": 972, - "column": 16 + "line": 947, + "column": 50 }, "end": { - "line": 972, - "column": 23 + "line": 947, + "column": 59 } } }, { "type": { - "label": "&&", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 29404, - "end": 29406, + "start": 28929, + "end": 28930, "loc": { "start": { - "line": 972, - "column": 24 + "line": 947, + "column": 59 }, "end": { - "line": 972, - "column": 26 - } + "line": 947, + "column": 60 + } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -179944,26 +180121,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 29407, - "end": 29411, + "value": "CONVERT", + "start": 28930, + "end": 28937, "loc": { "start": { - "line": 972, - "column": 27 + "line": 947, + "column": 60 }, "end": { - "line": 972, - "column": 31 + "line": 947, + "column": 67 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -179971,51 +180147,24 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29411, - "end": 29412, - "loc": { - "start": { - "line": 972, - "column": 31 - }, - "end": { - "line": 972, - "column": 32 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, "binop": null }, - "value": "canClear", - "start": 29412, - "end": 29420, + "start": 28937, + "end": 28938, "loc": { "start": { - "line": 972, - "column": 32 + "line": 947, + "column": 67 }, "end": { - "line": 972, - "column": 40 + "line": 947, + "column": 68 } } }, { "type": { - "label": "&&", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -180023,27 +180172,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 29421, - "end": 29423, + "start": 28938, + "end": 28939, "loc": { "start": { - "line": 972, - "column": 41 + "line": 947, + "column": 68 }, "end": { - "line": 972, - "column": 43 + "line": 947, + "column": 69 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -180051,52 +180198,51 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 29424, - "end": 29428, + "value": "launchConvert", + "start": 28946, + "end": 28959, "loc": { "start": { - "line": 972, - "column": 44 + "line": 948, + "column": 6 }, "end": { - "line": 972, - "column": 48 + "line": 948, + "column": 19 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 29428, - "end": 29429, + "start": 28959, + "end": 28960, "loc": { "start": { - "line": 972, - "column": 48 + "line": 948, + "column": 19 }, "end": { - "line": 972, - "column": 49 + "line": 948, + "column": 20 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -180104,25 +180250,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "recognizer", - "start": 29429, - "end": 29439, + "value": "this", + "start": 28960, + "end": 28964, "loc": { "start": { - "line": 972, - "column": 49 + "line": 948, + "column": 20 }, "end": { - "line": 972, - "column": 59 + "line": 948, + "column": 24 } } }, { "type": { - "label": "&&", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -180130,20 +180277,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": 2, + "binop": null, "updateContext": null }, - "value": "&&", - "start": 29440, - "end": 29442, + "start": 28964, + "end": 28965, "loc": { "start": { - "line": 972, - "column": 60 + "line": 948, + "column": 24 }, "end": { - "line": 972, - "column": 62 + "line": 948, + "column": 25 } } }, @@ -180162,16 +180308,16 @@ "updateContext": null }, "value": "this", - "start": 29443, - "end": 29447, + "start": 28966, + "end": 28970, "loc": { "start": { - "line": 972, - "column": 63 + "line": 948, + "column": 26 }, "end": { - "line": 972, - "column": 67 + "line": 948, + "column": 30 } } }, @@ -180188,16 +180334,16 @@ "binop": null, "updateContext": null }, - "start": 29447, - "end": 29448, + "start": 28970, + "end": 28971, "loc": { "start": { - "line": 972, - "column": 67 + "line": 948, + "column": 30 }, "end": { - "line": 972, - "column": 68 + "line": 948, + "column": 31 } } }, @@ -180213,24 +180359,24 @@ "postfix": false, "binop": null }, - "value": "recognizer", - "start": 29448, - "end": 29458, + "value": "model", + "start": 28971, + "end": 28976, "loc": { "start": { - "line": 972, - "column": 68 + "line": 948, + "column": 31 }, "end": { - "line": 972, - "column": 78 + "line": 948, + "column": 36 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -180240,16 +180386,16 @@ "binop": null, "updateContext": null }, - "start": 29458, - "end": 29459, + "start": 28976, + "end": 28977, "loc": { "start": { - "line": 972, - "column": 78 + "line": 948, + "column": 36 }, "end": { - "line": 972, - "column": 79 + "line": 948, + "column": 37 } } }, @@ -180265,25 +180411,25 @@ "postfix": false, "binop": null }, - "value": "getInfo", - "start": 29459, - "end": 29466, + "value": "conversionState", + "start": 28978, + "end": 28993, "loc": { "start": { - "line": 972, - "column": 79 + "line": 948, + "column": 38 }, "end": { - "line": 972, - "column": 86 + "line": 948, + "column": 53 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -180291,47 +180437,48 @@ "postfix": false, "binop": null }, - "start": 29466, - "end": 29467, + "start": 28993, + "end": 28994, "loc": { "start": { - "line": 972, - "column": 86 + "line": 948, + "column": 53 }, "end": { - "line": 972, - "column": 87 + "line": 948, + "column": 54 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 29467, - "end": 29468, + "start": 28994, + "end": 28995, "loc": { "start": { - "line": 972, - "column": 87 + "line": 948, + "column": 54 }, "end": { - "line": 972, - "column": 88 + "line": 948, + "column": 55 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -180339,27 +180486,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 29468, - "end": 29469, + "start": 29000, + "end": 29001, "loc": { "start": { - "line": 972, - "column": 88 + "line": 949, + "column": 4 }, "end": { - "line": 972, - "column": 89 + "line": 949, + "column": 5 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -180367,43 +180513,32 @@ "postfix": false, "binop": null }, - "value": "availableTriggers", - "start": 29469, - "end": 29486, + "start": 29004, + "end": 29005, "loc": { "start": { - "line": 972, - "column": 89 + "line": 950, + "column": 2 }, "end": { - "line": 972, - "column": 106 + "line": 950, + "column": 3 } } }, { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 29486, - "end": 29487, + "type": "CommentBlock", + "value": "*\n * Set the guides for text\n * @param {Boolean} [enable]\n ", + "start": 29009, + "end": 29078, "loc": { "start": { - "line": 972, - "column": 106 + "line": 952, + "column": 2 }, "end": { - "line": 972, - "column": 107 + "line": 955, + "column": 5 } } }, @@ -180419,43 +180554,42 @@ "postfix": false, "binop": null }, - "value": "exportContent", - "start": 29487, - "end": 29500, + "value": "setGuides", + "start": 29081, + "end": 29090, "loc": { "start": { - "line": 972, - "column": 107 + "line": 956, + "column": 2 }, "end": { - "line": 972, - "column": 120 + "line": 956, + "column": 11 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 29500, - "end": 29501, + "start": 29090, + "end": 29091, "loc": { "start": { - "line": 972, - "column": 120 + "line": 956, + "column": 11 }, "end": { - "line": 972, - "column": 121 + "line": 956, + "column": 12 } } }, @@ -180471,48 +180605,51 @@ "postfix": false, "binop": null }, - "value": "includes", - "start": 29501, - "end": 29509, + "value": "enable", + "start": 29091, + "end": 29097, "loc": { "start": { - "line": 972, - "column": 121 + "line": 956, + "column": 12 }, "end": { - "line": 972, - "column": 129 + "line": 956, + "column": 18 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 29509, - "end": 29510, + "value": "=", + "start": 29098, + "end": 29099, "loc": { "start": { - "line": 972, - "column": 129 + "line": 956, + "column": 19 }, "end": { - "line": 972, - "column": 130 + "line": 956, + "column": 20 } } }, { "type": { - "label": "name", + "label": "true", + "keyword": "true", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -180520,25 +180657,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "Constants", - "start": 29510, - "end": 29519, + "value": "true", + "start": 29100, + "end": 29104, "loc": { "start": { - "line": 972, - "column": 130 + "line": 956, + "column": 21 }, "end": { - "line": 972, - "column": 139 + "line": 956, + "column": 25 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -180546,26 +180684,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 29519, - "end": 29520, + "start": 29104, + "end": 29105, "loc": { "start": { - "line": 972, - "column": 139 + "line": 956, + "column": 25 }, "end": { - "line": 972, - "column": 140 + "line": 956, + "column": 26 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -180574,25 +180711,25 @@ "postfix": false, "binop": null }, - "value": "Trigger", - "start": 29520, - "end": 29527, + "start": 29106, + "end": 29107, "loc": { "start": { - "line": 972, - "column": 140 + "line": 956, + "column": 27 }, "end": { - "line": 972, - "column": 147 + "line": 956, + "column": 28 } } }, { "type": { - "label": ".", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -180601,50 +180738,51 @@ "binop": null, "updateContext": null }, - "start": 29527, - "end": 29528, + "value": "this", + "start": 29112, + "end": 29116, "loc": { "start": { - "line": 972, - "column": 147 + "line": 957, + "column": 4 }, "end": { - "line": 972, - "column": 148 + "line": 957, + "column": 8 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "DEMAND", - "start": 29528, - "end": 29534, + "start": 29116, + "end": 29117, "loc": { "start": { - "line": 972, - "column": 148 + "line": 957, + "column": 8 }, "end": { - "line": 972, - "column": 154 + "line": 957, + "column": 9 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -180652,23 +180790,24 @@ "postfix": false, "binop": null }, - "start": 29534, - "end": 29535, + "value": "configuration", + "start": 29117, + "end": 29130, "loc": { "start": { - "line": 972, - "column": 154 + "line": 957, + "column": 9 }, "end": { - "line": 972, - "column": 155 + "line": 957, + "column": 22 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -180678,24 +180817,24 @@ "binop": null, "updateContext": null }, - "start": 29535, - "end": 29536, + "start": 29130, + "end": 29131, "loc": { "start": { - "line": 972, - "column": 155 + "line": 957, + "column": 22 }, "end": { - "line": 972, - "column": 156 + "line": 957, + "column": 23 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -180703,32 +180842,43 @@ "postfix": false, "binop": null }, - "start": 29539, - "end": 29540, + "value": "recognitionParams", + "start": 29131, + "end": 29148, "loc": { "start": { - "line": 973, - "column": 2 + "line": 957, + "column": 23 }, "end": { - "line": 973, - "column": 3 + "line": 957, + "column": 40 } } }, { - "type": "CommentBlock", - "value": "*\n * Explicitly ask to perform an export. You have to listen to events to get the content as this function is non blocking and does not have a return type.\n * @param {Array} requestedMimeTypes Requested mime-types. Be sure to ask all the types required by the listeners of exported event.\n ", - "start": 29544, - "end": 29852, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 29148, + "end": 29149, "loc": { "start": { - "line": 975, - "column": 2 + "line": 957, + "column": 40 }, "end": { - "line": 978, - "column": 5 + "line": 957, + "column": 41 } } }, @@ -180744,42 +180894,43 @@ "postfix": false, "binop": null }, - "value": "export_", - "start": 29855, - "end": 29862, + "value": "v4", + "start": 29149, + "end": 29151, "loc": { "start": { - "line": 979, - "column": 2 + "line": 957, + "column": 41 }, "end": { - "line": 979, - "column": 9 + "line": 957, + "column": 43 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 29862, - "end": 29863, + "start": 29151, + "end": 29152, "loc": { "start": { - "line": 979, - "column": 9 + "line": 957, + "column": 43 }, "end": { - "line": 979, - "column": 10 + "line": 957, + "column": 44 } } }, @@ -180795,23 +180946,23 @@ "postfix": false, "binop": null }, - "value": "requestedMimeTypes", - "start": 29863, - "end": 29881, + "value": "text", + "start": 29152, + "end": 29156, "loc": { "start": { - "line": 979, - "column": 10 + "line": 957, + "column": 44 }, "end": { - "line": 979, - "column": 28 + "line": 957, + "column": 48 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -180819,25 +180970,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 29881, - "end": 29882, + "start": 29156, + "end": 29157, "loc": { "start": { - "line": 979, - "column": 28 + "line": 957, + "column": 48 }, "end": { - "line": 979, - "column": 29 + "line": 957, + "column": 49 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -180846,23 +180998,23 @@ "postfix": false, "binop": null }, - "start": 29883, - "end": 29884, + "value": "guides", + "start": 29157, + "end": 29163, "loc": { "start": { - "line": 979, - "column": 30 + "line": 957, + "column": 49 }, "end": { - "line": 979, - "column": 31 + "line": 957, + "column": 55 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -180873,24 +181025,23 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 29889, - "end": 29891, + "start": 29163, + "end": 29164, "loc": { "start": { - "line": 980, - "column": 4 + "line": 957, + "column": 55 }, "end": { - "line": 980, - "column": 6 + "line": 957, + "column": 56 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -180899,104 +181050,104 @@ "postfix": false, "binop": null }, - "start": 29892, - "end": 29893, + "value": "enable", + "start": 29164, + "end": 29170, "loc": { "start": { - "line": 980, - "column": 7 + "line": 957, + "column": 56 }, "end": { - "line": 980, - "column": 8 + "line": 957, + "column": 62 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "this", - "start": 29893, - "end": 29897, + "value": "=", + "start": 29171, + "end": 29172, "loc": { "start": { - "line": 980, - "column": 8 + "line": 957, + "column": 63 }, "end": { - "line": 980, - "column": 12 + "line": 957, + "column": 64 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 29897, - "end": 29898, + "value": "enable", + "start": 29173, + "end": 29179, "loc": { "start": { - "line": 980, - "column": 12 + "line": 957, + "column": 65 }, "end": { - "line": 980, - "column": 13 + "line": 957, + "column": 71 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "canExport", - "start": 29898, - "end": 29907, + "start": 29179, + "end": 29180, "loc": { "start": { - "line": 980, - "column": 13 + "line": 957, + "column": 71 }, "end": { - "line": 980, - "column": 22 + "line": 957, + "column": 72 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -181004,22 +181155,23 @@ "postfix": false, "binop": null }, - "start": 29907, - "end": 29908, + "value": "launchConfig", + "start": 29185, + "end": 29197, "loc": { "start": { - "line": 980, - "column": 22 + "line": 958, + "column": 4 }, "end": { - "line": 980, - "column": 23 + "line": 958, + "column": 16 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -181029,22 +181181,23 @@ "postfix": false, "binop": null }, - "start": 29909, - "end": 29910, + "start": 29197, + "end": 29198, "loc": { "start": { - "line": 980, - "column": 24 + "line": 958, + "column": 16 }, "end": { - "line": 980, - "column": 25 + "line": 958, + "column": 17 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -181052,44 +181205,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "triggerCallbacks", - "start": 29917, - "end": 29933, + "value": "this", + "start": 29198, + "end": 29202, "loc": { "start": { - "line": 981, - "column": 6 + "line": 958, + "column": 17 }, "end": { - "line": 981, - "column": 22 + "line": 958, + "column": 21 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 29933, - "end": 29934, + "start": 29202, + "end": 29203, "loc": { "start": { - "line": 981, - "column": 22 + "line": 958, + "column": 21 }, "end": { - "line": 981, - "column": 23 + "line": 958, + "column": 22 } } }, @@ -181108,23 +181263,23 @@ "updateContext": null }, "value": "this", - "start": 29934, - "end": 29938, + "start": 29204, + "end": 29208, "loc": { "start": { - "line": 981, + "line": 958, "column": 23 }, "end": { - "line": 981, + "line": 958, "column": 27 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -181134,15 +181289,15 @@ "binop": null, "updateContext": null }, - "start": 29938, - "end": 29939, + "start": 29208, + "end": 29209, "loc": { "start": { - "line": 981, + "line": 958, "column": 27 }, "end": { - "line": 981, + "line": 958, "column": 28 } } @@ -181159,75 +181314,74 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 29940, - "end": 29949, + "value": "model", + "start": 29209, + "end": 29214, "loc": { "start": { - "line": 981, - "column": 29 + "line": 958, + "column": 28 }, "end": { - "line": 981, - "column": 38 + "line": 958, + "column": 33 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 29949, - "end": 29950, + "start": 29214, + "end": 29215, "loc": { "start": { - "line": 981, - "column": 38 + "line": 958, + "column": 33 }, "end": { - "line": 981, - "column": 39 + "line": 958, + "column": 34 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "Constants", - "start": 29951, - "end": 29960, + "start": 29215, + "end": 29216, "loc": { "start": { - "line": 981, - "column": 40 + "line": 958, + "column": 34 }, "end": { - "line": 981, - "column": 49 + "line": 958, + "column": 35 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -181235,71 +181389,60 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 29960, - "end": 29961, + "start": 29219, + "end": 29220, "loc": { "start": { - "line": 981, - "column": 49 + "line": 959, + "column": 2 }, "end": { - "line": 981, - "column": 50 + "line": 959, + "column": 3 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "EventType", - "start": 29961, - "end": 29970, + "type": "CommentBlock", + "value": "*\n * Return the position of the cursor identifying the current state in the internal iink undo/redo stack.\n * @returns {Number}\n ", + "start": 29224, + "end": 29363, "loc": { "start": { - "line": 981, - "column": 50 + "line": 961, + "column": 2 }, "end": { - "line": 981, - "column": 59 + "line": 964, + "column": 5 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 29970, - "end": 29971, + "value": "get", + "start": 29366, + "end": 29369, "loc": { "start": { - "line": 981, - "column": 59 + "line": 965, + "column": 2 }, "end": { - "line": 981, - "column": 60 + "line": 965, + "column": 5 } } }, @@ -181315,25 +181458,25 @@ "postfix": false, "binop": null }, - "value": "EXPORT", - "start": 29971, - "end": 29977, + "value": "possibleUndoCount", + "start": 29370, + "end": 29387, "loc": { "start": { - "line": 981, - "column": 60 + "line": 965, + "column": 6 }, "end": { - "line": 981, - "column": 66 + "line": 965, + "column": 23 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -181341,49 +181484,48 @@ "postfix": false, "binop": null }, - "start": 29977, - "end": 29978, + "start": 29387, + "end": 29388, "loc": { "start": { - "line": 981, - "column": 66 + "line": 965, + "column": 23 }, "end": { - "line": 981, - "column": 67 + "line": 965, + "column": 24 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 29978, - "end": 29979, + "start": 29388, + "end": 29389, "loc": { "start": { - "line": 981, - "column": 67 + "line": 965, + "column": 24 }, "end": { - "line": 981, - "column": 68 + "line": 965, + "column": 25 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -181392,42 +181534,44 @@ "postfix": false, "binop": null }, - "value": "launchExport", - "start": 29986, - "end": 29998, + "start": 29390, + "end": 29391, "loc": { "start": { - "line": 982, - "column": 6 + "line": 965, + "column": 26 }, "end": { - "line": 982, - "column": 18 + "line": 965, + "column": 27 } } }, { "type": { - "label": "(", + "label": "return", + "keyword": "return", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 29998, - "end": 29999, + "value": "return", + "start": 29396, + "end": 29402, "loc": { "start": { - "line": 982, - "column": 18 + "line": 966, + "column": 4 }, "end": { - "line": 982, - "column": 19 + "line": 966, + "column": 10 } } }, @@ -181446,23 +181590,23 @@ "updateContext": null }, "value": "this", - "start": 29999, - "end": 30003, + "start": 29403, + "end": 29407, "loc": { "start": { - "line": 982, - "column": 19 + "line": 966, + "column": 11 }, "end": { - "line": 982, - "column": 23 + "line": 966, + "column": 15 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -181472,23 +181616,22 @@ "binop": null, "updateContext": null }, - "start": 30003, - "end": 30004, + "start": 29407, + "end": 29408, "loc": { "start": { - "line": 982, - "column": 23 + "line": 966, + "column": 15 }, "end": { - "line": 982, - "column": 24 + "line": 966, + "column": 16 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -181496,20 +181639,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 30005, - "end": 30009, + "value": "recognizerContext", + "start": 29408, + "end": 29425, "loc": { "start": { - "line": 982, - "column": 25 + "line": 966, + "column": 16 }, "end": { - "line": 982, - "column": 29 + "line": 966, + "column": 33 } } }, @@ -181526,16 +181668,16 @@ "binop": null, "updateContext": null }, - "start": 30009, - "end": 30010, + "start": 29425, + "end": 29426, "loc": { "start": { - "line": 982, - "column": 29 + "line": 966, + "column": 33 }, "end": { - "line": 982, - "column": 30 + "line": 966, + "column": 34 } } }, @@ -181551,23 +181693,23 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 30010, - "end": 30015, + "value": "possibleUndoCount", + "start": 29426, + "end": 29443, "loc": { "start": { - "line": 982, - "column": 30 + "line": 966, + "column": 34 }, "end": { - "line": 982, - "column": 35 + "line": 966, + "column": 51 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -181578,24 +181720,24 @@ "binop": null, "updateContext": null }, - "start": 30015, - "end": 30016, + "start": 29443, + "end": 29444, "loc": { "start": { - "line": 982, - "column": 35 + "line": 966, + "column": 51 }, "end": { - "line": 982, - "column": 36 + "line": 966, + "column": 52 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -181603,43 +181745,32 @@ "postfix": false, "binop": null }, - "value": "requestedMimeTypes", - "start": 30017, - "end": 30035, + "start": 29447, + "end": 29448, "loc": { "start": { - "line": 982, - "column": 37 + "line": 967, + "column": 2 }, "end": { - "line": 982, - "column": 55 + "line": 967, + "column": 3 } } }, { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30035, - "end": 30036, + "type": "CommentBlock", + "value": "*\n * The number of operations that it is currently possible to undo.\n * @returns {Number}\n ", + "start": 29452, + "end": 29553, "loc": { "start": { - "line": 982, - "column": 55 + "line": 969, + "column": 2 }, "end": { - "line": 982, - "column": 56 + "line": 972, + "column": 5 } } }, @@ -181655,50 +181786,50 @@ "postfix": false, "binop": null }, - "value": "Constants", - "start": 30037, - "end": 30046, + "value": "get", + "start": 29556, + "end": 29559, "loc": { "start": { - "line": 982, - "column": 57 + "line": 973, + "column": 2 }, "end": { - "line": 982, - "column": 66 + "line": 973, + "column": 5 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 30046, - "end": 30047, + "value": "undoStackIndex", + "start": 29560, + "end": 29574, "loc": { "start": { - "line": 982, - "column": 66 + "line": 973, + "column": 6 }, "end": { - "line": 982, - "column": 67 + "line": 973, + "column": 20 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -181707,23 +181838,22 @@ "postfix": false, "binop": null }, - "value": "Trigger", - "start": 30047, - "end": 30054, + "start": 29574, + "end": 29575, "loc": { "start": { - "line": 982, - "column": 67 + "line": 973, + "column": 20 }, "end": { - "line": 982, - "column": 74 + "line": 973, + "column": 21 } } }, { "type": { - "label": ".", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -181731,26 +181861,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 30054, - "end": 30055, + "start": 29575, + "end": 29576, "loc": { "start": { - "line": 982, - "column": 74 + "line": 973, + "column": 21 }, "end": { - "line": 982, - "column": 75 + "line": 973, + "column": 22 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -181759,50 +181888,53 @@ "postfix": false, "binop": null }, - "value": "DEMAND", - "start": 30055, - "end": 30061, + "start": 29577, + "end": 29578, "loc": { "start": { - "line": 982, - "column": 75 + "line": 973, + "column": 23 }, "end": { - "line": 982, - "column": 81 + "line": 973, + "column": 24 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "return", + "keyword": "return", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 30061, - "end": 30062, + "value": "return", + "start": 29583, + "end": 29589, "loc": { "start": { - "line": 982, - "column": 81 + "line": 974, + "column": 4 }, "end": { - "line": 982, - "column": 82 + "line": 974, + "column": 10 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -181811,22 +181943,23 @@ "binop": null, "updateContext": null }, - "start": 30062, - "end": 30063, + "value": "this", + "start": 29590, + "end": 29594, "loc": { "start": { - "line": 982, - "column": 82 + "line": 974, + "column": 11 }, "end": { - "line": 982, - "column": 83 + "line": 974, + "column": 15 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -181834,26 +181967,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 30068, - "end": 30069, + "start": 29594, + "end": 29595, "loc": { "start": { - "line": 983, - "column": 4 + "line": 974, + "column": 15 }, "end": { - "line": 983, - "column": 5 + "line": 974, + "column": 16 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -181861,32 +181995,43 @@ "postfix": false, "binop": null }, - "start": 30072, - "end": 30073, + "value": "recognizerContext", + "start": 29595, + "end": 29612, "loc": { "start": { - "line": 984, - "column": 2 + "line": 974, + "column": 16 }, "end": { - "line": 984, - "column": 3 + "line": 974, + "column": 33 } } }, { - "type": "CommentBlock", - "value": "*\n * Import content.\n * @param {Blob|*} data Data to import\n * @param {String} [mimetype] Mimetype of the data, needed if data is not a Blob\n ", - "start": 30077, - "end": 30231, + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 29612, + "end": 29613, "loc": { "start": { - "line": 986, - "column": 2 + "line": 974, + "column": 33 }, "end": { - "line": 990, - "column": 5 + "line": 974, + "column": 34 } } }, @@ -181902,50 +182047,51 @@ "postfix": false, "binop": null }, - "value": "import_", - "start": 30234, - "end": 30241, + "value": "undoStackIndex", + "start": 29613, + "end": 29627, "loc": { "start": { - "line": 991, - "column": 2 + "line": 974, + "column": 34 }, "end": { - "line": 991, - "column": 9 + "line": 974, + "column": 48 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 30241, - "end": 30242, + "start": 29627, + "end": 29628, "loc": { "start": { - "line": 991, - "column": 9 + "line": 974, + "column": 48 }, "end": { - "line": 991, - "column": 10 + "line": 974, + "column": 49 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -181953,43 +182099,32 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 30242, - "end": 30246, + "start": 29631, + "end": 29632, "loc": { "start": { - "line": 991, - "column": 10 + "line": 975, + "column": 2 }, "end": { - "line": 991, - "column": 14 + "line": 975, + "column": 3 } } }, { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30246, - "end": 30247, + "type": "CommentBlock", + "value": "*\n * True if can export, false otherwise.\n * @return {Boolean}\n ", + "start": 29636, + "end": 29710, "loc": { "start": { - "line": 991, - "column": 14 + "line": 977, + "column": 2 }, "end": { - "line": 991, - "column": 15 + "line": 980, + "column": 5 } } }, @@ -182005,25 +182140,25 @@ "postfix": false, "binop": null }, - "value": "mimetype", - "start": 30248, - "end": 30256, + "value": "get", + "start": 29713, + "end": 29716, "loc": { "start": { - "line": 991, - "column": 16 + "line": 981, + "column": 2 }, "end": { - "line": 991, - "column": 24 + "line": 981, + "column": 5 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -182031,22 +182166,23 @@ "postfix": false, "binop": null }, - "start": 30256, - "end": 30257, + "value": "canExport", + "start": 29717, + "end": 29726, "loc": { "start": { - "line": 991, - "column": 24 + "line": 981, + "column": 6 }, "end": { - "line": 991, - "column": 25 + "line": 981, + "column": 15 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -182056,24 +182192,24 @@ "postfix": false, "binop": null }, - "start": 30258, - "end": 30259, + "start": 29726, + "end": 29727, "loc": { "start": { - "line": 991, - "column": 26 + "line": 981, + "column": 15 }, "end": { - "line": 991, - "column": 27 + "line": 981, + "column": 16 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -182081,23 +182217,22 @@ "postfix": false, "binop": null }, - "value": "triggerCallbacks", - "start": 30264, - "end": 30280, + "start": 29727, + "end": 29728, "loc": { "start": { - "line": 992, - "column": 4 + "line": 981, + "column": 16 }, "end": { - "line": 992, - "column": 20 + "line": 981, + "column": 17 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -182107,50 +182242,23 @@ "postfix": false, "binop": null }, - "start": 30280, - "end": 30281, + "start": 29729, + "end": 29730, "loc": { "start": { - "line": 992, - "column": 20 - }, - "end": { - "line": 992, - "column": 21 - } - } - }, - { - "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "this", - "start": 30281, - "end": 30285, - "loc": { - "start": { - "line": 992, - "column": 21 + "line": 981, + "column": 18 }, "end": { - "line": 992, - "column": 25 + "line": 981, + "column": 19 } } }, { "type": { - "label": ",", + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -182161,22 +182269,24 @@ "binop": null, "updateContext": null }, - "start": 30285, - "end": 30286, + "value": "return", + "start": 29735, + "end": 29741, "loc": { "start": { - "line": 992, - "column": 25 + "line": 982, + "column": 4 }, "end": { - "line": 992, - "column": 26 + "line": 982, + "column": 10 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -182184,26 +182294,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "undefined", - "start": 30287, - "end": 30296, + "value": "this", + "start": 29742, + "end": 29746, "loc": { "start": { - "line": 992, - "column": 27 + "line": 982, + "column": 11 }, "end": { - "line": 992, - "column": 36 + "line": 982, + "column": 15 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -182213,16 +182324,16 @@ "binop": null, "updateContext": null }, - "start": 30296, - "end": 30297, + "start": 29746, + "end": 29747, "loc": { "start": { - "line": 992, - "column": 36 + "line": 982, + "column": 15 }, "end": { - "line": 992, - "column": 37 + "line": 982, + "column": 16 } } }, @@ -182238,49 +182349,51 @@ "postfix": false, "binop": null }, - "value": "Constants", - "start": 30298, - "end": 30307, + "value": "canUndo", + "start": 29747, + "end": 29754, "loc": { "start": { - "line": 992, - "column": 38 + "line": 982, + "column": 16 }, "end": { - "line": 992, - "column": 47 + "line": 982, + "column": 23 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "&&", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "start": 30307, - "end": 30308, + "value": "&&", + "start": 29755, + "end": 29757, "loc": { "start": { - "line": 992, - "column": 47 + "line": 982, + "column": 24 }, "end": { - "line": 992, - "column": 48 + "line": 982, + "column": 26 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -182288,19 +182401,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "EventType", - "start": 30308, - "end": 30317, + "value": "this", + "start": 29758, + "end": 29762, "loc": { "start": { - "line": 992, - "column": 48 + "line": 982, + "column": 27 }, "end": { - "line": 992, - "column": 57 + "line": 982, + "column": 31 } } }, @@ -182317,16 +182431,16 @@ "binop": null, "updateContext": null }, - "start": 30317, - "end": 30318, + "start": 29762, + "end": 29763, "loc": { "start": { - "line": 992, - "column": 57 + "line": 982, + "column": 31 }, "end": { - "line": 992, - "column": 58 + "line": 982, + "column": 32 } } }, @@ -182342,48 +182456,23 @@ "postfix": false, "binop": null }, - "value": "IMPORT", - "start": 30318, - "end": 30324, - "loc": { - "start": { - "line": 992, - "column": 58 - }, - "end": { - "line": 992, - "column": 64 - } - } - }, - { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30324, - "end": 30325, + "value": "canClear", + "start": 29763, + "end": 29771, "loc": { "start": { - "line": 992, - "column": 64 + "line": 982, + "column": 32 }, "end": { - "line": 992, - "column": 65 + "line": 982, + "column": 40 } } }, { "type": { - "label": ";", + "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -182391,25 +182480,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "start": 30325, - "end": 30326, + "value": "&&", + "start": 29772, + "end": 29774, "loc": { "start": { - "line": 992, - "column": 65 + "line": 982, + "column": 41 }, "end": { - "line": 992, - "column": 66 + "line": 982, + "column": 43 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -182417,51 +182508,52 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "launchImport", - "start": 30331, - "end": 30343, + "value": "this", + "start": 29775, + "end": 29779, "loc": { "start": { - "line": 993, - "column": 4 + "line": 982, + "column": 44 }, "end": { - "line": 993, - "column": 16 + "line": 982, + "column": 48 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 30343, - "end": 30344, + "start": 29779, + "end": 29780, "loc": { "start": { - "line": 993, - "column": 16 + "line": 982, + "column": 48 }, "end": { - "line": 993, - "column": 17 + "line": 982, + "column": 49 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -182469,26 +182561,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 30344, - "end": 30348, + "value": "recognizer", + "start": 29780, + "end": 29790, "loc": { "start": { - "line": 993, - "column": 17 + "line": 982, + "column": 49 }, "end": { - "line": 993, - "column": 21 + "line": 982, + "column": 59 } } }, { "type": { - "label": ",", + "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -182496,19 +182587,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 2, "updateContext": null }, - "start": 30348, - "end": 30349, + "value": "&&", + "start": 29791, + "end": 29793, "loc": { "start": { - "line": 993, - "column": 21 + "line": 982, + "column": 60 }, "end": { - "line": 993, - "column": 22 + "line": 982, + "column": 62 } } }, @@ -182527,16 +182619,16 @@ "updateContext": null }, "value": "this", - "start": 30350, - "end": 30354, + "start": 29794, + "end": 29798, "loc": { "start": { - "line": 993, - "column": 23 + "line": 982, + "column": 63 }, "end": { - "line": 993, - "column": 27 + "line": 982, + "column": 67 } } }, @@ -182553,16 +182645,16 @@ "binop": null, "updateContext": null }, - "start": 30354, - "end": 30355, + "start": 29798, + "end": 29799, "loc": { "start": { - "line": 993, - "column": 27 + "line": 982, + "column": 67 }, "end": { - "line": 993, - "column": 28 + "line": 982, + "column": 68 } } }, @@ -182578,24 +182670,24 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 30355, - "end": 30360, + "value": "recognizer", + "start": 29799, + "end": 29809, "loc": { "start": { - "line": 993, - "column": 28 + "line": 982, + "column": 68 }, "end": { - "line": 993, - "column": 33 + "line": 982, + "column": 78 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -182605,43 +182697,42 @@ "binop": null, "updateContext": null }, - "start": 30360, - "end": 30361, + "start": 29809, + "end": 29810, "loc": { "start": { - "line": 993, - "column": 33 + "line": 982, + "column": 78 }, "end": { - "line": 993, - "column": 34 + "line": 982, + "column": 79 } } }, { "type": { - "label": "prefix", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "!", - "start": 30362, - "end": 30363, + "value": "getInfo", + "start": 29810, + "end": 29817, "loc": { "start": { - "line": 993, - "column": 35 + "line": 982, + "column": 79 }, "end": { - "line": 993, - "column": 36 + "line": 982, + "column": 86 } } }, @@ -182657,24 +182748,24 @@ "postfix": false, "binop": null }, - "start": 30363, - "end": 30364, + "start": 29817, + "end": 29818, "loc": { "start": { - "line": 993, - "column": 36 + "line": 982, + "column": 86 }, "end": { - "line": 993, - "column": 37 + "line": 982, + "column": 87 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -182682,45 +182773,42 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 30364, - "end": 30368, + "start": 29818, + "end": 29819, "loc": { "start": { - "line": 993, - "column": 37 + "line": 982, + "column": 87 }, "end": { - "line": 993, - "column": 41 + "line": 982, + "column": 88 } } }, { "type": { - "label": "instanceof", - "keyword": "instanceof", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 7, + "binop": null, "updateContext": null }, - "value": "instanceof", - "start": 30369, - "end": 30379, + "start": 29819, + "end": 29820, "loc": { "start": { - "line": 993, - "column": 42 + "line": 982, + "column": 88 }, "end": { - "line": 993, - "column": 52 + "line": 982, + "column": 89 } } }, @@ -182736,23 +182824,23 @@ "postfix": false, "binop": null }, - "value": "Blob", - "start": 30380, - "end": 30384, + "value": "availableTriggers", + "start": 29820, + "end": 29837, "loc": { "start": { - "line": 993, - "column": 53 + "line": 982, + "column": 89 }, "end": { - "line": 993, - "column": 57 + "line": 982, + "column": 106 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -182760,53 +182848,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 30384, - "end": 30385, + "start": 29837, + "end": 29838, "loc": { "start": { - "line": 993, - "column": 57 + "line": 982, + "column": 106 }, "end": { - "line": 993, - "column": 58 + "line": 982, + "column": 107 } } }, { "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 30386, - "end": 30387, + "value": "exportContent", + "start": 29838, + "end": 29851, "loc": { "start": { - "line": 993, - "column": 59 + "line": 982, + "column": 107 }, "end": { - "line": 993, - "column": 60 + "line": 982, + "column": 120 } } }, { "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -182815,17 +182903,16 @@ "binop": null, "updateContext": null }, - "value": "new", - "start": 30388, - "end": 30391, + "start": 29851, + "end": 29852, "loc": { "start": { - "line": 993, - "column": 61 + "line": 982, + "column": 120 }, "end": { - "line": 993, - "column": 64 + "line": 982, + "column": 121 } } }, @@ -182841,17 +182928,17 @@ "postfix": false, "binop": null }, - "value": "Blob", - "start": 30392, - "end": 30396, + "value": "includes", + "start": 29852, + "end": 29860, "loc": { "start": { - "line": 993, - "column": 65 + "line": 982, + "column": 121 }, "end": { - "line": 993, - "column": 69 + "line": 982, + "column": 129 } } }, @@ -182867,101 +182954,101 @@ "postfix": false, "binop": null }, - "start": 30396, - "end": 30397, + "start": 29860, + "end": 29861, "loc": { "start": { - "line": 993, - "column": 69 + "line": 982, + "column": 129 }, "end": { - "line": 993, - "column": 70 + "line": 982, + "column": 130 } } }, { "type": { - "label": "[", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 30397, - "end": 30398, + "value": "Constants", + "start": 29861, + "end": 29870, "loc": { "start": { - "line": 993, - "column": 70 + "line": 982, + "column": 130 }, "end": { - "line": 993, - "column": 71 + "line": 982, + "column": 139 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 30398, - "end": 30402, + "start": 29870, + "end": 29871, "loc": { "start": { - "line": 993, - "column": 71 + "line": 982, + "column": 139 }, "end": { - "line": 993, - "column": 75 + "line": 982, + "column": 140 } } }, { "type": { - "label": "]", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 30402, - "end": 30403, + "value": "Trigger", + "start": 29871, + "end": 29878, "loc": { "start": { - "line": 993, - "column": 75 + "line": 982, + "column": 140 }, "end": { - "line": 993, - "column": 76 + "line": 982, + "column": 147 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -182971,23 +183058,23 @@ "binop": null, "updateContext": null }, - "start": 30403, - "end": 30404, + "start": 29878, + "end": 29879, "loc": { "start": { - "line": 993, - "column": 76 + "line": 982, + "column": 147 }, "end": { - "line": 993, - "column": 77 + "line": 982, + "column": 148 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -182996,24 +183083,25 @@ "postfix": false, "binop": null }, - "start": 30405, - "end": 30406, + "value": "DEMAND", + "start": 29879, + "end": 29885, "loc": { "start": { - "line": 993, - "column": 78 + "line": 982, + "column": 148 }, "end": { - "line": 993, - "column": 79 + "line": 982, + "column": 154 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -183021,23 +183109,22 @@ "postfix": false, "binop": null }, - "value": "type", - "start": 30407, - "end": 30411, + "start": 29885, + "end": 29886, "loc": { "start": { - "line": 993, - "column": 80 + "line": 982, + "column": 154 }, "end": { - "line": 993, - "column": 84 + "line": 982, + "column": 155 } } }, { "type": { - "label": ":", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -183048,24 +183135,24 @@ "binop": null, "updateContext": null }, - "start": 30411, - "end": 30412, + "start": 29886, + "end": 29887, "loc": { "start": { - "line": 993, - "column": 84 + "line": 982, + "column": 155 }, "end": { - "line": 993, - "column": 85 + "line": 982, + "column": 156 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -183073,50 +183160,40 @@ "postfix": false, "binop": null }, - "value": "mimetype", - "start": 30413, - "end": 30421, + "start": 29890, + "end": 29891, "loc": { "start": { - "line": 993, - "column": 86 + "line": 983, + "column": 2 }, "end": { - "line": 993, - "column": 94 + "line": 983, + "column": 3 } } }, { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 30422, - "end": 30423, + "type": "CommentBlock", + "value": "*\n * Explicitly ask to perform an export. You have to listen to events to get the content as this function is non blocking and does not have a return type.\n * @param {Array} requestedMimeTypes Requested mime-types. Be sure to ask all the types required by the listeners of exported event.\n ", + "start": 29895, + "end": 30203, "loc": { "start": { - "line": 993, - "column": 95 + "line": 985, + "column": 2 }, "end": { - "line": 993, - "column": 96 + "line": 988, + "column": 5 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -183124,42 +183201,42 @@ "postfix": false, "binop": null }, - "start": 30423, - "end": 30424, + "value": "export_", + "start": 30206, + "end": 30213, "loc": { "start": { - "line": 993, - "column": 96 + "line": 989, + "column": 2 }, "end": { - "line": 993, - "column": 97 + "line": 989, + "column": 9 } } }, { "type": { - "label": ":", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 30425, - "end": 30426, + "start": 30213, + "end": 30214, "loc": { "start": { - "line": 993, - "column": 98 + "line": 989, + "column": 9 }, "end": { - "line": 993, - "column": 99 + "line": 989, + "column": 10 } } }, @@ -183175,17 +183252,17 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 30427, - "end": 30431, + "value": "requestedMimeTypes", + "start": 30214, + "end": 30232, "loc": { "start": { - "line": 993, - "column": 100 + "line": 989, + "column": 10 }, "end": { - "line": 993, - "column": 104 + "line": 989, + "column": 28 } } }, @@ -183201,48 +183278,48 @@ "postfix": false, "binop": null }, - "start": 30431, - "end": 30432, + "start": 30232, + "end": 30233, "loc": { "start": { - "line": 993, - "column": 104 + "line": 989, + "column": 28 }, "end": { - "line": 993, - "column": 105 + "line": 989, + "column": 29 } } }, { "type": { - "label": ";", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 30432, - "end": 30433, + "start": 30234, + "end": 30235, "loc": { "start": { - "line": 993, - "column": 105 + "line": 989, + "column": 30 }, "end": { - "line": 993, - "column": 106 + "line": 989, + "column": 31 } } }, { "type": { - "label": "}", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -183250,41 +183327,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 30436, - "end": 30437, - "loc": { - "start": { - "line": 994, - "column": 2 - }, - "end": { - "line": 994, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Get supported import mime types\n ", - "start": 30441, - "end": 30487, + "value": "if", + "start": 30240, + "end": 30242, "loc": { "start": { - "line": 996, - "column": 2 + "line": 990, + "column": 4 }, "end": { - "line": 998, - "column": 5 + "line": 990, + "column": 6 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -183293,48 +183356,50 @@ "postfix": false, "binop": null }, - "value": "getSupportedImportMimeTypes", - "start": 30490, - "end": 30517, + "start": 30243, + "end": 30244, "loc": { "start": { - "line": 999, - "column": 2 + "line": 990, + "column": 7 }, "end": { - "line": 999, - "column": 29 + "line": 990, + "column": 8 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 30517, - "end": 30518, + "value": "this", + "start": 30244, + "end": 30248, "loc": { "start": { - "line": 999, - "column": 29 + "line": 990, + "column": 8 }, "end": { - "line": 999, - "column": 30 + "line": 990, + "column": 12 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -183342,25 +183407,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 30518, - "end": 30519, + "start": 30248, + "end": 30249, "loc": { "start": { - "line": 999, - "column": 30 + "line": 990, + "column": 12 }, "end": { - "line": 999, - "column": 31 + "line": 990, + "column": 13 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -183369,24 +183435,25 @@ "postfix": false, "binop": null }, - "start": 30520, - "end": 30521, + "value": "canExport", + "start": 30249, + "end": 30258, "loc": { "start": { - "line": 999, - "column": 32 + "line": 990, + "column": 13 }, "end": { - "line": 999, - "column": 33 + "line": 990, + "column": 22 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -183394,23 +183461,22 @@ "postfix": false, "binop": null }, - "value": "launchGetSupportedImportMimeTypes", - "start": 30526, - "end": 30559, + "start": 30258, + "end": 30259, "loc": { "start": { - "line": 1000, - "column": 4 + "line": 990, + "column": 22 }, "end": { - "line": 1000, - "column": 37 + "line": 990, + "column": 23 } } }, { "type": { - "label": "(", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -183420,23 +183486,22 @@ "postfix": false, "binop": null }, - "start": 30559, - "end": 30560, + "start": 30260, + "end": 30261, "loc": { "start": { - "line": 1000, - "column": 37 + "line": 990, + "column": 24 }, "end": { - "line": 1000, - "column": 38 + "line": 990, + "column": 25 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -183444,46 +183509,44 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 30560, - "end": 30564, + "value": "triggerCallbacks", + "start": 30268, + "end": 30284, "loc": { "start": { - "line": 1000, - "column": 38 + "line": 991, + "column": 6 }, "end": { - "line": 1000, - "column": 42 + "line": 991, + "column": 22 } } }, { "type": { - "label": ",", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 30564, - "end": 30565, + "start": 30284, + "end": 30285, "loc": { "start": { - "line": 1000, - "column": 42 + "line": 991, + "column": 22 }, "end": { - "line": 1000, - "column": 43 + "line": 991, + "column": 23 } } }, @@ -183502,23 +183565,23 @@ "updateContext": null }, "value": "this", - "start": 30566, - "end": 30570, + "start": 30285, + "end": 30289, "loc": { "start": { - "line": 1000, - "column": 44 + "line": 991, + "column": 23 }, "end": { - "line": 1000, - "column": 48 + "line": 991, + "column": 27 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -183528,16 +183591,16 @@ "binop": null, "updateContext": null }, - "start": 30570, - "end": 30571, + "start": 30289, + "end": 30290, "loc": { "start": { - "line": 1000, - "column": 48 + "line": 991, + "column": 27 }, "end": { - "line": 1000, - "column": 49 + "line": 991, + "column": 28 } } }, @@ -183553,74 +183616,75 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 30571, - "end": 30576, + "value": "undefined", + "start": 30291, + "end": 30300, "loc": { "start": { - "line": 1000, - "column": 49 + "line": 991, + "column": 29 }, "end": { - "line": 1000, - "column": 54 + "line": 991, + "column": 38 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 30576, - "end": 30577, + "start": 30300, + "end": 30301, "loc": { "start": { - "line": 1000, - "column": 54 + "line": 991, + "column": 38 }, "end": { - "line": 1000, - "column": 55 + "line": 991, + "column": 39 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 30577, - "end": 30578, + "value": "Constants", + "start": 30302, + "end": 30311, "loc": { "start": { - "line": 1000, - "column": 55 + "line": 991, + "column": 40 }, "end": { - "line": 1000, - "column": 56 + "line": 991, + "column": 49 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -183628,34 +183692,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 30581, - "end": 30582, - "loc": { - "start": { - "line": 1001, - "column": 2 - }, - "end": { - "line": 1001, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * pointer events\n * @param {PointerEvents} events\n ", - "start": 30586, - "end": 30650, + "start": 30311, + "end": 30312, "loc": { "start": { - "line": 1003, - "column": 2 + "line": 991, + "column": 49 }, "end": { - "line": 1006, - "column": 5 + "line": 991, + "column": 50 } } }, @@ -183671,42 +183720,43 @@ "postfix": false, "binop": null }, - "value": "pointerEvents", - "start": 30653, - "end": 30666, + "value": "EventType", + "start": 30312, + "end": 30321, "loc": { "start": { - "line": 1007, - "column": 2 + "line": 991, + "column": 50 }, "end": { - "line": 1007, - "column": 15 + "line": 991, + "column": 59 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 30666, - "end": 30667, + "start": 30321, + "end": 30322, "loc": { "start": { - "line": 1007, - "column": 15 + "line": 991, + "column": 59 }, "end": { - "line": 1007, - "column": 16 + "line": 991, + "column": 60 } } }, @@ -183722,17 +183772,17 @@ "postfix": false, "binop": null }, - "value": "events", - "start": 30667, - "end": 30673, + "value": "EXPORT", + "start": 30322, + "end": 30328, "loc": { "start": { - "line": 1007, - "column": 16 + "line": 991, + "column": 60 }, "end": { - "line": 1007, - "column": 22 + "line": 991, + "column": 66 } } }, @@ -183748,41 +183798,42 @@ "postfix": false, "binop": null }, - "start": 30673, - "end": 30674, + "start": 30328, + "end": 30329, "loc": { "start": { - "line": 1007, - "column": 22 + "line": 991, + "column": 66 }, "end": { - "line": 1007, - "column": 23 + "line": 991, + "column": 67 } } }, { "type": { - "label": "{", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 30675, - "end": 30676, + "start": 30329, + "end": 30330, "loc": { "start": { - "line": 1007, - "column": 24 + "line": 991, + "column": 67 }, "end": { - "line": 1007, - "column": 25 + "line": 991, + "column": 68 } } }, @@ -183798,17 +183849,17 @@ "postfix": false, "binop": null }, - "value": "launchPointerEvents", - "start": 30681, - "end": 30700, + "value": "launchExport", + "start": 30337, + "end": 30349, "loc": { "start": { - "line": 1008, - "column": 4 + "line": 992, + "column": 6 }, "end": { - "line": 1008, - "column": 23 + "line": 992, + "column": 18 } } }, @@ -183824,16 +183875,16 @@ "postfix": false, "binop": null }, - "start": 30700, - "end": 30701, + "start": 30349, + "end": 30350, "loc": { "start": { - "line": 1008, - "column": 23 + "line": 992, + "column": 18 }, "end": { - "line": 1008, - "column": 24 + "line": 992, + "column": 19 } } }, @@ -183852,16 +183903,16 @@ "updateContext": null }, "value": "this", - "start": 30701, - "end": 30705, + "start": 30350, + "end": 30354, "loc": { "start": { - "line": 1008, - "column": 24 + "line": 992, + "column": 19 }, "end": { - "line": 1008, - "column": 28 + "line": 992, + "column": 23 } } }, @@ -183878,16 +183929,16 @@ "binop": null, "updateContext": null }, - "start": 30705, - "end": 30706, + "start": 30354, + "end": 30355, "loc": { "start": { - "line": 1008, - "column": 28 + "line": 992, + "column": 23 }, "end": { - "line": 1008, - "column": 29 + "line": 992, + "column": 24 } } }, @@ -183906,16 +183957,16 @@ "updateContext": null }, "value": "this", - "start": 30707, - "end": 30711, + "start": 30356, + "end": 30360, "loc": { "start": { - "line": 1008, - "column": 30 + "line": 992, + "column": 25 }, "end": { - "line": 1008, - "column": 34 + "line": 992, + "column": 29 } } }, @@ -183932,16 +183983,16 @@ "binop": null, "updateContext": null }, - "start": 30711, - "end": 30712, + "start": 30360, + "end": 30361, "loc": { "start": { - "line": 1008, - "column": 34 + "line": 992, + "column": 29 }, "end": { - "line": 1008, - "column": 35 + "line": 992, + "column": 30 } } }, @@ -183958,16 +184009,68 @@ "binop": null }, "value": "model", - "start": 30712, - "end": 30717, + "start": 30361, + "end": 30366, "loc": { "start": { - "line": 1008, + "line": 992, + "column": 30 + }, + "end": { + "line": 992, + "column": 35 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30366, + "end": 30367, + "loc": { + "start": { + "line": 992, "column": 35 }, "end": { - "line": 1008, - "column": 40 + "line": 992, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "requestedMimeTypes", + "start": 30368, + "end": 30386, + "loc": { + "start": { + "line": 992, + "column": 37 + }, + "end": { + "line": 992, + "column": 55 } } }, @@ -183984,16 +184087,16 @@ "binop": null, "updateContext": null }, - "start": 30717, - "end": 30718, + "start": 30386, + "end": 30387, "loc": { "start": { - "line": 1008, - "column": 40 + "line": 992, + "column": 55 }, "end": { - "line": 1008, - "column": 41 + "line": 992, + "column": 56 } } }, @@ -184009,17 +184112,121 @@ "postfix": false, "binop": null }, - "value": "events", - "start": 30719, - "end": 30725, + "value": "Constants", + "start": 30388, + "end": 30397, "loc": { "start": { - "line": 1008, - "column": 42 + "line": 992, + "column": 57 }, "end": { - "line": 1008, - "column": 48 + "line": 992, + "column": 66 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30397, + "end": 30398, + "loc": { + "start": { + "line": 992, + "column": 66 + }, + "end": { + "line": 992, + "column": 67 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Trigger", + "start": 30398, + "end": 30405, + "loc": { + "start": { + "line": 992, + "column": 67 + }, + "end": { + "line": 992, + "column": 74 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30405, + "end": 30406, + "loc": { + "start": { + "line": 992, + "column": 74 + }, + "end": { + "line": 992, + "column": 75 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DEMAND", + "start": 30406, + "end": 30412, + "loc": { + "start": { + "line": 992, + "column": 75 + }, + "end": { + "line": 992, + "column": 81 } } }, @@ -184035,16 +184242,16 @@ "postfix": false, "binop": null }, - "start": 30725, - "end": 30726, + "start": 30412, + "end": 30413, "loc": { "start": { - "line": 1008, - "column": 48 + "line": 992, + "column": 81 }, "end": { - "line": 1008, - "column": 49 + "line": 992, + "column": 82 } } }, @@ -184061,16 +184268,16 @@ "binop": null, "updateContext": null }, - "start": 30726, - "end": 30727, + "start": 30413, + "end": 30414, "loc": { "start": { - "line": 1008, - "column": 49 + "line": 992, + "column": 82 }, "end": { - "line": 1008, - "column": 50 + "line": 992, + "column": 83 } } }, @@ -184086,31 +184293,56 @@ "postfix": false, "binop": null }, - "start": 30730, - "end": 30731, + "start": 30419, + "end": 30420, "loc": { "start": { - "line": 1009, + "line": 993, + "column": 4 + }, + "end": { + "line": 993, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30423, + "end": 30424, + "loc": { + "start": { + "line": 994, "column": 2 }, "end": { - "line": 1009, + "line": 994, "column": 3 } } }, { "type": "CommentBlock", - "value": "*\n * Get current state exports\n * @return {Object}\n ", - "start": 30735, - "end": 30797, + "value": "*\n * Import content.\n * @param {Blob|*} data Data to import\n * @param {String} [mimetype] Mimetype of the data, needed if data is not a Blob\n ", + "start": 30428, + "end": 30582, "loc": { "start": { - "line": 1011, + "line": 996, "column": 2 }, "end": { - "line": 1014, + "line": 1000, "column": 5 } } @@ -184127,17 +184359,42 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 30800, - "end": 30803, + "value": "import_", + "start": 30585, + "end": 30592, "loc": { "start": { - "line": 1015, + "line": 1001, "column": 2 }, "end": { - "line": 1015, - "column": 5 + "line": 1001, + "column": 9 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30592, + "end": 30593, + "loc": { + "start": { + "line": 1001, + "column": 9 + }, + "end": { + "line": 1001, + "column": 10 } } }, @@ -184153,24 +184410,50 @@ "postfix": false, "binop": null }, - "value": "exports", - "start": 30804, - "end": 30811, + "value": "data", + "start": 30593, + "end": 30597, "loc": { "start": { - "line": 1015, - "column": 6 + "line": 1001, + "column": 10 }, "end": { - "line": 1015, - "column": 13 + "line": 1001, + "column": 14 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30597, + "end": 30598, + "loc": { + "start": { + "line": 1001, + "column": 14 + }, + "end": { + "line": 1001, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -184179,16 +184462,17 @@ "postfix": false, "binop": null }, - "start": 30811, - "end": 30812, + "value": "mimetype", + "start": 30599, + "end": 30607, "loc": { "start": { - "line": 1015, - "column": 13 + "line": 1001, + "column": 16 }, "end": { - "line": 1015, - "column": 14 + "line": 1001, + "column": 24 } } }, @@ -184204,16 +184488,16 @@ "postfix": false, "binop": null }, - "start": 30812, - "end": 30813, + "start": 30607, + "end": 30608, "loc": { "start": { - "line": 1015, - "column": 14 + "line": 1001, + "column": 24 }, "end": { - "line": 1015, - "column": 15 + "line": 1001, + "column": 25 } } }, @@ -184229,44 +184513,67 @@ "postfix": false, "binop": null }, - "start": 30814, - "end": 30815, + "start": 30609, + "end": 30610, "loc": { "start": { - "line": 1015, - "column": 16 + "line": 1001, + "column": 26 }, "end": { - "line": 1015, - "column": 17 + "line": 1001, + "column": 27 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 30820, - "end": 30826, + "value": "triggerCallbacks", + "start": 30615, + "end": 30631, "loc": { "start": { - "line": 1016, + "line": 1002, "column": 4 }, "end": { - "line": 1016, - "column": 10 + "line": 1002, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30631, + "end": 30632, + "loc": { + "start": { + "line": 1002, + "column": 20 + }, + "end": { + "line": 1002, + "column": 21 } } }, @@ -184285,16 +184592,120 @@ "updateContext": null }, "value": "this", - "start": 30827, - "end": 30831, + "start": 30632, + "end": 30636, "loc": { "start": { - "line": 1016, - "column": 11 + "line": 1002, + "column": 21 }, "end": { - "line": 1016, - "column": 15 + "line": 1002, + "column": 25 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30636, + "end": 30637, + "loc": { + "start": { + "line": 1002, + "column": 25 + }, + "end": { + "line": 1002, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "undefined", + "start": 30638, + "end": 30647, + "loc": { + "start": { + "line": 1002, + "column": 27 + }, + "end": { + "line": 1002, + "column": 36 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30647, + "end": 30648, + "loc": { + "start": { + "line": 1002, + "column": 36 + }, + "end": { + "line": 1002, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Constants", + "start": 30649, + "end": 30658, + "loc": { + "start": { + "line": 1002, + "column": 38 + }, + "end": { + "line": 1002, + "column": 47 } } }, @@ -184311,16 +184722,16 @@ "binop": null, "updateContext": null }, - "start": 30831, - "end": 30832, + "start": 30658, + "end": 30659, "loc": { "start": { - "line": 1016, - "column": 15 + "line": 1002, + "column": 47 }, "end": { - "line": 1016, - "column": 16 + "line": 1002, + "column": 48 } } }, @@ -184336,23 +184747,205 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 30832, - "end": 30837, + "value": "EventType", + "start": 30659, + "end": 30668, "loc": { "start": { - "line": 1016, + "line": 1002, + "column": 48 + }, + "end": { + "line": 1002, + "column": 57 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30668, + "end": 30669, + "loc": { + "start": { + "line": 1002, + "column": 57 + }, + "end": { + "line": 1002, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "IMPORT", + "start": 30669, + "end": 30675, + "loc": { + "start": { + "line": 1002, + "column": 58 + }, + "end": { + "line": 1002, + "column": 64 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30675, + "end": 30676, + "loc": { + "start": { + "line": 1002, + "column": 64 + }, + "end": { + "line": 1002, + "column": 65 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30676, + "end": 30677, + "loc": { + "start": { + "line": 1002, + "column": 65 + }, + "end": { + "line": 1002, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "launchImport", + "start": 30682, + "end": 30694, + "loc": { + "start": { + "line": 1003, + "column": 4 + }, + "end": { + "line": 1003, + "column": 16 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30694, + "end": 30695, + "loc": { + "start": { + "line": 1003, "column": 16 }, "end": { - "line": 1016, + "line": 1003, + "column": 17 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 30695, + "end": 30699, + "loc": { + "start": { + "line": 1003, + "column": 17 + }, + "end": { + "line": 1003, "column": 21 } } }, { "type": { - "label": "?", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -184363,16 +184956,16 @@ "binop": null, "updateContext": null }, - "start": 30838, - "end": 30839, + "start": 30699, + "end": 30700, "loc": { "start": { - "line": 1016, - "column": 22 + "line": 1003, + "column": 21 }, "end": { - "line": 1016, - "column": 23 + "line": 1003, + "column": 22 } } }, @@ -184391,16 +184984,16 @@ "updateContext": null }, "value": "this", - "start": 30840, - "end": 30844, + "start": 30701, + "end": 30705, "loc": { "start": { - "line": 1016, - "column": 24 + "line": 1003, + "column": 23 }, "end": { - "line": 1016, - "column": 28 + "line": 1003, + "column": 27 } } }, @@ -184417,22 +185010,3729 @@ "binop": null, "updateContext": null }, - "start": 30844, - "end": 30845, + "start": 30705, + "end": 30706, "loc": { "start": { - "line": 1016, + "line": 1003, + "column": 27 + }, + "end": { + "line": 1003, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "model", + "start": 30706, + "end": 30711, + "loc": { + "start": { + "line": 1003, "column": 28 }, "end": { - "line": 1016, - "column": 29 + "line": 1003, + "column": 33 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30711, + "end": 30712, + "loc": { + "start": { + "line": 1003, + "column": 33 + }, + "end": { + "line": 1003, + "column": 34 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 30713, + "end": 30714, + "loc": { + "start": { + "line": 1003, + "column": 35 + }, + "end": { + "line": 1003, + "column": 36 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30714, + "end": 30715, + "loc": { + "start": { + "line": 1003, + "column": 36 + }, + "end": { + "line": 1003, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 30715, + "end": 30719, + "loc": { + "start": { + "line": 1003, + "column": 37 + }, + "end": { + "line": 1003, + "column": 41 + } + } + }, + { + "type": { + "label": "instanceof", + "keyword": "instanceof", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "instanceof", + "start": 30720, + "end": 30730, + "loc": { + "start": { + "line": 1003, + "column": 42 + }, + "end": { + "line": 1003, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Blob", + "start": 30731, + "end": 30735, + "loc": { + "start": { + "line": 1003, + "column": 53 + }, + "end": { + "line": 1003, + "column": 57 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30735, + "end": 30736, + "loc": { + "start": { + "line": 1003, + "column": 57 + }, + "end": { + "line": 1003, + "column": 58 + } + } + }, + { + "type": { + "label": "?", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30737, + "end": 30738, + "loc": { + "start": { + "line": 1003, + "column": 59 + }, + "end": { + "line": 1003, + "column": 60 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 30739, + "end": 30742, + "loc": { + "start": { + "line": 1003, + "column": 61 + }, + "end": { + "line": 1003, + "column": 64 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Blob", + "start": 30743, + "end": 30747, + "loc": { + "start": { + "line": 1003, + "column": 65 + }, + "end": { + "line": 1003, + "column": 69 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30747, + "end": 30748, + "loc": { + "start": { + "line": 1003, + "column": 69 + }, + "end": { + "line": 1003, + "column": 70 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30748, + "end": 30749, + "loc": { + "start": { + "line": 1003, + "column": 70 + }, + "end": { + "line": 1003, + "column": 71 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 30749, + "end": 30753, + "loc": { + "start": { + "line": 1003, + "column": 71 + }, + "end": { + "line": 1003, + "column": 75 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30753, + "end": 30754, + "loc": { + "start": { + "line": 1003, + "column": 75 + }, + "end": { + "line": 1003, + "column": 76 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30754, + "end": 30755, + "loc": { + "start": { + "line": 1003, + "column": 76 + }, + "end": { + "line": 1003, + "column": 77 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30756, + "end": 30757, + "loc": { + "start": { + "line": 1003, + "column": 78 + }, + "end": { + "line": 1003, + "column": 79 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "type", + "start": 30758, + "end": 30762, + "loc": { + "start": { + "line": 1003, + "column": 80 + }, + "end": { + "line": 1003, + "column": 84 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30762, + "end": 30763, + "loc": { + "start": { + "line": 1003, + "column": 84 + }, + "end": { + "line": 1003, + "column": 85 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "mimetype", + "start": 30764, + "end": 30772, + "loc": { + "start": { + "line": 1003, + "column": 86 + }, + "end": { + "line": 1003, + "column": 94 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30773, + "end": 30774, + "loc": { + "start": { + "line": 1003, + "column": 95 + }, + "end": { + "line": 1003, + "column": 96 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30774, + "end": 30775, + "loc": { + "start": { + "line": 1003, + "column": 96 + }, + "end": { + "line": 1003, + "column": 97 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30776, + "end": 30777, + "loc": { + "start": { + "line": 1003, + "column": 98 + }, + "end": { + "line": 1003, + "column": 99 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 30778, + "end": 30782, + "loc": { + "start": { + "line": 1003, + "column": 100 + }, + "end": { + "line": 1003, + "column": 104 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30782, + "end": 30783, + "loc": { + "start": { + "line": 1003, + "column": 104 + }, + "end": { + "line": 1003, + "column": 105 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30783, + "end": 30784, + "loc": { + "start": { + "line": 1003, + "column": 105 + }, + "end": { + "line": 1003, + "column": 106 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30787, + "end": 30788, + "loc": { + "start": { + "line": 1004, + "column": 2 + }, + "end": { + "line": 1004, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get supported import mime types\n ", + "start": 30792, + "end": 30838, + "loc": { + "start": { + "line": 1006, + "column": 2 + }, + "end": { + "line": 1008, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getSupportedImportMimeTypes", + "start": 30841, + "end": 30868, + "loc": { + "start": { + "line": 1009, + "column": 2 + }, + "end": { + "line": 1009, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30868, + "end": 30869, + "loc": { + "start": { + "line": 1009, + "column": 29 + }, + "end": { + "line": 1009, + "column": 30 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30869, + "end": 30870, + "loc": { + "start": { + "line": 1009, + "column": 30 + }, + "end": { + "line": 1009, + "column": 31 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30871, + "end": 30872, + "loc": { + "start": { + "line": 1009, + "column": 32 + }, + "end": { + "line": 1009, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "launchGetSupportedImportMimeTypes", + "start": 30877, + "end": 30910, + "loc": { + "start": { + "line": 1010, + "column": 4 + }, + "end": { + "line": 1010, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30910, + "end": 30911, + "loc": { + "start": { + "line": 1010, + "column": 37 + }, + "end": { + "line": 1010, + "column": 38 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 30911, + "end": 30915, + "loc": { + "start": { + "line": 1010, + "column": 38 + }, + "end": { + "line": 1010, + "column": 42 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30915, + "end": 30916, + "loc": { + "start": { + "line": 1010, + "column": 42 + }, + "end": { + "line": 1010, + "column": 43 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 30917, + "end": 30921, + "loc": { + "start": { + "line": 1010, + "column": 44 + }, + "end": { + "line": 1010, + "column": 48 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30921, + "end": 30922, + "loc": { + "start": { + "line": 1010, + "column": 48 + }, + "end": { + "line": 1010, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "model", + "start": 30922, + "end": 30927, + "loc": { + "start": { + "line": 1010, + "column": 49 + }, + "end": { + "line": 1010, + "column": 54 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30927, + "end": 30928, + "loc": { + "start": { + "line": 1010, + "column": 54 + }, + "end": { + "line": 1010, + "column": 55 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 30928, + "end": 30929, + "loc": { + "start": { + "line": 1010, + "column": 55 + }, + "end": { + "line": 1010, + "column": 56 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30932, + "end": 30933, + "loc": { + "start": { + "line": 1011, + "column": 2 + }, + "end": { + "line": 1011, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * pointer events\n * @param {PointerEvents} events\n ", + "start": 30937, + "end": 31001, + "loc": { + "start": { + "line": 1013, + "column": 2 + }, + "end": { + "line": 1016, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pointerEvents", + "start": 31004, + "end": 31017, + "loc": { + "start": { + "line": 1017, + "column": 2 + }, + "end": { + "line": 1017, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31017, + "end": 31018, + "loc": { + "start": { + "line": 1017, + "column": 15 + }, + "end": { + "line": 1017, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "events", + "start": 31018, + "end": 31024, + "loc": { + "start": { + "line": 1017, + "column": 16 + }, + "end": { + "line": 1017, + "column": 22 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31024, + "end": 31025, + "loc": { + "start": { + "line": 1017, + "column": 22 + }, + "end": { + "line": 1017, + "column": 23 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31026, + "end": 31027, + "loc": { + "start": { + "line": 1017, + "column": 24 + }, + "end": { + "line": 1017, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "launchPointerEvents", + "start": 31032, + "end": 31051, + "loc": { + "start": { + "line": 1018, + "column": 4 + }, + "end": { + "line": 1018, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31051, + "end": 31052, + "loc": { + "start": { + "line": 1018, + "column": 23 + }, + "end": { + "line": 1018, + "column": 24 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 31052, + "end": 31056, + "loc": { + "start": { + "line": 1018, + "column": 24 + }, + "end": { + "line": 1018, + "column": 28 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31056, + "end": 31057, + "loc": { + "start": { + "line": 1018, + "column": 28 + }, + "end": { + "line": 1018, + "column": 29 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 31058, + "end": 31062, + "loc": { + "start": { + "line": 1018, + "column": 30 + }, + "end": { + "line": 1018, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31062, + "end": 31063, + "loc": { + "start": { + "line": 1018, + "column": 34 + }, + "end": { + "line": 1018, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "model", + "start": 31063, + "end": 31068, + "loc": { + "start": { + "line": 1018, + "column": 35 + }, + "end": { + "line": 1018, + "column": 40 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31068, + "end": 31069, + "loc": { + "start": { + "line": 1018, + "column": 40 + }, + "end": { + "line": 1018, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "events", + "start": 31070, + "end": 31076, + "loc": { + "start": { + "line": 1018, + "column": 42 + }, + "end": { + "line": 1018, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31076, + "end": 31077, + "loc": { + "start": { + "line": 1018, + "column": 48 + }, + "end": { + "line": 1018, + "column": 49 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31077, + "end": 31078, + "loc": { + "start": { + "line": 1018, + "column": 49 + }, + "end": { + "line": 1018, + "column": 50 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31081, + "end": 31082, + "loc": { + "start": { + "line": 1019, + "column": 2 + }, + "end": { + "line": 1019, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Get current state exports\n * @return {Object}\n ", + "start": 31086, + "end": 31148, + "loc": { + "start": { + "line": 1021, + "column": 2 + }, + "end": { + "line": 1024, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 31151, + "end": 31154, + "loc": { + "start": { + "line": 1025, + "column": 2 + }, + "end": { + "line": 1025, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "exports", + "start": 31155, + "end": 31162, + "loc": { + "start": { + "line": 1025, + "column": 6 + }, + "end": { + "line": 1025, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31162, + "end": 31163, + "loc": { + "start": { + "line": 1025, + "column": 13 + }, + "end": { + "line": 1025, + "column": 14 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31163, + "end": 31164, + "loc": { + "start": { + "line": 1025, + "column": 14 + }, + "end": { + "line": 1025, + "column": 15 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31165, + "end": 31166, + "loc": { + "start": { + "line": 1025, + "column": 16 + }, + "end": { + "line": 1025, + "column": 17 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 31171, + "end": 31177, + "loc": { + "start": { + "line": 1026, + "column": 4 + }, + "end": { + "line": 1026, + "column": 10 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 31178, + "end": 31182, + "loc": { + "start": { + "line": 1026, + "column": 11 + }, + "end": { + "line": 1026, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31182, + "end": 31183, + "loc": { + "start": { + "line": 1026, + "column": 15 + }, + "end": { + "line": 1026, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "model", + "start": 31183, + "end": 31188, + "loc": { + "start": { + "line": 1026, + "column": 16 + }, + "end": { + "line": 1026, + "column": 21 + } + } + }, + { + "type": { + "label": "?", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31189, + "end": 31190, + "loc": { + "start": { + "line": 1026, + "column": 22 + }, + "end": { + "line": 1026, + "column": 23 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 31191, + "end": 31195, + "loc": { + "start": { + "line": 1026, + "column": 24 + }, + "end": { + "line": 1026, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31195, + "end": 31196, + "loc": { + "start": { + "line": 1026, + "column": 28 + }, + "end": { + "line": 1026, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "model", + "start": 31196, + "end": 31201, + "loc": { + "start": { + "line": 1026, + "column": 29 + }, + "end": { + "line": 1026, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31201, + "end": 31202, + "loc": { + "start": { + "line": 1026, + "column": 34 + }, + "end": { + "line": 1026, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "exports", + "start": 31202, + "end": 31209, + "loc": { + "start": { + "line": 1026, + "column": 35 + }, + "end": { + "line": 1026, + "column": 42 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31210, + "end": 31211, + "loc": { + "start": { + "line": 1026, + "column": 43 + }, + "end": { + "line": 1026, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "undefined", + "start": 31212, + "end": 31221, + "loc": { + "start": { + "line": 1026, + "column": 45 + }, + "end": { + "line": 1026, + "column": 54 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31221, + "end": 31222, + "loc": { + "start": { + "line": 1026, + "column": 54 + }, + "end": { + "line": 1026, + "column": 55 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31225, + "end": 31226, + "loc": { + "start": { + "line": 1027, + "column": 2 + }, + "end": { + "line": 1027, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 31230, + "end": 31233, + "loc": { + "start": { + "line": 1029, + "column": 2 + }, + "end": { + "line": 1029, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "supportedImportMimeTypes", + "start": 31234, + "end": 31258, + "loc": { + "start": { + "line": 1029, + "column": 6 + }, + "end": { + "line": 1029, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31258, + "end": 31259, + "loc": { + "start": { + "line": 1029, + "column": 30 + }, + "end": { + "line": 1029, + "column": 31 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31259, + "end": 31260, + "loc": { + "start": { + "line": 1029, + "column": 31 + }, + "end": { + "line": 1029, + "column": 32 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31261, + "end": 31262, + "loc": { + "start": { + "line": 1029, + "column": 33 + }, + "end": { + "line": 1029, + "column": 34 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 31267, + "end": 31273, + "loc": { + "start": { + "line": 1030, + "column": 4 + }, + "end": { + "line": 1030, + "column": 10 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 31274, + "end": 31278, + "loc": { + "start": { + "line": 1030, + "column": 11 + }, + "end": { + "line": 1030, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31278, + "end": 31279, + "loc": { + "start": { + "line": 1030, + "column": 15 + }, + "end": { + "line": 1030, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "recognizerContext", + "start": 31279, + "end": 31296, + "loc": { + "start": { + "line": 1030, + "column": 16 + }, + "end": { + "line": 1030, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31296, + "end": 31297, + "loc": { + "start": { + "line": 1030, + "column": 33 + }, + "end": { + "line": 1030, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "supportedImportMimeTypes", + "start": 31297, + "end": 31321, + "loc": { + "start": { + "line": 1030, + "column": 34 + }, + "end": { + "line": 1030, + "column": 58 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31321, + "end": 31322, + "loc": { + "start": { + "line": 1030, + "column": 58 + }, + "end": { + "line": 1030, + "column": 59 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31325, + "end": 31326, + "loc": { + "start": { + "line": 1031, + "column": 2 + }, + "end": { + "line": 1031, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Function to call when the dom element link to the current ink paper has been resize.\n ", + "start": 31330, + "end": 31429, + "loc": { + "start": { + "line": 1033, + "column": 2 + }, + "end": { + "line": 1035, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "resize", + "start": 31432, + "end": 31438, + "loc": { + "start": { + "line": 1036, + "column": 2 + }, + "end": { + "line": 1036, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31438, + "end": 31439, + "loc": { + "start": { + "line": 1036, + "column": 8 + }, + "end": { + "line": 1036, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31439, + "end": 31440, + "loc": { + "start": { + "line": 1036, + "column": 9 + }, + "end": { + "line": 1036, + "column": 10 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31441, + "end": 31442, + "loc": { + "start": { + "line": 1036, + "column": 11 + }, + "end": { + "line": 1036, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "logger", + "start": 31447, + "end": 31453, + "loc": { + "start": { + "line": 1037, + "column": 4 + }, + "end": { + "line": 1037, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31453, + "end": 31454, + "loc": { + "start": { + "line": 1037, + "column": 10 + }, + "end": { + "line": 1037, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "debug", + "start": 31454, + "end": 31459, + "loc": { + "start": { + "line": 1037, + "column": 11 + }, + "end": { + "line": 1037, + "column": 16 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31459, + "end": 31460, + "loc": { + "start": { + "line": 1037, + "column": 16 + }, + "end": { + "line": 1037, + "column": 17 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Resizing editor", + "start": 31460, + "end": 31477, + "loc": { + "start": { + "line": 1037, + "column": 17 + }, + "end": { + "line": 1037, + "column": 34 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31477, + "end": 31478, + "loc": { + "start": { + "line": 1037, + "column": 34 + }, + "end": { + "line": 1037, + "column": 35 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31478, + "end": 31479, + "loc": { + "start": { + "line": 1037, + "column": 35 + }, + "end": { + "line": 1037, + "column": 36 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 31484, + "end": 31488, + "loc": { + "start": { + "line": 1038, + "column": 4 + }, + "end": { + "line": 1038, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31488, + "end": 31489, + "loc": { + "start": { + "line": 1038, + "column": 8 + }, + "end": { + "line": 1038, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "renderer", + "start": 31489, + "end": 31497, + "loc": { + "start": { + "line": 1038, + "column": 9 + }, + "end": { + "line": 1038, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31497, + "end": 31498, + "loc": { + "start": { + "line": 1038, + "column": 17 + }, + "end": { + "line": 1038, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "resize", + "start": 31498, + "end": 31504, + "loc": { + "start": { + "line": 1038, + "column": 18 + }, + "end": { + "line": 1038, + "column": 24 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31504, + "end": 31505, + "loc": { + "start": { + "line": 1038, + "column": 24 + }, + "end": { + "line": 1038, + "column": 25 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 31505, + "end": 31509, + "loc": { + "start": { + "line": 1038, + "column": 25 + }, + "end": { + "line": 1038, + "column": 29 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31509, + "end": 31510, + "loc": { + "start": { + "line": 1038, + "column": 29 + }, + "end": { + "line": 1038, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rendererContext", + "start": 31510, + "end": 31525, + "loc": { + "start": { + "line": 1038, + "column": 30 + }, + "end": { + "line": 1038, + "column": 45 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31525, + "end": 31526, + "loc": { + "start": { + "line": 1038, + "column": 45 + }, + "end": { + "line": 1038, + "column": 46 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 31527, + "end": 31531, + "loc": { + "start": { + "line": 1038, + "column": 47 + }, + "end": { + "line": 1038, + "column": 51 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31531, + "end": 31532, + "loc": { + "start": { + "line": 1038, + "column": 51 + }, + "end": { + "line": 1038, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "model", + "start": 31532, + "end": 31537, + "loc": { + "start": { + "line": 1038, + "column": 52 + }, + "end": { + "line": 1038, + "column": 57 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31537, + "end": 31538, + "loc": { + "start": { + "line": 1038, + "column": 57 + }, + "end": { + "line": 1038, + "column": 58 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 31539, + "end": 31543, + "loc": { + "start": { + "line": 1038, + "column": 59 + }, + "end": { + "line": 1038, + "column": 63 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31543, + "end": 31544, + "loc": { + "start": { + "line": 1038, + "column": 63 + }, + "end": { + "line": 1038, + "column": 64 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stroker", + "start": 31544, + "end": 31551, + "loc": { + "start": { + "line": 1038, + "column": 64 + }, + "end": { + "line": 1038, + "column": 71 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31551, + "end": 31552, + "loc": { + "start": { + "line": 1038, + "column": 71 + }, + "end": { + "line": 1038, + "column": 72 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 31553, + "end": 31557, + "loc": { + "start": { + "line": 1038, + "column": 73 + }, + "end": { + "line": 1038, + "column": 77 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31557, + "end": 31558, + "loc": { + "start": { + "line": 1038, + "column": 77 + }, + "end": { + "line": 1038, + "column": 78 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "configuration", + "start": 31558, + "end": 31571, + "loc": { + "start": { + "line": 1038, + "column": 78 + }, + "end": { + "line": 1038, + "column": 91 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31571, + "end": 31572, + "loc": { + "start": { + "line": 1038, + "column": 91 + }, + "end": { + "line": 1038, + "column": 92 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "renderingParams", + "start": 31572, + "end": 31587, + "loc": { + "start": { + "line": 1038, + "column": 92 + }, + "end": { + "line": 1038, + "column": 107 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31587, + "end": 31588, + "loc": { + "start": { + "line": 1038, + "column": 107 + }, + "end": { + "line": 1038, + "column": 108 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "minHeight", + "start": 31588, + "end": 31597, + "loc": { + "start": { + "line": 1038, + "column": 108 + }, + "end": { + "line": 1038, + "column": 117 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31597, + "end": 31598, + "loc": { + "start": { + "line": 1038, + "column": 117 + }, + "end": { + "line": 1038, + "column": 118 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 31599, + "end": 31603, + "loc": { + "start": { + "line": 1038, + "column": 119 + }, + "end": { + "line": 1038, + "column": 123 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31603, + "end": 31604, + "loc": { + "start": { + "line": 1038, + "column": 123 + }, + "end": { + "line": 1038, + "column": 124 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "configuration", + "start": 31604, + "end": 31617, + "loc": { + "start": { + "line": 1038, + "column": 124 + }, + "end": { + "line": 1038, + "column": 137 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31617, + "end": 31618, + "loc": { + "start": { + "line": 1038, + "column": 137 + }, + "end": { + "line": 1038, + "column": 138 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "renderingParams", + "start": 31618, + "end": 31633, + "loc": { + "start": { + "line": 1038, + "column": 138 + }, + "end": { + "line": 1038, + "column": 153 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31633, + "end": 31634, + "loc": { + "start": { + "line": 1038, + "column": 153 + }, + "end": { + "line": 1038, + "column": 154 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "minWidth", + "start": 31634, + "end": 31642, + "loc": { + "start": { + "line": 1038, + "column": 154 + }, + "end": { + "line": 1038, + "column": 162 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31642, + "end": 31643, + "loc": { + "start": { + "line": 1038, + "column": 162 + }, + "end": { + "line": 1038, + "column": 163 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31643, + "end": 31644, + "loc": { + "start": { + "line": 1038, + "column": 163 + }, + "end": { + "line": 1038, + "column": 164 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "launchResize", + "start": 31649, + "end": 31661, + "loc": { + "start": { + "line": 1039, + "column": 4 + }, + "end": { + "line": 1039, + "column": 16 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 31661, + "end": 31662, + "loc": { + "start": { + "line": 1039, + "column": 16 + }, + "end": { + "line": 1039, + "column": 17 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 31662, + "end": 31666, + "loc": { + "start": { + "line": 1039, + "column": 17 + }, + "end": { + "line": 1039, + "column": 21 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 31666, + "end": 31667, + "loc": { + "start": { + "line": 1039, + "column": 21 + }, + "end": { + "line": 1039, + "column": 22 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -184440,19 +188740,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "model", - "start": 30845, - "end": 30850, + "value": "this", + "start": 31668, + "end": 31672, "loc": { "start": { - "line": 1016, - "column": 29 + "line": 1039, + "column": 23 }, "end": { - "line": 1016, - "column": 34 + "line": 1039, + "column": 27 } } }, @@ -184469,16 +188770,16 @@ "binop": null, "updateContext": null }, - "start": 30850, - "end": 30851, + "start": 31672, + "end": 31673, "loc": { "start": { - "line": 1016, - "column": 34 + "line": 1039, + "column": 27 }, "end": { - "line": 1016, - "column": 35 + "line": 1039, + "column": 28 } } }, @@ -184494,51 +188795,25 @@ "postfix": false, "binop": null }, - "value": "exports", - "start": 30851, - "end": 30858, - "loc": { - "start": { - "line": 1016, - "column": 35 - }, - "end": { - "line": 1016, - "column": 42 - } - } - }, - { - "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 30859, - "end": 30860, + "value": "model", + "start": 31673, + "end": 31678, "loc": { "start": { - "line": 1016, - "column": 43 + "line": 1039, + "column": 28 }, "end": { - "line": 1016, - "column": 44 + "line": 1039, + "column": 33 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -184546,17 +188821,16 @@ "postfix": false, "binop": null }, - "value": "undefined", - "start": 30861, - "end": 30870, + "start": 31678, + "end": 31679, "loc": { "start": { - "line": 1016, - "column": 45 + "line": 1039, + "column": 33 }, "end": { - "line": 1016, - "column": 54 + "line": 1039, + "column": 34 } } }, @@ -184573,16 +188847,16 @@ "binop": null, "updateContext": null }, - "start": 30870, - "end": 30871, + "start": 31679, + "end": 31680, "loc": { "start": { - "line": 1016, - "column": 54 + "line": 1039, + "column": 34 }, "end": { - "line": 1016, - "column": 55 + "line": 1039, + "column": 35 } } }, @@ -184598,19 +188872,35 @@ "postfix": false, "binop": null }, - "start": 30874, - "end": 30875, + "start": 31683, + "end": 31684, "loc": { "start": { - "line": 1017, + "line": 1040, "column": 2 }, "end": { - "line": 1017, + "line": 1040, "column": 3 } } }, + { + "type": "CommentBlock", + "value": "*\n * Set the theme (font family, font size and line height) depending on the language\n * @param lang\n ", + "start": 31688, + "end": 31800, + "loc": { + "start": { + "line": 1042, + "column": 2 + }, + "end": { + "line": 1045, + "column": 5 + } + } + }, { "type": { "label": "name", @@ -184623,24 +188913,24 @@ "postfix": false, "binop": null }, - "value": "get", - "start": 30879, - "end": 30882, + "value": "setThemeForFont", + "start": 31803, + "end": 31818, "loc": { "start": { - "line": 1019, + "line": 1046, "column": 2 }, "end": { - "line": 1019, - "column": 5 + "line": 1046, + "column": 17 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -184649,24 +188939,23 @@ "postfix": false, "binop": null }, - "value": "supportedImportMimeTypes", - "start": 30883, - "end": 30907, + "start": 31818, + "end": 31819, "loc": { "start": { - "line": 1019, - "column": 6 + "line": 1046, + "column": 17 }, "end": { - "line": 1019, - "column": 30 + "line": 1046, + "column": 18 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -184675,16 +188964,17 @@ "postfix": false, "binop": null }, - "start": 30907, - "end": 30908, + "value": "lang", + "start": 31819, + "end": 31823, "loc": { "start": { - "line": 1019, - "column": 30 + "line": 1046, + "column": 18 }, "end": { - "line": 1019, - "column": 31 + "line": 1046, + "column": 22 } } }, @@ -184700,16 +188990,16 @@ "postfix": false, "binop": null }, - "start": 30908, - "end": 30909, + "start": 31823, + "end": 31824, "loc": { "start": { - "line": 1019, - "column": 31 + "line": 1046, + "column": 22 }, "end": { - "line": 1019, - "column": 32 + "line": 1046, + "column": 23 } } }, @@ -184725,24 +189015,24 @@ "postfix": false, "binop": null }, - "start": 30910, - "end": 30911, + "start": 31825, + "end": 31826, "loc": { "start": { - "line": 1019, - "column": 33 + "line": 1046, + "column": 24 }, "end": { - "line": 1019, - "column": 34 + "line": 1046, + "column": 25 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, + "label": "const", + "keyword": "const", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -184752,24 +189042,23 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 30916, - "end": 30922, + "value": "const", + "start": 31831, + "end": 31836, "loc": { "start": { - "line": 1020, + "line": 1047, "column": 4 }, "end": { - "line": 1020, - "column": 10 + "line": 1047, + "column": 9 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -184777,98 +189066,73 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 30923, - "end": 30927, + "value": "defaultLang", + "start": 31837, + "end": 31848, "loc": { "start": { - "line": 1020, - "column": 11 + "line": 1047, + "column": 10 }, "end": { - "line": 1020, - "column": 15 + "line": 1047, + "column": 21 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 30927, - "end": 30928, + "value": "=", + "start": 31849, + "end": 31850, "loc": { "start": { - "line": 1020, - "column": 15 + "line": 1047, + "column": 22 }, "end": { - "line": 1020, - "column": 16 + "line": 1047, + "column": 23 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "prefix", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "recognizerContext", - "start": 30928, - "end": 30945, - "loc": { - "start": { - "line": 1020, - "column": 16 - }, - "end": { - "line": 1020, - "column": 33 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "start": 30945, - "end": 30946, + "value": "!", + "start": 31851, + "end": 31852, "loc": { "start": { - "line": 1020, - "column": 33 + "line": 1047, + "column": 24 }, "end": { - "line": 1020, - "column": 34 + "line": 1047, + "column": 25 } } }, @@ -184884,24 +189148,24 @@ "postfix": false, "binop": null }, - "value": "supportedImportMimeTypes", - "start": 30946, - "end": 30970, + "value": "Object", + "start": 31852, + "end": 31858, "loc": { "start": { - "line": 1020, - "column": 34 + "line": 1047, + "column": 25 }, "end": { - "line": 1020, - "column": 58 + "line": 1047, + "column": 31 } } }, { "type": { - "label": ";", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -184911,24 +189175,24 @@ "binop": null, "updateContext": null }, - "start": 30970, - "end": 30971, + "start": 31858, + "end": 31859, "loc": { "start": { - "line": 1020, - "column": 58 + "line": 1047, + "column": 31 }, "end": { - "line": 1020, - "column": 59 + "line": 1047, + "column": 32 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -184936,39 +189200,24 @@ "postfix": false, "binop": null }, - "start": 30974, - "end": 30975, - "loc": { - "start": { - "line": 1021, - "column": 2 - }, - "end": { - "line": 1021, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Function to call when the dom element link to the current ink paper has been resize.\n ", - "start": 30979, - "end": 31078, + "value": "keys", + "start": 31859, + "end": 31863, "loc": { "start": { - "line": 1023, - "column": 2 + "line": 1047, + "column": 32 }, "end": { - "line": 1025, - "column": 5 + "line": 1047, + "column": 36 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -184977,24 +189226,23 @@ "postfix": false, "binop": null }, - "value": "resize", - "start": 31081, - "end": 31087, + "start": 31863, + "end": 31864, "loc": { "start": { - "line": 1026, - "column": 2 + "line": 1047, + "column": 36 }, "end": { - "line": 1026, - "column": 8 + "line": 1047, + "column": 37 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -185003,22 +189251,23 @@ "postfix": false, "binop": null }, - "start": 31087, - "end": 31088, + "value": "Constants", + "start": 31864, + "end": 31873, "loc": { "start": { - "line": 1026, - "column": 8 + "line": 1047, + "column": 37 }, "end": { - "line": 1026, - "column": 9 + "line": 1047, + "column": 46 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -185026,25 +189275,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 31088, - "end": 31089, + "start": 31873, + "end": 31874, "loc": { "start": { - "line": 1026, - "column": 9 + "line": 1047, + "column": 46 }, "end": { - "line": 1026, - "column": 10 + "line": 1047, + "column": 47 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -185053,24 +189303,25 @@ "postfix": false, "binop": null }, - "start": 31090, - "end": 31091, + "value": "Languages", + "start": 31874, + "end": 31883, "loc": { "start": { - "line": 1026, - "column": 11 + "line": 1047, + "column": 47 }, "end": { - "line": 1026, - "column": 12 + "line": 1047, + "column": 56 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -185078,17 +189329,16 @@ "postfix": false, "binop": null }, - "value": "logger", - "start": 31096, - "end": 31102, + "start": 31883, + "end": 31884, "loc": { "start": { - "line": 1027, - "column": 4 + "line": 1047, + "column": 56 }, "end": { - "line": 1027, - "column": 10 + "line": 1047, + "column": 57 } } }, @@ -185105,16 +189355,16 @@ "binop": null, "updateContext": null }, - "start": 31102, - "end": 31103, + "start": 31884, + "end": 31885, "loc": { "start": { - "line": 1027, - "column": 10 + "line": 1047, + "column": 57 }, "end": { - "line": 1027, - "column": 11 + "line": 1047, + "column": 58 } } }, @@ -185130,17 +189380,17 @@ "postfix": false, "binop": null }, - "value": "debug", - "start": 31103, - "end": 31108, + "value": "includes", + "start": 31885, + "end": 31893, "loc": { "start": { - "line": 1027, - "column": 11 + "line": 1047, + "column": 58 }, "end": { - "line": 1027, - "column": 16 + "line": 1047, + "column": 66 } } }, @@ -185156,22 +189406,22 @@ "postfix": false, "binop": null }, - "start": 31108, - "end": 31109, + "start": 31893, + "end": 31894, "loc": { "start": { - "line": 1027, - "column": 16 + "line": 1047, + "column": 66 }, "end": { - "line": 1027, - "column": 17 + "line": 1047, + "column": 67 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -185179,20 +189429,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "Resizing editor", - "start": 31109, - "end": 31126, + "value": "lang", + "start": 31894, + "end": 31898, "loc": { "start": { - "line": 1027, - "column": 17 + "line": 1047, + "column": 67 }, "end": { - "line": 1027, - "column": 34 + "line": 1047, + "column": 71 } } }, @@ -185208,16 +189457,16 @@ "postfix": false, "binop": null }, - "start": 31126, - "end": 31127, + "start": 31898, + "end": 31899, "loc": { "start": { - "line": 1027, - "column": 34 + "line": 1047, + "column": 71 }, "end": { - "line": 1027, - "column": 35 + "line": 1047, + "column": 72 } } }, @@ -185234,25 +189483,25 @@ "binop": null, "updateContext": null }, - "start": 31127, - "end": 31128, + "start": 31899, + "end": 31900, "loc": { "start": { - "line": 1027, - "column": 35 + "line": 1047, + "column": 72 }, "end": { - "line": 1027, - "column": 36 + "line": 1047, + "column": 73 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "const", + "keyword": "const", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -185261,155 +189510,158 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 31133, - "end": 31137, + "value": "const", + "start": 31905, + "end": 31910, "loc": { "start": { - "line": 1028, + "line": 1048, "column": 4 }, "end": { - "line": 1028, - "column": 8 + "line": 1048, + "column": 9 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 31137, - "end": 31138, + "value": "armenian", + "start": 31911, + "end": 31919, "loc": { "start": { - "line": 1028, - "column": 8 + "line": 1048, + "column": 10 }, "end": { - "line": 1028, - "column": 9 + "line": 1048, + "column": 18 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "renderer", - "start": 31138, - "end": 31146, + "value": "=", + "start": 31920, + "end": 31921, "loc": { "start": { - "line": 1028, - "column": 9 + "line": 1048, + "column": 19 }, "end": { - "line": 1028, - "column": 17 + "line": 1048, + "column": 20 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 31146, - "end": 31147, + "value": "lang", + "start": 31922, + "end": 31926, "loc": { "start": { - "line": 1028, - "column": 17 + "line": 1048, + "column": 21 }, "end": { - "line": 1028, - "column": 18 + "line": 1048, + "column": 25 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 6, + "updateContext": null }, - "value": "resize", - "start": 31147, - "end": 31153, + "value": "===", + "start": 31927, + "end": 31930, "loc": { "start": { - "line": 1028, - "column": 18 + "line": 1048, + "column": 26 }, "end": { - "line": 1028, - "column": 24 + "line": 1048, + "column": 29 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 31153, - "end": 31154, + "value": "hy_AM", + "start": 31931, + "end": 31938, "loc": { "start": { - "line": 1028, - "column": 24 + "line": 1048, + "column": 30 }, "end": { - "line": 1028, - "column": 25 + "line": 1048, + "column": 37 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -185418,23 +189670,23 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 31154, - "end": 31158, + "start": 31938, + "end": 31939, "loc": { "start": { - "line": 1028, - "column": 25 + "line": 1048, + "column": 37 }, "end": { - "line": 1028, - "column": 29 + "line": 1048, + "column": 38 } } }, { "type": { - "label": ".", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -185445,16 +189697,17 @@ "binop": null, "updateContext": null }, - "start": 31158, - "end": 31159, + "value": "const", + "start": 31944, + "end": 31949, "loc": { "start": { - "line": 1028, - "column": 29 + "line": 1049, + "column": 4 }, "end": { - "line": 1028, - "column": 30 + "line": 1049, + "column": 9 } } }, @@ -185470,50 +189723,50 @@ "postfix": false, "binop": null }, - "value": "rendererContext", - "start": 31159, - "end": 31174, + "value": "fontFamily", + "start": 31950, + "end": 31960, "loc": { "start": { - "line": 1028, - "column": 30 + "line": 1049, + "column": 10 }, "end": { - "line": 1028, - "column": 45 + "line": 1049, + "column": 20 } } }, { "type": { - "label": ",", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 31174, - "end": 31175, + "value": "=", + "start": 31961, + "end": 31962, "loc": { "start": { - "line": 1028, - "column": 45 + "line": 1049, + "column": 21 }, "end": { - "line": 1028, - "column": 46 + "line": 1049, + "column": 22 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -185521,46 +189774,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 31176, - "end": 31180, + "value": "defaultLang", + "start": 31963, + "end": 31974, "loc": { "start": { - "line": 1028, - "column": 47 + "line": 1049, + "column": 23 }, "end": { - "line": 1028, - "column": 51 + "line": 1049, + "column": 34 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "||", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 1, "updateContext": null }, - "start": 31180, - "end": 31181, + "value": "||", + "start": 31975, + "end": 31977, "loc": { "start": { - "line": 1028, - "column": 51 + "line": 1049, + "column": 35 }, "end": { - "line": 1028, - "column": 52 + "line": 1049, + "column": 37 } } }, @@ -185576,23 +189829,23 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 31181, - "end": 31186, + "value": "armenian", + "start": 31978, + "end": 31986, "loc": { "start": { - "line": 1028, - "column": 52 + "line": 1049, + "column": 38 }, "end": { - "line": 1028, - "column": 57 + "line": 1049, + "column": 46 } } }, { "type": { - "label": ",", + "label": "?", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -185603,23 +189856,22 @@ "binop": null, "updateContext": null }, - "start": 31186, - "end": 31187, + "start": 31987, + "end": 31988, "loc": { "start": { - "line": 1028, - "column": 57 + "line": 1049, + "column": 47 }, "end": { - "line": 1028, - "column": 58 + "line": 1049, + "column": 48 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -185627,20 +189879,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 31188, - "end": 31192, + "value": "Constants", + "start": 31989, + "end": 31998, "loc": { "start": { - "line": 1028, - "column": 59 + "line": 1049, + "column": 49 }, "end": { - "line": 1028, - "column": 63 + "line": 1049, + "column": 58 } } }, @@ -185657,16 +189908,16 @@ "binop": null, "updateContext": null }, - "start": 31192, - "end": 31193, + "start": 31998, + "end": 31999, "loc": { "start": { - "line": 1028, - "column": 63 + "line": 1049, + "column": 58 }, "end": { - "line": 1028, - "column": 64 + "line": 1049, + "column": 59 } } }, @@ -185682,24 +189933,24 @@ "postfix": false, "binop": null }, - "value": "stroker", - "start": 31193, - "end": 31200, + "value": "Languages", + "start": 31999, + "end": 32008, "loc": { "start": { - "line": 1028, - "column": 64 + "line": 1049, + "column": 59 }, "end": { - "line": 1028, - "column": 71 + "line": 1049, + "column": 68 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -185709,25 +189960,25 @@ "binop": null, "updateContext": null }, - "start": 31200, - "end": 31201, + "start": 32008, + "end": 32009, "loc": { "start": { - "line": 1028, - "column": 71 + "line": 1049, + "column": 68 }, "end": { - "line": 1028, - "column": 72 + "line": 1049, + "column": 69 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -185736,24 +189987,24 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 31202, - "end": 31206, + "value": "default", + "start": 32009, + "end": 32016, "loc": { "start": { - "line": 1028, - "column": 73 + "line": 1049, + "column": 69 }, "end": { - "line": 1028, - "column": 77 + "line": 1049, + "column": 76 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -185763,15 +190014,15 @@ "binop": null, "updateContext": null }, - "start": 31206, - "end": 31207, + "start": 32017, + "end": 32018, "loc": { "start": { - "line": 1028, + "line": 1049, "column": 77 }, "end": { - "line": 1028, + "line": 1049, "column": 78 } } @@ -185788,17 +190039,17 @@ "postfix": false, "binop": null }, - "value": "configuration", - "start": 31207, - "end": 31220, + "value": "Constants", + "start": 32019, + "end": 32028, "loc": { "start": { - "line": 1028, - "column": 78 + "line": 1049, + "column": 79 }, "end": { - "line": 1028, - "column": 91 + "line": 1049, + "column": 88 } } }, @@ -185815,16 +190066,16 @@ "binop": null, "updateContext": null }, - "start": 31220, - "end": 31221, + "start": 32028, + "end": 32029, "loc": { "start": { - "line": 1028, - "column": 91 + "line": 1049, + "column": 88 }, "end": { - "line": 1028, - "column": 92 + "line": 1049, + "column": 89 } } }, @@ -185840,25 +190091,25 @@ "postfix": false, "binop": null }, - "value": "renderingParams", - "start": 31221, - "end": 31236, + "value": "Languages", + "start": 32029, + "end": 32038, "loc": { "start": { - "line": 1028, - "column": 92 + "line": 1049, + "column": 89 }, "end": { - "line": 1028, - "column": 107 + "line": 1049, + "column": 98 } } }, { "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, + "label": "[", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -185867,16 +190118,16 @@ "binop": null, "updateContext": null }, - "start": 31236, - "end": 31237, + "start": 32038, + "end": 32039, "loc": { "start": { - "line": 1028, - "column": 107 + "line": 1049, + "column": 98 }, "end": { - "line": 1028, - "column": 108 + "line": 1049, + "column": 99 } } }, @@ -185892,24 +190143,24 @@ "postfix": false, "binop": null }, - "value": "minHeight", - "start": 31237, - "end": 31246, + "value": "lang", + "start": 32039, + "end": 32043, "loc": { "start": { - "line": 1028, - "column": 108 + "line": 1049, + "column": 99 }, "end": { - "line": 1028, - "column": 117 + "line": 1049, + "column": 103 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "]", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -185919,25 +190170,24 @@ "binop": null, "updateContext": null }, - "start": 31246, - "end": 31247, + "start": 32043, + "end": 32044, "loc": { "start": { - "line": 1028, - "column": 117 + "line": 1049, + "column": 103 }, "end": { - "line": 1028, - "column": 118 + "line": 1049, + "column": 104 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -185946,23 +190196,23 @@ "binop": null, "updateContext": null }, - "value": "this", - "start": 31248, - "end": 31252, + "start": 32044, + "end": 32045, "loc": { "start": { - "line": 1028, - "column": 119 + "line": 1049, + "column": 104 }, "end": { - "line": 1028, - "column": 123 + "line": 1049, + "column": 105 } } }, { "type": { - "label": ".", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -185973,16 +190223,17 @@ "binop": null, "updateContext": null }, - "start": 31252, - "end": 31253, + "value": "const", + "start": 32050, + "end": 32055, "loc": { "start": { - "line": 1028, - "column": 123 + "line": 1050, + "column": 4 }, "end": { - "line": 1028, - "column": 124 + "line": 1050, + "column": 9 } } }, @@ -185998,43 +190249,44 @@ "postfix": false, "binop": null }, - "value": "configuration", - "start": 31253, - "end": 31266, + "value": "lineHeight", + "start": 32056, + "end": 32066, "loc": { "start": { - "line": 1028, - "column": 124 + "line": 1050, + "column": 10 }, "end": { - "line": 1028, - "column": 137 + "line": 1050, + "column": 20 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 31266, - "end": 31267, + "value": "=", + "start": 32067, + "end": 32068, "loc": { "start": { - "line": 1028, - "column": 137 + "line": 1050, + "column": 21 }, "end": { - "line": 1028, - "column": 138 + "line": 1050, + "column": 22 } } }, @@ -186050,43 +190302,44 @@ "postfix": false, "binop": null }, - "value": "renderingParams", - "start": 31267, - "end": 31282, + "value": "defaultLang", + "start": 32069, + "end": 32080, "loc": { "start": { - "line": 1028, - "column": 138 + "line": 1050, + "column": 23 }, "end": { - "line": 1028, - "column": 153 + "line": 1050, + "column": 34 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "||", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 1, "updateContext": null }, - "start": 31282, - "end": 31283, + "value": "||", + "start": 32081, + "end": 32083, "loc": { "start": { - "line": 1028, - "column": 153 + "line": 1050, + "column": 35 }, "end": { - "line": 1028, - "column": 154 + "line": 1050, + "column": 37 } } }, @@ -186102,48 +190355,76 @@ "postfix": false, "binop": null }, - "value": "minWidth", - "start": 31283, - "end": 31291, + "value": "armenian", + "start": 32084, + "end": 32092, "loc": { "start": { - "line": 1028, - "column": 154 + "line": 1050, + "column": 38 }, "end": { - "line": 1028, - "column": 162 + "line": 1050, + "column": 46 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "?", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 31291, - "end": 31292, + "start": 32093, + "end": 32094, "loc": { "start": { - "line": 1028, - "column": 162 + "line": 1050, + "column": 47 }, "end": { - "line": 1028, - "column": 163 + "line": 1050, + "column": 48 } } }, { "type": { - "label": ";", + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "1.2", + "start": 32095, + "end": 32100, + "loc": { + "start": { + "line": 1050, + "column": 49 + }, + "end": { + "line": 1050, + "column": 54 + } + } + }, + { + "type": { + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -186154,22 +190435,22 @@ "binop": null, "updateContext": null }, - "start": 31292, - "end": 31293, + "start": 32101, + "end": 32102, "loc": { "start": { - "line": 1028, - "column": 163 + "line": 1050, + "column": 55 }, "end": { - "line": 1028, - "column": 164 + "line": 1050, + "column": 56 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -186177,44 +190458,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "launchResize", - "start": 31298, - "end": 31310, + "value": "1.8", + "start": 32103, + "end": 32108, "loc": { "start": { - "line": 1029, - "column": 4 + "line": 1050, + "column": 57 }, "end": { - "line": 1029, - "column": 16 + "line": 1050, + "column": 62 } } }, { "type": { - "label": "(", + "label": ";", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 31310, - "end": 31311, + "start": 32108, + "end": 32109, "loc": { "start": { - "line": 1029, - "column": 16 + "line": 1050, + "column": 62 }, "end": { - "line": 1029, - "column": 17 + "line": 1050, + "column": 63 } } }, @@ -186233,23 +190516,23 @@ "updateContext": null }, "value": "this", - "start": 31311, - "end": 31315, + "start": 32114, + "end": 32118, "loc": { "start": { - "line": 1029, - "column": 17 + "line": 1051, + "column": 4 }, "end": { - "line": 1029, - "column": 21 + "line": 1051, + "column": 8 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -186259,23 +190542,22 @@ "binop": null, "updateContext": null }, - "start": 31315, - "end": 31316, + "start": 32118, + "end": 32119, "loc": { "start": { - "line": 1029, - "column": 21 + "line": 1051, + "column": 8 }, "end": { - "line": 1029, - "column": 22 + "line": 1051, + "column": 9 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -186283,53 +190565,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 31317, - "end": 31321, + "value": "theme", + "start": 32119, + "end": 32124, "loc": { "start": { - "line": 1029, - "column": 23 + "line": 1051, + "column": 9 }, "end": { - "line": 1029, - "column": 27 + "line": 1051, + "column": 14 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 31321, - "end": 31322, + "value": "=", + "start": 32125, + "end": 32126, "loc": { "start": { - "line": 1029, - "column": 27 + "line": 1051, + "column": 15 }, "end": { - "line": 1029, - "column": 28 + "line": 1051, + "column": 16 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -186338,48 +190620,49 @@ "postfix": false, "binop": null }, - "value": "model", - "start": 31322, - "end": 31327, + "start": 32127, + "end": 32128, "loc": { "start": { - "line": 1029, - "column": 28 + "line": 1051, + "column": 17 }, "end": { - "line": 1029, - "column": 33 + "line": 1051, + "column": 18 } } }, { "type": { - "label": ")", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 31327, - "end": 31328, + "value": ".text", + "start": 32135, + "end": 32142, "loc": { "start": { - "line": 1029, - "column": 33 + "line": 1052, + "column": 6 }, "end": { - "line": 1029, - "column": 34 + "line": 1052, + "column": 13 } } }, { "type": { - "label": ";", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -186390,24 +190673,24 @@ "binop": null, "updateContext": null }, - "start": 31328, - "end": 31329, + "start": 32142, + "end": 32143, "loc": { "start": { - "line": 1029, - "column": 34 + "line": 1052, + "column": 13 }, "end": { - "line": 1029, - "column": 35 + "line": 1052, + "column": 14 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "{", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -186415,32 +190698,69 @@ "postfix": false, "binop": null }, - "start": 31332, - "end": 31333, + "start": 32144, + "end": 32145, "loc": { "start": { - "line": 1030, - "column": 2 + "line": 1052, + "column": 15 }, "end": { - "line": 1030, - "column": 3 + "line": 1052, + "column": 16 } } }, { - "type": "CommentBlock", - "value": "*\n * Set the theme (font family, font size and line height) depending on the language\n * @param lang\n ", - "start": 31337, - "end": 31449, + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "font-family", + "start": 32154, + "end": 32167, "loc": { "start": { - "line": 1032, - "column": 2 + "line": 1053, + "column": 8 }, "end": { - "line": 1035, - "column": 5 + "line": 1053, + "column": 21 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 32167, + "end": 32168, + "loc": { + "start": { + "line": 1053, + "column": 21 + }, + "end": { + "line": 1053, + "column": 22 } } }, @@ -186456,48 +190776,49 @@ "postfix": false, "binop": null }, - "value": "setThemeForFont", - "start": 31452, - "end": 31467, + "value": "fontFamily", + "start": 32169, + "end": 32179, "loc": { "start": { - "line": 1036, - "column": 2 + "line": 1053, + "column": 23 }, "end": { - "line": 1036, - "column": 17 + "line": 1053, + "column": 33 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 31467, - "end": 31468, + "start": 32179, + "end": 32180, "loc": { "start": { - "line": 1036, - "column": 17 + "line": 1053, + "column": 33 }, "end": { - "line": 1036, - "column": 18 + "line": 1053, + "column": 34 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -186505,51 +190826,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "lang", - "start": 31468, - "end": 31472, + "value": "line-height", + "start": 32189, + "end": 32202, "loc": { "start": { - "line": 1036, - "column": 18 + "line": 1054, + "column": 8 }, "end": { - "line": 1036, - "column": 22 + "line": 1054, + "column": 21 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 31472, - "end": 31473, + "start": 32202, + "end": 32203, "loc": { "start": { - "line": 1036, - "column": 22 + "line": 1054, + "column": 21 }, "end": { - "line": 1036, - "column": 23 + "line": 1054, + "column": 22 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -186558,23 +190881,23 @@ "postfix": false, "binop": null }, - "start": 31474, - "end": 31475, + "value": "lineHeight", + "start": 32204, + "end": 32214, "loc": { "start": { - "line": 1036, - "column": 24 + "line": 1054, + "column": 23 }, "end": { - "line": 1036, - "column": 25 + "line": 1054, + "column": 33 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -186582,28 +190905,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "const", - "start": 31480, - "end": 31485, + "start": 32221, + "end": 32222, "loc": { "start": { - "line": 1037, - "column": 4 + "line": 1055, + "column": 6 }, "end": { - "line": 1037, - "column": 9 + "line": 1055, + "column": 7 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -186611,130 +190932,116 @@ "postfix": false, "binop": null }, - "value": "defaultLang", - "start": 31486, - "end": 31497, + "start": 32227, + "end": 32228, "loc": { "start": { - "line": 1037, - "column": 10 + "line": 1056, + "column": 4 }, "end": { - "line": 1037, - "column": 21 + "line": 1056, + "column": 5 } } }, { "type": { - "label": "=", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 31498, - "end": 31499, + "start": 32228, + "end": 32229, "loc": { "start": { - "line": 1037, - "column": 22 + "line": 1056, + "column": 5 }, "end": { - "line": 1037, - "column": 23 + "line": 1056, + "column": 6 } } }, { "type": { - "label": "prefix", - "beforeExpr": true, - "startsExpr": true, + "label": "}", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": true, + "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "!", - "start": 31500, - "end": 31501, + "start": 32232, + "end": 32233, "loc": { "start": { - "line": 1037, - "column": 24 + "line": 1057, + "column": 2 }, "end": { - "line": 1037, - "column": 25 + "line": 1057, + "column": 3 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Object", - "start": 31501, - "end": 31507, + "type": "CommentBlock", + "value": "*\n * Detach event listeners from the DOM element created at editor creation.\n ", + "start": 32237, + "end": 32323, "loc": { "start": { - "line": 1037, - "column": 25 + "line": 1059, + "column": 2 }, "end": { - "line": 1037, - "column": 31 + "line": 1061, + "column": 5 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 31507, - "end": 31508, + "value": "unload", + "start": 32326, + "end": 32332, "loc": { "start": { - "line": 1037, - "column": 31 + "line": 1062, + "column": 2 }, "end": { - "line": 1037, - "column": 32 + "line": 1062, + "column": 8 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -186743,25 +191050,24 @@ "postfix": false, "binop": null }, - "value": "keys", - "start": 31508, - "end": 31512, + "start": 32332, + "end": 32333, "loc": { "start": { - "line": 1037, - "column": 32 + "line": 1062, + "column": 8 }, "end": { - "line": 1037, - "column": 36 + "line": 1062, + "column": 9 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -186769,23 +191075,23 @@ "postfix": false, "binop": null }, - "start": 31512, - "end": 31513, + "start": 32333, + "end": 32334, "loc": { "start": { - "line": 1037, - "column": 36 + "line": 1062, + "column": 9 }, "end": { - "line": 1037, - "column": 37 + "line": 1062, + "column": 10 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -186794,23 +191100,23 @@ "postfix": false, "binop": null }, - "value": "Constants", - "start": 31513, - "end": 31522, + "start": 32335, + "end": 32336, "loc": { "start": { - "line": 1037, - "column": 37 + "line": 1062, + "column": 11 }, "end": { - "line": 1037, - "column": 46 + "line": 1062, + "column": 12 } } }, { "type": { - "label": ".", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -186821,23 +191127,24 @@ "binop": null, "updateContext": null }, - "start": 31522, - "end": 31523, + "value": "if", + "start": 32341, + "end": 32343, "loc": { "start": { - "line": 1037, - "column": 46 + "line": 1063, + "column": 4 }, "end": { - "line": 1037, - "column": 47 + "line": 1063, + "column": 6 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -186846,42 +191153,44 @@ "postfix": false, "binop": null }, - "value": "Languages", - "start": 31523, - "end": 31532, + "start": 32344, + "end": 32345, "loc": { "start": { - "line": 1037, - "column": 47 + "line": 1063, + "column": 7 }, "end": { - "line": 1037, - "column": 56 + "line": 1063, + "column": 8 } } }, { "type": { - "label": ")", + "label": "this", + "keyword": "this", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 31532, - "end": 31533, + "value": "this", + "start": 32345, + "end": 32349, "loc": { "start": { - "line": 1037, - "column": 56 + "line": 1063, + "column": 8 }, "end": { - "line": 1037, - "column": 57 + "line": 1063, + "column": 12 } } }, @@ -186898,16 +191207,16 @@ "binop": null, "updateContext": null }, - "start": 31533, - "end": 31534, + "start": 32349, + "end": 32350, "loc": { "start": { - "line": 1037, - "column": 57 + "line": 1063, + "column": 12 }, "end": { - "line": 1037, - "column": 58 + "line": 1063, + "column": 13 } } }, @@ -186923,25 +191232,25 @@ "postfix": false, "binop": null }, - "value": "includes", - "start": 31534, - "end": 31542, + "value": "grabber", + "start": 32350, + "end": 32357, "loc": { "start": { - "line": 1037, - "column": 58 + "line": 1063, + "column": 13 }, "end": { - "line": 1037, - "column": 66 + "line": 1063, + "column": 20 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -186949,23 +191258,23 @@ "postfix": false, "binop": null }, - "start": 31542, - "end": 31543, + "start": 32357, + "end": 32358, "loc": { "start": { - "line": 1037, - "column": 66 + "line": 1063, + "column": 20 }, "end": { - "line": 1037, - "column": 67 + "line": 1063, + "column": 21 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -186974,50 +191283,41 @@ "postfix": false, "binop": null }, - "value": "lang", - "start": 31543, - "end": 31547, + "start": 32359, + "end": 32360, "loc": { "start": { - "line": 1037, - "column": 67 + "line": 1063, + "column": 22 }, "end": { - "line": 1037, - "column": 71 + "line": 1063, + "column": 23 } } }, { - "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 31547, - "end": 31548, + "type": "CommentLine", + "value": " Remove event handlers to avoid multiplication (detach grabber)", + "start": 32361, + "end": 32426, "loc": { "start": { - "line": 1037, - "column": 71 + "line": 1063, + "column": 24 }, "end": { - "line": 1037, - "column": 72 + "line": 1063, + "column": 89 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -187026,23 +191326,23 @@ "binop": null, "updateContext": null }, - "start": 31548, - "end": 31549, + "value": "this", + "start": 32433, + "end": 32437, "loc": { "start": { - "line": 1037, - "column": 72 + "line": 1064, + "column": 6 }, "end": { - "line": 1037, - "column": 73 + "line": 1064, + "column": 10 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -187053,17 +191353,16 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 31554, - "end": 31559, + "start": 32437, + "end": 32438, "loc": { "start": { - "line": 1038, - "column": 4 + "line": 1064, + "column": 10 }, "end": { - "line": 1038, - "column": 9 + "line": 1064, + "column": 11 } } }, @@ -187079,44 +191378,43 @@ "postfix": false, "binop": null }, - "value": "armenian", - "start": 31560, - "end": 31568, + "value": "grabber", + "start": 32438, + "end": 32445, "loc": { "start": { - "line": 1038, - "column": 10 + "line": 1064, + "column": 11 }, "end": { - "line": 1038, + "line": 1064, "column": 18 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 31569, - "end": 31570, + "start": 32445, + "end": 32446, "loc": { "start": { - "line": 1038, - "column": 19 + "line": 1064, + "column": 18 }, "end": { - "line": 1038, - "column": 20 + "line": 1064, + "column": 19 } } }, @@ -187132,50 +191430,49 @@ "postfix": false, "binop": null }, - "value": "lang", - "start": 31571, - "end": 31575, + "value": "detach", + "start": 32446, + "end": 32452, "loc": { "start": { - "line": 1038, - "column": 21 + "line": 1064, + "column": 19 }, "end": { - "line": 1038, + "line": 1064, "column": 25 } } }, { "type": { - "label": "==/!=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, - "updateContext": null + "binop": null }, - "value": "===", - "start": 31576, - "end": 31579, + "start": 32452, + "end": 32453, "loc": { "start": { - "line": 1038, - "column": 26 + "line": 1064, + "column": 25 }, "end": { - "line": 1038, - "column": 29 + "line": 1064, + "column": 26 } } }, { "type": { - "label": "string", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -187186,50 +191483,23 @@ "binop": null, "updateContext": null }, - "value": "hy_AM", - "start": 31580, - "end": 31587, - "loc": { - "start": { - "line": 1038, - "column": 30 - }, - "end": { - "line": 1038, - "column": 37 - } - } - }, - { - "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31587, - "end": 31588, + "value": "this", + "start": 32453, + "end": 32457, "loc": { "start": { - "line": 1038, - "column": 37 + "line": 1064, + "column": 26 }, "end": { - "line": 1038, - "column": 38 + "line": 1064, + "column": 30 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -187240,17 +191510,16 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 31593, - "end": 31598, + "start": 32457, + "end": 32458, "loc": { "start": { - "line": 1039, - "column": 4 + "line": 1064, + "column": 30 }, "end": { - "line": 1039, - "column": 9 + "line": 1064, + "column": 31 } } }, @@ -187266,50 +191535,50 @@ "postfix": false, "binop": null }, - "value": "fontFamily", - "start": 31599, - "end": 31609, + "value": "domElement", + "start": 32458, + "end": 32468, "loc": { "start": { - "line": 1039, - "column": 10 + "line": 1064, + "column": 31 }, "end": { - "line": 1039, - "column": 20 + "line": 1064, + "column": 41 } } }, { "type": { - "label": "=", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 31610, - "end": 31611, + "start": 32468, + "end": 32469, "loc": { "start": { - "line": 1039, - "column": 21 + "line": 1064, + "column": 41 }, "end": { - "line": 1039, - "column": 22 + "line": 1064, + "column": 42 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -187317,46 +191586,46 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "defaultLang", - "start": 31612, - "end": 31623, + "value": "this", + "start": 32470, + "end": 32474, "loc": { "start": { - "line": 1039, - "column": 23 + "line": 1064, + "column": 43 }, "end": { - "line": 1039, - "column": 34 + "line": 1064, + "column": 47 } } }, { "type": { - "label": "||", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 1, + "binop": null, "updateContext": null }, - "value": "||", - "start": 31624, - "end": 31626, + "start": 32474, + "end": 32475, "loc": { "start": { - "line": 1039, - "column": 35 + "line": 1064, + "column": 47 }, "end": { - "line": 1039, - "column": 37 + "line": 1064, + "column": 48 } } }, @@ -187372,51 +191641,25 @@ "postfix": false, "binop": null }, - "value": "armenian", - "start": 31627, - "end": 31635, - "loc": { - "start": { - "line": 1039, - "column": 38 - }, - "end": { - "line": 1039, - "column": 46 - } - } - }, - { - "type": { - "label": "?", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 31636, - "end": 31637, + "value": "grabberContext", + "start": 32475, + "end": 32489, "loc": { "start": { - "line": 1039, - "column": 47 + "line": 1064, + "column": 48 }, "end": { - "line": 1039, - "column": 48 + "line": 1064, + "column": 62 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -187424,24 +191667,23 @@ "postfix": false, "binop": null }, - "value": "Constants", - "start": 31638, - "end": 31647, + "start": 32489, + "end": 32490, "loc": { "start": { - "line": 1039, - "column": 49 + "line": 1064, + "column": 62 }, "end": { - "line": 1039, - "column": 58 + "line": 1064, + "column": 63 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -187451,24 +191693,24 @@ "binop": null, "updateContext": null }, - "start": 31647, - "end": 31648, + "start": 32490, + "end": 32491, "loc": { "start": { - "line": 1039, - "column": 58 + "line": 1064, + "column": 63 }, "end": { - "line": 1039, - "column": 59 + "line": 1064, + "column": 64 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -187476,23 +191718,23 @@ "postfix": false, "binop": null }, - "value": "Languages", - "start": 31648, - "end": 31657, + "start": 32496, + "end": 32497, "loc": { "start": { - "line": 1039, - "column": 59 + "line": 1065, + "column": 4 }, "end": { - "line": 1039, - "column": 68 + "line": 1065, + "column": 5 } } }, { "type": { - "label": ".", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -187503,52 +191745,51 @@ "binop": null, "updateContext": null }, - "start": 31657, - "end": 31658, + "value": "if", + "start": 32502, + "end": 32504, "loc": { "start": { - "line": 1039, - "column": 68 + "line": 1066, + "column": 4 }, "end": { - "line": 1039, - "column": 69 + "line": 1066, + "column": 6 } } }, { "type": { - "label": "default", - "keyword": "default", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "default", - "start": 31658, - "end": 31665, + "start": 32505, + "end": 32506, "loc": { "start": { - "line": 1039, - "column": 69 + "line": 1066, + "column": 7 }, "end": { - "line": 1039, - "column": 76 + "line": 1066, + "column": 8 } } }, { "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -187557,76 +191798,77 @@ "binop": null, "updateContext": null }, - "start": 31666, - "end": 31667, + "value": "this", + "start": 32506, + "end": 32510, "loc": { "start": { - "line": 1039, - "column": 77 + "line": 1066, + "column": 8 }, "end": { - "line": 1039, - "column": 78 + "line": 1066, + "column": 12 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "Constants", - "start": 31668, - "end": 31677, + "start": 32510, + "end": 32511, "loc": { "start": { - "line": 1039, - "column": 79 + "line": 1066, + "column": 12 }, "end": { - "line": 1039, - "column": 88 + "line": 1066, + "column": 13 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 31677, - "end": 31678, + "value": "innerRenderer", + "start": 32511, + "end": 32524, "loc": { "start": { - "line": 1039, - "column": 88 + "line": 1066, + "column": 13 }, "end": { - "line": 1039, - "column": 89 + "line": 1066, + "column": 26 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -187634,23 +191876,22 @@ "postfix": false, "binop": null }, - "value": "Languages", - "start": 31678, - "end": 31687, + "start": 32524, + "end": 32525, "loc": { "start": { - "line": 1039, - "column": 89 + "line": 1066, + "column": 26 }, "end": { - "line": 1039, - "column": 98 + "line": 1066, + "column": 27 } } }, { "type": { - "label": "[", + "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -187658,25 +191899,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 31687, - "end": 31688, + "start": 32526, + "end": 32527, "loc": { "start": { - "line": 1039, - "column": 98 + "line": 1066, + "column": 28 }, "end": { - "line": 1039, - "column": 99 + "line": 1066, + "column": 29 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -187684,25 +191925,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "lang", - "start": 31688, - "end": 31692, + "value": "this", + "start": 32534, + "end": 32538, "loc": { "start": { - "line": 1039, - "column": 99 + "line": 1067, + "column": 6 }, "end": { - "line": 1039, - "column": 103 + "line": 1067, + "column": 10 } } }, { "type": { - "label": "]", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -187713,49 +191955,48 @@ "binop": null, "updateContext": null }, - "start": 31692, - "end": 31693, + "start": 32538, + "end": 32539, "loc": { "start": { - "line": 1039, - "column": 103 + "line": 1067, + "column": 10 }, "end": { - "line": 1039, - "column": 104 + "line": 1067, + "column": 11 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 31693, - "end": 31694, + "value": "innerRenderer", + "start": 32539, + "end": 32552, "loc": { "start": { - "line": 1039, - "column": 104 + "line": 1067, + "column": 11 }, "end": { - "line": 1039, - "column": 105 + "line": 1067, + "column": 24 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -187766,17 +192007,16 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 31699, - "end": 31704, + "start": 32552, + "end": 32553, "loc": { "start": { - "line": 1040, - "column": 4 + "line": 1067, + "column": 24 }, "end": { - "line": 1040, - "column": 9 + "line": 1067, + "column": 25 } } }, @@ -187792,50 +192032,49 @@ "postfix": false, "binop": null }, - "value": "lineHeight", - "start": 31705, - "end": 31715, + "value": "detach", + "start": 32553, + "end": 32559, "loc": { "start": { - "line": 1040, - "column": 10 + "line": 1067, + "column": 25 }, "end": { - "line": 1040, - "column": 20 + "line": 1067, + "column": 31 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 31716, - "end": 31717, + "start": 32559, + "end": 32560, "loc": { "start": { - "line": 1040, - "column": 21 + "line": 1067, + "column": 31 }, "end": { - "line": 1040, - "column": 22 + "line": 1067, + "column": 32 } } }, { "type": { - "label": "name", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -187843,45 +192082,45 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "defaultLang", - "start": 31718, - "end": 31729, + "value": "this", + "start": 32560, + "end": 32564, "loc": { "start": { - "line": 1040, - "column": 23 + "line": 1067, + "column": 32 }, "end": { - "line": 1040, - "column": 34 + "line": 1067, + "column": 36 } } }, { "type": { - "label": "||", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 1, + "binop": null, "updateContext": null }, - "value": "||", - "start": 31730, - "end": 31732, + "start": 32564, + "end": 32565, "loc": { "start": { - "line": 1040, - "column": 35 + "line": 1067, + "column": 36 }, "end": { - "line": 1040, + "line": 1067, "column": 37 } } @@ -187898,23 +192137,23 @@ "postfix": false, "binop": null }, - "value": "armenian", - "start": 31733, - "end": 31741, + "value": "domElement", + "start": 32565, + "end": 32575, "loc": { "start": { - "line": 1040, - "column": 38 + "line": 1067, + "column": 37 }, "end": { - "line": 1040, - "column": 46 + "line": 1067, + "column": 47 } } }, { "type": { - "label": "?", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -187925,22 +192164,23 @@ "binop": null, "updateContext": null }, - "start": 31742, - "end": 31743, + "start": 32575, + "end": 32576, "loc": { "start": { - "line": 1040, + "line": 1067, "column": 47 }, "end": { - "line": 1040, + "line": 1067, "column": 48 } } }, { "type": { - "label": "string", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -187951,24 +192191,24 @@ "binop": null, "updateContext": null }, - "value": "1.2", - "start": 31744, - "end": 31749, + "value": "this", + "start": 32577, + "end": 32581, "loc": { "start": { - "line": 1040, + "line": 1067, "column": 49 }, "end": { - "line": 1040, - "column": 54 + "line": 1067, + "column": 53 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -187978,22 +192218,22 @@ "binop": null, "updateContext": null }, - "start": 31750, - "end": 31751, + "start": 32581, + "end": 32582, "loc": { "start": { - "line": 1040, - "column": 55 + "line": 1067, + "column": 53 }, "end": { - "line": 1040, - "column": 56 + "line": 1067, + "column": 54 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -188001,20 +192241,44 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "1.8", - "start": 31752, - "end": 31757, + "value": "rendererContext", + "start": 32582, + "end": 32597, "loc": { "start": { - "line": 1040, - "column": 57 + "line": 1067, + "column": 54 }, "end": { - "line": 1040, - "column": 62 + "line": 1067, + "column": 69 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 32597, + "end": 32598, + "loc": { + "start": { + "line": 1067, + "column": 69 + }, + "end": { + "line": 1067, + "column": 70 } } }, @@ -188031,50 +192295,47 @@ "binop": null, "updateContext": null }, - "start": 31757, - "end": 31758, + "start": 32598, + "end": 32599, "loc": { "start": { - "line": 1040, - "column": 62 + "line": 1067, + "column": 70 }, "end": { - "line": 1040, - "column": 63 + "line": 1067, + "column": 71 } } }, { "type": { - "label": "this", - "keyword": "this", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 31763, - "end": 31767, + "start": 32604, + "end": 32605, "loc": { "start": { - "line": 1041, + "line": 1068, "column": 4 }, "end": { - "line": 1041, - "column": 8 + "line": 1068, + "column": 5 } } }, { "type": { - "label": ".", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -188082,19 +192343,34 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 31767, - "end": 31768, + "start": 32608, + "end": 32609, "loc": { "start": { - "line": 1041, - "column": 8 + "line": 1069, + "column": 2 }, "end": { - "line": 1041, - "column": 9 + "line": 1069, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Trigger the change callbacks (and by default send a change event).\n ", + "start": 32613, + "end": 32694, + "loc": { + "start": { + "line": 1071, + "column": 2 + }, + "end": { + "line": 1073, + "column": 5 } } }, @@ -188110,52 +192386,50 @@ "postfix": false, "binop": null }, - "value": "theme", - "start": 31768, - "end": 31773, + "value": "forceChange", + "start": 32697, + "end": 32708, "loc": { "start": { - "line": 1041, - "column": 9 + "line": 1074, + "column": 2 }, "end": { - "line": 1041, - "column": 14 + "line": 1074, + "column": 13 } } }, { "type": { - "label": "=", + "label": "(", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 31774, - "end": 31775, + "start": 32708, + "end": 32709, "loc": { "start": { - "line": 1041, - "column": 15 + "line": 1074, + "column": 13 }, "end": { - "line": 1041, - "column": 16 + "line": 1074, + "column": 14 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -188163,75 +192437,73 @@ "postfix": false, "binop": null }, - "start": 31776, - "end": 31777, + "start": 32709, + "end": 32710, "loc": { "start": { - "line": 1041, - "column": 17 + "line": 1074, + "column": 14 }, "end": { - "line": 1041, - "column": 18 + "line": 1074, + "column": 15 } } }, { "type": { - "label": "string", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": ".text", - "start": 31784, - "end": 31791, + "start": 32711, + "end": 32712, "loc": { "start": { - "line": 1042, - "column": 6 + "line": 1074, + "column": 16 }, "end": { - "line": 1042, - "column": 13 + "line": 1074, + "column": 17 } } }, { "type": { - "label": ":", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 31791, - "end": 31792, + "value": "triggerCallbacks", + "start": 32717, + "end": 32733, "loc": { "start": { - "line": 1042, - "column": 13 + "line": 1075, + "column": 4 }, "end": { - "line": 1042, - "column": 14 + "line": 1075, + "column": 20 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -188241,22 +192513,23 @@ "postfix": false, "binop": null }, - "start": 31793, - "end": 31794, + "start": 32733, + "end": 32734, "loc": { "start": { - "line": 1042, - "column": 15 + "line": 1075, + "column": 20 }, "end": { - "line": 1042, - "column": 16 + "line": 1075, + "column": 21 } } }, { "type": { - "label": "string", + "label": "this", + "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -188267,23 +192540,23 @@ "binop": null, "updateContext": null }, - "value": "font-family", - "start": 31803, - "end": 31816, + "value": "this", + "start": 32734, + "end": 32738, "loc": { "start": { - "line": 1043, - "column": 8 + "line": 1075, + "column": 21 }, "end": { - "line": 1043, - "column": 21 + "line": 1075, + "column": 25 } } }, { "type": { - "label": ":", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -188294,16 +192567,16 @@ "binop": null, "updateContext": null }, - "start": 31816, - "end": 31817, + "start": 32738, + "end": 32739, "loc": { "start": { - "line": 1043, - "column": 21 + "line": 1075, + "column": 25 }, "end": { - "line": 1043, - "column": 22 + "line": 1075, + "column": 26 } } }, @@ -188319,17 +192592,17 @@ "postfix": false, "binop": null }, - "value": "fontFamily", - "start": 31818, - "end": 31828, + "value": "undefined", + "start": 32740, + "end": 32749, "loc": { "start": { - "line": 1043, - "column": 23 + "line": 1075, + "column": 27 }, "end": { - "line": 1043, - "column": 33 + "line": 1075, + "column": 36 } } }, @@ -188346,22 +192619,22 @@ "binop": null, "updateContext": null }, - "start": 31828, - "end": 31829, + "start": 32749, + "end": 32750, "loc": { "start": { - "line": 1043, - "column": 33 + "line": 1075, + "column": 36 }, "end": { - "line": 1043, - "column": 34 + "line": 1075, + "column": 37 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -188369,27 +192642,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "line-height", - "start": 31838, - "end": 31851, + "value": "Constants", + "start": 32751, + "end": 32760, "loc": { "start": { - "line": 1044, - "column": 8 + "line": 1075, + "column": 38 }, "end": { - "line": 1044, - "column": 21 + "line": 1075, + "column": 47 } } }, { "type": { - "label": ":", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -188399,16 +192671,16 @@ "binop": null, "updateContext": null }, - "start": 31851, - "end": 31852, + "start": 32760, + "end": 32761, "loc": { "start": { - "line": 1044, - "column": 21 + "line": 1075, + "column": 47 }, "end": { - "line": 1044, - "column": 22 + "line": 1075, + "column": 48 } } }, @@ -188424,23 +192696,23 @@ "postfix": false, "binop": null }, - "value": "lineHeight", - "start": 31853, - "end": 31863, + "value": "EventType", + "start": 32761, + "end": 32770, "loc": { "start": { - "line": 1044, - "column": 23 + "line": 1075, + "column": 48 }, "end": { - "line": 1044, - "column": 33 + "line": 1075, + "column": 57 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -188448,24 +192720,51 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 32770, + "end": 32771, + "loc": { + "start": { + "line": 1075, + "column": 57 + }, + "end": { + "line": 1075, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null }, - "start": 31870, - "end": 31871, + "value": "CHANGED", + "start": 32771, + "end": 32778, "loc": { "start": { - "line": 1045, - "column": 6 + "line": 1075, + "column": 58 }, "end": { - "line": 1045, - "column": 7 + "line": 1075, + "column": 65 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -188475,16 +192774,16 @@ "postfix": false, "binop": null }, - "start": 31876, - "end": 31877, + "start": 32778, + "end": 32779, "loc": { "start": { - "line": 1046, - "column": 4 + "line": 1075, + "column": 65 }, "end": { - "line": 1046, - "column": 5 + "line": 1075, + "column": 66 } } }, @@ -188501,16 +192800,16 @@ "binop": null, "updateContext": null }, - "start": 31877, - "end": 31878, + "start": 32779, + "end": 32780, "loc": { "start": { - "line": 1046, - "column": 5 + "line": 1075, + "column": 66 }, "end": { - "line": 1046, - "column": 6 + "line": 1075, + "column": 67 } } }, @@ -188526,15 +192825,15 @@ "postfix": false, "binop": null }, - "start": 31881, - "end": 31882, + "start": 32783, + "end": 32784, "loc": { "start": { - "line": 1047, + "line": 1076, "column": 2 }, "end": { - "line": 1047, + "line": 1076, "column": 3 } } @@ -188542,31 +192841,31 @@ { "type": "CommentBlock", "value": " eslint-disable class-methods-use-this ", - "start": 31886, - "end": 31929, + "start": 32788, + "end": 32831, "loc": { "start": { - "line": 1049, + "line": 1078, "column": 2 }, "end": { - "line": 1049, + "line": 1078, "column": 45 } } }, { "type": "CommentBlock", - "value": "*\n * Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice).\n * @returns {{inkImporter: inkImporter}}\n ", - "start": 31932, - "end": 32118, + "value": "*\n * Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice).\n ", + "start": 32834, + "end": 32977, "loc": { "start": { - "line": 1050, + "line": 1079, "column": 2 }, "end": { - "line": 1053, + "line": 1081, "column": 5 } } @@ -188584,15 +192883,15 @@ "binop": null }, "value": "get", - "start": 32121, - "end": 32124, + "start": 32980, + "end": 32983, "loc": { "start": { - "line": 1054, + "line": 1082, "column": 2 }, "end": { - "line": 1054, + "line": 1082, "column": 5 } } @@ -188610,15 +192909,15 @@ "binop": null }, "value": "eastereggs", - "start": 32125, - "end": 32135, + "start": 32984, + "end": 32994, "loc": { "start": { - "line": 1054, + "line": 1082, "column": 6 }, "end": { - "line": 1054, + "line": 1082, "column": 16 } } @@ -188635,15 +192934,15 @@ "postfix": false, "binop": null }, - "start": 32135, - "end": 32136, + "start": 32994, + "end": 32995, "loc": { "start": { - "line": 1054, + "line": 1082, "column": 16 }, "end": { - "line": 1054, + "line": 1082, "column": 17 } } @@ -188660,15 +192959,15 @@ "postfix": false, "binop": null }, - "start": 32136, - "end": 32137, + "start": 32995, + "end": 32996, "loc": { "start": { - "line": 1054, + "line": 1082, "column": 17 }, "end": { - "line": 1054, + "line": 1082, "column": 18 } } @@ -188685,15 +192984,15 @@ "postfix": false, "binop": null }, - "start": 32138, - "end": 32139, + "start": 32997, + "end": 32998, "loc": { "start": { - "line": 1054, + "line": 1082, "column": 19 }, "end": { - "line": 1054, + "line": 1082, "column": 20 } } @@ -188713,44 +193012,19 @@ "updateContext": null }, "value": "return", - "start": 32144, - "end": 32150, + "start": 33003, + "end": 33009, "loc": { "start": { - "line": 1055, + "line": 1083, "column": 4 }, "end": { - "line": 1055, + "line": 1083, "column": 10 } } }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 32151, - "end": 32152, - "loc": { - "start": { - "line": 1055, - "column": 11 - }, - "end": { - "line": 1055, - "column": 12 - } - } - }, { "type": { "label": "name", @@ -188763,42 +193037,17 @@ "postfix": false, "binop": null }, - "value": "inkImporter", - "start": 32153, - "end": 32164, - "loc": { - "start": { - "line": 1055, - "column": 13 - }, - "end": { - "line": 1055, - "column": 24 - } - } - }, - { - "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 32165, - "end": 32166, + "value": "eastereggs", + "start": 33010, + "end": 33020, "loc": { "start": { - "line": 1055, - "column": 25 + "line": 1083, + "column": 11 }, "end": { - "line": 1055, - "column": 26 + "line": 1083, + "column": 21 } } }, @@ -188815,16 +193064,16 @@ "binop": null, "updateContext": null }, - "start": 32166, - "end": 32167, + "start": 33020, + "end": 33021, "loc": { "start": { - "line": 1055, - "column": 26 + "line": 1083, + "column": 21 }, "end": { - "line": 1055, - "column": 27 + "line": 1083, + "column": 22 } } }, @@ -188840,15 +193089,15 @@ "postfix": false, "binop": null }, - "start": 32170, - "end": 32171, + "start": 33024, + "end": 33025, "loc": { "start": { - "line": 1056, + "line": 1084, "column": 2 }, "end": { - "line": 1056, + "line": 1084, "column": 3 } } @@ -188856,15 +193105,15 @@ { "type": "CommentBlock", "value": " eslint-enable class-methods-use-this ", - "start": 32174, - "end": 32216, + "start": 33028, + "end": 33070, "loc": { "start": { - "line": 1057, + "line": 1085, "column": 2 }, "end": { - "line": 1057, + "line": 1085, "column": 44 } } @@ -188881,15 +193130,15 @@ "postfix": false, "binop": null }, - "start": 32217, - "end": 32218, + "start": 33071, + "end": 33072, "loc": { "start": { - "line": 1058, + "line": 1086, "column": 0 }, "end": { - "line": 1058, + "line": 1086, "column": 1 } } @@ -188907,15 +193156,15 @@ "binop": null, "updateContext": null }, - "start": 32219, - "end": 32219, + "start": 33073, + "end": 33073, "loc": { "start": { - "line": 1059, + "line": 1087, "column": 0 }, "end": { - "line": 1059, + "line": 1087, "column": 0 } } diff --git a/docs/ast/source/configuration/DefaultBehaviors.js.json b/docs/ast/source/configuration/DefaultBehaviors.js.json index 88e4a3e9..2fb80ce4 100644 --- a/docs/ast/source/configuration/DefaultBehaviors.js.json +++ b/docs/ast/source/configuration/DefaultBehaviors.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 5014, + "end": 5048, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 97, + "line": 99, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 5014, + "end": 5048, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 97, + "line": 99, "column": 0 } }, @@ -6524,6 +6524,40 @@ } } ] + }, + { + "type": "ExportDefaultDeclaration", + "start": 5015, + "end": 5047, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 98, + "column": 32 + } + }, + "declaration": { + "type": "Identifier", + "start": 5030, + "end": 5046, + "loc": { + "start": { + "line": 98, + "column": 15 + }, + "end": { + "line": 98, + "column": 31 + }, + "identifierName": "defaultBehaviors" + }, + "name": "defaultBehaviors", + "leadingComments": [], + "trailingComments": [] + } } ], "directives": [] @@ -19613,6 +19647,114 @@ } } }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 5015, + "end": 5021, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 98, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 5022, + "end": 5029, + "loc": { + "start": { + "line": 98, + "column": 7 + }, + "end": { + "line": 98, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "defaultBehaviors", + "start": 5030, + "end": 5046, + "loc": { + "start": { + "line": 98, + "column": 15 + }, + "end": { + "line": 98, + "column": 31 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5046, + "end": 5047, + "loc": { + "start": { + "line": 98, + "column": 31 + }, + "end": { + "line": 98, + "column": 32 + } + } + }, { "type": { "label": "eof", @@ -19626,15 +19768,15 @@ "binop": null, "updateContext": null }, - "start": 5014, - "end": 5014, + "start": 5048, + "end": 5048, "loc": { "start": { - "line": 97, + "line": 99, "column": 0 }, "end": { - "line": 97, + "line": 99, "column": 0 } } diff --git a/docs/ast/source/configuration/DefaultConfiguration.js.json b/docs/ast/source/configuration/DefaultConfiguration.js.json index 0bbd4a28..c06787bd 100644 --- a/docs/ast/source/configuration/DefaultConfiguration.js.json +++ b/docs/ast/source/configuration/DefaultConfiguration.js.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 5596, + "end": 5595, "loc": { "start": { "line": 1, @@ -15,7 +15,7 @@ "program": { "type": "Program", "start": 0, - "end": 5596, + "end": 5595, "loc": { "start": { "line": 1, @@ -204,7 +204,7 @@ { "type": "Identifier", "start": 286, - "end": 4697, + "end": 4696, "loc": { "start": { "line": 10, @@ -219,7 +219,7 @@ { "type": "VariableDeclarator", "start": 292, - "end": 4696, + "end": 4695, "loc": { "start": { "line": 10, @@ -251,7 +251,7 @@ "init": { "type": "ObjectExpression", "start": 315, - "end": 4696, + "end": 4695, "loc": { "start": { "line": 10, @@ -266,7 +266,7 @@ { "type": "ObjectProperty", "start": 319, - "end": 3824, + "end": 3823, "loc": { "start": { "line": 11, @@ -300,7 +300,7 @@ "value": { "type": "ObjectExpression", "start": 338, - "end": 3824, + "end": 3823, "loc": { "start": { "line": 11, @@ -1171,7 +1171,7 @@ { "type": "ObjectProperty", "start": 775, - "end": 2230, + "end": 2229, "loc": { "start": { "line": 30, @@ -1205,7 +1205,7 @@ "value": { "type": "ObjectExpression", "start": 779, - "end": 2230, + "end": 2229, "loc": { "start": { "line": 30, @@ -1220,7 +1220,7 @@ { "type": "ObjectProperty", "start": 787, - "end": 809, + "end": 808, "loc": { "start": { "line": 31, @@ -1228,7 +1228,7 @@ }, "end": { "line": 31, - "column": 28 + "column": 27 } }, "method": false, @@ -1254,7 +1254,7 @@ "value": { "type": "BooleanLiteral", "start": 804, - "end": 809, + "end": 808, "loc": { "start": { "line": 31, @@ -1262,16 +1262,16 @@ }, "end": { "line": 31, - "column": 28 + "column": 27 } }, - "value": false + "value": true } }, { "type": "ObjectProperty", - "start": 817, - "end": 830, + "start": 816, + "end": 829, "loc": { "start": { "line": 32, @@ -1287,8 +1287,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 817, - "end": 821, + "start": 816, + "end": 820, "loc": { "start": { "line": 32, @@ -1304,8 +1304,8 @@ }, "value": { "type": "StringLiteral", - "start": 823, - "end": 830, + "start": 822, + "end": 829, "loc": { "start": { "line": 32, @@ -1325,8 +1325,8 @@ }, { "type": "ObjectProperty", - "start": 838, - "end": 1053, + "start": 837, + "end": 1052, "loc": { "start": { "line": 33, @@ -1342,8 +1342,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 838, - "end": 844, + "start": 837, + "end": 843, "loc": { "start": { "line": 33, @@ -1359,8 +1359,8 @@ }, "value": { "type": "ObjectExpression", - "start": 846, - "end": 1053, + "start": 845, + "end": 1052, "loc": { "start": { "line": 33, @@ -1374,8 +1374,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 856, - "end": 879, + "start": 855, + "end": 878, "loc": { "start": { "line": 34, @@ -1391,8 +1391,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 856, - "end": 874, + "start": 855, + "end": 873, "loc": { "start": { "line": 34, @@ -1411,8 +1411,8 @@ }, "value": { "type": "NumericLiteral", - "start": 876, - "end": 879, + "start": 875, + "end": 878, "loc": { "start": { "line": 34, @@ -1432,8 +1432,8 @@ }, { "type": "ObjectProperty", - "start": 889, - "end": 1045, + "start": 888, + "end": 1044, "loc": { "start": { "line": 35, @@ -1449,8 +1449,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 889, - "end": 893, + "start": 888, + "end": 892, "loc": { "start": { "line": 35, @@ -1466,8 +1466,8 @@ }, "value": { "type": "ObjectExpression", - "start": 895, - "end": 1045, + "start": 894, + "end": 1044, "loc": { "start": { "line": 35, @@ -1481,8 +1481,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 907, - "end": 928, + "start": 906, + "end": 927, "loc": { "start": { "line": 36, @@ -1498,8 +1498,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 907, - "end": 921, + "start": 906, + "end": 920, "loc": { "start": { "line": 36, @@ -1518,8 +1518,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 923, - "end": 928, + "start": 922, + "end": 927, "loc": { "start": { "line": 36, @@ -1535,8 +1535,8 @@ }, { "type": "ObjectProperty", - "start": 940, - "end": 954, + "start": 939, + "end": 953, "loc": { "start": { "line": 37, @@ -1552,8 +1552,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 940, - "end": 947, + "start": 939, + "end": 946, "loc": { "start": { "line": 37, @@ -1569,8 +1569,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 949, - "end": 954, + "start": 948, + "end": 953, "loc": { "start": { "line": 37, @@ -1586,8 +1586,8 @@ }, { "type": "ObjectProperty", - "start": 966, - "end": 1035, + "start": 965, + "end": 1034, "loc": { "start": { "line": 38, @@ -1603,8 +1603,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 966, - "end": 970, + "start": 965, + "end": 969, "loc": { "start": { "line": 38, @@ -1620,8 +1620,8 @@ }, "value": { "type": "ObjectExpression", - "start": 972, - "end": 1035, + "start": 971, + "end": 1034, "loc": { "start": { "line": 38, @@ -1635,8 +1635,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 986, - "end": 998, + "start": 985, + "end": 997, "loc": { "start": { "line": 39, @@ -1652,8 +1652,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 986, - "end": 991, + "start": 985, + "end": 990, "loc": { "start": { "line": 39, @@ -1669,8 +1669,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 993, - "end": 998, + "start": 992, + "end": 997, "loc": { "start": { "line": 39, @@ -1686,8 +1686,8 @@ }, { "type": "ObjectProperty", - "start": 1012, - "end": 1023, + "start": 1011, + "end": 1022, "loc": { "start": { "line": 40, @@ -1703,8 +1703,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1012, - "end": 1017, + "start": 1011, + "end": 1016, "loc": { "start": { "line": 40, @@ -1720,8 +1720,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 1019, - "end": 1023, + "start": 1018, + "end": 1022, "loc": { "start": { "line": 40, @@ -1746,8 +1746,8 @@ }, { "type": "ObjectProperty", - "start": 1061, - "end": 1179, + "start": 1060, + "end": 1178, "loc": { "start": { "line": 44, @@ -1763,8 +1763,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1061, - "end": 1069, + "start": 1060, + "end": 1068, "loc": { "start": { "line": 44, @@ -1780,8 +1780,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1071, - "end": 1179, + "start": 1070, + "end": 1178, "loc": { "start": { "line": 44, @@ -1795,8 +1795,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1081, - "end": 1171, + "start": 1080, + "end": 1170, "loc": { "start": { "line": 45, @@ -1812,8 +1812,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1081, - "end": 1086, + "start": 1080, + "end": 1085, "loc": { "start": { "line": 45, @@ -1829,8 +1829,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1088, - "end": 1171, + "start": 1087, + "end": 1170, "loc": { "start": { "line": 45, @@ -1844,8 +1844,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1100, - "end": 1124, + "start": 1099, + "end": 1123, "loc": { "start": { "line": 46, @@ -1861,8 +1861,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 1100, - "end": 1117, + "start": 1099, + "end": 1116, "loc": { "start": { "line": 46, @@ -1881,8 +1881,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 1119, - "end": 1124, + "start": 1118, + "end": 1123, "loc": { "start": { "line": 46, @@ -1898,8 +1898,8 @@ }, { "type": "ObjectProperty", - "start": 1136, - "end": 1161, + "start": 1135, + "end": 1160, "loc": { "start": { "line": 47, @@ -1915,8 +1915,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 1136, - "end": 1154, + "start": 1135, + "end": 1153, "loc": { "start": { "line": 47, @@ -1935,8 +1935,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 1156, - "end": 1161, + "start": 1155, + "end": 1160, "loc": { "start": { "line": 47, @@ -1958,8 +1958,8 @@ }, { "type": "ObjectProperty", - "start": 1187, - "end": 1577, + "start": 1186, + "end": 1576, "loc": { "start": { "line": 50, @@ -1975,8 +1975,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1187, - "end": 1191, + "start": 1186, + "end": 1190, "loc": { "start": { "line": 50, @@ -1992,8 +1992,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1193, - "end": 1577, + "start": 1192, + "end": 1576, "loc": { "start": { "line": 50, @@ -2007,8 +2007,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1203, - "end": 1263, + "start": 1202, + "end": 1262, "loc": { "start": { "line": 51, @@ -2024,8 +2024,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1203, - "end": 1212, + "start": 1202, + "end": 1211, "loc": { "start": { "line": 51, @@ -2041,8 +2041,8 @@ }, "value": { "type": "ArrayExpression", - "start": 1214, - "end": 1263, + "start": 1213, + "end": 1262, "loc": { "start": { "line": 51, @@ -2056,8 +2056,8 @@ "elements": [ { "type": "StringLiteral", - "start": 1215, - "end": 1236, + "start": 1214, + "end": 1235, "loc": { "start": { "line": 51, @@ -2076,8 +2076,8 @@ }, { "type": "StringLiteral", - "start": 1238, - "end": 1262, + "start": 1237, + "end": 1261, "loc": { "start": { "line": 51, @@ -2099,8 +2099,8 @@ }, { "type": "ObjectProperty", - "start": 1273, - "end": 1459, + "start": 1272, + "end": 1458, "loc": { "start": { "line": 52, @@ -2116,8 +2116,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1273, - "end": 1279, + "start": 1272, + "end": 1278, "loc": { "start": { "line": 52, @@ -2133,8 +2133,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1281, - "end": 1459, + "start": 1280, + "end": 1458, "loc": { "start": { "line": 52, @@ -2148,8 +2148,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1293, - "end": 1305, + "start": 1292, + "end": 1304, "loc": { "start": { "line": 53, @@ -2165,8 +2165,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1293, - "end": 1299, + "start": 1292, + "end": 1298, "loc": { "start": { "line": 53, @@ -2182,8 +2182,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 1301, - "end": 1305, + "start": 1300, + "end": 1304, "loc": { "start": { "line": 53, @@ -2199,8 +2199,8 @@ }, { "type": "ObjectProperty", - "start": 1317, - "end": 1344, + "start": 1316, + "end": 1343, "loc": { "start": { "line": 54, @@ -2216,8 +2216,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 1317, - "end": 1341, + "start": 1316, + "end": 1340, "loc": { "start": { "line": 54, @@ -2236,8 +2236,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1343, - "end": 1344, + "start": 1342, + "end": 1343, "loc": { "start": { "line": 54, @@ -2257,8 +2257,8 @@ }, { "type": "ObjectProperty", - "start": 1356, - "end": 1380, + "start": 1355, + "end": 1379, "loc": { "start": { "line": 55, @@ -2274,8 +2274,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 1356, - "end": 1375, + "start": 1355, + "end": 1374, "loc": { "start": { "line": 55, @@ -2294,8 +2294,8 @@ }, "value": { "type": "StringLiteral", - "start": 1377, - "end": 1380, + "start": 1376, + "end": 1379, "loc": { "start": { "line": 55, @@ -2315,8 +2315,8 @@ }, { "type": "ObjectProperty", - "start": 1392, - "end": 1418, + "start": 1391, + "end": 1417, "loc": { "start": { "line": 56, @@ -2332,8 +2332,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 1392, - "end": 1407, + "start": 1391, + "end": 1406, "loc": { "start": { "line": 56, @@ -2352,8 +2352,8 @@ }, "value": { "type": "StringLiteral", - "start": 1409, - "end": 1418, + "start": 1408, + "end": 1417, "loc": { "start": { "line": 56, @@ -2373,8 +2373,8 @@ }, { "type": "ObjectProperty", - "start": 1430, - "end": 1449, + "start": 1429, + "end": 1448, "loc": { "start": { "line": 57, @@ -2390,8 +2390,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 1430, - "end": 1442, + "start": 1429, + "end": 1441, "loc": { "start": { "line": 57, @@ -2410,8 +2410,8 @@ }, "value": { "type": "StringLiteral", - "start": 1444, - "end": 1449, + "start": 1443, + "end": 1448, "loc": { "start": { "line": 57, @@ -2434,8 +2434,8 @@ }, { "type": "ObjectProperty", - "start": 1469, - "end": 1569, + "start": 1468, + "end": 1568, "loc": { "start": { "line": 59, @@ -2451,8 +2451,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1469, - "end": 1475, + "start": 1468, + "end": 1474, "loc": { "start": { "line": 59, @@ -2468,8 +2468,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1477, - "end": 1569, + "start": 1476, + "end": 1568, "loc": { "start": { "line": 59, @@ -2483,8 +2483,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1489, - "end": 1499, + "start": 1488, + "end": 1498, "loc": { "start": { "line": 60, @@ -2500,8 +2500,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1489, - "end": 1495, + "start": 1488, + "end": 1494, "loc": { "start": { "line": 60, @@ -2517,8 +2517,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1497, - "end": 1499, + "start": 1496, + "end": 1498, "loc": { "start": { "line": 60, @@ -2538,8 +2538,8 @@ }, { "type": "ObjectProperty", - "start": 1511, - "end": 1519, + "start": 1510, + "end": 1518, "loc": { "start": { "line": 61, @@ -2555,8 +2555,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1511, - "end": 1515, + "start": 1510, + "end": 1514, "loc": { "start": { "line": 61, @@ -2572,8 +2572,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1517, - "end": 1519, + "start": 1516, + "end": 1518, "loc": { "start": { "line": 61, @@ -2593,8 +2593,8 @@ }, { "type": "ObjectProperty", - "start": 1531, - "end": 1540, + "start": 1530, + "end": 1539, "loc": { "start": { "line": 62, @@ -2610,8 +2610,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1531, - "end": 1536, + "start": 1530, + "end": 1535, "loc": { "start": { "line": 62, @@ -2627,8 +2627,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1538, - "end": 1540, + "start": 1537, + "end": 1539, "loc": { "start": { "line": 62, @@ -2648,8 +2648,8 @@ }, { "type": "ObjectProperty", - "start": 1552, - "end": 1559, + "start": 1551, + "end": 1558, "loc": { "start": { "line": 63, @@ -2665,8 +2665,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1552, - "end": 1555, + "start": 1551, + "end": 1554, "loc": { "start": { "line": 63, @@ -2682,8 +2682,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1557, - "end": 1559, + "start": 1556, + "end": 1558, "loc": { "start": { "line": 63, @@ -2709,8 +2709,8 @@ }, { "type": "ObjectProperty", - "start": 1585, - "end": 1924, + "start": 1584, + "end": 1923, "loc": { "start": { "line": 66, @@ -2726,8 +2726,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1585, - "end": 1589, + "start": 1584, + "end": 1588, "loc": { "start": { "line": 66, @@ -2743,8 +2743,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1591, - "end": 1924, + "start": 1590, + "end": 1923, "loc": { "start": { "line": 66, @@ -2758,8 +2758,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1601, - "end": 1643, + "start": 1600, + "end": 1642, "loc": { "start": { "line": 67, @@ -2775,8 +2775,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1601, - "end": 1607, + "start": 1600, + "end": 1606, "loc": { "start": { "line": 67, @@ -2792,8 +2792,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1609, - "end": 1643, + "start": 1608, + "end": 1642, "loc": { "start": { "line": 67, @@ -2807,8 +2807,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1621, - "end": 1633, + "start": 1620, + "end": 1632, "loc": { "start": { "line": 68, @@ -2824,8 +2824,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1621, - "end": 1627, + "start": 1620, + "end": 1626, "loc": { "start": { "line": 68, @@ -2841,8 +2841,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 1629, - "end": 1633, + "start": 1628, + "end": 1632, "loc": { "start": { "line": 68, @@ -2861,8 +2861,8 @@ }, { "type": "ObjectProperty", - "start": 1653, - "end": 1669, + "start": 1652, + "end": 1668, "loc": { "start": { "line": 70, @@ -2878,8 +2878,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1653, - "end": 1663, + "start": 1652, + "end": 1662, "loc": { "start": { "line": 70, @@ -2895,8 +2895,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 1665, - "end": 1669, + "start": 1664, + "end": 1668, "loc": { "start": { "line": 70, @@ -2912,8 +2912,8 @@ }, { "type": "ObjectProperty", - "start": 1679, - "end": 1760, + "start": 1678, + "end": 1759, "loc": { "start": { "line": 71, @@ -2929,8 +2929,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1679, - "end": 1696, + "start": 1678, + "end": 1695, "loc": { "start": { "line": 71, @@ -2946,8 +2946,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1698, - "end": 1760, + "start": 1697, + "end": 1759, "loc": { "start": { "line": 71, @@ -2961,8 +2961,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1710, - "end": 1723, + "start": 1709, + "end": 1722, "loc": { "start": { "line": 72, @@ -2978,8 +2978,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1710, - "end": 1716, + "start": 1709, + "end": 1715, "loc": { "start": { "line": 72, @@ -2995,8 +2995,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 1718, - "end": 1723, + "start": 1717, + "end": 1722, "loc": { "start": { "line": 72, @@ -3012,8 +3012,8 @@ }, { "type": "ObjectProperty", - "start": 1735, - "end": 1750, + "start": 1734, + "end": 1749, "loc": { "start": { "line": 73, @@ -3029,8 +3029,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1735, - "end": 1743, + "start": 1734, + "end": 1742, "loc": { "start": { "line": 73, @@ -3046,8 +3046,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1745, - "end": 1750, + "start": 1744, + "end": 1749, "loc": { "start": { "line": 73, @@ -3070,8 +3070,8 @@ }, { "type": "ObjectProperty", - "start": 1770, - "end": 1828, + "start": 1769, + "end": 1827, "loc": { "start": { "line": 75, @@ -3087,8 +3087,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1770, - "end": 1779, + "start": 1769, + "end": 1778, "loc": { "start": { "line": 75, @@ -3104,8 +3104,8 @@ }, "value": { "type": "ArrayExpression", - "start": 1781, - "end": 1828, + "start": 1780, + "end": 1827, "loc": { "start": { "line": 75, @@ -3119,8 +3119,8 @@ "elements": [ { "type": "StringLiteral", - "start": 1782, - "end": 1794, + "start": 1781, + "end": 1793, "loc": { "start": { "line": 75, @@ -3139,8 +3139,8 @@ }, { "type": "StringLiteral", - "start": 1796, - "end": 1827, + "start": 1795, + "end": 1826, "loc": { "start": { "line": 75, @@ -3162,8 +3162,8 @@ }, { "type": "ObjectProperty", - "start": 1838, - "end": 1916, + "start": 1837, + "end": 1915, "loc": { "start": { "line": 76, @@ -3179,8 +3179,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1838, - "end": 1844, + "start": 1837, + "end": 1843, "loc": { "start": { "line": 76, @@ -3196,8 +3196,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1846, - "end": 1916, + "start": 1845, + "end": 1915, "loc": { "start": { "line": 76, @@ -3211,8 +3211,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1858, - "end": 1865, + "start": 1857, + "end": 1864, "loc": { "start": { "line": 77, @@ -3228,8 +3228,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1858, - "end": 1861, + "start": 1857, + "end": 1860, "loc": { "start": { "line": 77, @@ -3245,8 +3245,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1863, - "end": 1865, + "start": 1862, + "end": 1864, "loc": { "start": { "line": 77, @@ -3266,8 +3266,8 @@ }, { "type": "ObjectProperty", - "start": 1877, - "end": 1885, + "start": 1876, + "end": 1884, "loc": { "start": { "line": 78, @@ -3283,8 +3283,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1877, - "end": 1881, + "start": 1876, + "end": 1880, "loc": { "start": { "line": 78, @@ -3300,8 +3300,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1883, - "end": 1885, + "start": 1882, + "end": 1884, "loc": { "start": { "line": 78, @@ -3321,8 +3321,8 @@ }, { "type": "ObjectProperty", - "start": 1897, - "end": 1906, + "start": 1896, + "end": 1905, "loc": { "start": { "line": 79, @@ -3338,8 +3338,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1897, - "end": 1902, + "start": 1896, + "end": 1901, "loc": { "start": { "line": 79, @@ -3355,8 +3355,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1904, - "end": 1906, + "start": 1903, + "end": 1905, "loc": { "start": { "line": 79, @@ -3382,8 +3382,8 @@ }, { "type": "ObjectProperty", - "start": 1932, - "end": 2113, + "start": 1931, + "end": 2112, "loc": { "start": { "line": 82, @@ -3399,8 +3399,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1932, - "end": 1939, + "start": 1931, + "end": 1938, "loc": { "start": { "line": 82, @@ -3416,8 +3416,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1941, - "end": 2113, + "start": 1940, + "end": 2112, "loc": { "start": { "line": 82, @@ -3431,8 +3431,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1951, - "end": 1995, + "start": 1950, + "end": 1994, "loc": { "start": { "line": 83, @@ -3448,8 +3448,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1951, - "end": 1960, + "start": 1950, + "end": 1959, "loc": { "start": { "line": 83, @@ -3465,8 +3465,8 @@ }, "value": { "type": "ArrayExpression", - "start": 1962, - "end": 1995, + "start": 1961, + "end": 1994, "loc": { "start": { "line": 83, @@ -3480,8 +3480,8 @@ "elements": [ { "type": "StringLiteral", - "start": 1963, - "end": 1994, + "start": 1962, + "end": 1993, "loc": { "start": { "line": 83, @@ -3503,8 +3503,8 @@ }, { "type": "ObjectProperty", - "start": 2005, - "end": 2105, + "start": 2004, + "end": 2104, "loc": { "start": { "line": 84, @@ -3520,8 +3520,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2005, - "end": 2011, + "start": 2004, + "end": 2010, "loc": { "start": { "line": 84, @@ -3537,8 +3537,8 @@ }, "value": { "type": "ObjectExpression", - "start": 2013, - "end": 2105, + "start": 2012, + "end": 2104, "loc": { "start": { "line": 84, @@ -3552,8 +3552,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2025, - "end": 2035, + "start": 2024, + "end": 2034, "loc": { "start": { "line": 85, @@ -3569,8 +3569,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2025, - "end": 2031, + "start": 2024, + "end": 2030, "loc": { "start": { "line": 85, @@ -3586,8 +3586,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2033, - "end": 2035, + "start": 2032, + "end": 2034, "loc": { "start": { "line": 85, @@ -3607,8 +3607,8 @@ }, { "type": "ObjectProperty", - "start": 2047, - "end": 2055, + "start": 2046, + "end": 2054, "loc": { "start": { "line": 86, @@ -3624,8 +3624,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2047, - "end": 2051, + "start": 2046, + "end": 2050, "loc": { "start": { "line": 86, @@ -3641,8 +3641,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2053, - "end": 2055, + "start": 2052, + "end": 2054, "loc": { "start": { "line": 86, @@ -3662,8 +3662,8 @@ }, { "type": "ObjectProperty", - "start": 2067, - "end": 2076, + "start": 2066, + "end": 2075, "loc": { "start": { "line": 87, @@ -3679,8 +3679,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2067, - "end": 2072, + "start": 2066, + "end": 2071, "loc": { "start": { "line": 87, @@ -3696,8 +3696,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2074, - "end": 2076, + "start": 2073, + "end": 2075, "loc": { "start": { "line": 87, @@ -3717,8 +3717,8 @@ }, { "type": "ObjectProperty", - "start": 2088, - "end": 2095, + "start": 2087, + "end": 2094, "loc": { "start": { "line": 88, @@ -3734,8 +3734,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2088, - "end": 2091, + "start": 2087, + "end": 2090, "loc": { "start": { "line": 88, @@ -3751,8 +3751,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2093, - "end": 2095, + "start": 2092, + "end": 2094, "loc": { "start": { "line": 88, @@ -3778,8 +3778,8 @@ }, { "type": "ObjectProperty", - "start": 2121, - "end": 2224, + "start": 2120, + "end": 2223, "loc": { "start": { "line": 91, @@ -3795,8 +3795,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 2121, - "end": 2134, + "start": 2120, + "end": 2133, "loc": { "start": { "line": 91, @@ -3815,8 +3815,8 @@ }, "value": { "type": "ObjectExpression", - "start": 2136, - "end": 2224, + "start": 2135, + "end": 2223, "loc": { "start": { "line": 91, @@ -3830,8 +3830,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2146, - "end": 2216, + "start": 2145, + "end": 2215, "loc": { "start": { "line": 92, @@ -3847,8 +3847,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2146, - "end": 2157, + "start": 2145, + "end": 2156, "loc": { "start": { "line": 92, @@ -3864,8 +3864,8 @@ }, "value": { "type": "ObjectExpression", - "start": 2159, - "end": 2216, + "start": 2158, + "end": 2215, "loc": { "start": { "line": 92, @@ -3879,8 +3879,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2171, - "end": 2182, + "start": 2170, + "end": 2181, "loc": { "start": { "line": 93, @@ -3896,8 +3896,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2171, - "end": 2175, + "start": 2170, + "end": 2174, "loc": { "start": { "line": 93, @@ -3913,8 +3913,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 2177, - "end": 2182, + "start": 2176, + "end": 2181, "loc": { "start": { "line": 93, @@ -3930,8 +3930,8 @@ }, { "type": "ObjectProperty", - "start": 2194, - "end": 2206, + "start": 2193, + "end": 2205, "loc": { "start": { "line": 94, @@ -3947,8 +3947,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2194, - "end": 2199, + "start": 2193, + "end": 2198, "loc": { "start": { "line": 94, @@ -3964,8 +3964,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 2201, - "end": 2206, + "start": 2200, + "end": 2205, "loc": { "start": { "line": 94, @@ -3990,8 +3990,8 @@ }, { "type": "ObjectProperty", - "start": 2236, - "end": 3820, + "start": 2235, + "end": 3819, "loc": { "start": { "line": 98, @@ -4007,8 +4007,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2236, - "end": 2238, + "start": 2235, + "end": 2237, "loc": { "start": { "line": 98, @@ -4024,8 +4024,8 @@ }, "value": { "type": "ObjectExpression", - "start": 2240, - "end": 3820, + "start": 2239, + "end": 3819, "loc": { "start": { "line": 98, @@ -4039,8 +4039,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2248, - "end": 2418, + "start": 2247, + "end": 2417, "loc": { "start": { "line": 99, @@ -4056,8 +4056,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2248, - "end": 2261, + "start": 2247, + "end": 2260, "loc": { "start": { "line": 99, @@ -4073,8 +4073,8 @@ }, "value": { "type": "ObjectExpression", - "start": 2263, - "end": 2418, + "start": 2262, + "end": 2417, "loc": { "start": { "line": 99, @@ -4088,8 +4088,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2273, - "end": 2305, + "start": 2272, + "end": 2304, "loc": { "start": { "line": 100, @@ -4105,8 +4105,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2273, - "end": 2284, + "start": 2272, + "end": 2283, "loc": { "start": { "line": 100, @@ -4122,8 +4122,8 @@ }, "value": { "type": "ArrayExpression", - "start": 2286, - "end": 2305, + "start": 2285, + "end": 2304, "loc": { "start": { "line": 100, @@ -4137,8 +4137,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2287, - "end": 2294, + "start": 2286, + "end": 2293, "loc": { "start": { "line": 100, @@ -4157,8 +4157,8 @@ }, { "type": "StringLiteral", - "start": 2296, - "end": 2304, + "start": 2295, + "end": 2303, "loc": { "start": { "line": 100, @@ -4180,8 +4180,8 @@ }, { "type": "ObjectProperty", - "start": 2315, - "end": 2339, + "start": 2314, + "end": 2338, "loc": { "start": { "line": 101, @@ -4197,8 +4197,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2315, - "end": 2332, + "start": 2314, + "end": 2331, "loc": { "start": { "line": 101, @@ -4214,8 +4214,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 2334, - "end": 2339, + "start": 2333, + "end": 2338, "loc": { "start": { "line": 101, @@ -4231,8 +4231,8 @@ }, { "type": "ObjectProperty", - "start": 2349, - "end": 2366, + "start": 2348, + "end": 2365, "loc": { "start": { "line": 102, @@ -4248,8 +4248,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2349, - "end": 2362, + "start": 2348, + "end": 2361, "loc": { "start": { "line": 102, @@ -4265,8 +4265,8 @@ }, "value": { "type": "ArrayExpression", - "start": 2364, - "end": 2366, + "start": 2363, + "end": 2365, "loc": { "start": { "line": 102, @@ -4282,8 +4282,8 @@ }, { "type": "ObjectProperty", - "start": 2376, - "end": 2409, + "start": 2375, + "end": 2408, "loc": { "start": { "line": 103, @@ -4299,8 +4299,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2376, - "end": 2406, + "start": 2375, + "end": 2405, "loc": { "start": { "line": 103, @@ -4316,8 +4316,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2408, - "end": 2409, + "start": 2407, + "end": 2408, "loc": { "start": { "line": 103, @@ -4340,8 +4340,8 @@ }, { "type": "ObjectProperty", - "start": 2426, - "end": 3122, + "start": 2425, + "end": 3121, "loc": { "start": { "line": 105, @@ -4357,8 +4357,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2426, - "end": 2439, + "start": 2425, + "end": 2438, "loc": { "start": { "line": 105, @@ -4374,8 +4374,8 @@ }, "value": { "type": "ObjectExpression", - "start": 2441, - "end": 3122, + "start": 2440, + "end": 3121, "loc": { "start": { "line": 105, @@ -4389,8 +4389,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2451, - "end": 2468, + "start": 2450, + "end": 2467, "loc": { "start": { "line": 106, @@ -4406,8 +4406,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2451, - "end": 2459, + "start": 2450, + "end": 2458, "loc": { "start": { "line": 106, @@ -4423,8 +4423,8 @@ }, "value": { "type": "StringLiteral", - "start": 2461, - "end": 2468, + "start": 2460, + "end": 2467, "loc": { "start": { "line": 106, @@ -4444,8 +4444,8 @@ }, { "type": "ObjectProperty", - "start": 2478, - "end": 2502, + "start": 2477, + "end": 2501, "loc": { "start": { "line": 107, @@ -4461,8 +4461,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2478, - "end": 2491, + "start": 2477, + "end": 2490, "loc": { "start": { "line": 107, @@ -4478,8 +4478,8 @@ }, "value": { "type": "StringLiteral", - "start": 2493, - "end": 2502, + "start": 2492, + "end": 2501, "loc": { "start": { "line": 107, @@ -4499,8 +4499,8 @@ }, { "type": "ObjectProperty", - "start": 2512, - "end": 2532, + "start": 2511, + "end": 2531, "loc": { "start": { "line": 108, @@ -4516,8 +4516,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2512, - "end": 2524, + "start": 2511, + "end": 2523, "loc": { "start": { "line": 108, @@ -4533,8 +4533,8 @@ }, "value": { "type": "StringLiteral", - "start": 2526, - "end": 2532, + "start": 2525, + "end": 2531, "loc": { "start": { "line": 108, @@ -4554,8 +4554,8 @@ }, { "type": "ObjectProperty", - "start": 2542, - "end": 2558, + "start": 2541, + "end": 2557, "loc": { "start": { "line": 109, @@ -4571,8 +4571,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2542, - "end": 2554, + "start": 2541, + "end": 2553, "loc": { "start": { "line": 109, @@ -4588,8 +4588,8 @@ }, "value": { "type": "ArrayExpression", - "start": 2556, - "end": 2558, + "start": 2555, + "end": 2557, "loc": { "start": { "line": 109, @@ -4605,8 +4605,8 @@ }, { "type": "ObjectProperty", - "start": 2568, - "end": 2588, + "start": 2567, + "end": 2587, "loc": { "start": { "line": 110, @@ -4622,8 +4622,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2568, - "end": 2584, + "start": 2567, + "end": 2583, "loc": { "start": { "line": 110, @@ -4639,8 +4639,8 @@ }, "value": { "type": "ArrayExpression", - "start": 2586, - "end": 2588, + "start": 2585, + "end": 2587, "loc": { "start": { "line": 110, @@ -4656,8 +4656,8 @@ }, { "type": "ObjectProperty", - "start": 2598, - "end": 2613, + "start": 2597, + "end": 2612, "loc": { "start": { "line": 111, @@ -4673,8 +4673,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2598, - "end": 2609, + "start": 2597, + "end": 2608, "loc": { "start": { "line": 111, @@ -4690,8 +4690,8 @@ }, "value": { "type": "ArrayExpression", - "start": 2611, - "end": 2613, + "start": 2610, + "end": 2612, "loc": { "start": { "line": 111, @@ -4707,8 +4707,8 @@ }, { "type": "ObjectProperty", - "start": 2623, - "end": 2640, + "start": 2622, + "end": 2639, "loc": { "start": { "line": 112, @@ -4724,8 +4724,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2623, - "end": 2636, + "start": 2622, + "end": 2635, "loc": { "start": { "line": 112, @@ -4741,8 +4741,8 @@ }, "value": { "type": "ArrayExpression", - "start": 2638, - "end": 2640, + "start": 2637, + "end": 2639, "loc": { "start": { "line": 112, @@ -4758,8 +4758,8 @@ }, { "type": "ObjectProperty", - "start": 2650, - "end": 3114, + "start": 2649, + "end": 3113, "loc": { "start": { "line": 113, @@ -4775,8 +4775,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2650, - "end": 2664, + "start": 2649, + "end": 2663, "loc": { "start": { "line": 113, @@ -4792,8 +4792,8 @@ }, "value": { "type": "ObjectExpression", - "start": 2666, - "end": 3114, + "start": 2665, + "end": 3113, "loc": { "start": { "line": 113, @@ -4807,8 +4807,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2678, - "end": 2702, + "start": 2677, + "end": 2701, "loc": { "start": { "line": 114, @@ -4824,8 +4824,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2678, - "end": 2699, + "start": 2677, + "end": 2698, "loc": { "start": { "line": 114, @@ -4841,8 +4841,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2701, - "end": 2702, + "start": 2700, + "end": 2701, "loc": { "start": { "line": 114, @@ -4862,8 +4862,8 @@ }, { "type": "ObjectProperty", - "start": 2714, - "end": 2746, + "start": 2713, + "end": 2745, "loc": { "start": { "line": 115, @@ -4879,8 +4879,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2714, - "end": 2735, + "start": 2713, + "end": 2734, "loc": { "start": { "line": 115, @@ -4896,8 +4896,8 @@ }, "value": { "type": "Identifier", - "start": 2737, - "end": 2746, + "start": 2736, + "end": 2745, "loc": { "start": { "line": 115, @@ -4914,8 +4914,8 @@ }, { "type": "ObjectProperty", - "start": 2758, - "end": 2783, + "start": 2757, + "end": 2782, "loc": { "start": { "line": 116, @@ -4931,8 +4931,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2758, - "end": 2780, + "start": 2757, + "end": 2779, "loc": { "start": { "line": 116, @@ -4948,8 +4948,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2782, - "end": 2783, + "start": 2781, + "end": 2782, "loc": { "start": { "line": 116, @@ -4969,8 +4969,8 @@ }, { "type": "ObjectProperty", - "start": 2795, - "end": 2820, + "start": 2794, + "end": 2819, "loc": { "start": { "line": 117, @@ -4986,8 +4986,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2795, - "end": 2817, + "start": 2794, + "end": 2816, "loc": { "start": { "line": 117, @@ -5003,8 +5003,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2819, - "end": 2820, + "start": 2818, + "end": 2819, "loc": { "start": { "line": 117, @@ -5024,8 +5024,8 @@ }, { "type": "ObjectProperty", - "start": 2832, - "end": 2869, + "start": 2831, + "end": 2868, "loc": { "start": { "line": 118, @@ -5041,8 +5041,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2832, - "end": 2858, + "start": 2831, + "end": 2857, "loc": { "start": { "line": 118, @@ -5058,8 +5058,8 @@ }, "value": { "type": "Identifier", - "start": 2860, - "end": 2869, + "start": 2859, + "end": 2868, "loc": { "start": { "line": 118, @@ -5076,8 +5076,8 @@ }, { "type": "ObjectProperty", - "start": 2881, - "end": 2906, + "start": 2880, + "end": 2905, "loc": { "start": { "line": 119, @@ -5093,8 +5093,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2881, - "end": 2899, + "start": 2880, + "end": 2898, "loc": { "start": { "line": 119, @@ -5110,8 +5110,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 2901, - "end": 2906, + "start": 2900, + "end": 2905, "loc": { "start": { "line": 119, @@ -5127,8 +5127,8 @@ }, { "type": "ObjectProperty", - "start": 2918, - "end": 2946, + "start": 2917, + "end": 2945, "loc": { "start": { "line": 120, @@ -5144,8 +5144,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2918, - "end": 2939, + "start": 2917, + "end": 2938, "loc": { "start": { "line": 120, @@ -5161,8 +5161,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 2941, - "end": 2946, + "start": 2940, + "end": 2945, "loc": { "start": { "line": 120, @@ -5178,8 +5178,8 @@ }, { "type": "ObjectProperty", - "start": 2958, - "end": 2994, + "start": 2957, + "end": 2993, "loc": { "start": { "line": 121, @@ -5195,8 +5195,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2958, - "end": 2987, + "start": 2957, + "end": 2986, "loc": { "start": { "line": 121, @@ -5212,8 +5212,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 2989, - "end": 2994, + "start": 2988, + "end": 2993, "loc": { "start": { "line": 121, @@ -5229,8 +5229,8 @@ }, { "type": "ObjectProperty", - "start": 3006, - "end": 3032, + "start": 3005, + "end": 3031, "loc": { "start": { "line": 122, @@ -5246,8 +5246,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3006, - "end": 3021, + "start": 3005, + "end": 3020, "loc": { "start": { "line": 122, @@ -5263,8 +5263,8 @@ }, "value": { "type": "Identifier", - "start": 3023, - "end": 3032, + "start": 3022, + "end": 3031, "loc": { "start": { "line": 122, @@ -5281,8 +5281,8 @@ }, { "type": "ObjectProperty", - "start": 3044, - "end": 3063, + "start": 3043, + "end": 3062, "loc": { "start": { "line": 123, @@ -5298,8 +5298,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3044, - "end": 3056, + "start": 3043, + "end": 3055, "loc": { "start": { "line": 123, @@ -5315,8 +5315,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 3058, - "end": 3063, + "start": 3057, + "end": 3062, "loc": { "start": { "line": 123, @@ -5332,8 +5332,8 @@ }, { "type": "ObjectProperty", - "start": 3075, - "end": 3104, + "start": 3074, + "end": 3103, "loc": { "start": { "line": 124, @@ -5349,8 +5349,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3075, - "end": 3093, + "start": 3074, + "end": 3092, "loc": { "start": { "line": 124, @@ -5366,8 +5366,8 @@ }, "value": { "type": "Identifier", - "start": 3095, - "end": 3104, + "start": 3094, + "end": 3103, "loc": { "start": { "line": 124, @@ -5390,8 +5390,8 @@ }, { "type": "ObjectProperty", - "start": 3130, - "end": 3259, + "start": 3129, + "end": 3258, "loc": { "start": { "line": 127, @@ -5407,8 +5407,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3130, - "end": 3144, + "start": 3129, + "end": 3143, "loc": { "start": { "line": 127, @@ -5424,8 +5424,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3146, - "end": 3259, + "start": 3145, + "end": 3258, "loc": { "start": { "line": 127, @@ -5439,8 +5439,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3156, - "end": 3180, + "start": 3155, + "end": 3179, "loc": { "start": { "line": 128, @@ -5456,8 +5456,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3156, - "end": 3169, + "start": 3155, + "end": 3168, "loc": { "start": { "line": 128, @@ -5473,8 +5473,8 @@ }, "value": { "type": "Identifier", - "start": 3171, - "end": 3180, + "start": 3170, + "end": 3179, "loc": { "start": { "line": 128, @@ -5491,8 +5491,8 @@ }, { "type": "ObjectProperty", - "start": 3190, - "end": 3219, + "start": 3189, + "end": 3218, "loc": { "start": { "line": 129, @@ -5508,8 +5508,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3190, - "end": 3216, + "start": 3189, + "end": 3215, "loc": { "start": { "line": 129, @@ -5525,8 +5525,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3218, - "end": 3219, + "start": 3217, + "end": 3218, "loc": { "start": { "line": 129, @@ -5546,8 +5546,8 @@ }, { "type": "ObjectProperty", - "start": 3229, - "end": 3251, + "start": 3228, + "end": 3250, "loc": { "start": { "line": 130, @@ -5563,8 +5563,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3229, - "end": 3245, + "start": 3228, + "end": 3244, "loc": { "start": { "line": 130, @@ -5580,8 +5580,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 3247, - "end": 3251, + "start": 3246, + "end": 3250, "loc": { "start": { "line": 130, @@ -5600,8 +5600,8 @@ }, { "type": "ObjectProperty", - "start": 3267, - "end": 3608, + "start": 3266, + "end": 3607, "loc": { "start": { "line": 132, @@ -5617,8 +5617,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3267, - "end": 3281, + "start": 3266, + "end": 3280, "loc": { "start": { "line": 132, @@ -5634,8 +5634,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3283, - "end": 3608, + "start": 3282, + "end": 3607, "loc": { "start": { "line": 132, @@ -5649,8 +5649,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3293, - "end": 3307, + "start": 3292, + "end": 3306, "loc": { "start": { "line": 133, @@ -5666,8 +5666,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3293, - "end": 3302, + "start": 3292, + "end": 3301, "loc": { "start": { "line": 133, @@ -5683,8 +5683,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3304, - "end": 3307, + "start": 3303, + "end": 3306, "loc": { "start": { "line": 133, @@ -5704,8 +5704,8 @@ }, { "type": "ObjectProperty", - "start": 3317, - "end": 3355, + "start": 3316, + "end": 3354, "loc": { "start": { "line": 134, @@ -5721,8 +5721,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3317, - "end": 3328, + "start": 3316, + "end": 3327, "loc": { "start": { "line": 134, @@ -5738,8 +5738,8 @@ }, "value": { "type": "ArrayExpression", - "start": 3330, - "end": 3355, + "start": 3329, + "end": 3354, "loc": { "start": { "line": 134, @@ -5753,8 +5753,8 @@ "elements": [ { "type": "StringLiteral", - "start": 3331, - "end": 3341, + "start": 3330, + "end": 3340, "loc": { "start": { "line": 134, @@ -5773,8 +5773,8 @@ }, { "type": "StringLiteral", - "start": 3343, - "end": 3354, + "start": 3342, + "end": 3353, "loc": { "start": { "line": 134, @@ -5796,8 +5796,8 @@ }, { "type": "ObjectProperty", - "start": 3365, - "end": 3382, + "start": 3364, + "end": 3381, "loc": { "start": { "line": 135, @@ -5813,8 +5813,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3365, - "end": 3378, + "start": 3364, + "end": 3377, "loc": { "start": { "line": 135, @@ -5830,8 +5830,8 @@ }, "value": { "type": "ArrayExpression", - "start": 3380, - "end": 3382, + "start": 3379, + "end": 3381, "loc": { "start": { "line": 135, @@ -5847,8 +5847,8 @@ }, { "type": "ObjectProperty", - "start": 3392, - "end": 3468, + "start": 3391, + "end": 3467, "loc": { "start": { "line": 136, @@ -5864,8 +5864,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3392, - "end": 3397, + "start": 3391, + "end": 3396, "loc": { "start": { "line": 136, @@ -5881,8 +5881,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3399, - "end": 3468, + "start": 3398, + "end": 3467, "loc": { "start": { "line": 136, @@ -5896,8 +5896,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3411, - "end": 3419, + "start": 3410, + "end": 3418, "loc": { "start": { "line": 137, @@ -5913,8 +5913,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3411, - "end": 3414, + "start": 3410, + "end": 3413, "loc": { "start": { "line": 137, @@ -5930,8 +5930,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3416, - "end": 3419, + "start": 3415, + "end": 3418, "loc": { "start": { "line": 137, @@ -5951,8 +5951,8 @@ }, { "type": "ObjectProperty", - "start": 3431, - "end": 3439, + "start": 3430, + "end": 3438, "loc": { "start": { "line": 138, @@ -5968,8 +5968,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3431, - "end": 3436, + "start": 3430, + "end": 3435, "loc": { "start": { "line": 138, @@ -5985,8 +5985,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3438, - "end": 3439, + "start": 3437, + "end": 3438, "loc": { "start": { "line": 138, @@ -6006,8 +6006,8 @@ }, { "type": "ObjectProperty", - "start": 3451, - "end": 3458, + "start": 3450, + "end": 3457, "loc": { "start": { "line": 139, @@ -6023,8 +6023,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3451, - "end": 3454, + "start": 3450, + "end": 3453, "loc": { "start": { "line": 139, @@ -6040,8 +6040,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3456, - "end": 3458, + "start": 3455, + "end": 3457, "loc": { "start": { "line": 139, @@ -6064,8 +6064,8 @@ }, { "type": "ObjectProperty", - "start": 3478, - "end": 3557, + "start": 3477, + "end": 3556, "loc": { "start": { "line": 141, @@ -6081,8 +6081,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3478, - "end": 3482, + "start": 3477, + "end": 3481, "loc": { "start": { "line": 141, @@ -6098,8 +6098,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3484, - "end": 3557, + "start": 3483, + "end": 3556, "loc": { "start": { "line": 141, @@ -6113,8 +6113,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3496, - "end": 3507, + "start": 3495, + "end": 3506, "loc": { "start": { "line": 142, @@ -6130,8 +6130,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3496, - "end": 3502, + "start": 3495, + "end": 3501, "loc": { "start": { "line": 142, @@ -6147,8 +6147,8 @@ }, "value": { "type": "StringLiteral", - "start": 3504, - "end": 3507, + "start": 3503, + "end": 3506, "loc": { "start": { "line": 142, @@ -6168,8 +6168,8 @@ }, { "type": "ObjectProperty", - "start": 3519, - "end": 3528, + "start": 3518, + "end": 3527, "loc": { "start": { "line": 143, @@ -6185,8 +6185,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3519, - "end": 3525, + "start": 3518, + "end": 3524, "loc": { "start": { "line": 143, @@ -6202,8 +6202,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3527, - "end": 3528, + "start": 3526, + "end": 3527, "loc": { "start": { "line": 143, @@ -6223,8 +6223,8 @@ }, { "type": "ObjectProperty", - "start": 3540, - "end": 3547, + "start": 3539, + "end": 3546, "loc": { "start": { "line": 144, @@ -6240,8 +6240,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3540, - "end": 3544, + "start": 3539, + "end": 3543, "loc": { "start": { "line": 144, @@ -6257,8 +6257,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3546, - "end": 3547, + "start": 3545, + "end": 3546, "loc": { "start": { "line": 144, @@ -6281,8 +6281,8 @@ }, { "type": "ObjectProperty", - "start": 3567, - "end": 3600, + "start": 3566, + "end": 3599, "loc": { "start": { "line": 146, @@ -6298,8 +6298,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3567, - "end": 3597, + "start": 3566, + "end": 3596, "loc": { "start": { "line": 146, @@ -6315,8 +6315,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3599, - "end": 3600, + "start": 3598, + "end": 3599, "loc": { "start": { "line": 146, @@ -6339,8 +6339,8 @@ }, { "type": "ObjectProperty", - "start": 3616, - "end": 3814, + "start": 3615, + "end": 3813, "loc": { "start": { "line": 148, @@ -6356,8 +6356,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3616, - "end": 3633, + "start": 3615, + "end": 3632, "loc": { "start": { "line": 148, @@ -6373,8 +6373,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3635, - "end": 3814, + "start": 3634, + "end": 3813, "loc": { "start": { "line": 148, @@ -6388,8 +6388,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3645, - "end": 3765, + "start": 3644, + "end": 3764, "loc": { "start": { "line": 149, @@ -6405,8 +6405,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3645, - "end": 3658, + "start": 3644, + "end": 3657, "loc": { "start": { "line": 149, @@ -6422,8 +6422,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3660, - "end": 3765, + "start": 3659, + "end": 3764, "loc": { "start": { "line": 149, @@ -6437,8 +6437,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3672, - "end": 3690, + "start": 3671, + "end": 3689, "loc": { "start": { "line": 150, @@ -6454,8 +6454,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3672, - "end": 3686, + "start": 3671, + "end": 3685, "loc": { "start": { "line": 150, @@ -6471,8 +6471,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3688, - "end": 3690, + "start": 3687, + "end": 3689, "loc": { "start": { "line": 150, @@ -6488,8 +6488,8 @@ }, { "type": "ObjectProperty", - "start": 3702, - "end": 3719, + "start": 3701, + "end": 3718, "loc": { "start": { "line": 151, @@ -6505,8 +6505,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3702, - "end": 3710, + "start": 3701, + "end": 3709, "loc": { "start": { "line": 151, @@ -6522,8 +6522,8 @@ }, "value": { "type": "StringLiteral", - "start": 3712, - "end": 3719, + "start": 3711, + "end": 3718, "loc": { "start": { "line": 151, @@ -6543,8 +6543,8 @@ }, { "type": "ObjectProperty", - "start": 3731, - "end": 3755, + "start": 3730, + "end": 3754, "loc": { "start": { "line": 152, @@ -6560,8 +6560,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3731, - "end": 3744, + "start": 3730, + "end": 3743, "loc": { "start": { "line": 152, @@ -6577,8 +6577,8 @@ }, "value": { "type": "StringLiteral", - "start": 3746, - "end": 3755, + "start": 3745, + "end": 3754, "loc": { "start": { "line": 152, @@ -6601,8 +6601,8 @@ }, { "type": "ObjectProperty", - "start": 3775, - "end": 3806, + "start": 3774, + "end": 3805, "loc": { "start": { "line": 154, @@ -6618,8 +6618,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3775, - "end": 3795, + "start": 3774, + "end": 3794, "loc": { "start": { "line": 154, @@ -6635,8 +6635,8 @@ }, "value": { "type": "Identifier", - "start": 3797, - "end": 3806, + "start": 3796, + "end": 3805, "loc": { "start": { "line": 154, @@ -6662,8 +6662,8 @@ }, { "type": "ObjectProperty", - "start": 3869, - "end": 3929, + "start": 3868, + "end": 3928, "loc": { "start": { "line": 159, @@ -6679,8 +6679,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3869, - "end": 3884, + "start": 3868, + "end": 3883, "loc": { "start": { "line": 159, @@ -6697,8 +6697,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3886, - "end": 3929, + "start": 3885, + "end": 3928, "loc": { "start": { "line": 159, @@ -6712,8 +6712,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3892, - "end": 3906, + "start": 3891, + "end": 3905, "loc": { "start": { "line": 160, @@ -6729,8 +6729,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3892, - "end": 3899, + "start": 3891, + "end": 3898, "loc": { "start": { "line": 160, @@ -6746,8 +6746,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 3901, - "end": 3906, + "start": 3900, + "end": 3905, "loc": { "start": { "line": 160, @@ -6763,8 +6763,8 @@ }, { "type": "ObjectProperty", - "start": 3912, - "end": 3925, + "start": 3911, + "end": 3924, "loc": { "start": { "line": 161, @@ -6780,8 +6780,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3912, - "end": 3919, + "start": 3911, + "end": 3918, "loc": { "start": { "line": 161, @@ -6797,8 +6797,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 3921, - "end": 3925, + "start": 3920, + "end": 3924, "loc": { "start": { "line": 161, @@ -6818,8 +6818,8 @@ { "type": "CommentLine", "value": " @see generated documentation on top", - "start": 3828, - "end": 3866, + "start": 3827, + "end": 3865, "loc": { "start": { "line": 158, @@ -6835,8 +6835,8 @@ }, { "type": "ObjectProperty", - "start": 3933, - "end": 3957, + "start": 3932, + "end": 3956, "loc": { "start": { "line": 163, @@ -6852,8 +6852,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3933, - "end": 3953, + "start": 3932, + "end": 3952, "loc": { "start": { "line": 163, @@ -6869,8 +6869,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3955, - "end": 3957, + "start": 3954, + "end": 3956, "loc": { "start": { "line": 163, @@ -6890,8 +6890,8 @@ }, { "type": "ObjectProperty", - "start": 3961, - "end": 3980, + "start": 3960, + "end": 3979, "loc": { "start": { "line": 164, @@ -6907,8 +6907,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3961, - "end": 3977, + "start": 3960, + "end": 3976, "loc": { "start": { "line": 164, @@ -6924,8 +6924,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3979, - "end": 3980, + "start": 3978, + "end": 3979, "loc": { "start": { "line": 164, @@ -6945,8 +6945,8 @@ }, { "type": "ObjectProperty", - "start": 3984, - "end": 4010, + "start": 3983, + "end": 4009, "loc": { "start": { "line": 165, @@ -6962,8 +6962,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3984, - "end": 4007, + "start": 3983, + "end": 4006, "loc": { "start": { "line": 165, @@ -6979,8 +6979,8 @@ }, "value": { "type": "NumericLiteral", - "start": 4009, - "end": 4010, + "start": 4008, + "end": 4009, "loc": { "start": { "line": 165, @@ -7000,8 +7000,8 @@ }, { "type": "ObjectProperty", - "start": 4014, - "end": 4032, + "start": 4013, + "end": 4031, "loc": { "start": { "line": 166, @@ -7017,8 +7017,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4014, - "end": 4026, + "start": 4013, + "end": 4025, "loc": { "start": { "line": 166, @@ -7034,8 +7034,8 @@ }, "value": { "type": "NumericLiteral", - "start": 4028, - "end": 4032, + "start": 4027, + "end": 4031, "loc": { "start": { "line": 166, @@ -7055,8 +7055,8 @@ }, { "type": "ObjectProperty", - "start": 4036, - "end": 4051, + "start": 4035, + "end": 4050, "loc": { "start": { "line": 167, @@ -7072,8 +7072,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4036, - "end": 4048, + "start": 4035, + "end": 4047, "loc": { "start": { "line": 167, @@ -7089,8 +7089,8 @@ }, "value": { "type": "NumericLiteral", - "start": 4050, - "end": 4051, + "start": 4049, + "end": 4050, "loc": { "start": { "line": 167, @@ -7110,8 +7110,8 @@ }, { "type": "ObjectProperty", - "start": 4055, - "end": 4078, + "start": 4054, + "end": 4077, "loc": { "start": { "line": 168, @@ -7127,8 +7127,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4055, - "end": 4073, + "start": 4054, + "end": 4072, "loc": { "start": { "line": 168, @@ -7144,8 +7144,8 @@ }, "value": { "type": "NumericLiteral", - "start": 4075, - "end": 4078, + "start": 4074, + "end": 4077, "loc": { "start": { "line": 168, @@ -7165,8 +7165,8 @@ }, { "type": "ObjectProperty", - "start": 4500, - "end": 4577, + "start": 4499, + "end": 4576, "loc": { "start": { "line": 172, @@ -7182,8 +7182,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4500, - "end": 4508, + "start": 4499, + "end": 4507, "loc": { "start": { "line": 172, @@ -7200,8 +7200,8 @@ }, "value": { "type": "ObjectExpression", - "start": 4510, - "end": 4577, + "start": 4509, + "end": 4576, "loc": { "start": { "line": 172, @@ -7215,8 +7215,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 4516, - "end": 4543, + "start": 4515, + "end": 4542, "loc": { "start": { "line": 173, @@ -7232,8 +7232,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4516, - "end": 4529, + "start": 4515, + "end": 4528, "loc": { "start": { "line": 173, @@ -7249,8 +7249,8 @@ }, "value": { "type": "StringLiteral", - "start": 4531, - "end": 4543, + "start": 4530, + "end": 4542, "loc": { "start": { "line": 173, @@ -7270,8 +7270,8 @@ }, { "type": "ObjectProperty", - "start": 4549, - "end": 4573, + "start": 4548, + "end": 4572, "loc": { "start": { "line": 174, @@ -7287,8 +7287,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4549, - "end": 4559, + "start": 4548, + "end": 4558, "loc": { "start": { "line": 174, @@ -7304,8 +7304,8 @@ }, "value": { "type": "StringLiteral", - "start": 4561, - "end": 4573, + "start": 4560, + "end": 4572, "loc": { "start": { "line": 174, @@ -7329,8 +7329,8 @@ { "type": "CommentLine", "value": " Configure when the action is triggered.", - "start": 4082, - "end": 4124, + "start": 4081, + "end": 4123, "loc": { "start": { "line": 169, @@ -7345,8 +7345,8 @@ { "type": "CommentLine", "value": " POINTER_UP : Action is triggered on every PenUP. This is the recommended mode for CDK V3 WebSocket recognitions.", - "start": 4127, - "end": 4242, + "start": 4126, + "end": 4241, "loc": { "start": { "line": 170, @@ -7361,8 +7361,8 @@ { "type": "CommentLine", "value": " QUIET_PERIOD : Action is triggered after a quiet period in milli-seconds on every pointer up. I value is set to 2000 for example the recognition will be fired when user stop writing 2 seconds. This is the recommended mode for all REST recognitions.", - "start": 4245, - "end": 4497, + "start": 4244, + "end": 4496, "loc": { "start": { "line": 171, @@ -7378,8 +7378,8 @@ }, { "type": "ObjectProperty", - "start": 4581, - "end": 4604, + "start": 4580, + "end": 4603, "loc": { "start": { "line": 176, @@ -7395,8 +7395,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4581, - "end": 4600, + "start": 4580, + "end": 4599, "loc": { "start": { "line": 176, @@ -7412,8 +7412,8 @@ }, "value": { "type": "StringLiteral", - "start": 4602, - "end": 4604, + "start": 4601, + "end": 4603, "loc": { "start": { "line": 176, @@ -7433,8 +7433,8 @@ }, { "type": "ObjectProperty", - "start": 4608, - "end": 4694, + "start": 4607, + "end": 4693, "loc": { "start": { "line": 177, @@ -7450,8 +7450,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4608, - "end": 4623, + "start": 4607, + "end": 4622, "loc": { "start": { "line": 177, @@ -7467,8 +7467,8 @@ }, "value": { "type": "ObjectExpression", - "start": 4625, - "end": 4694, + "start": 4624, + "end": 4693, "loc": { "start": { "line": 177, @@ -7482,8 +7482,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 4631, - "end": 4651, + "start": 4630, + "end": 4650, "loc": { "start": { "line": 178, @@ -7499,8 +7499,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4631, - "end": 4638, + "start": 4630, + "end": 4637, "loc": { "start": { "line": 178, @@ -7516,8 +7516,8 @@ }, "value": { "type": "StringLiteral", - "start": 4640, - "end": 4651, + "start": 4639, + "end": 4650, "loc": { "start": { "line": 178, @@ -7537,8 +7537,8 @@ }, { "type": "ObjectProperty", - "start": 4657, - "end": 4671, + "start": 4656, + "end": 4670, "loc": { "start": { "line": 179, @@ -7554,8 +7554,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4657, - "end": 4666, + "start": 4656, + "end": 4665, "loc": { "start": { "line": 179, @@ -7571,8 +7571,8 @@ }, "value": { "type": "NumericLiteral", - "start": 4668, - "end": 4671, + "start": 4667, + "end": 4670, "loc": { "start": { "line": 179, @@ -7592,8 +7592,8 @@ }, { "type": "ObjectProperty", - "start": 4677, - "end": 4690, + "start": 4676, + "end": 4689, "loc": { "start": { "line": 180, @@ -7609,8 +7609,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4677, - "end": 4685, + "start": 4676, + "end": 4684, "loc": { "start": { "line": 180, @@ -7626,8 +7626,8 @@ }, "value": { "type": "NumericLiteral", - "start": 4687, - "end": 4690, + "start": 4686, + "end": 4689, "loc": { "start": { "line": 180, @@ -7660,8 +7660,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 4847, - "end": 5557, + "start": 4846, + "end": 5556, "loc": { "start": { "line": 189, @@ -7676,8 +7676,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 4854, - "end": 5557, + "start": 4853, + "end": 5556, "loc": { "start": { "line": 189, @@ -7690,8 +7690,8 @@ }, "id": { "type": "Identifier", - "start": 4863, - "end": 4891, + "start": 4862, + "end": 4890, "loc": { "start": { "line": 189, @@ -7712,8 +7712,8 @@ "params": [ { "type": "Identifier", - "start": 4892, - "end": 4905, + "start": 4891, + "end": 4904, "loc": { "start": { "line": 189, @@ -7730,8 +7730,8 @@ ], "body": { "type": "BlockStatement", - "start": 4907, - "end": 5557, + "start": 4906, + "end": 5556, "loc": { "start": { "line": 189, @@ -7745,8 +7745,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 4911, - "end": 4941, + "start": 4910, + "end": 4940, "loc": { "start": { "line": 190, @@ -7760,8 +7760,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4917, - "end": 4940, + "start": 4916, + "end": 4939, "loc": { "start": { "line": 190, @@ -7774,8 +7774,8 @@ }, "id": { "type": "Identifier", - "start": 4917, - "end": 4924, + "start": 4916, + "end": 4923, "loc": { "start": { "line": 190, @@ -7791,8 +7791,8 @@ }, "init": { "type": "Identifier", - "start": 4927, - "end": 4940, + "start": 4926, + "end": 4939, "loc": { "start": { "line": 190, @@ -7812,8 +7812,8 @@ }, { "type": "VariableDeclaration", - "start": 4944, - "end": 4969, + "start": 4943, + "end": 4968, "loc": { "start": { "line": 191, @@ -7827,8 +7827,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 4948, - "end": 4968, + "start": 4947, + "end": 4967, "loc": { "start": { "line": 191, @@ -7841,8 +7841,8 @@ }, "id": { "type": "Identifier", - "start": 4948, - "end": 4968, + "start": 4947, + "end": 4967, "loc": { "start": { "line": 191, @@ -7863,8 +7863,8 @@ }, { "type": "IfStatement", - "start": 4972, - "end": 5452, + "start": 4971, + "end": 5451, "loc": { "start": { "line": 192, @@ -7877,8 +7877,8 @@ }, "test": { "type": "LogicalExpression", - "start": 4976, - "end": 5073, + "start": 4975, + "end": 5072, "loc": { "start": { "line": 192, @@ -7891,8 +7891,8 @@ }, "left": { "type": "LogicalExpression", - "start": 4976, - "end": 5019, + "start": 4975, + "end": 5018, "loc": { "start": { "line": 192, @@ -7905,8 +7905,8 @@ }, "left": { "type": "Identifier", - "start": 4976, - "end": 4983, + "start": 4975, + "end": 4982, "loc": { "start": { "line": 192, @@ -7923,8 +7923,8 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 4987, - "end": 5019, + "start": 4986, + "end": 5018, "loc": { "start": { "line": 192, @@ -7937,8 +7937,8 @@ }, "object": { "type": "MemberExpression", - "start": 4987, - "end": 5012, + "start": 4986, + "end": 5011, "loc": { "start": { "line": 192, @@ -7951,8 +7951,8 @@ }, "object": { "type": "Identifier", - "start": 4987, - "end": 4994, + "start": 4986, + "end": 4993, "loc": { "start": { "line": 192, @@ -7968,8 +7968,8 @@ }, "property": { "type": "Identifier", - "start": 4995, - "end": 5012, + "start": 4994, + "end": 5011, "loc": { "start": { "line": 192, @@ -7987,8 +7987,8 @@ }, "property": { "type": "Identifier", - "start": 5013, - "end": 5019, + "start": 5012, + "end": 5018, "loc": { "start": { "line": 192, @@ -8008,8 +8008,8 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 5023, - "end": 5073, + "start": 5022, + "end": 5072, "loc": { "start": { "line": 192, @@ -8022,8 +8022,8 @@ }, "object": { "type": "MemberExpression", - "start": 5023, - "end": 5055, + "start": 5022, + "end": 5054, "loc": { "start": { "line": 192, @@ -8036,8 +8036,8 @@ }, "object": { "type": "MemberExpression", - "start": 5023, - "end": 5048, + "start": 5022, + "end": 5047, "loc": { "start": { "line": 192, @@ -8050,8 +8050,8 @@ }, "object": { "type": "Identifier", - "start": 5023, - "end": 5030, + "start": 5022, + "end": 5029, "loc": { "start": { "line": 192, @@ -8067,8 +8067,8 @@ }, "property": { "type": "Identifier", - "start": 5031, - "end": 5048, + "start": 5030, + "end": 5047, "loc": { "start": { "line": 192, @@ -8086,8 +8086,8 @@ }, "property": { "type": "Identifier", - "start": 5049, - "end": 5055, + "start": 5048, + "end": 5054, "loc": { "start": { "line": 192, @@ -8105,8 +8105,8 @@ }, "property": { "type": "Identifier", - "start": 5056, - "end": 5073, + "start": 5055, + "end": 5072, "loc": { "start": { "line": 192, @@ -8125,8 +8125,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 5075, - "end": 5330, + "start": 5074, + "end": 5329, "loc": { "start": { "line": 192, @@ -8140,8 +8140,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5081, - "end": 5161, + "start": 5080, + "end": 5160, "loc": { "start": { "line": 193, @@ -8154,8 +8154,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5081, - "end": 5160, + "start": 5080, + "end": 5159, "loc": { "start": { "line": 193, @@ -8169,8 +8169,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5081, - "end": 5120, + "start": 5080, + "end": 5119, "loc": { "start": { "line": 193, @@ -8183,8 +8183,8 @@ }, "object": { "type": "MemberExpression", - "start": 5081, - "end": 5113, + "start": 5080, + "end": 5112, "loc": { "start": { "line": 193, @@ -8197,8 +8197,8 @@ }, "object": { "type": "MemberExpression", - "start": 5081, - "end": 5106, + "start": 5080, + "end": 5105, "loc": { "start": { "line": 193, @@ -8211,8 +8211,8 @@ }, "object": { "type": "Identifier", - "start": 5081, - "end": 5088, + "start": 5080, + "end": 5087, "loc": { "start": { "line": 193, @@ -8228,8 +8228,8 @@ }, "property": { "type": "Identifier", - "start": 5089, - "end": 5106, + "start": 5088, + "end": 5105, "loc": { "start": { "line": 193, @@ -8247,8 +8247,8 @@ }, "property": { "type": "Identifier", - "start": 5107, - "end": 5113, + "start": 5106, + "end": 5112, "loc": { "start": { "line": 193, @@ -8266,8 +8266,8 @@ }, "property": { "type": "Identifier", - "start": 5114, - "end": 5120, + "start": 5113, + "end": 5119, "loc": { "start": { "line": 193, @@ -8285,8 +8285,8 @@ }, "right": { "type": "CallExpression", - "start": 5123, - "end": 5160, + "start": 5122, + "end": 5159, "loc": { "start": { "line": 193, @@ -8299,8 +8299,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5123, - "end": 5153, + "start": 5122, + "end": 5152, "loc": { "start": { "line": 193, @@ -8313,8 +8313,8 @@ }, "object": { "type": "MemberExpression", - "start": 5123, - "end": 5147, + "start": 5122, + "end": 5146, "loc": { "start": { "line": 193, @@ -8327,8 +8327,8 @@ }, "object": { "type": "MemberExpression", - "start": 5123, - "end": 5138, + "start": 5122, + "end": 5137, "loc": { "start": { "line": 193, @@ -8341,8 +8341,8 @@ }, "object": { "type": "Identifier", - "start": 5123, - "end": 5129, + "start": 5122, + "end": 5128, "loc": { "start": { "line": 193, @@ -8358,8 +8358,8 @@ }, "property": { "type": "Identifier", - "start": 5130, - "end": 5138, + "start": 5129, + "end": 5137, "loc": { "start": { "line": 193, @@ -8377,8 +8377,8 @@ }, "property": { "type": "Identifier", - "start": 5139, - "end": 5147, + "start": 5138, + "end": 5146, "loc": { "start": { "line": 193, @@ -8396,8 +8396,8 @@ }, "property": { "type": "Identifier", - "start": 5148, - "end": 5153, + "start": 5147, + "end": 5152, "loc": { "start": { "line": 193, @@ -8416,8 +8416,8 @@ "arguments": [ { "type": "NumericLiteral", - "start": 5154, - "end": 5155, + "start": 5153, + "end": 5154, "loc": { "start": { "line": 193, @@ -8436,8 +8436,8 @@ }, { "type": "UnaryExpression", - "start": 5157, - "end": 5159, + "start": 5156, + "end": 5158, "loc": { "start": { "line": 193, @@ -8452,8 +8452,8 @@ "prefix": true, "argument": { "type": "NumericLiteral", - "start": 5158, - "end": 5159, + "start": 5157, + "end": 5158, "loc": { "start": { "line": 193, @@ -8480,8 +8480,8 @@ }, { "type": "ExpressionStatement", - "start": 5166, - "end": 5227, + "start": 5165, + "end": 5226, "loc": { "start": { "line": 194, @@ -8494,8 +8494,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5166, - "end": 5226, + "start": 5165, + "end": 5225, "loc": { "start": { "line": 194, @@ -8509,8 +8509,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 5166, - "end": 5203, + "start": 5165, + "end": 5202, "loc": { "start": { "line": 194, @@ -8523,8 +8523,8 @@ }, "object": { "type": "MemberExpression", - "start": 5166, - "end": 5198, + "start": 5165, + "end": 5197, "loc": { "start": { "line": 194, @@ -8537,8 +8537,8 @@ }, "object": { "type": "MemberExpression", - "start": 5166, - "end": 5191, + "start": 5165, + "end": 5190, "loc": { "start": { "line": 194, @@ -8551,8 +8551,8 @@ }, "object": { "type": "Identifier", - "start": 5166, - "end": 5173, + "start": 5165, + "end": 5172, "loc": { "start": { "line": 194, @@ -8568,8 +8568,8 @@ }, "property": { "type": "Identifier", - "start": 5174, - "end": 5191, + "start": 5173, + "end": 5190, "loc": { "start": { "line": 194, @@ -8587,8 +8587,8 @@ }, "property": { "type": "Identifier", - "start": 5192, - "end": 5198, + "start": 5191, + "end": 5197, "loc": { "start": { "line": 194, @@ -8606,8 +8606,8 @@ }, "property": { "type": "Identifier", - "start": 5199, - "end": 5203, + "start": 5198, + "end": 5202, "loc": { "start": { "line": 194, @@ -8625,8 +8625,8 @@ }, "right": { "type": "MemberExpression", - "start": 5206, - "end": 5226, + "start": 5205, + "end": 5225, "loc": { "start": { "line": 194, @@ -8639,8 +8639,8 @@ }, "object": { "type": "MemberExpression", - "start": 5206, - "end": 5221, + "start": 5205, + "end": 5220, "loc": { "start": { "line": 194, @@ -8653,8 +8653,8 @@ }, "object": { "type": "Identifier", - "start": 5206, - "end": 5212, + "start": 5205, + "end": 5211, "loc": { "start": { "line": 194, @@ -8670,8 +8670,8 @@ }, "property": { "type": "Identifier", - "start": 5213, - "end": 5221, + "start": 5212, + "end": 5220, "loc": { "start": { "line": 194, @@ -8689,8 +8689,8 @@ }, "property": { "type": "Identifier", - "start": 5222, - "end": 5226, + "start": 5221, + "end": 5225, "loc": { "start": { "line": 194, @@ -8710,8 +8710,8 @@ }, { "type": "ExpressionStatement", - "start": 5232, - "end": 5326, + "start": 5231, + "end": 5325, "loc": { "start": { "line": 195, @@ -8724,8 +8724,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5232, - "end": 5325, + "start": 5231, + "end": 5324, "loc": { "start": { "line": 195, @@ -8739,8 +8739,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 5232, - "end": 5252, + "start": 5231, + "end": 5251, "loc": { "start": { "line": 195, @@ -8756,8 +8756,8 @@ }, "right": { "type": "CallExpression", - "start": 5255, - "end": 5325, + "start": 5254, + "end": 5324, "loc": { "start": { "line": 195, @@ -8770,8 +8770,8 @@ }, "callee": { "type": "Identifier", - "start": 5255, - "end": 5261, + "start": 5254, + "end": 5260, "loc": { "start": { "line": 195, @@ -8788,8 +8788,8 @@ "arguments": [ { "type": "ObjectExpression", - "start": 5262, - "end": 5264, + "start": 5261, + "end": 5263, "loc": { "start": { "line": 195, @@ -8804,8 +8804,8 @@ }, { "type": "Identifier", - "start": 5266, - "end": 5286, + "start": 5265, + "end": 5285, "loc": { "start": { "line": 195, @@ -8821,8 +8821,8 @@ }, { "type": "ConditionalExpression", - "start": 5288, - "end": 5324, + "start": 5287, + "end": 5323, "loc": { "start": { "line": 195, @@ -8835,8 +8835,8 @@ }, "test": { "type": "BinaryExpression", - "start": 5288, - "end": 5309, + "start": 5287, + "end": 5308, "loc": { "start": { "line": 195, @@ -8849,8 +8849,8 @@ }, "left": { "type": "Identifier", - "start": 5288, - "end": 5295, + "start": 5287, + "end": 5294, "loc": { "start": { "line": 195, @@ -8867,8 +8867,8 @@ "operator": "===", "right": { "type": "Identifier", - "start": 5300, - "end": 5309, + "start": 5299, + "end": 5308, "loc": { "start": { "line": 195, @@ -8885,8 +8885,8 @@ }, "consequent": { "type": "ObjectExpression", - "start": 5312, - "end": 5314, + "start": 5311, + "end": 5313, "loc": { "start": { "line": 195, @@ -8901,8 +8901,8 @@ }, "alternate": { "type": "Identifier", - "start": 5317, - "end": 5324, + "start": 5316, + "end": 5323, "loc": { "start": { "line": 195, @@ -8926,8 +8926,8 @@ }, "alternate": { "type": "BlockStatement", - "start": 5336, - "end": 5452, + "start": 5335, + "end": 5451, "loc": { "start": { "line": 196, @@ -8941,8 +8941,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 5342, - "end": 5448, + "start": 5341, + "end": 5447, "loc": { "start": { "line": 197, @@ -8955,8 +8955,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 5342, - "end": 5447, + "start": 5341, + "end": 5446, "loc": { "start": { "line": 197, @@ -8970,8 +8970,8 @@ "operator": "=", "left": { "type": "Identifier", - "start": 5342, - "end": 5362, + "start": 5341, + "end": 5361, "loc": { "start": { "line": 197, @@ -8987,8 +8987,8 @@ }, "right": { "type": "CallExpression", - "start": 5365, - "end": 5447, + "start": 5364, + "end": 5446, "loc": { "start": { "line": 197, @@ -9001,8 +9001,8 @@ }, "callee": { "type": "Identifier", - "start": 5365, - "end": 5371, + "start": 5364, + "end": 5370, "loc": { "start": { "line": 197, @@ -9019,8 +9019,8 @@ "arguments": [ { "type": "ObjectExpression", - "start": 5372, - "end": 5374, + "start": 5371, + "end": 5373, "loc": { "start": { "line": 197, @@ -9035,8 +9035,8 @@ }, { "type": "Identifier", - "start": 5376, - "end": 5396, + "start": 5375, + "end": 5395, "loc": { "start": { "line": 197, @@ -9052,8 +9052,8 @@ }, { "type": "ConditionalExpression", - "start": 5398, - "end": 5446, + "start": 5397, + "end": 5445, "loc": { "start": { "line": 197, @@ -9066,8 +9066,8 @@ }, "test": { "type": "BinaryExpression", - "start": 5398, - "end": 5425, + "start": 5397, + "end": 5424, "loc": { "start": { "line": 197, @@ -9080,8 +9080,8 @@ }, "left": { "type": "Identifier", - "start": 5398, - "end": 5411, + "start": 5397, + "end": 5410, "loc": { "start": { "line": 197, @@ -9098,8 +9098,8 @@ "operator": "===", "right": { "type": "Identifier", - "start": 5416, - "end": 5425, + "start": 5415, + "end": 5424, "loc": { "start": { "line": 197, @@ -9116,8 +9116,8 @@ }, "consequent": { "type": "ObjectExpression", - "start": 5428, - "end": 5430, + "start": 5427, + "end": 5429, "loc": { "start": { "line": 197, @@ -9132,8 +9132,8 @@ }, "alternate": { "type": "Identifier", - "start": 5433, - "end": 5446, + "start": 5432, + "end": 5445, "loc": { "start": { "line": 197, @@ -9158,8 +9158,8 @@ }, { "type": "ExpressionStatement", - "start": 5455, - "end": 5524, + "start": 5454, + "end": 5523, "loc": { "start": { "line": 199, @@ -9172,8 +9172,8 @@ }, "expression": { "type": "CallExpression", - "start": 5455, - "end": 5523, + "start": 5454, + "end": 5522, "loc": { "start": { "line": 199, @@ -9186,8 +9186,8 @@ }, "callee": { "type": "MemberExpression", - "start": 5455, - "end": 5467, + "start": 5454, + "end": 5466, "loc": { "start": { "line": 199, @@ -9200,8 +9200,8 @@ }, "object": { "type": "Identifier", - "start": 5455, - "end": 5461, + "start": 5454, + "end": 5460, "loc": { "start": { "line": 199, @@ -9217,8 +9217,8 @@ }, "property": { "type": "Identifier", - "start": 5462, - "end": 5467, + "start": 5461, + "end": 5466, "loc": { "start": { "line": 199, @@ -9237,8 +9237,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 5468, - "end": 5500, + "start": 5467, + "end": 5499, "loc": { "start": { "line": 199, @@ -9257,8 +9257,8 @@ }, { "type": "Identifier", - "start": 5502, - "end": 5522, + "start": 5501, + "end": 5521, "loc": { "start": { "line": 199, @@ -9277,8 +9277,8 @@ }, { "type": "ReturnStatement", - "start": 5527, - "end": 5555, + "start": 5526, + "end": 5554, "loc": { "start": { "line": 200, @@ -9291,8 +9291,8 @@ }, "argument": { "type": "Identifier", - "start": 5534, - "end": 5554, + "start": 5533, + "end": 5553, "loc": { "start": { "line": 200, @@ -9314,8 +9314,8 @@ { "type": "CommentBlock", "value": "*\n * Generate parameters\n * @param {Configuration} configuration Configuration to be used\n * @return {Configuration} Overridden configuration\n ", - "start": 4699, - "end": 4846, + "start": 4698, + "end": 4845, "loc": { "start": { "line": 184, @@ -9334,8 +9334,8 @@ { "type": "CommentBlock", "value": "*\n * Generate parameters\n * @param {Configuration} configuration Configuration to be used\n * @return {Configuration} Overridden configuration\n ", - "start": 4699, - "end": 4846, + "start": 4698, + "end": 4845, "loc": { "start": { "line": 184, @@ -9351,8 +9351,8 @@ }, { "type": "Identifier", - "start": 5559, - "end": 5595, + "start": 5558, + "end": 5594, "loc": { "start": { "line": 203, @@ -9365,8 +9365,8 @@ }, "declaration": { "type": "Identifier", - "start": 5574, - "end": 5594, + "start": 5573, + "end": 5593, "loc": { "start": { "line": 203, @@ -9386,8 +9386,8 @@ }, { "type": "ExportDefaultDeclaration", - "start": 5559, - "end": 5595, + "start": 5558, + "end": 5594, "loc": { "start": { "line": 203, @@ -9401,7 +9401,7 @@ "declaration": { "type": "VariableDeclaration", "start": 286, - "end": 4697, + "end": 4696, "loc": { "start": { "line": 10, @@ -9416,7 +9416,7 @@ { "type": "VariableDeclarator", "start": 292, - "end": 4696, + "end": 4695, "loc": { "start": { "line": 10, @@ -9448,7 +9448,7 @@ "init": { "type": "ObjectExpression", "start": 315, - "end": 4696, + "end": 4695, "loc": { "start": { "line": 10, @@ -9463,7 +9463,7 @@ { "type": "ObjectProperty", "start": 319, - "end": 3824, + "end": 3823, "loc": { "start": { "line": 11, @@ -9497,7 +9497,7 @@ "value": { "type": "ObjectExpression", "start": 338, - "end": 3824, + "end": 3823, "loc": { "start": { "line": 11, @@ -10368,7 +10368,7 @@ { "type": "ObjectProperty", "start": 775, - "end": 2230, + "end": 2229, "loc": { "start": { "line": 30, @@ -10402,7 +10402,7 @@ "value": { "type": "ObjectExpression", "start": 779, - "end": 2230, + "end": 2229, "loc": { "start": { "line": 30, @@ -10417,7 +10417,7 @@ { "type": "ObjectProperty", "start": 787, - "end": 809, + "end": 808, "loc": { "start": { "line": 31, @@ -10425,7 +10425,7 @@ }, "end": { "line": 31, - "column": 28 + "column": 27 } }, "method": false, @@ -10451,7 +10451,7 @@ "value": { "type": "BooleanLiteral", "start": 804, - "end": 809, + "end": 808, "loc": { "start": { "line": 31, @@ -10459,16 +10459,16 @@ }, "end": { "line": 31, - "column": 28 + "column": 27 } }, - "value": false + "value": true } }, { "type": "ObjectProperty", - "start": 817, - "end": 830, + "start": 816, + "end": 829, "loc": { "start": { "line": 32, @@ -10484,8 +10484,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 817, - "end": 821, + "start": 816, + "end": 820, "loc": { "start": { "line": 32, @@ -10501,8 +10501,8 @@ }, "value": { "type": "StringLiteral", - "start": 823, - "end": 830, + "start": 822, + "end": 829, "loc": { "start": { "line": 32, @@ -10522,8 +10522,8 @@ }, { "type": "ObjectProperty", - "start": 838, - "end": 1053, + "start": 837, + "end": 1052, "loc": { "start": { "line": 33, @@ -10539,8 +10539,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 838, - "end": 844, + "start": 837, + "end": 843, "loc": { "start": { "line": 33, @@ -10556,8 +10556,8 @@ }, "value": { "type": "ObjectExpression", - "start": 846, - "end": 1053, + "start": 845, + "end": 1052, "loc": { "start": { "line": 33, @@ -10571,8 +10571,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 856, - "end": 879, + "start": 855, + "end": 878, "loc": { "start": { "line": 34, @@ -10588,8 +10588,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 856, - "end": 874, + "start": 855, + "end": 873, "loc": { "start": { "line": 34, @@ -10608,8 +10608,8 @@ }, "value": { "type": "NumericLiteral", - "start": 876, - "end": 879, + "start": 875, + "end": 878, "loc": { "start": { "line": 34, @@ -10629,8 +10629,8 @@ }, { "type": "ObjectProperty", - "start": 889, - "end": 1045, + "start": 888, + "end": 1044, "loc": { "start": { "line": 35, @@ -10646,8 +10646,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 889, - "end": 893, + "start": 888, + "end": 892, "loc": { "start": { "line": 35, @@ -10663,8 +10663,8 @@ }, "value": { "type": "ObjectExpression", - "start": 895, - "end": 1045, + "start": 894, + "end": 1044, "loc": { "start": { "line": 35, @@ -10678,8 +10678,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 907, - "end": 928, + "start": 906, + "end": 927, "loc": { "start": { "line": 36, @@ -10695,8 +10695,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 907, - "end": 921, + "start": 906, + "end": 920, "loc": { "start": { "line": 36, @@ -10715,8 +10715,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 923, - "end": 928, + "start": 922, + "end": 927, "loc": { "start": { "line": 36, @@ -10732,8 +10732,8 @@ }, { "type": "ObjectProperty", - "start": 940, - "end": 954, + "start": 939, + "end": 953, "loc": { "start": { "line": 37, @@ -10749,8 +10749,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 940, - "end": 947, + "start": 939, + "end": 946, "loc": { "start": { "line": 37, @@ -10766,8 +10766,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 949, - "end": 954, + "start": 948, + "end": 953, "loc": { "start": { "line": 37, @@ -10783,8 +10783,8 @@ }, { "type": "ObjectProperty", - "start": 966, - "end": 1035, + "start": 965, + "end": 1034, "loc": { "start": { "line": 38, @@ -10800,8 +10800,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 966, - "end": 970, + "start": 965, + "end": 969, "loc": { "start": { "line": 38, @@ -10817,8 +10817,8 @@ }, "value": { "type": "ObjectExpression", - "start": 972, - "end": 1035, + "start": 971, + "end": 1034, "loc": { "start": { "line": 38, @@ -10832,8 +10832,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 986, - "end": 998, + "start": 985, + "end": 997, "loc": { "start": { "line": 39, @@ -10849,8 +10849,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 986, - "end": 991, + "start": 985, + "end": 990, "loc": { "start": { "line": 39, @@ -10866,8 +10866,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 993, - "end": 998, + "start": 992, + "end": 997, "loc": { "start": { "line": 39, @@ -10883,8 +10883,8 @@ }, { "type": "ObjectProperty", - "start": 1012, - "end": 1023, + "start": 1011, + "end": 1022, "loc": { "start": { "line": 40, @@ -10900,8 +10900,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1012, - "end": 1017, + "start": 1011, + "end": 1016, "loc": { "start": { "line": 40, @@ -10917,8 +10917,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 1019, - "end": 1023, + "start": 1018, + "end": 1022, "loc": { "start": { "line": 40, @@ -10943,8 +10943,8 @@ }, { "type": "ObjectProperty", - "start": 1061, - "end": 1179, + "start": 1060, + "end": 1178, "loc": { "start": { "line": 44, @@ -10960,8 +10960,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1061, - "end": 1069, + "start": 1060, + "end": 1068, "loc": { "start": { "line": 44, @@ -10977,8 +10977,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1071, - "end": 1179, + "start": 1070, + "end": 1178, "loc": { "start": { "line": 44, @@ -10992,8 +10992,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1081, - "end": 1171, + "start": 1080, + "end": 1170, "loc": { "start": { "line": 45, @@ -11009,8 +11009,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1081, - "end": 1086, + "start": 1080, + "end": 1085, "loc": { "start": { "line": 45, @@ -11026,8 +11026,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1088, - "end": 1171, + "start": 1087, + "end": 1170, "loc": { "start": { "line": 45, @@ -11041,8 +11041,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1100, - "end": 1124, + "start": 1099, + "end": 1123, "loc": { "start": { "line": 46, @@ -11058,8 +11058,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 1100, - "end": 1117, + "start": 1099, + "end": 1116, "loc": { "start": { "line": 46, @@ -11078,8 +11078,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 1119, - "end": 1124, + "start": 1118, + "end": 1123, "loc": { "start": { "line": 46, @@ -11095,8 +11095,8 @@ }, { "type": "ObjectProperty", - "start": 1136, - "end": 1161, + "start": 1135, + "end": 1160, "loc": { "start": { "line": 47, @@ -11112,8 +11112,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 1136, - "end": 1154, + "start": 1135, + "end": 1153, "loc": { "start": { "line": 47, @@ -11132,8 +11132,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 1156, - "end": 1161, + "start": 1155, + "end": 1160, "loc": { "start": { "line": 47, @@ -11155,8 +11155,8 @@ }, { "type": "ObjectProperty", - "start": 1187, - "end": 1577, + "start": 1186, + "end": 1576, "loc": { "start": { "line": 50, @@ -11172,8 +11172,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1187, - "end": 1191, + "start": 1186, + "end": 1190, "loc": { "start": { "line": 50, @@ -11189,8 +11189,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1193, - "end": 1577, + "start": 1192, + "end": 1576, "loc": { "start": { "line": 50, @@ -11204,8 +11204,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1203, - "end": 1263, + "start": 1202, + "end": 1262, "loc": { "start": { "line": 51, @@ -11221,8 +11221,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1203, - "end": 1212, + "start": 1202, + "end": 1211, "loc": { "start": { "line": 51, @@ -11238,8 +11238,8 @@ }, "value": { "type": "ArrayExpression", - "start": 1214, - "end": 1263, + "start": 1213, + "end": 1262, "loc": { "start": { "line": 51, @@ -11253,8 +11253,8 @@ "elements": [ { "type": "StringLiteral", - "start": 1215, - "end": 1236, + "start": 1214, + "end": 1235, "loc": { "start": { "line": 51, @@ -11273,8 +11273,8 @@ }, { "type": "StringLiteral", - "start": 1238, - "end": 1262, + "start": 1237, + "end": 1261, "loc": { "start": { "line": 51, @@ -11296,8 +11296,8 @@ }, { "type": "ObjectProperty", - "start": 1273, - "end": 1459, + "start": 1272, + "end": 1458, "loc": { "start": { "line": 52, @@ -11313,8 +11313,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1273, - "end": 1279, + "start": 1272, + "end": 1278, "loc": { "start": { "line": 52, @@ -11330,8 +11330,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1281, - "end": 1459, + "start": 1280, + "end": 1458, "loc": { "start": { "line": 52, @@ -11345,8 +11345,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1293, - "end": 1305, + "start": 1292, + "end": 1304, "loc": { "start": { "line": 53, @@ -11362,8 +11362,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1293, - "end": 1299, + "start": 1292, + "end": 1298, "loc": { "start": { "line": 53, @@ -11379,8 +11379,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 1301, - "end": 1305, + "start": 1300, + "end": 1304, "loc": { "start": { "line": 53, @@ -11396,8 +11396,8 @@ }, { "type": "ObjectProperty", - "start": 1317, - "end": 1344, + "start": 1316, + "end": 1343, "loc": { "start": { "line": 54, @@ -11413,8 +11413,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 1317, - "end": 1341, + "start": 1316, + "end": 1340, "loc": { "start": { "line": 54, @@ -11433,8 +11433,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1343, - "end": 1344, + "start": 1342, + "end": 1343, "loc": { "start": { "line": 54, @@ -11454,8 +11454,8 @@ }, { "type": "ObjectProperty", - "start": 1356, - "end": 1380, + "start": 1355, + "end": 1379, "loc": { "start": { "line": 55, @@ -11471,8 +11471,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 1356, - "end": 1375, + "start": 1355, + "end": 1374, "loc": { "start": { "line": 55, @@ -11491,8 +11491,8 @@ }, "value": { "type": "StringLiteral", - "start": 1377, - "end": 1380, + "start": 1376, + "end": 1379, "loc": { "start": { "line": 55, @@ -11512,8 +11512,8 @@ }, { "type": "ObjectProperty", - "start": 1392, - "end": 1418, + "start": 1391, + "end": 1417, "loc": { "start": { "line": 56, @@ -11529,8 +11529,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 1392, - "end": 1407, + "start": 1391, + "end": 1406, "loc": { "start": { "line": 56, @@ -11549,8 +11549,8 @@ }, "value": { "type": "StringLiteral", - "start": 1409, - "end": 1418, + "start": 1408, + "end": 1417, "loc": { "start": { "line": 56, @@ -11570,8 +11570,8 @@ }, { "type": "ObjectProperty", - "start": 1430, - "end": 1449, + "start": 1429, + "end": 1448, "loc": { "start": { "line": 57, @@ -11587,8 +11587,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 1430, - "end": 1442, + "start": 1429, + "end": 1441, "loc": { "start": { "line": 57, @@ -11607,8 +11607,8 @@ }, "value": { "type": "StringLiteral", - "start": 1444, - "end": 1449, + "start": 1443, + "end": 1448, "loc": { "start": { "line": 57, @@ -11631,8 +11631,8 @@ }, { "type": "ObjectProperty", - "start": 1469, - "end": 1569, + "start": 1468, + "end": 1568, "loc": { "start": { "line": 59, @@ -11648,8 +11648,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1469, - "end": 1475, + "start": 1468, + "end": 1474, "loc": { "start": { "line": 59, @@ -11665,8 +11665,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1477, - "end": 1569, + "start": 1476, + "end": 1568, "loc": { "start": { "line": 59, @@ -11680,8 +11680,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1489, - "end": 1499, + "start": 1488, + "end": 1498, "loc": { "start": { "line": 60, @@ -11697,8 +11697,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1489, - "end": 1495, + "start": 1488, + "end": 1494, "loc": { "start": { "line": 60, @@ -11714,8 +11714,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1497, - "end": 1499, + "start": 1496, + "end": 1498, "loc": { "start": { "line": 60, @@ -11735,8 +11735,8 @@ }, { "type": "ObjectProperty", - "start": 1511, - "end": 1519, + "start": 1510, + "end": 1518, "loc": { "start": { "line": 61, @@ -11752,8 +11752,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1511, - "end": 1515, + "start": 1510, + "end": 1514, "loc": { "start": { "line": 61, @@ -11769,8 +11769,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1517, - "end": 1519, + "start": 1516, + "end": 1518, "loc": { "start": { "line": 61, @@ -11790,8 +11790,8 @@ }, { "type": "ObjectProperty", - "start": 1531, - "end": 1540, + "start": 1530, + "end": 1539, "loc": { "start": { "line": 62, @@ -11807,8 +11807,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1531, - "end": 1536, + "start": 1530, + "end": 1535, "loc": { "start": { "line": 62, @@ -11824,8 +11824,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1538, - "end": 1540, + "start": 1537, + "end": 1539, "loc": { "start": { "line": 62, @@ -11845,8 +11845,8 @@ }, { "type": "ObjectProperty", - "start": 1552, - "end": 1559, + "start": 1551, + "end": 1558, "loc": { "start": { "line": 63, @@ -11862,8 +11862,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1552, - "end": 1555, + "start": 1551, + "end": 1554, "loc": { "start": { "line": 63, @@ -11879,8 +11879,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1557, - "end": 1559, + "start": 1556, + "end": 1558, "loc": { "start": { "line": 63, @@ -11906,8 +11906,8 @@ }, { "type": "ObjectProperty", - "start": 1585, - "end": 1924, + "start": 1584, + "end": 1923, "loc": { "start": { "line": 66, @@ -11923,8 +11923,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1585, - "end": 1589, + "start": 1584, + "end": 1588, "loc": { "start": { "line": 66, @@ -11940,8 +11940,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1591, - "end": 1924, + "start": 1590, + "end": 1923, "loc": { "start": { "line": 66, @@ -11955,8 +11955,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1601, - "end": 1643, + "start": 1600, + "end": 1642, "loc": { "start": { "line": 67, @@ -11972,8 +11972,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1601, - "end": 1607, + "start": 1600, + "end": 1606, "loc": { "start": { "line": 67, @@ -11989,8 +11989,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1609, - "end": 1643, + "start": 1608, + "end": 1642, "loc": { "start": { "line": 67, @@ -12004,8 +12004,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1621, - "end": 1633, + "start": 1620, + "end": 1632, "loc": { "start": { "line": 68, @@ -12021,8 +12021,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1621, - "end": 1627, + "start": 1620, + "end": 1626, "loc": { "start": { "line": 68, @@ -12038,8 +12038,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 1629, - "end": 1633, + "start": 1628, + "end": 1632, "loc": { "start": { "line": 68, @@ -12058,8 +12058,8 @@ }, { "type": "ObjectProperty", - "start": 1653, - "end": 1669, + "start": 1652, + "end": 1668, "loc": { "start": { "line": 70, @@ -12075,8 +12075,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1653, - "end": 1663, + "start": 1652, + "end": 1662, "loc": { "start": { "line": 70, @@ -12092,8 +12092,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 1665, - "end": 1669, + "start": 1664, + "end": 1668, "loc": { "start": { "line": 70, @@ -12109,8 +12109,8 @@ }, { "type": "ObjectProperty", - "start": 1679, - "end": 1760, + "start": 1678, + "end": 1759, "loc": { "start": { "line": 71, @@ -12126,8 +12126,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1679, - "end": 1696, + "start": 1678, + "end": 1695, "loc": { "start": { "line": 71, @@ -12143,8 +12143,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1698, - "end": 1760, + "start": 1697, + "end": 1759, "loc": { "start": { "line": 71, @@ -12158,8 +12158,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1710, - "end": 1723, + "start": 1709, + "end": 1722, "loc": { "start": { "line": 72, @@ -12175,8 +12175,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1710, - "end": 1716, + "start": 1709, + "end": 1715, "loc": { "start": { "line": 72, @@ -12192,8 +12192,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 1718, - "end": 1723, + "start": 1717, + "end": 1722, "loc": { "start": { "line": 72, @@ -12209,8 +12209,8 @@ }, { "type": "ObjectProperty", - "start": 1735, - "end": 1750, + "start": 1734, + "end": 1749, "loc": { "start": { "line": 73, @@ -12226,8 +12226,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1735, - "end": 1743, + "start": 1734, + "end": 1742, "loc": { "start": { "line": 73, @@ -12243,8 +12243,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1745, - "end": 1750, + "start": 1744, + "end": 1749, "loc": { "start": { "line": 73, @@ -12267,8 +12267,8 @@ }, { "type": "ObjectProperty", - "start": 1770, - "end": 1828, + "start": 1769, + "end": 1827, "loc": { "start": { "line": 75, @@ -12284,8 +12284,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1770, - "end": 1779, + "start": 1769, + "end": 1778, "loc": { "start": { "line": 75, @@ -12301,8 +12301,8 @@ }, "value": { "type": "ArrayExpression", - "start": 1781, - "end": 1828, + "start": 1780, + "end": 1827, "loc": { "start": { "line": 75, @@ -12316,8 +12316,8 @@ "elements": [ { "type": "StringLiteral", - "start": 1782, - "end": 1794, + "start": 1781, + "end": 1793, "loc": { "start": { "line": 75, @@ -12336,8 +12336,8 @@ }, { "type": "StringLiteral", - "start": 1796, - "end": 1827, + "start": 1795, + "end": 1826, "loc": { "start": { "line": 75, @@ -12359,8 +12359,8 @@ }, { "type": "ObjectProperty", - "start": 1838, - "end": 1916, + "start": 1837, + "end": 1915, "loc": { "start": { "line": 76, @@ -12376,8 +12376,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1838, - "end": 1844, + "start": 1837, + "end": 1843, "loc": { "start": { "line": 76, @@ -12393,8 +12393,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1846, - "end": 1916, + "start": 1845, + "end": 1915, "loc": { "start": { "line": 76, @@ -12408,8 +12408,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1858, - "end": 1865, + "start": 1857, + "end": 1864, "loc": { "start": { "line": 77, @@ -12425,8 +12425,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1858, - "end": 1861, + "start": 1857, + "end": 1860, "loc": { "start": { "line": 77, @@ -12442,8 +12442,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1863, - "end": 1865, + "start": 1862, + "end": 1864, "loc": { "start": { "line": 77, @@ -12463,8 +12463,8 @@ }, { "type": "ObjectProperty", - "start": 1877, - "end": 1885, + "start": 1876, + "end": 1884, "loc": { "start": { "line": 78, @@ -12480,8 +12480,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1877, - "end": 1881, + "start": 1876, + "end": 1880, "loc": { "start": { "line": 78, @@ -12497,8 +12497,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1883, - "end": 1885, + "start": 1882, + "end": 1884, "loc": { "start": { "line": 78, @@ -12518,8 +12518,8 @@ }, { "type": "ObjectProperty", - "start": 1897, - "end": 1906, + "start": 1896, + "end": 1905, "loc": { "start": { "line": 79, @@ -12535,8 +12535,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1897, - "end": 1902, + "start": 1896, + "end": 1901, "loc": { "start": { "line": 79, @@ -12552,8 +12552,8 @@ }, "value": { "type": "NumericLiteral", - "start": 1904, - "end": 1906, + "start": 1903, + "end": 1905, "loc": { "start": { "line": 79, @@ -12579,8 +12579,8 @@ }, { "type": "ObjectProperty", - "start": 1932, - "end": 2113, + "start": 1931, + "end": 2112, "loc": { "start": { "line": 82, @@ -12596,8 +12596,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1932, - "end": 1939, + "start": 1931, + "end": 1938, "loc": { "start": { "line": 82, @@ -12613,8 +12613,8 @@ }, "value": { "type": "ObjectExpression", - "start": 1941, - "end": 2113, + "start": 1940, + "end": 2112, "loc": { "start": { "line": 82, @@ -12628,8 +12628,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 1951, - "end": 1995, + "start": 1950, + "end": 1994, "loc": { "start": { "line": 83, @@ -12645,8 +12645,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1951, - "end": 1960, + "start": 1950, + "end": 1959, "loc": { "start": { "line": 83, @@ -12662,8 +12662,8 @@ }, "value": { "type": "ArrayExpression", - "start": 1962, - "end": 1995, + "start": 1961, + "end": 1994, "loc": { "start": { "line": 83, @@ -12677,8 +12677,8 @@ "elements": [ { "type": "StringLiteral", - "start": 1963, - "end": 1994, + "start": 1962, + "end": 1993, "loc": { "start": { "line": 83, @@ -12700,8 +12700,8 @@ }, { "type": "ObjectProperty", - "start": 2005, - "end": 2105, + "start": 2004, + "end": 2104, "loc": { "start": { "line": 84, @@ -12717,8 +12717,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2005, - "end": 2011, + "start": 2004, + "end": 2010, "loc": { "start": { "line": 84, @@ -12734,8 +12734,8 @@ }, "value": { "type": "ObjectExpression", - "start": 2013, - "end": 2105, + "start": 2012, + "end": 2104, "loc": { "start": { "line": 84, @@ -12749,8 +12749,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2025, - "end": 2035, + "start": 2024, + "end": 2034, "loc": { "start": { "line": 85, @@ -12766,8 +12766,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2025, - "end": 2031, + "start": 2024, + "end": 2030, "loc": { "start": { "line": 85, @@ -12783,8 +12783,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2033, - "end": 2035, + "start": 2032, + "end": 2034, "loc": { "start": { "line": 85, @@ -12804,8 +12804,8 @@ }, { "type": "ObjectProperty", - "start": 2047, - "end": 2055, + "start": 2046, + "end": 2054, "loc": { "start": { "line": 86, @@ -12821,8 +12821,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2047, - "end": 2051, + "start": 2046, + "end": 2050, "loc": { "start": { "line": 86, @@ -12838,8 +12838,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2053, - "end": 2055, + "start": 2052, + "end": 2054, "loc": { "start": { "line": 86, @@ -12859,8 +12859,8 @@ }, { "type": "ObjectProperty", - "start": 2067, - "end": 2076, + "start": 2066, + "end": 2075, "loc": { "start": { "line": 87, @@ -12876,8 +12876,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2067, - "end": 2072, + "start": 2066, + "end": 2071, "loc": { "start": { "line": 87, @@ -12893,8 +12893,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2074, - "end": 2076, + "start": 2073, + "end": 2075, "loc": { "start": { "line": 87, @@ -12914,8 +12914,8 @@ }, { "type": "ObjectProperty", - "start": 2088, - "end": 2095, + "start": 2087, + "end": 2094, "loc": { "start": { "line": 88, @@ -12931,8 +12931,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2088, - "end": 2091, + "start": 2087, + "end": 2090, "loc": { "start": { "line": 88, @@ -12948,8 +12948,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2093, - "end": 2095, + "start": 2092, + "end": 2094, "loc": { "start": { "line": 88, @@ -12975,8 +12975,8 @@ }, { "type": "ObjectProperty", - "start": 2121, - "end": 2224, + "start": 2120, + "end": 2223, "loc": { "start": { "line": 91, @@ -12992,8 +12992,8 @@ "computed": false, "key": { "type": "StringLiteral", - "start": 2121, - "end": 2134, + "start": 2120, + "end": 2133, "loc": { "start": { "line": 91, @@ -13012,8 +13012,8 @@ }, "value": { "type": "ObjectExpression", - "start": 2136, - "end": 2224, + "start": 2135, + "end": 2223, "loc": { "start": { "line": 91, @@ -13027,8 +13027,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2146, - "end": 2216, + "start": 2145, + "end": 2215, "loc": { "start": { "line": 92, @@ -13044,8 +13044,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2146, - "end": 2157, + "start": 2145, + "end": 2156, "loc": { "start": { "line": 92, @@ -13061,8 +13061,8 @@ }, "value": { "type": "ObjectExpression", - "start": 2159, - "end": 2216, + "start": 2158, + "end": 2215, "loc": { "start": { "line": 92, @@ -13076,8 +13076,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2171, - "end": 2182, + "start": 2170, + "end": 2181, "loc": { "start": { "line": 93, @@ -13093,8 +13093,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2171, - "end": 2175, + "start": 2170, + "end": 2174, "loc": { "start": { "line": 93, @@ -13110,8 +13110,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 2177, - "end": 2182, + "start": 2176, + "end": 2181, "loc": { "start": { "line": 93, @@ -13127,8 +13127,8 @@ }, { "type": "ObjectProperty", - "start": 2194, - "end": 2206, + "start": 2193, + "end": 2205, "loc": { "start": { "line": 94, @@ -13144,8 +13144,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2194, - "end": 2199, + "start": 2193, + "end": 2198, "loc": { "start": { "line": 94, @@ -13161,8 +13161,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 2201, - "end": 2206, + "start": 2200, + "end": 2205, "loc": { "start": { "line": 94, @@ -13187,8 +13187,8 @@ }, { "type": "ObjectProperty", - "start": 2236, - "end": 3820, + "start": 2235, + "end": 3819, "loc": { "start": { "line": 98, @@ -13204,8 +13204,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2236, - "end": 2238, + "start": 2235, + "end": 2237, "loc": { "start": { "line": 98, @@ -13221,8 +13221,8 @@ }, "value": { "type": "ObjectExpression", - "start": 2240, - "end": 3820, + "start": 2239, + "end": 3819, "loc": { "start": { "line": 98, @@ -13236,8 +13236,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2248, - "end": 2418, + "start": 2247, + "end": 2417, "loc": { "start": { "line": 99, @@ -13253,8 +13253,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2248, - "end": 2261, + "start": 2247, + "end": 2260, "loc": { "start": { "line": 99, @@ -13270,8 +13270,8 @@ }, "value": { "type": "ObjectExpression", - "start": 2263, - "end": 2418, + "start": 2262, + "end": 2417, "loc": { "start": { "line": 99, @@ -13285,8 +13285,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2273, - "end": 2305, + "start": 2272, + "end": 2304, "loc": { "start": { "line": 100, @@ -13302,8 +13302,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2273, - "end": 2284, + "start": 2272, + "end": 2283, "loc": { "start": { "line": 100, @@ -13319,8 +13319,8 @@ }, "value": { "type": "ArrayExpression", - "start": 2286, - "end": 2305, + "start": 2285, + "end": 2304, "loc": { "start": { "line": 100, @@ -13334,8 +13334,8 @@ "elements": [ { "type": "StringLiteral", - "start": 2287, - "end": 2294, + "start": 2286, + "end": 2293, "loc": { "start": { "line": 100, @@ -13354,8 +13354,8 @@ }, { "type": "StringLiteral", - "start": 2296, - "end": 2304, + "start": 2295, + "end": 2303, "loc": { "start": { "line": 100, @@ -13377,8 +13377,8 @@ }, { "type": "ObjectProperty", - "start": 2315, - "end": 2339, + "start": 2314, + "end": 2338, "loc": { "start": { "line": 101, @@ -13394,8 +13394,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2315, - "end": 2332, + "start": 2314, + "end": 2331, "loc": { "start": { "line": 101, @@ -13411,8 +13411,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 2334, - "end": 2339, + "start": 2333, + "end": 2338, "loc": { "start": { "line": 101, @@ -13428,8 +13428,8 @@ }, { "type": "ObjectProperty", - "start": 2349, - "end": 2366, + "start": 2348, + "end": 2365, "loc": { "start": { "line": 102, @@ -13445,8 +13445,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2349, - "end": 2362, + "start": 2348, + "end": 2361, "loc": { "start": { "line": 102, @@ -13462,8 +13462,8 @@ }, "value": { "type": "ArrayExpression", - "start": 2364, - "end": 2366, + "start": 2363, + "end": 2365, "loc": { "start": { "line": 102, @@ -13479,8 +13479,8 @@ }, { "type": "ObjectProperty", - "start": 2376, - "end": 2409, + "start": 2375, + "end": 2408, "loc": { "start": { "line": 103, @@ -13496,8 +13496,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2376, - "end": 2406, + "start": 2375, + "end": 2405, "loc": { "start": { "line": 103, @@ -13513,8 +13513,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2408, - "end": 2409, + "start": 2407, + "end": 2408, "loc": { "start": { "line": 103, @@ -13537,8 +13537,8 @@ }, { "type": "ObjectProperty", - "start": 2426, - "end": 3122, + "start": 2425, + "end": 3121, "loc": { "start": { "line": 105, @@ -13554,8 +13554,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2426, - "end": 2439, + "start": 2425, + "end": 2438, "loc": { "start": { "line": 105, @@ -13571,8 +13571,8 @@ }, "value": { "type": "ObjectExpression", - "start": 2441, - "end": 3122, + "start": 2440, + "end": 3121, "loc": { "start": { "line": 105, @@ -13586,8 +13586,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2451, - "end": 2468, + "start": 2450, + "end": 2467, "loc": { "start": { "line": 106, @@ -13603,8 +13603,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2451, - "end": 2459, + "start": 2450, + "end": 2458, "loc": { "start": { "line": 106, @@ -13620,8 +13620,8 @@ }, "value": { "type": "StringLiteral", - "start": 2461, - "end": 2468, + "start": 2460, + "end": 2467, "loc": { "start": { "line": 106, @@ -13641,8 +13641,8 @@ }, { "type": "ObjectProperty", - "start": 2478, - "end": 2502, + "start": 2477, + "end": 2501, "loc": { "start": { "line": 107, @@ -13658,8 +13658,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2478, - "end": 2491, + "start": 2477, + "end": 2490, "loc": { "start": { "line": 107, @@ -13675,8 +13675,8 @@ }, "value": { "type": "StringLiteral", - "start": 2493, - "end": 2502, + "start": 2492, + "end": 2501, "loc": { "start": { "line": 107, @@ -13696,8 +13696,8 @@ }, { "type": "ObjectProperty", - "start": 2512, - "end": 2532, + "start": 2511, + "end": 2531, "loc": { "start": { "line": 108, @@ -13713,8 +13713,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2512, - "end": 2524, + "start": 2511, + "end": 2523, "loc": { "start": { "line": 108, @@ -13730,8 +13730,8 @@ }, "value": { "type": "StringLiteral", - "start": 2526, - "end": 2532, + "start": 2525, + "end": 2531, "loc": { "start": { "line": 108, @@ -13751,8 +13751,8 @@ }, { "type": "ObjectProperty", - "start": 2542, - "end": 2558, + "start": 2541, + "end": 2557, "loc": { "start": { "line": 109, @@ -13768,8 +13768,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2542, - "end": 2554, + "start": 2541, + "end": 2553, "loc": { "start": { "line": 109, @@ -13785,8 +13785,8 @@ }, "value": { "type": "ArrayExpression", - "start": 2556, - "end": 2558, + "start": 2555, + "end": 2557, "loc": { "start": { "line": 109, @@ -13802,8 +13802,8 @@ }, { "type": "ObjectProperty", - "start": 2568, - "end": 2588, + "start": 2567, + "end": 2587, "loc": { "start": { "line": 110, @@ -13819,8 +13819,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2568, - "end": 2584, + "start": 2567, + "end": 2583, "loc": { "start": { "line": 110, @@ -13836,8 +13836,8 @@ }, "value": { "type": "ArrayExpression", - "start": 2586, - "end": 2588, + "start": 2585, + "end": 2587, "loc": { "start": { "line": 110, @@ -13853,8 +13853,8 @@ }, { "type": "ObjectProperty", - "start": 2598, - "end": 2613, + "start": 2597, + "end": 2612, "loc": { "start": { "line": 111, @@ -13870,8 +13870,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2598, - "end": 2609, + "start": 2597, + "end": 2608, "loc": { "start": { "line": 111, @@ -13887,8 +13887,8 @@ }, "value": { "type": "ArrayExpression", - "start": 2611, - "end": 2613, + "start": 2610, + "end": 2612, "loc": { "start": { "line": 111, @@ -13904,8 +13904,8 @@ }, { "type": "ObjectProperty", - "start": 2623, - "end": 2640, + "start": 2622, + "end": 2639, "loc": { "start": { "line": 112, @@ -13921,8 +13921,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2623, - "end": 2636, + "start": 2622, + "end": 2635, "loc": { "start": { "line": 112, @@ -13938,8 +13938,8 @@ }, "value": { "type": "ArrayExpression", - "start": 2638, - "end": 2640, + "start": 2637, + "end": 2639, "loc": { "start": { "line": 112, @@ -13955,8 +13955,8 @@ }, { "type": "ObjectProperty", - "start": 2650, - "end": 3114, + "start": 2649, + "end": 3113, "loc": { "start": { "line": 113, @@ -13972,8 +13972,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2650, - "end": 2664, + "start": 2649, + "end": 2663, "loc": { "start": { "line": 113, @@ -13989,8 +13989,8 @@ }, "value": { "type": "ObjectExpression", - "start": 2666, - "end": 3114, + "start": 2665, + "end": 3113, "loc": { "start": { "line": 113, @@ -14004,8 +14004,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 2678, - "end": 2702, + "start": 2677, + "end": 2701, "loc": { "start": { "line": 114, @@ -14021,8 +14021,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2678, - "end": 2699, + "start": 2677, + "end": 2698, "loc": { "start": { "line": 114, @@ -14038,8 +14038,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2701, - "end": 2702, + "start": 2700, + "end": 2701, "loc": { "start": { "line": 114, @@ -14059,8 +14059,8 @@ }, { "type": "ObjectProperty", - "start": 2714, - "end": 2746, + "start": 2713, + "end": 2745, "loc": { "start": { "line": 115, @@ -14076,8 +14076,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2714, - "end": 2735, + "start": 2713, + "end": 2734, "loc": { "start": { "line": 115, @@ -14093,8 +14093,8 @@ }, "value": { "type": "Identifier", - "start": 2737, - "end": 2746, + "start": 2736, + "end": 2745, "loc": { "start": { "line": 115, @@ -14111,8 +14111,8 @@ }, { "type": "ObjectProperty", - "start": 2758, - "end": 2783, + "start": 2757, + "end": 2782, "loc": { "start": { "line": 116, @@ -14128,8 +14128,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2758, - "end": 2780, + "start": 2757, + "end": 2779, "loc": { "start": { "line": 116, @@ -14145,8 +14145,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2782, - "end": 2783, + "start": 2781, + "end": 2782, "loc": { "start": { "line": 116, @@ -14166,8 +14166,8 @@ }, { "type": "ObjectProperty", - "start": 2795, - "end": 2820, + "start": 2794, + "end": 2819, "loc": { "start": { "line": 117, @@ -14183,8 +14183,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2795, - "end": 2817, + "start": 2794, + "end": 2816, "loc": { "start": { "line": 117, @@ -14200,8 +14200,8 @@ }, "value": { "type": "NumericLiteral", - "start": 2819, - "end": 2820, + "start": 2818, + "end": 2819, "loc": { "start": { "line": 117, @@ -14221,8 +14221,8 @@ }, { "type": "ObjectProperty", - "start": 2832, - "end": 2869, + "start": 2831, + "end": 2868, "loc": { "start": { "line": 118, @@ -14238,8 +14238,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2832, - "end": 2858, + "start": 2831, + "end": 2857, "loc": { "start": { "line": 118, @@ -14255,8 +14255,8 @@ }, "value": { "type": "Identifier", - "start": 2860, - "end": 2869, + "start": 2859, + "end": 2868, "loc": { "start": { "line": 118, @@ -14273,8 +14273,8 @@ }, { "type": "ObjectProperty", - "start": 2881, - "end": 2906, + "start": 2880, + "end": 2905, "loc": { "start": { "line": 119, @@ -14290,8 +14290,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2881, - "end": 2899, + "start": 2880, + "end": 2898, "loc": { "start": { "line": 119, @@ -14307,8 +14307,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 2901, - "end": 2906, + "start": 2900, + "end": 2905, "loc": { "start": { "line": 119, @@ -14324,8 +14324,8 @@ }, { "type": "ObjectProperty", - "start": 2918, - "end": 2946, + "start": 2917, + "end": 2945, "loc": { "start": { "line": 120, @@ -14341,8 +14341,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2918, - "end": 2939, + "start": 2917, + "end": 2938, "loc": { "start": { "line": 120, @@ -14358,8 +14358,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 2941, - "end": 2946, + "start": 2940, + "end": 2945, "loc": { "start": { "line": 120, @@ -14375,8 +14375,8 @@ }, { "type": "ObjectProperty", - "start": 2958, - "end": 2994, + "start": 2957, + "end": 2993, "loc": { "start": { "line": 121, @@ -14392,8 +14392,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 2958, - "end": 2987, + "start": 2957, + "end": 2986, "loc": { "start": { "line": 121, @@ -14409,8 +14409,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 2989, - "end": 2994, + "start": 2988, + "end": 2993, "loc": { "start": { "line": 121, @@ -14426,8 +14426,8 @@ }, { "type": "ObjectProperty", - "start": 3006, - "end": 3032, + "start": 3005, + "end": 3031, "loc": { "start": { "line": 122, @@ -14443,8 +14443,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3006, - "end": 3021, + "start": 3005, + "end": 3020, "loc": { "start": { "line": 122, @@ -14460,8 +14460,8 @@ }, "value": { "type": "Identifier", - "start": 3023, - "end": 3032, + "start": 3022, + "end": 3031, "loc": { "start": { "line": 122, @@ -14478,8 +14478,8 @@ }, { "type": "ObjectProperty", - "start": 3044, - "end": 3063, + "start": 3043, + "end": 3062, "loc": { "start": { "line": 123, @@ -14495,8 +14495,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3044, - "end": 3056, + "start": 3043, + "end": 3055, "loc": { "start": { "line": 123, @@ -14512,8 +14512,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 3058, - "end": 3063, + "start": 3057, + "end": 3062, "loc": { "start": { "line": 123, @@ -14529,8 +14529,8 @@ }, { "type": "ObjectProperty", - "start": 3075, - "end": 3104, + "start": 3074, + "end": 3103, "loc": { "start": { "line": 124, @@ -14546,8 +14546,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3075, - "end": 3093, + "start": 3074, + "end": 3092, "loc": { "start": { "line": 124, @@ -14563,8 +14563,8 @@ }, "value": { "type": "Identifier", - "start": 3095, - "end": 3104, + "start": 3094, + "end": 3103, "loc": { "start": { "line": 124, @@ -14587,8 +14587,8 @@ }, { "type": "ObjectProperty", - "start": 3130, - "end": 3259, + "start": 3129, + "end": 3258, "loc": { "start": { "line": 127, @@ -14604,8 +14604,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3130, - "end": 3144, + "start": 3129, + "end": 3143, "loc": { "start": { "line": 127, @@ -14621,8 +14621,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3146, - "end": 3259, + "start": 3145, + "end": 3258, "loc": { "start": { "line": 127, @@ -14636,8 +14636,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3156, - "end": 3180, + "start": 3155, + "end": 3179, "loc": { "start": { "line": 128, @@ -14653,8 +14653,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3156, - "end": 3169, + "start": 3155, + "end": 3168, "loc": { "start": { "line": 128, @@ -14670,8 +14670,8 @@ }, "value": { "type": "Identifier", - "start": 3171, - "end": 3180, + "start": 3170, + "end": 3179, "loc": { "start": { "line": 128, @@ -14688,8 +14688,8 @@ }, { "type": "ObjectProperty", - "start": 3190, - "end": 3219, + "start": 3189, + "end": 3218, "loc": { "start": { "line": 129, @@ -14705,8 +14705,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3190, - "end": 3216, + "start": 3189, + "end": 3215, "loc": { "start": { "line": 129, @@ -14722,8 +14722,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3218, - "end": 3219, + "start": 3217, + "end": 3218, "loc": { "start": { "line": 129, @@ -14743,8 +14743,8 @@ }, { "type": "ObjectProperty", - "start": 3229, - "end": 3251, + "start": 3228, + "end": 3250, "loc": { "start": { "line": 130, @@ -14760,8 +14760,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3229, - "end": 3245, + "start": 3228, + "end": 3244, "loc": { "start": { "line": 130, @@ -14777,8 +14777,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 3247, - "end": 3251, + "start": 3246, + "end": 3250, "loc": { "start": { "line": 130, @@ -14797,8 +14797,8 @@ }, { "type": "ObjectProperty", - "start": 3267, - "end": 3608, + "start": 3266, + "end": 3607, "loc": { "start": { "line": 132, @@ -14814,8 +14814,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3267, - "end": 3281, + "start": 3266, + "end": 3280, "loc": { "start": { "line": 132, @@ -14831,8 +14831,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3283, - "end": 3608, + "start": 3282, + "end": 3607, "loc": { "start": { "line": 132, @@ -14846,8 +14846,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3293, - "end": 3307, + "start": 3292, + "end": 3306, "loc": { "start": { "line": 133, @@ -14863,8 +14863,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3293, - "end": 3302, + "start": 3292, + "end": 3301, "loc": { "start": { "line": 133, @@ -14880,8 +14880,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3304, - "end": 3307, + "start": 3303, + "end": 3306, "loc": { "start": { "line": 133, @@ -14901,8 +14901,8 @@ }, { "type": "ObjectProperty", - "start": 3317, - "end": 3355, + "start": 3316, + "end": 3354, "loc": { "start": { "line": 134, @@ -14918,8 +14918,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3317, - "end": 3328, + "start": 3316, + "end": 3327, "loc": { "start": { "line": 134, @@ -14935,8 +14935,8 @@ }, "value": { "type": "ArrayExpression", - "start": 3330, - "end": 3355, + "start": 3329, + "end": 3354, "loc": { "start": { "line": 134, @@ -14950,8 +14950,8 @@ "elements": [ { "type": "StringLiteral", - "start": 3331, - "end": 3341, + "start": 3330, + "end": 3340, "loc": { "start": { "line": 134, @@ -14970,8 +14970,8 @@ }, { "type": "StringLiteral", - "start": 3343, - "end": 3354, + "start": 3342, + "end": 3353, "loc": { "start": { "line": 134, @@ -14993,8 +14993,8 @@ }, { "type": "ObjectProperty", - "start": 3365, - "end": 3382, + "start": 3364, + "end": 3381, "loc": { "start": { "line": 135, @@ -15010,8 +15010,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3365, - "end": 3378, + "start": 3364, + "end": 3377, "loc": { "start": { "line": 135, @@ -15027,8 +15027,8 @@ }, "value": { "type": "ArrayExpression", - "start": 3380, - "end": 3382, + "start": 3379, + "end": 3381, "loc": { "start": { "line": 135, @@ -15044,8 +15044,8 @@ }, { "type": "ObjectProperty", - "start": 3392, - "end": 3468, + "start": 3391, + "end": 3467, "loc": { "start": { "line": 136, @@ -15061,8 +15061,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3392, - "end": 3397, + "start": 3391, + "end": 3396, "loc": { "start": { "line": 136, @@ -15078,8 +15078,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3399, - "end": 3468, + "start": 3398, + "end": 3467, "loc": { "start": { "line": 136, @@ -15093,8 +15093,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3411, - "end": 3419, + "start": 3410, + "end": 3418, "loc": { "start": { "line": 137, @@ -15110,8 +15110,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3411, - "end": 3414, + "start": 3410, + "end": 3413, "loc": { "start": { "line": 137, @@ -15127,8 +15127,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3416, - "end": 3419, + "start": 3415, + "end": 3418, "loc": { "start": { "line": 137, @@ -15148,8 +15148,8 @@ }, { "type": "ObjectProperty", - "start": 3431, - "end": 3439, + "start": 3430, + "end": 3438, "loc": { "start": { "line": 138, @@ -15165,8 +15165,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3431, - "end": 3436, + "start": 3430, + "end": 3435, "loc": { "start": { "line": 138, @@ -15182,8 +15182,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3438, - "end": 3439, + "start": 3437, + "end": 3438, "loc": { "start": { "line": 138, @@ -15203,8 +15203,8 @@ }, { "type": "ObjectProperty", - "start": 3451, - "end": 3458, + "start": 3450, + "end": 3457, "loc": { "start": { "line": 139, @@ -15220,8 +15220,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3451, - "end": 3454, + "start": 3450, + "end": 3453, "loc": { "start": { "line": 139, @@ -15237,8 +15237,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3456, - "end": 3458, + "start": 3455, + "end": 3457, "loc": { "start": { "line": 139, @@ -15261,8 +15261,8 @@ }, { "type": "ObjectProperty", - "start": 3478, - "end": 3557, + "start": 3477, + "end": 3556, "loc": { "start": { "line": 141, @@ -15278,8 +15278,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3478, - "end": 3482, + "start": 3477, + "end": 3481, "loc": { "start": { "line": 141, @@ -15295,8 +15295,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3484, - "end": 3557, + "start": 3483, + "end": 3556, "loc": { "start": { "line": 141, @@ -15310,8 +15310,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3496, - "end": 3507, + "start": 3495, + "end": 3506, "loc": { "start": { "line": 142, @@ -15327,8 +15327,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3496, - "end": 3502, + "start": 3495, + "end": 3501, "loc": { "start": { "line": 142, @@ -15344,8 +15344,8 @@ }, "value": { "type": "StringLiteral", - "start": 3504, - "end": 3507, + "start": 3503, + "end": 3506, "loc": { "start": { "line": 142, @@ -15365,8 +15365,8 @@ }, { "type": "ObjectProperty", - "start": 3519, - "end": 3528, + "start": 3518, + "end": 3527, "loc": { "start": { "line": 143, @@ -15382,8 +15382,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3519, - "end": 3525, + "start": 3518, + "end": 3524, "loc": { "start": { "line": 143, @@ -15399,8 +15399,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3527, - "end": 3528, + "start": 3526, + "end": 3527, "loc": { "start": { "line": 143, @@ -15420,8 +15420,8 @@ }, { "type": "ObjectProperty", - "start": 3540, - "end": 3547, + "start": 3539, + "end": 3546, "loc": { "start": { "line": 144, @@ -15437,8 +15437,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3540, - "end": 3544, + "start": 3539, + "end": 3543, "loc": { "start": { "line": 144, @@ -15454,8 +15454,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3546, - "end": 3547, + "start": 3545, + "end": 3546, "loc": { "start": { "line": 144, @@ -15478,8 +15478,8 @@ }, { "type": "ObjectProperty", - "start": 3567, - "end": 3600, + "start": 3566, + "end": 3599, "loc": { "start": { "line": 146, @@ -15495,8 +15495,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3567, - "end": 3597, + "start": 3566, + "end": 3596, "loc": { "start": { "line": 146, @@ -15512,8 +15512,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3599, - "end": 3600, + "start": 3598, + "end": 3599, "loc": { "start": { "line": 146, @@ -15536,8 +15536,8 @@ }, { "type": "ObjectProperty", - "start": 3616, - "end": 3814, + "start": 3615, + "end": 3813, "loc": { "start": { "line": 148, @@ -15553,8 +15553,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3616, - "end": 3633, + "start": 3615, + "end": 3632, "loc": { "start": { "line": 148, @@ -15570,8 +15570,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3635, - "end": 3814, + "start": 3634, + "end": 3813, "loc": { "start": { "line": 148, @@ -15585,8 +15585,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3645, - "end": 3765, + "start": 3644, + "end": 3764, "loc": { "start": { "line": 149, @@ -15602,8 +15602,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3645, - "end": 3658, + "start": 3644, + "end": 3657, "loc": { "start": { "line": 149, @@ -15619,8 +15619,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3660, - "end": 3765, + "start": 3659, + "end": 3764, "loc": { "start": { "line": 149, @@ -15634,8 +15634,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3672, - "end": 3690, + "start": 3671, + "end": 3689, "loc": { "start": { "line": 150, @@ -15651,8 +15651,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3672, - "end": 3686, + "start": 3671, + "end": 3685, "loc": { "start": { "line": 150, @@ -15668,8 +15668,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3688, - "end": 3690, + "start": 3687, + "end": 3689, "loc": { "start": { "line": 150, @@ -15685,8 +15685,8 @@ }, { "type": "ObjectProperty", - "start": 3702, - "end": 3719, + "start": 3701, + "end": 3718, "loc": { "start": { "line": 151, @@ -15702,8 +15702,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3702, - "end": 3710, + "start": 3701, + "end": 3709, "loc": { "start": { "line": 151, @@ -15719,8 +15719,8 @@ }, "value": { "type": "StringLiteral", - "start": 3712, - "end": 3719, + "start": 3711, + "end": 3718, "loc": { "start": { "line": 151, @@ -15740,8 +15740,8 @@ }, { "type": "ObjectProperty", - "start": 3731, - "end": 3755, + "start": 3730, + "end": 3754, "loc": { "start": { "line": 152, @@ -15757,8 +15757,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3731, - "end": 3744, + "start": 3730, + "end": 3743, "loc": { "start": { "line": 152, @@ -15774,8 +15774,8 @@ }, "value": { "type": "StringLiteral", - "start": 3746, - "end": 3755, + "start": 3745, + "end": 3754, "loc": { "start": { "line": 152, @@ -15798,8 +15798,8 @@ }, { "type": "ObjectProperty", - "start": 3775, - "end": 3806, + "start": 3774, + "end": 3805, "loc": { "start": { "line": 154, @@ -15815,8 +15815,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3775, - "end": 3795, + "start": 3774, + "end": 3794, "loc": { "start": { "line": 154, @@ -15832,8 +15832,8 @@ }, "value": { "type": "Identifier", - "start": 3797, - "end": 3806, + "start": 3796, + "end": 3805, "loc": { "start": { "line": 154, @@ -15859,8 +15859,8 @@ }, { "type": "ObjectProperty", - "start": 3869, - "end": 3929, + "start": 3868, + "end": 3928, "loc": { "start": { "line": 159, @@ -15876,8 +15876,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3869, - "end": 3884, + "start": 3868, + "end": 3883, "loc": { "start": { "line": 159, @@ -15894,8 +15894,8 @@ }, "value": { "type": "ObjectExpression", - "start": 3886, - "end": 3929, + "start": 3885, + "end": 3928, "loc": { "start": { "line": 159, @@ -15909,8 +15909,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 3892, - "end": 3906, + "start": 3891, + "end": 3905, "loc": { "start": { "line": 160, @@ -15926,8 +15926,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3892, - "end": 3899, + "start": 3891, + "end": 3898, "loc": { "start": { "line": 160, @@ -15943,8 +15943,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 3901, - "end": 3906, + "start": 3900, + "end": 3905, "loc": { "start": { "line": 160, @@ -15960,8 +15960,8 @@ }, { "type": "ObjectProperty", - "start": 3912, - "end": 3925, + "start": 3911, + "end": 3924, "loc": { "start": { "line": 161, @@ -15977,8 +15977,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3912, - "end": 3919, + "start": 3911, + "end": 3918, "loc": { "start": { "line": 161, @@ -15994,8 +15994,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 3921, - "end": 3925, + "start": 3920, + "end": 3924, "loc": { "start": { "line": 161, @@ -16015,8 +16015,8 @@ { "type": "CommentLine", "value": " @see generated documentation on top", - "start": 3828, - "end": 3866, + "start": 3827, + "end": 3865, "loc": { "start": { "line": 158, @@ -16032,8 +16032,8 @@ }, { "type": "ObjectProperty", - "start": 3933, - "end": 3957, + "start": 3932, + "end": 3956, "loc": { "start": { "line": 163, @@ -16049,8 +16049,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3933, - "end": 3953, + "start": 3932, + "end": 3952, "loc": { "start": { "line": 163, @@ -16066,8 +16066,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3955, - "end": 3957, + "start": 3954, + "end": 3956, "loc": { "start": { "line": 163, @@ -16087,8 +16087,8 @@ }, { "type": "ObjectProperty", - "start": 3961, - "end": 3980, + "start": 3960, + "end": 3979, "loc": { "start": { "line": 164, @@ -16104,8 +16104,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3961, - "end": 3977, + "start": 3960, + "end": 3976, "loc": { "start": { "line": 164, @@ -16121,8 +16121,8 @@ }, "value": { "type": "NumericLiteral", - "start": 3979, - "end": 3980, + "start": 3978, + "end": 3979, "loc": { "start": { "line": 164, @@ -16142,8 +16142,8 @@ }, { "type": "ObjectProperty", - "start": 3984, - "end": 4010, + "start": 3983, + "end": 4009, "loc": { "start": { "line": 165, @@ -16159,8 +16159,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 3984, - "end": 4007, + "start": 3983, + "end": 4006, "loc": { "start": { "line": 165, @@ -16176,8 +16176,8 @@ }, "value": { "type": "NumericLiteral", - "start": 4009, - "end": 4010, + "start": 4008, + "end": 4009, "loc": { "start": { "line": 165, @@ -16197,8 +16197,8 @@ }, { "type": "ObjectProperty", - "start": 4014, - "end": 4032, + "start": 4013, + "end": 4031, "loc": { "start": { "line": 166, @@ -16214,8 +16214,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4014, - "end": 4026, + "start": 4013, + "end": 4025, "loc": { "start": { "line": 166, @@ -16231,8 +16231,8 @@ }, "value": { "type": "NumericLiteral", - "start": 4028, - "end": 4032, + "start": 4027, + "end": 4031, "loc": { "start": { "line": 166, @@ -16252,8 +16252,8 @@ }, { "type": "ObjectProperty", - "start": 4036, - "end": 4051, + "start": 4035, + "end": 4050, "loc": { "start": { "line": 167, @@ -16269,8 +16269,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4036, - "end": 4048, + "start": 4035, + "end": 4047, "loc": { "start": { "line": 167, @@ -16286,8 +16286,8 @@ }, "value": { "type": "NumericLiteral", - "start": 4050, - "end": 4051, + "start": 4049, + "end": 4050, "loc": { "start": { "line": 167, @@ -16307,8 +16307,8 @@ }, { "type": "ObjectProperty", - "start": 4055, - "end": 4078, + "start": 4054, + "end": 4077, "loc": { "start": { "line": 168, @@ -16324,8 +16324,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4055, - "end": 4073, + "start": 4054, + "end": 4072, "loc": { "start": { "line": 168, @@ -16341,8 +16341,8 @@ }, "value": { "type": "NumericLiteral", - "start": 4075, - "end": 4078, + "start": 4074, + "end": 4077, "loc": { "start": { "line": 168, @@ -16362,8 +16362,8 @@ }, { "type": "ObjectProperty", - "start": 4500, - "end": 4577, + "start": 4499, + "end": 4576, "loc": { "start": { "line": 172, @@ -16379,8 +16379,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4500, - "end": 4508, + "start": 4499, + "end": 4507, "loc": { "start": { "line": 172, @@ -16397,8 +16397,8 @@ }, "value": { "type": "ObjectExpression", - "start": 4510, - "end": 4577, + "start": 4509, + "end": 4576, "loc": { "start": { "line": 172, @@ -16412,8 +16412,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 4516, - "end": 4543, + "start": 4515, + "end": 4542, "loc": { "start": { "line": 173, @@ -16429,8 +16429,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4516, - "end": 4529, + "start": 4515, + "end": 4528, "loc": { "start": { "line": 173, @@ -16446,8 +16446,8 @@ }, "value": { "type": "StringLiteral", - "start": 4531, - "end": 4543, + "start": 4530, + "end": 4542, "loc": { "start": { "line": 173, @@ -16467,8 +16467,8 @@ }, { "type": "ObjectProperty", - "start": 4549, - "end": 4573, + "start": 4548, + "end": 4572, "loc": { "start": { "line": 174, @@ -16484,8 +16484,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4549, - "end": 4559, + "start": 4548, + "end": 4558, "loc": { "start": { "line": 174, @@ -16501,8 +16501,8 @@ }, "value": { "type": "StringLiteral", - "start": 4561, - "end": 4573, + "start": 4560, + "end": 4572, "loc": { "start": { "line": 174, @@ -16526,8 +16526,8 @@ { "type": "CommentLine", "value": " Configure when the action is triggered.", - "start": 4082, - "end": 4124, + "start": 4081, + "end": 4123, "loc": { "start": { "line": 169, @@ -16542,8 +16542,8 @@ { "type": "CommentLine", "value": " POINTER_UP : Action is triggered on every PenUP. This is the recommended mode for CDK V3 WebSocket recognitions.", - "start": 4127, - "end": 4242, + "start": 4126, + "end": 4241, "loc": { "start": { "line": 170, @@ -16558,8 +16558,8 @@ { "type": "CommentLine", "value": " QUIET_PERIOD : Action is triggered after a quiet period in milli-seconds on every pointer up. I value is set to 2000 for example the recognition will be fired when user stop writing 2 seconds. This is the recommended mode for all REST recognitions.", - "start": 4245, - "end": 4497, + "start": 4244, + "end": 4496, "loc": { "start": { "line": 171, @@ -16575,8 +16575,8 @@ }, { "type": "ObjectProperty", - "start": 4581, - "end": 4604, + "start": 4580, + "end": 4603, "loc": { "start": { "line": 176, @@ -16592,8 +16592,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4581, - "end": 4600, + "start": 4580, + "end": 4599, "loc": { "start": { "line": 176, @@ -16609,8 +16609,8 @@ }, "value": { "type": "StringLiteral", - "start": 4602, - "end": 4604, + "start": 4601, + "end": 4603, "loc": { "start": { "line": 176, @@ -16630,8 +16630,8 @@ }, { "type": "ObjectProperty", - "start": 4608, - "end": 4694, + "start": 4607, + "end": 4693, "loc": { "start": { "line": 177, @@ -16647,8 +16647,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4608, - "end": 4623, + "start": 4607, + "end": 4622, "loc": { "start": { "line": 177, @@ -16664,8 +16664,8 @@ }, "value": { "type": "ObjectExpression", - "start": 4625, - "end": 4694, + "start": 4624, + "end": 4693, "loc": { "start": { "line": 177, @@ -16679,8 +16679,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 4631, - "end": 4651, + "start": 4630, + "end": 4650, "loc": { "start": { "line": 178, @@ -16696,8 +16696,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4631, - "end": 4638, + "start": 4630, + "end": 4637, "loc": { "start": { "line": 178, @@ -16713,8 +16713,8 @@ }, "value": { "type": "StringLiteral", - "start": 4640, - "end": 4651, + "start": 4639, + "end": 4650, "loc": { "start": { "line": 178, @@ -16734,8 +16734,8 @@ }, { "type": "ObjectProperty", - "start": 4657, - "end": 4671, + "start": 4656, + "end": 4670, "loc": { "start": { "line": 179, @@ -16751,8 +16751,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4657, - "end": 4666, + "start": 4656, + "end": 4665, "loc": { "start": { "line": 179, @@ -16768,8 +16768,8 @@ }, "value": { "type": "NumericLiteral", - "start": 4668, - "end": 4671, + "start": 4667, + "end": 4670, "loc": { "start": { "line": 179, @@ -16789,8 +16789,8 @@ }, { "type": "ObjectProperty", - "start": 4677, - "end": 4690, + "start": 4676, + "end": 4689, "loc": { "start": { "line": 180, @@ -16806,8 +16806,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 4677, - "end": 4685, + "start": 4676, + "end": 4684, "loc": { "start": { "line": 180, @@ -16823,8 +16823,8 @@ }, "value": { "type": "NumericLiteral", - "start": 4687, - "end": 4690, + "start": 4686, + "end": 4689, "loc": { "start": { "line": 180, @@ -16873,8 +16873,8 @@ { "type": "CommentBlock", "value": "*\n * Generate parameters\n * @param {Configuration} configuration Configuration to be used\n * @return {Configuration} Overridden configuration\n ", - "start": 4699, - "end": 4846, + "start": 4698, + "end": 4845, "loc": { "start": { "line": 184, @@ -16912,8 +16912,8 @@ { "type": "CommentLine", "value": " @see generated documentation on top", - "start": 3828, - "end": 3866, + "start": 3827, + "end": 3865, "loc": { "start": { "line": 158, @@ -16928,8 +16928,8 @@ { "type": "CommentLine", "value": " Configure when the action is triggered.", - "start": 4082, - "end": 4124, + "start": 4081, + "end": 4123, "loc": { "start": { "line": 169, @@ -16944,8 +16944,8 @@ { "type": "CommentLine", "value": " POINTER_UP : Action is triggered on every PenUP. This is the recommended mode for CDK V3 WebSocket recognitions.", - "start": 4127, - "end": 4242, + "start": 4126, + "end": 4241, "loc": { "start": { "line": 170, @@ -16960,8 +16960,8 @@ { "type": "CommentLine", "value": " QUIET_PERIOD : Action is triggered after a quiet period in milli-seconds on every pointer up. I value is set to 2000 for example the recognition will be fired when user stop writing 2 seconds. This is the recommended mode for all REST recognitions.", - "start": 4245, - "end": 4497, + "start": 4244, + "end": 4496, "loc": { "start": { "line": 171, @@ -16976,8 +16976,8 @@ { "type": "CommentBlock", "value": "*\n * Generate parameters\n * @param {Configuration} configuration Configuration to be used\n * @return {Configuration} Overridden configuration\n ", - "start": 4699, - "end": 4846, + "start": 4698, + "end": 4845, "loc": { "start": { "line": 184, @@ -19364,8 +19364,8 @@ }, { "type": { - "label": "false", - "keyword": "false", + "label": "true", + "keyword": "true", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -19376,9 +19376,9 @@ "binop": null, "updateContext": null }, - "value": "false", + "value": "true", "start": 804, - "end": 809, + "end": 808, "loc": { "start": { "line": 31, @@ -19386,7 +19386,7 @@ }, "end": { "line": 31, - "column": 28 + "column": 27 } } }, @@ -19403,16 +19403,16 @@ "binop": null, "updateContext": null }, - "start": 809, - "end": 810, + "start": 808, + "end": 809, "loc": { "start": { "line": 31, - "column": 28 + "column": 27 }, "end": { "line": 31, - "column": 29 + "column": 28 } } }, @@ -19429,8 +19429,8 @@ "binop": null }, "value": "lang", - "start": 817, - "end": 821, + "start": 816, + "end": 820, "loc": { "start": { "line": 32, @@ -19455,8 +19455,8 @@ "binop": null, "updateContext": null }, - "start": 821, - "end": 822, + "start": 820, + "end": 821, "loc": { "start": { "line": 32, @@ -19482,8 +19482,8 @@ "updateContext": null }, "value": "en_US", - "start": 823, - "end": 830, + "start": 822, + "end": 829, "loc": { "start": { "line": 32, @@ -19508,8 +19508,8 @@ "binop": null, "updateContext": null }, - "start": 830, - "end": 831, + "start": 829, + "end": 830, "loc": { "start": { "line": 32, @@ -19536,8 +19536,8 @@ "updateContext": null }, "value": "export", - "start": 838, - "end": 844, + "start": 837, + "end": 843, "loc": { "start": { "line": 33, @@ -19562,8 +19562,8 @@ "binop": null, "updateContext": null }, - "start": 844, - "end": 845, + "start": 843, + "end": 844, "loc": { "start": { "line": 33, @@ -19587,8 +19587,8 @@ "postfix": false, "binop": null }, - "start": 846, - "end": 847, + "start": 845, + "end": 846, "loc": { "start": { "line": 33, @@ -19614,8 +19614,8 @@ "updateContext": null }, "value": "image-resolution", - "start": 856, - "end": 874, + "start": 855, + "end": 873, "loc": { "start": { "line": 34, @@ -19640,8 +19640,8 @@ "binop": null, "updateContext": null }, - "start": 874, - "end": 875, + "start": 873, + "end": 874, "loc": { "start": { "line": 34, @@ -19667,8 +19667,8 @@ "updateContext": null }, "value": 300, - "start": 876, - "end": 879, + "start": 875, + "end": 878, "loc": { "start": { "line": 34, @@ -19693,8 +19693,8 @@ "binop": null, "updateContext": null }, - "start": 879, - "end": 880, + "start": 878, + "end": 879, "loc": { "start": { "line": 34, @@ -19719,8 +19719,8 @@ "binop": null }, "value": "jiix", - "start": 889, - "end": 893, + "start": 888, + "end": 892, "loc": { "start": { "line": 35, @@ -19745,8 +19745,8 @@ "binop": null, "updateContext": null }, - "start": 893, - "end": 894, + "start": 892, + "end": 893, "loc": { "start": { "line": 35, @@ -19770,8 +19770,8 @@ "postfix": false, "binop": null }, - "start": 895, - "end": 896, + "start": 894, + "end": 895, "loc": { "start": { "line": 35, @@ -19797,8 +19797,8 @@ "updateContext": null }, "value": "bounding-box", - "start": 907, - "end": 921, + "start": 906, + "end": 920, "loc": { "start": { "line": 36, @@ -19823,8 +19823,8 @@ "binop": null, "updateContext": null }, - "start": 921, - "end": 922, + "start": 920, + "end": 921, "loc": { "start": { "line": 36, @@ -19851,8 +19851,8 @@ "updateContext": null }, "value": "false", - "start": 923, - "end": 928, + "start": 922, + "end": 927, "loc": { "start": { "line": 36, @@ -19877,8 +19877,8 @@ "binop": null, "updateContext": null }, - "start": 928, - "end": 929, + "start": 927, + "end": 928, "loc": { "start": { "line": 36, @@ -19903,8 +19903,8 @@ "binop": null }, "value": "strokes", - "start": 940, - "end": 947, + "start": 939, + "end": 946, "loc": { "start": { "line": 37, @@ -19929,8 +19929,8 @@ "binop": null, "updateContext": null }, - "start": 947, - "end": 948, + "start": 946, + "end": 947, "loc": { "start": { "line": 37, @@ -19957,8 +19957,8 @@ "updateContext": null }, "value": "false", - "start": 949, - "end": 954, + "start": 948, + "end": 953, "loc": { "start": { "line": 37, @@ -19983,8 +19983,8 @@ "binop": null, "updateContext": null }, - "start": 954, - "end": 955, + "start": 953, + "end": 954, "loc": { "start": { "line": 37, @@ -20009,8 +20009,8 @@ "binop": null }, "value": "text", - "start": 966, - "end": 970, + "start": 965, + "end": 969, "loc": { "start": { "line": 38, @@ -20035,8 +20035,8 @@ "binop": null, "updateContext": null }, - "start": 970, - "end": 971, + "start": 969, + "end": 970, "loc": { "start": { "line": 38, @@ -20060,8 +20060,8 @@ "postfix": false, "binop": null }, - "start": 972, - "end": 973, + "start": 971, + "end": 972, "loc": { "start": { "line": 38, @@ -20086,8 +20086,8 @@ "binop": null }, "value": "chars", - "start": 986, - "end": 991, + "start": 985, + "end": 990, "loc": { "start": { "line": 39, @@ -20112,8 +20112,8 @@ "binop": null, "updateContext": null }, - "start": 991, - "end": 992, + "start": 990, + "end": 991, "loc": { "start": { "line": 39, @@ -20140,8 +20140,8 @@ "updateContext": null }, "value": "false", - "start": 993, - "end": 998, + "start": 992, + "end": 997, "loc": { "start": { "line": 39, @@ -20166,8 +20166,8 @@ "binop": null, "updateContext": null }, - "start": 998, - "end": 999, + "start": 997, + "end": 998, "loc": { "start": { "line": 39, @@ -20192,8 +20192,8 @@ "binop": null }, "value": "words", - "start": 1012, - "end": 1017, + "start": 1011, + "end": 1016, "loc": { "start": { "line": 40, @@ -20218,8 +20218,8 @@ "binop": null, "updateContext": null }, - "start": 1017, - "end": 1018, + "start": 1016, + "end": 1017, "loc": { "start": { "line": 40, @@ -20246,8 +20246,8 @@ "updateContext": null }, "value": "true", - "start": 1019, - "end": 1023, + "start": 1018, + "end": 1022, "loc": { "start": { "line": 40, @@ -20271,8 +20271,8 @@ "postfix": false, "binop": null }, - "start": 1034, - "end": 1035, + "start": 1033, + "end": 1034, "loc": { "start": { "line": 41, @@ -20296,8 +20296,8 @@ "postfix": false, "binop": null }, - "start": 1044, - "end": 1045, + "start": 1043, + "end": 1044, "loc": { "start": { "line": 42, @@ -20321,8 +20321,8 @@ "postfix": false, "binop": null }, - "start": 1052, - "end": 1053, + "start": 1051, + "end": 1052, "loc": { "start": { "line": 43, @@ -20347,8 +20347,8 @@ "binop": null, "updateContext": null }, - "start": 1053, - "end": 1054, + "start": 1052, + "end": 1053, "loc": { "start": { "line": 43, @@ -20373,8 +20373,8 @@ "binop": null }, "value": "renderer", - "start": 1061, - "end": 1069, + "start": 1060, + "end": 1068, "loc": { "start": { "line": 44, @@ -20399,8 +20399,8 @@ "binop": null, "updateContext": null }, - "start": 1069, - "end": 1070, + "start": 1068, + "end": 1069, "loc": { "start": { "line": 44, @@ -20424,8 +20424,8 @@ "postfix": false, "binop": null }, - "start": 1071, - "end": 1072, + "start": 1070, + "end": 1071, "loc": { "start": { "line": 44, @@ -20450,8 +20450,8 @@ "binop": null }, "value": "debug", - "start": 1081, - "end": 1086, + "start": 1080, + "end": 1085, "loc": { "start": { "line": 45, @@ -20476,8 +20476,8 @@ "binop": null, "updateContext": null }, - "start": 1086, - "end": 1087, + "start": 1085, + "end": 1086, "loc": { "start": { "line": 45, @@ -20501,8 +20501,8 @@ "postfix": false, "binop": null }, - "start": 1088, - "end": 1089, + "start": 1087, + "end": 1088, "loc": { "start": { "line": 45, @@ -20528,8 +20528,8 @@ "updateContext": null }, "value": "draw-text-boxes", - "start": 1100, - "end": 1117, + "start": 1099, + "end": 1116, "loc": { "start": { "line": 46, @@ -20554,8 +20554,8 @@ "binop": null, "updateContext": null }, - "start": 1117, - "end": 1118, + "start": 1116, + "end": 1117, "loc": { "start": { "line": 46, @@ -20582,8 +20582,8 @@ "updateContext": null }, "value": "false", - "start": 1119, - "end": 1124, + "start": 1118, + "end": 1123, "loc": { "start": { "line": 46, @@ -20608,8 +20608,8 @@ "binop": null, "updateContext": null }, - "start": 1124, - "end": 1125, + "start": 1123, + "end": 1124, "loc": { "start": { "line": 46, @@ -20635,8 +20635,8 @@ "updateContext": null }, "value": "draw-image-boxes", - "start": 1136, - "end": 1154, + "start": 1135, + "end": 1153, "loc": { "start": { "line": 47, @@ -20661,8 +20661,8 @@ "binop": null, "updateContext": null }, - "start": 1154, - "end": 1155, + "start": 1153, + "end": 1154, "loc": { "start": { "line": 47, @@ -20689,8 +20689,8 @@ "updateContext": null }, "value": "false", - "start": 1156, - "end": 1161, + "start": 1155, + "end": 1160, "loc": { "start": { "line": 47, @@ -20714,8 +20714,8 @@ "postfix": false, "binop": null }, - "start": 1170, - "end": 1171, + "start": 1169, + "end": 1170, "loc": { "start": { "line": 48, @@ -20739,8 +20739,8 @@ "postfix": false, "binop": null }, - "start": 1178, - "end": 1179, + "start": 1177, + "end": 1178, "loc": { "start": { "line": 49, @@ -20765,8 +20765,8 @@ "binop": null, "updateContext": null }, - "start": 1179, - "end": 1180, + "start": 1178, + "end": 1179, "loc": { "start": { "line": 49, @@ -20791,8 +20791,8 @@ "binop": null }, "value": "math", - "start": 1187, - "end": 1191, + "start": 1186, + "end": 1190, "loc": { "start": { "line": 50, @@ -20817,8 +20817,8 @@ "binop": null, "updateContext": null }, - "start": 1191, - "end": 1192, + "start": 1190, + "end": 1191, "loc": { "start": { "line": 50, @@ -20842,8 +20842,8 @@ "postfix": false, "binop": null }, - "start": 1193, - "end": 1194, + "start": 1192, + "end": 1193, "loc": { "start": { "line": 50, @@ -20868,8 +20868,8 @@ "binop": null }, "value": "mimeTypes", - "start": 1203, - "end": 1212, + "start": 1202, + "end": 1211, "loc": { "start": { "line": 51, @@ -20894,8 +20894,8 @@ "binop": null, "updateContext": null }, - "start": 1212, - "end": 1213, + "start": 1211, + "end": 1212, "loc": { "start": { "line": 51, @@ -20920,8 +20920,8 @@ "binop": null, "updateContext": null }, - "start": 1214, - "end": 1215, + "start": 1213, + "end": 1214, "loc": { "start": { "line": 51, @@ -20947,8 +20947,8 @@ "updateContext": null }, "value": "application/x-latex", - "start": 1215, - "end": 1236, + "start": 1214, + "end": 1235, "loc": { "start": { "line": 51, @@ -20973,8 +20973,8 @@ "binop": null, "updateContext": null }, - "start": 1236, - "end": 1237, + "start": 1235, + "end": 1236, "loc": { "start": { "line": 51, @@ -21000,8 +21000,8 @@ "updateContext": null }, "value": "application/mathml+xml", - "start": 1238, - "end": 1262, + "start": 1237, + "end": 1261, "loc": { "start": { "line": 51, @@ -21026,8 +21026,8 @@ "binop": null, "updateContext": null }, - "start": 1262, - "end": 1263, + "start": 1261, + "end": 1262, "loc": { "start": { "line": 51, @@ -21052,8 +21052,8 @@ "binop": null, "updateContext": null }, - "start": 1263, - "end": 1264, + "start": 1262, + "end": 1263, "loc": { "start": { "line": 51, @@ -21078,8 +21078,8 @@ "binop": null }, "value": "solver", - "start": 1273, - "end": 1279, + "start": 1272, + "end": 1278, "loc": { "start": { "line": 52, @@ -21104,8 +21104,8 @@ "binop": null, "updateContext": null }, - "start": 1279, - "end": 1280, + "start": 1278, + "end": 1279, "loc": { "start": { "line": 52, @@ -21129,8 +21129,8 @@ "postfix": false, "binop": null }, - "start": 1281, - "end": 1282, + "start": 1280, + "end": 1281, "loc": { "start": { "line": 52, @@ -21155,8 +21155,8 @@ "binop": null }, "value": "enable", - "start": 1293, - "end": 1299, + "start": 1292, + "end": 1298, "loc": { "start": { "line": 53, @@ -21181,8 +21181,8 @@ "binop": null, "updateContext": null }, - "start": 1299, - "end": 1300, + "start": 1298, + "end": 1299, "loc": { "start": { "line": 53, @@ -21209,8 +21209,8 @@ "updateContext": null }, "value": "true", - "start": 1301, - "end": 1305, + "start": 1300, + "end": 1304, "loc": { "start": { "line": 53, @@ -21235,8 +21235,8 @@ "binop": null, "updateContext": null }, - "start": 1305, - "end": 1306, + "start": 1304, + "end": 1305, "loc": { "start": { "line": 53, @@ -21262,8 +21262,8 @@ "updateContext": null }, "value": "fractional-part-digits", - "start": 1317, - "end": 1341, + "start": 1316, + "end": 1340, "loc": { "start": { "line": 54, @@ -21288,8 +21288,8 @@ "binop": null, "updateContext": null }, - "start": 1341, - "end": 1342, + "start": 1340, + "end": 1341, "loc": { "start": { "line": 54, @@ -21315,8 +21315,8 @@ "updateContext": null }, "value": 3, - "start": 1343, - "end": 1344, + "start": 1342, + "end": 1343, "loc": { "start": { "line": 54, @@ -21341,8 +21341,8 @@ "binop": null, "updateContext": null }, - "start": 1344, - "end": 1345, + "start": 1343, + "end": 1344, "loc": { "start": { "line": 54, @@ -21368,8 +21368,8 @@ "updateContext": null }, "value": "decimal-separator", - "start": 1356, - "end": 1375, + "start": 1355, + "end": 1374, "loc": { "start": { "line": 55, @@ -21394,8 +21394,8 @@ "binop": null, "updateContext": null }, - "start": 1375, - "end": 1376, + "start": 1374, + "end": 1375, "loc": { "start": { "line": 55, @@ -21421,8 +21421,8 @@ "updateContext": null }, "value": ".", - "start": 1377, - "end": 1380, + "start": 1376, + "end": 1379, "loc": { "start": { "line": 55, @@ -21447,8 +21447,8 @@ "binop": null, "updateContext": null }, - "start": 1380, - "end": 1381, + "start": 1379, + "end": 1380, "loc": { "start": { "line": 55, @@ -21474,8 +21474,8 @@ "updateContext": null }, "value": "rounding-mode", - "start": 1392, - "end": 1407, + "start": 1391, + "end": 1406, "loc": { "start": { "line": 56, @@ -21500,8 +21500,8 @@ "binop": null, "updateContext": null }, - "start": 1407, - "end": 1408, + "start": 1406, + "end": 1407, "loc": { "start": { "line": 56, @@ -21527,8 +21527,8 @@ "updateContext": null }, "value": "half up", - "start": 1409, - "end": 1418, + "start": 1408, + "end": 1417, "loc": { "start": { "line": 56, @@ -21553,8 +21553,8 @@ "binop": null, "updateContext": null }, - "start": 1418, - "end": 1419, + "start": 1417, + "end": 1418, "loc": { "start": { "line": 56, @@ -21580,8 +21580,8 @@ "updateContext": null }, "value": "angle-unit", - "start": 1430, - "end": 1442, + "start": 1429, + "end": 1441, "loc": { "start": { "line": 57, @@ -21606,8 +21606,8 @@ "binop": null, "updateContext": null }, - "start": 1442, - "end": 1443, + "start": 1441, + "end": 1442, "loc": { "start": { "line": 57, @@ -21633,8 +21633,8 @@ "updateContext": null }, "value": "deg", - "start": 1444, - "end": 1449, + "start": 1443, + "end": 1448, "loc": { "start": { "line": 57, @@ -21658,8 +21658,8 @@ "postfix": false, "binop": null }, - "start": 1458, - "end": 1459, + "start": 1457, + "end": 1458, "loc": { "start": { "line": 58, @@ -21684,8 +21684,8 @@ "binop": null, "updateContext": null }, - "start": 1459, - "end": 1460, + "start": 1458, + "end": 1459, "loc": { "start": { "line": 58, @@ -21710,8 +21710,8 @@ "binop": null }, "value": "margin", - "start": 1469, - "end": 1475, + "start": 1468, + "end": 1474, "loc": { "start": { "line": 59, @@ -21736,8 +21736,8 @@ "binop": null, "updateContext": null }, - "start": 1475, - "end": 1476, + "start": 1474, + "end": 1475, "loc": { "start": { "line": 59, @@ -21761,8 +21761,8 @@ "postfix": false, "binop": null }, - "start": 1477, - "end": 1478, + "start": 1476, + "end": 1477, "loc": { "start": { "line": 59, @@ -21787,8 +21787,8 @@ "binop": null }, "value": "bottom", - "start": 1489, - "end": 1495, + "start": 1488, + "end": 1494, "loc": { "start": { "line": 60, @@ -21813,8 +21813,8 @@ "binop": null, "updateContext": null }, - "start": 1495, - "end": 1496, + "start": 1494, + "end": 1495, "loc": { "start": { "line": 60, @@ -21840,8 +21840,8 @@ "updateContext": null }, "value": 10, - "start": 1497, - "end": 1499, + "start": 1496, + "end": 1498, "loc": { "start": { "line": 60, @@ -21866,8 +21866,8 @@ "binop": null, "updateContext": null }, - "start": 1499, - "end": 1500, + "start": 1498, + "end": 1499, "loc": { "start": { "line": 60, @@ -21892,8 +21892,8 @@ "binop": null }, "value": "left", - "start": 1511, - "end": 1515, + "start": 1510, + "end": 1514, "loc": { "start": { "line": 61, @@ -21918,8 +21918,8 @@ "binop": null, "updateContext": null }, - "start": 1515, - "end": 1516, + "start": 1514, + "end": 1515, "loc": { "start": { "line": 61, @@ -21945,8 +21945,8 @@ "updateContext": null }, "value": 15, - "start": 1517, - "end": 1519, + "start": 1516, + "end": 1518, "loc": { "start": { "line": 61, @@ -21971,8 +21971,8 @@ "binop": null, "updateContext": null }, - "start": 1519, - "end": 1520, + "start": 1518, + "end": 1519, "loc": { "start": { "line": 61, @@ -21997,8 +21997,8 @@ "binop": null }, "value": "right", - "start": 1531, - "end": 1536, + "start": 1530, + "end": 1535, "loc": { "start": { "line": 62, @@ -22023,8 +22023,8 @@ "binop": null, "updateContext": null }, - "start": 1536, - "end": 1537, + "start": 1535, + "end": 1536, "loc": { "start": { "line": 62, @@ -22050,8 +22050,8 @@ "updateContext": null }, "value": 15, - "start": 1538, - "end": 1540, + "start": 1537, + "end": 1539, "loc": { "start": { "line": 62, @@ -22076,8 +22076,8 @@ "binop": null, "updateContext": null }, - "start": 1540, - "end": 1541, + "start": 1539, + "end": 1540, "loc": { "start": { "line": 62, @@ -22102,8 +22102,8 @@ "binop": null }, "value": "top", - "start": 1552, - "end": 1555, + "start": 1551, + "end": 1554, "loc": { "start": { "line": 63, @@ -22128,8 +22128,8 @@ "binop": null, "updateContext": null }, - "start": 1555, - "end": 1556, + "start": 1554, + "end": 1555, "loc": { "start": { "line": 63, @@ -22155,8 +22155,8 @@ "updateContext": null }, "value": 10, - "start": 1557, - "end": 1559, + "start": 1556, + "end": 1558, "loc": { "start": { "line": 63, @@ -22180,8 +22180,8 @@ "postfix": false, "binop": null }, - "start": 1568, - "end": 1569, + "start": 1567, + "end": 1568, "loc": { "start": { "line": 64, @@ -22205,8 +22205,8 @@ "postfix": false, "binop": null }, - "start": 1576, - "end": 1577, + "start": 1575, + "end": 1576, "loc": { "start": { "line": 65, @@ -22231,8 +22231,8 @@ "binop": null, "updateContext": null }, - "start": 1577, - "end": 1578, + "start": 1576, + "end": 1577, "loc": { "start": { "line": 65, @@ -22257,8 +22257,8 @@ "binop": null }, "value": "text", - "start": 1585, - "end": 1589, + "start": 1584, + "end": 1588, "loc": { "start": { "line": 66, @@ -22283,8 +22283,8 @@ "binop": null, "updateContext": null }, - "start": 1589, - "end": 1590, + "start": 1588, + "end": 1589, "loc": { "start": { "line": 66, @@ -22308,8 +22308,8 @@ "postfix": false, "binop": null }, - "start": 1591, - "end": 1592, + "start": 1590, + "end": 1591, "loc": { "start": { "line": 66, @@ -22334,8 +22334,8 @@ "binop": null }, "value": "guides", - "start": 1601, - "end": 1607, + "start": 1600, + "end": 1606, "loc": { "start": { "line": 67, @@ -22360,8 +22360,8 @@ "binop": null, "updateContext": null }, - "start": 1607, - "end": 1608, + "start": 1606, + "end": 1607, "loc": { "start": { "line": 67, @@ -22385,8 +22385,8 @@ "postfix": false, "binop": null }, - "start": 1609, - "end": 1610, + "start": 1608, + "end": 1609, "loc": { "start": { "line": 67, @@ -22411,8 +22411,8 @@ "binop": null }, "value": "enable", - "start": 1621, - "end": 1627, + "start": 1620, + "end": 1626, "loc": { "start": { "line": 68, @@ -22437,8 +22437,8 @@ "binop": null, "updateContext": null }, - "start": 1627, - "end": 1628, + "start": 1626, + "end": 1627, "loc": { "start": { "line": 68, @@ -22465,8 +22465,8 @@ "updateContext": null }, "value": "true", - "start": 1629, - "end": 1633, + "start": 1628, + "end": 1632, "loc": { "start": { "line": 68, @@ -22490,8 +22490,8 @@ "postfix": false, "binop": null }, - "start": 1642, - "end": 1643, + "start": 1641, + "end": 1642, "loc": { "start": { "line": 69, @@ -22516,8 +22516,8 @@ "binop": null, "updateContext": null }, - "start": 1643, - "end": 1644, + "start": 1642, + "end": 1643, "loc": { "start": { "line": 69, @@ -22542,8 +22542,8 @@ "binop": null }, "value": "smartGuide", - "start": 1653, - "end": 1663, + "start": 1652, + "end": 1662, "loc": { "start": { "line": 70, @@ -22568,8 +22568,8 @@ "binop": null, "updateContext": null }, - "start": 1663, - "end": 1664, + "start": 1662, + "end": 1663, "loc": { "start": { "line": 70, @@ -22596,8 +22596,8 @@ "updateContext": null }, "value": "true", - "start": 1665, - "end": 1669, + "start": 1664, + "end": 1668, "loc": { "start": { "line": 70, @@ -22622,8 +22622,8 @@ "binop": null, "updateContext": null }, - "start": 1669, - "end": 1670, + "start": 1668, + "end": 1669, "loc": { "start": { "line": 70, @@ -22648,8 +22648,8 @@ "binop": null }, "value": "smartGuideFadeOut", - "start": 1679, - "end": 1696, + "start": 1678, + "end": 1695, "loc": { "start": { "line": 71, @@ -22674,8 +22674,8 @@ "binop": null, "updateContext": null }, - "start": 1696, - "end": 1697, + "start": 1695, + "end": 1696, "loc": { "start": { "line": 71, @@ -22699,8 +22699,8 @@ "postfix": false, "binop": null }, - "start": 1698, - "end": 1699, + "start": 1697, + "end": 1698, "loc": { "start": { "line": 71, @@ -22725,8 +22725,8 @@ "binop": null }, "value": "enable", - "start": 1710, - "end": 1716, + "start": 1709, + "end": 1715, "loc": { "start": { "line": 72, @@ -22751,8 +22751,8 @@ "binop": null, "updateContext": null }, - "start": 1716, - "end": 1717, + "start": 1715, + "end": 1716, "loc": { "start": { "line": 72, @@ -22779,8 +22779,8 @@ "updateContext": null }, "value": "false", - "start": 1718, - "end": 1723, + "start": 1717, + "end": 1722, "loc": { "start": { "line": 72, @@ -22805,8 +22805,8 @@ "binop": null, "updateContext": null }, - "start": 1723, - "end": 1724, + "start": 1722, + "end": 1723, "loc": { "start": { "line": 72, @@ -22831,8 +22831,8 @@ "binop": null }, "value": "duration", - "start": 1735, - "end": 1743, + "start": 1734, + "end": 1742, "loc": { "start": { "line": 73, @@ -22857,8 +22857,8 @@ "binop": null, "updateContext": null }, - "start": 1743, - "end": 1744, + "start": 1742, + "end": 1743, "loc": { "start": { "line": 73, @@ -22884,8 +22884,8 @@ "updateContext": null }, "value": 10000, - "start": 1745, - "end": 1750, + "start": 1744, + "end": 1749, "loc": { "start": { "line": 73, @@ -22909,8 +22909,8 @@ "postfix": false, "binop": null }, - "start": 1759, - "end": 1760, + "start": 1758, + "end": 1759, "loc": { "start": { "line": 74, @@ -22935,8 +22935,8 @@ "binop": null, "updateContext": null }, - "start": 1760, - "end": 1761, + "start": 1759, + "end": 1760, "loc": { "start": { "line": 74, @@ -22961,8 +22961,8 @@ "binop": null }, "value": "mimeTypes", - "start": 1770, - "end": 1779, + "start": 1769, + "end": 1778, "loc": { "start": { "line": 75, @@ -22987,8 +22987,8 @@ "binop": null, "updateContext": null }, - "start": 1779, - "end": 1780, + "start": 1778, + "end": 1779, "loc": { "start": { "line": 75, @@ -23013,8 +23013,8 @@ "binop": null, "updateContext": null }, - "start": 1781, - "end": 1782, + "start": 1780, + "end": 1781, "loc": { "start": { "line": 75, @@ -23040,8 +23040,8 @@ "updateContext": null }, "value": "text/plain", - "start": 1782, - "end": 1794, + "start": 1781, + "end": 1793, "loc": { "start": { "line": 75, @@ -23066,8 +23066,8 @@ "binop": null, "updateContext": null }, - "start": 1794, - "end": 1795, + "start": 1793, + "end": 1794, "loc": { "start": { "line": 75, @@ -23093,8 +23093,8 @@ "updateContext": null }, "value": "application/vnd.myscript.jiix", - "start": 1796, - "end": 1827, + "start": 1795, + "end": 1826, "loc": { "start": { "line": 75, @@ -23119,8 +23119,8 @@ "binop": null, "updateContext": null }, - "start": 1827, - "end": 1828, + "start": 1826, + "end": 1827, "loc": { "start": { "line": 75, @@ -23145,8 +23145,8 @@ "binop": null, "updateContext": null }, - "start": 1828, - "end": 1829, + "start": 1827, + "end": 1828, "loc": { "start": { "line": 75, @@ -23171,8 +23171,8 @@ "binop": null }, "value": "margin", - "start": 1838, - "end": 1844, + "start": 1837, + "end": 1843, "loc": { "start": { "line": 76, @@ -23197,8 +23197,8 @@ "binop": null, "updateContext": null }, - "start": 1844, - "end": 1845, + "start": 1843, + "end": 1844, "loc": { "start": { "line": 76, @@ -23222,8 +23222,8 @@ "postfix": false, "binop": null }, - "start": 1846, - "end": 1847, + "start": 1845, + "end": 1846, "loc": { "start": { "line": 76, @@ -23248,8 +23248,8 @@ "binop": null }, "value": "top", - "start": 1858, - "end": 1861, + "start": 1857, + "end": 1860, "loc": { "start": { "line": 77, @@ -23274,8 +23274,8 @@ "binop": null, "updateContext": null }, - "start": 1861, - "end": 1862, + "start": 1860, + "end": 1861, "loc": { "start": { "line": 77, @@ -23301,8 +23301,8 @@ "updateContext": null }, "value": 20, - "start": 1863, - "end": 1865, + "start": 1862, + "end": 1864, "loc": { "start": { "line": 77, @@ -23327,8 +23327,8 @@ "binop": null, "updateContext": null }, - "start": 1865, - "end": 1866, + "start": 1864, + "end": 1865, "loc": { "start": { "line": 77, @@ -23353,8 +23353,8 @@ "binop": null }, "value": "left", - "start": 1877, - "end": 1881, + "start": 1876, + "end": 1880, "loc": { "start": { "line": 78, @@ -23379,8 +23379,8 @@ "binop": null, "updateContext": null }, - "start": 1881, - "end": 1882, + "start": 1880, + "end": 1881, "loc": { "start": { "line": 78, @@ -23406,8 +23406,8 @@ "updateContext": null }, "value": 10, - "start": 1883, - "end": 1885, + "start": 1882, + "end": 1884, "loc": { "start": { "line": 78, @@ -23432,8 +23432,8 @@ "binop": null, "updateContext": null }, - "start": 1885, - "end": 1886, + "start": 1884, + "end": 1885, "loc": { "start": { "line": 78, @@ -23458,8 +23458,8 @@ "binop": null }, "value": "right", - "start": 1897, - "end": 1902, + "start": 1896, + "end": 1901, "loc": { "start": { "line": 79, @@ -23484,8 +23484,8 @@ "binop": null, "updateContext": null }, - "start": 1902, - "end": 1903, + "start": 1901, + "end": 1902, "loc": { "start": { "line": 79, @@ -23511,8 +23511,8 @@ "updateContext": null }, "value": 10, - "start": 1904, - "end": 1906, + "start": 1903, + "end": 1905, "loc": { "start": { "line": 79, @@ -23536,8 +23536,8 @@ "postfix": false, "binop": null }, - "start": 1915, - "end": 1916, + "start": 1914, + "end": 1915, "loc": { "start": { "line": 80, @@ -23561,8 +23561,8 @@ "postfix": false, "binop": null }, - "start": 1923, - "end": 1924, + "start": 1922, + "end": 1923, "loc": { "start": { "line": 81, @@ -23587,8 +23587,8 @@ "binop": null, "updateContext": null }, - "start": 1924, - "end": 1925, + "start": 1923, + "end": 1924, "loc": { "start": { "line": 81, @@ -23613,8 +23613,8 @@ "binop": null }, "value": "diagram", - "start": 1932, - "end": 1939, + "start": 1931, + "end": 1938, "loc": { "start": { "line": 82, @@ -23639,8 +23639,8 @@ "binop": null, "updateContext": null }, - "start": 1939, - "end": 1940, + "start": 1938, + "end": 1939, "loc": { "start": { "line": 82, @@ -23664,8 +23664,8 @@ "postfix": false, "binop": null }, - "start": 1941, - "end": 1942, + "start": 1940, + "end": 1941, "loc": { "start": { "line": 82, @@ -23690,8 +23690,8 @@ "binop": null }, "value": "mimeTypes", - "start": 1951, - "end": 1960, + "start": 1950, + "end": 1959, "loc": { "start": { "line": 83, @@ -23716,8 +23716,8 @@ "binop": null, "updateContext": null }, - "start": 1960, - "end": 1961, + "start": 1959, + "end": 1960, "loc": { "start": { "line": 83, @@ -23742,8 +23742,8 @@ "binop": null, "updateContext": null }, - "start": 1962, - "end": 1963, + "start": 1961, + "end": 1962, "loc": { "start": { "line": 83, @@ -23769,8 +23769,8 @@ "updateContext": null }, "value": "application/vnd.myscript.jiix", - "start": 1963, - "end": 1994, + "start": 1962, + "end": 1993, "loc": { "start": { "line": 83, @@ -23795,8 +23795,8 @@ "binop": null, "updateContext": null }, - "start": 1994, - "end": 1995, + "start": 1993, + "end": 1994, "loc": { "start": { "line": 83, @@ -23821,8 +23821,8 @@ "binop": null, "updateContext": null }, - "start": 1995, - "end": 1996, + "start": 1994, + "end": 1995, "loc": { "start": { "line": 83, @@ -23847,8 +23847,8 @@ "binop": null }, "value": "margin", - "start": 2005, - "end": 2011, + "start": 2004, + "end": 2010, "loc": { "start": { "line": 84, @@ -23873,8 +23873,8 @@ "binop": null, "updateContext": null }, - "start": 2011, - "end": 2012, + "start": 2010, + "end": 2011, "loc": { "start": { "line": 84, @@ -23898,8 +23898,8 @@ "postfix": false, "binop": null }, - "start": 2013, - "end": 2014, + "start": 2012, + "end": 2013, "loc": { "start": { "line": 84, @@ -23924,8 +23924,8 @@ "binop": null }, "value": "bottom", - "start": 2025, - "end": 2031, + "start": 2024, + "end": 2030, "loc": { "start": { "line": 85, @@ -23950,8 +23950,8 @@ "binop": null, "updateContext": null }, - "start": 2031, - "end": 2032, + "start": 2030, + "end": 2031, "loc": { "start": { "line": 85, @@ -23977,8 +23977,8 @@ "updateContext": null }, "value": 10, - "start": 2033, - "end": 2035, + "start": 2032, + "end": 2034, "loc": { "start": { "line": 85, @@ -24003,8 +24003,8 @@ "binop": null, "updateContext": null }, - "start": 2035, - "end": 2036, + "start": 2034, + "end": 2035, "loc": { "start": { "line": 85, @@ -24029,8 +24029,8 @@ "binop": null }, "value": "left", - "start": 2047, - "end": 2051, + "start": 2046, + "end": 2050, "loc": { "start": { "line": 86, @@ -24055,8 +24055,8 @@ "binop": null, "updateContext": null }, - "start": 2051, - "end": 2052, + "start": 2050, + "end": 2051, "loc": { "start": { "line": 86, @@ -24082,8 +24082,8 @@ "updateContext": null }, "value": 15, - "start": 2053, - "end": 2055, + "start": 2052, + "end": 2054, "loc": { "start": { "line": 86, @@ -24108,8 +24108,8 @@ "binop": null, "updateContext": null }, - "start": 2055, - "end": 2056, + "start": 2054, + "end": 2055, "loc": { "start": { "line": 86, @@ -24134,8 +24134,8 @@ "binop": null }, "value": "right", - "start": 2067, - "end": 2072, + "start": 2066, + "end": 2071, "loc": { "start": { "line": 87, @@ -24160,8 +24160,8 @@ "binop": null, "updateContext": null }, - "start": 2072, - "end": 2073, + "start": 2071, + "end": 2072, "loc": { "start": { "line": 87, @@ -24187,8 +24187,8 @@ "updateContext": null }, "value": 15, - "start": 2074, - "end": 2076, + "start": 2073, + "end": 2075, "loc": { "start": { "line": 87, @@ -24213,8 +24213,8 @@ "binop": null, "updateContext": null }, - "start": 2076, - "end": 2077, + "start": 2075, + "end": 2076, "loc": { "start": { "line": 87, @@ -24239,8 +24239,8 @@ "binop": null }, "value": "top", - "start": 2088, - "end": 2091, + "start": 2087, + "end": 2090, "loc": { "start": { "line": 88, @@ -24265,8 +24265,8 @@ "binop": null, "updateContext": null }, - "start": 2091, - "end": 2092, + "start": 2090, + "end": 2091, "loc": { "start": { "line": 88, @@ -24292,8 +24292,8 @@ "updateContext": null }, "value": 10, - "start": 2093, - "end": 2095, + "start": 2092, + "end": 2094, "loc": { "start": { "line": 88, @@ -24317,8 +24317,8 @@ "postfix": false, "binop": null }, - "start": 2104, - "end": 2105, + "start": 2103, + "end": 2104, "loc": { "start": { "line": 89, @@ -24342,8 +24342,8 @@ "postfix": false, "binop": null }, - "start": 2112, - "end": 2113, + "start": 2111, + "end": 2112, "loc": { "start": { "line": 90, @@ -24368,8 +24368,8 @@ "binop": null, "updateContext": null }, - "start": 2113, - "end": 2114, + "start": 2112, + "end": 2113, "loc": { "start": { "line": 90, @@ -24395,8 +24395,8 @@ "updateContext": null }, "value": "raw-content", - "start": 2121, - "end": 2134, + "start": 2120, + "end": 2133, "loc": { "start": { "line": 91, @@ -24421,8 +24421,8 @@ "binop": null, "updateContext": null }, - "start": 2134, - "end": 2135, + "start": 2133, + "end": 2134, "loc": { "start": { "line": 91, @@ -24446,8 +24446,8 @@ "postfix": false, "binop": null }, - "start": 2136, - "end": 2137, + "start": 2135, + "end": 2136, "loc": { "start": { "line": 91, @@ -24472,8 +24472,8 @@ "binop": null }, "value": "recognition", - "start": 2146, - "end": 2157, + "start": 2145, + "end": 2156, "loc": { "start": { "line": 92, @@ -24498,8 +24498,8 @@ "binop": null, "updateContext": null }, - "start": 2157, - "end": 2158, + "start": 2156, + "end": 2157, "loc": { "start": { "line": 92, @@ -24523,8 +24523,8 @@ "postfix": false, "binop": null }, - "start": 2159, - "end": 2160, + "start": 2158, + "end": 2159, "loc": { "start": { "line": 92, @@ -24549,8 +24549,8 @@ "binop": null }, "value": "text", - "start": 2171, - "end": 2175, + "start": 2170, + "end": 2174, "loc": { "start": { "line": 93, @@ -24575,8 +24575,8 @@ "binop": null, "updateContext": null }, - "start": 2175, - "end": 2176, + "start": 2174, + "end": 2175, "loc": { "start": { "line": 93, @@ -24603,8 +24603,8 @@ "updateContext": null }, "value": "false", - "start": 2177, - "end": 2182, + "start": 2176, + "end": 2181, "loc": { "start": { "line": 93, @@ -24629,8 +24629,8 @@ "binop": null, "updateContext": null }, - "start": 2182, - "end": 2183, + "start": 2181, + "end": 2182, "loc": { "start": { "line": 93, @@ -24655,8 +24655,8 @@ "binop": null }, "value": "shape", - "start": 2194, - "end": 2199, + "start": 2193, + "end": 2198, "loc": { "start": { "line": 94, @@ -24681,8 +24681,8 @@ "binop": null, "updateContext": null }, - "start": 2199, - "end": 2200, + "start": 2198, + "end": 2199, "loc": { "start": { "line": 94, @@ -24709,8 +24709,8 @@ "updateContext": null }, "value": "false", - "start": 2201, - "end": 2206, + "start": 2200, + "end": 2205, "loc": { "start": { "line": 94, @@ -24734,8 +24734,8 @@ "postfix": false, "binop": null }, - "start": 2215, - "end": 2216, + "start": 2214, + "end": 2215, "loc": { "start": { "line": 95, @@ -24759,8 +24759,8 @@ "postfix": false, "binop": null }, - "start": 2223, - "end": 2224, + "start": 2222, + "end": 2223, "loc": { "start": { "line": 96, @@ -24784,8 +24784,8 @@ "postfix": false, "binop": null }, - "start": 2229, - "end": 2230, + "start": 2228, + "end": 2229, "loc": { "start": { "line": 97, @@ -24810,8 +24810,8 @@ "binop": null, "updateContext": null }, - "start": 2230, - "end": 2231, + "start": 2229, + "end": 2230, "loc": { "start": { "line": 97, @@ -24836,8 +24836,8 @@ "binop": null }, "value": "v3", - "start": 2236, - "end": 2238, + "start": 2235, + "end": 2237, "loc": { "start": { "line": 98, @@ -24862,8 +24862,8 @@ "binop": null, "updateContext": null }, - "start": 2238, - "end": 2239, + "start": 2237, + "end": 2238, "loc": { "start": { "line": 98, @@ -24887,8 +24887,8 @@ "postfix": false, "binop": null }, - "start": 2240, - "end": 2241, + "start": 2239, + "end": 2240, "loc": { "start": { "line": 98, @@ -24913,8 +24913,8 @@ "binop": null }, "value": "mathParameter", - "start": 2248, - "end": 2261, + "start": 2247, + "end": 2260, "loc": { "start": { "line": 99, @@ -24939,8 +24939,8 @@ "binop": null, "updateContext": null }, - "start": 2261, - "end": 2262, + "start": 2260, + "end": 2261, "loc": { "start": { "line": 99, @@ -24964,8 +24964,8 @@ "postfix": false, "binop": null }, - "start": 2263, - "end": 2264, + "start": 2262, + "end": 2263, "loc": { "start": { "line": 99, @@ -24990,8 +24990,8 @@ "binop": null }, "value": "resultTypes", - "start": 2273, - "end": 2284, + "start": 2272, + "end": 2283, "loc": { "start": { "line": 100, @@ -25016,8 +25016,8 @@ "binop": null, "updateContext": null }, - "start": 2284, - "end": 2285, + "start": 2283, + "end": 2284, "loc": { "start": { "line": 100, @@ -25042,8 +25042,8 @@ "binop": null, "updateContext": null }, - "start": 2286, - "end": 2287, + "start": 2285, + "end": 2286, "loc": { "start": { "line": 100, @@ -25069,8 +25069,8 @@ "updateContext": null }, "value": "LATEX", - "start": 2287, - "end": 2294, + "start": 2286, + "end": 2293, "loc": { "start": { "line": 100, @@ -25095,8 +25095,8 @@ "binop": null, "updateContext": null }, - "start": 2294, - "end": 2295, + "start": 2293, + "end": 2294, "loc": { "start": { "line": 100, @@ -25122,8 +25122,8 @@ "updateContext": null }, "value": "MATHML", - "start": 2296, - "end": 2304, + "start": 2295, + "end": 2303, "loc": { "start": { "line": 100, @@ -25148,8 +25148,8 @@ "binop": null, "updateContext": null }, - "start": 2304, - "end": 2305, + "start": 2303, + "end": 2304, "loc": { "start": { "line": 100, @@ -25174,8 +25174,8 @@ "binop": null, "updateContext": null }, - "start": 2305, - "end": 2306, + "start": 2304, + "end": 2305, "loc": { "start": { "line": 100, @@ -25200,8 +25200,8 @@ "binop": null }, "value": "columnarOperation", - "start": 2315, - "end": 2332, + "start": 2314, + "end": 2331, "loc": { "start": { "line": 101, @@ -25226,8 +25226,8 @@ "binop": null, "updateContext": null }, - "start": 2332, - "end": 2333, + "start": 2331, + "end": 2332, "loc": { "start": { "line": 101, @@ -25254,8 +25254,8 @@ "updateContext": null }, "value": "false", - "start": 2334, - "end": 2339, + "start": 2333, + "end": 2338, "loc": { "start": { "line": 101, @@ -25280,8 +25280,8 @@ "binop": null, "updateContext": null }, - "start": 2339, - "end": 2340, + "start": 2338, + "end": 2339, "loc": { "start": { "line": 101, @@ -25306,8 +25306,8 @@ "binop": null }, "value": "userResources", - "start": 2349, - "end": 2362, + "start": 2348, + "end": 2361, "loc": { "start": { "line": 102, @@ -25332,8 +25332,8 @@ "binop": null, "updateContext": null }, - "start": 2362, - "end": 2363, + "start": 2361, + "end": 2362, "loc": { "start": { "line": 102, @@ -25358,8 +25358,8 @@ "binop": null, "updateContext": null }, - "start": 2364, - "end": 2365, + "start": 2363, + "end": 2364, "loc": { "start": { "line": 102, @@ -25384,8 +25384,8 @@ "binop": null, "updateContext": null }, - "start": 2365, - "end": 2366, + "start": 2364, + "end": 2365, "loc": { "start": { "line": 102, @@ -25410,8 +25410,8 @@ "binop": null, "updateContext": null }, - "start": 2366, - "end": 2367, + "start": 2365, + "end": 2366, "loc": { "start": { "line": 102, @@ -25436,8 +25436,8 @@ "binop": null }, "value": "scratchOutDetectionSensitivity", - "start": 2376, - "end": 2406, + "start": 2375, + "end": 2405, "loc": { "start": { "line": 103, @@ -25462,8 +25462,8 @@ "binop": null, "updateContext": null }, - "start": 2406, - "end": 2407, + "start": 2405, + "end": 2406, "loc": { "start": { "line": 103, @@ -25489,8 +25489,8 @@ "updateContext": null }, "value": 1, - "start": 2408, - "end": 2409, + "start": 2407, + "end": 2408, "loc": { "start": { "line": 103, @@ -25515,8 +25515,8 @@ "binop": null, "updateContext": null }, - "start": 2409, - "end": 2410, + "start": 2408, + "end": 2409, "loc": { "start": { "line": 103, @@ -25540,8 +25540,8 @@ "postfix": false, "binop": null }, - "start": 2417, - "end": 2418, + "start": 2416, + "end": 2417, "loc": { "start": { "line": 104, @@ -25566,8 +25566,8 @@ "binop": null, "updateContext": null }, - "start": 2418, - "end": 2419, + "start": 2417, + "end": 2418, "loc": { "start": { "line": 104, @@ -25592,8 +25592,8 @@ "binop": null }, "value": "textParameter", - "start": 2426, - "end": 2439, + "start": 2425, + "end": 2438, "loc": { "start": { "line": 105, @@ -25618,8 +25618,8 @@ "binop": null, "updateContext": null }, - "start": 2439, - "end": 2440, + "start": 2438, + "end": 2439, "loc": { "start": { "line": 105, @@ -25643,8 +25643,8 @@ "postfix": false, "binop": null }, - "start": 2441, - "end": 2442, + "start": 2440, + "end": 2441, "loc": { "start": { "line": 105, @@ -25669,8 +25669,8 @@ "binop": null }, "value": "language", - "start": 2451, - "end": 2459, + "start": 2450, + "end": 2458, "loc": { "start": { "line": 106, @@ -25695,8 +25695,8 @@ "binop": null, "updateContext": null }, - "start": 2459, - "end": 2460, + "start": 2458, + "end": 2459, "loc": { "start": { "line": 106, @@ -25722,8 +25722,8 @@ "updateContext": null }, "value": "en_US", - "start": 2461, - "end": 2468, + "start": 2460, + "end": 2467, "loc": { "start": { "line": 106, @@ -25748,8 +25748,8 @@ "binop": null, "updateContext": null }, - "start": 2468, - "end": 2469, + "start": 2467, + "end": 2468, "loc": { "start": { "line": 106, @@ -25774,8 +25774,8 @@ "binop": null }, "value": "textInputMode", - "start": 2478, - "end": 2491, + "start": 2477, + "end": 2490, "loc": { "start": { "line": 107, @@ -25800,8 +25800,8 @@ "binop": null, "updateContext": null }, - "start": 2491, - "end": 2492, + "start": 2490, + "end": 2491, "loc": { "start": { "line": 107, @@ -25827,8 +25827,8 @@ "updateContext": null }, "value": "CURSIVE", - "start": 2493, - "end": 2502, + "start": 2492, + "end": 2501, "loc": { "start": { "line": 107, @@ -25853,8 +25853,8 @@ "binop": null, "updateContext": null }, - "start": 2502, - "end": 2503, + "start": 2501, + "end": 2502, "loc": { "start": { "line": 107, @@ -25879,8 +25879,8 @@ "binop": null }, "value": "resultDetail", - "start": 2512, - "end": 2524, + "start": 2511, + "end": 2523, "loc": { "start": { "line": 108, @@ -25905,8 +25905,8 @@ "binop": null, "updateContext": null }, - "start": 2524, - "end": 2525, + "start": 2523, + "end": 2524, "loc": { "start": { "line": 108, @@ -25932,8 +25932,8 @@ "updateContext": null }, "value": "TEXT", - "start": 2526, - "end": 2532, + "start": 2525, + "end": 2531, "loc": { "start": { "line": 108, @@ -25958,8 +25958,8 @@ "binop": null, "updateContext": null }, - "start": 2532, - "end": 2533, + "start": 2531, + "end": 2532, "loc": { "start": { "line": 108, @@ -25984,8 +25984,8 @@ "binop": null }, "value": "contentTypes", - "start": 2542, - "end": 2554, + "start": 2541, + "end": 2553, "loc": { "start": { "line": 109, @@ -26010,8 +26010,8 @@ "binop": null, "updateContext": null }, - "start": 2554, - "end": 2555, + "start": 2553, + "end": 2554, "loc": { "start": { "line": 109, @@ -26036,8 +26036,8 @@ "binop": null, "updateContext": null }, - "start": 2556, - "end": 2557, + "start": 2555, + "end": 2556, "loc": { "start": { "line": 109, @@ -26062,8 +26062,8 @@ "binop": null, "updateContext": null }, - "start": 2557, - "end": 2558, + "start": 2556, + "end": 2557, "loc": { "start": { "line": 109, @@ -26088,8 +26088,8 @@ "binop": null, "updateContext": null }, - "start": 2558, - "end": 2559, + "start": 2557, + "end": 2558, "loc": { "start": { "line": 109, @@ -26114,8 +26114,8 @@ "binop": null }, "value": "subsetKnowledges", - "start": 2568, - "end": 2584, + "start": 2567, + "end": 2583, "loc": { "start": { "line": 110, @@ -26140,8 +26140,8 @@ "binop": null, "updateContext": null }, - "start": 2584, - "end": 2585, + "start": 2583, + "end": 2584, "loc": { "start": { "line": 110, @@ -26166,8 +26166,8 @@ "binop": null, "updateContext": null }, - "start": 2586, - "end": 2587, + "start": 2585, + "end": 2586, "loc": { "start": { "line": 110, @@ -26192,8 +26192,8 @@ "binop": null, "updateContext": null }, - "start": 2587, - "end": 2588, + "start": 2586, + "end": 2587, "loc": { "start": { "line": 110, @@ -26218,8 +26218,8 @@ "binop": null, "updateContext": null }, - "start": 2588, - "end": 2589, + "start": 2587, + "end": 2588, "loc": { "start": { "line": 110, @@ -26244,8 +26244,8 @@ "binop": null }, "value": "userLkWords", - "start": 2598, - "end": 2609, + "start": 2597, + "end": 2608, "loc": { "start": { "line": 111, @@ -26270,8 +26270,8 @@ "binop": null, "updateContext": null }, - "start": 2609, - "end": 2610, + "start": 2608, + "end": 2609, "loc": { "start": { "line": 111, @@ -26296,8 +26296,8 @@ "binop": null, "updateContext": null }, - "start": 2611, - "end": 2612, + "start": 2610, + "end": 2611, "loc": { "start": { "line": 111, @@ -26322,8 +26322,8 @@ "binop": null, "updateContext": null }, - "start": 2612, - "end": 2613, + "start": 2611, + "end": 2612, "loc": { "start": { "line": 111, @@ -26348,8 +26348,8 @@ "binop": null, "updateContext": null }, - "start": 2613, - "end": 2614, + "start": 2612, + "end": 2613, "loc": { "start": { "line": 111, @@ -26374,8 +26374,8 @@ "binop": null }, "value": "userResources", - "start": 2623, - "end": 2636, + "start": 2622, + "end": 2635, "loc": { "start": { "line": 112, @@ -26400,8 +26400,8 @@ "binop": null, "updateContext": null }, - "start": 2636, - "end": 2637, + "start": 2635, + "end": 2636, "loc": { "start": { "line": 112, @@ -26426,8 +26426,8 @@ "binop": null, "updateContext": null }, - "start": 2638, - "end": 2639, + "start": 2637, + "end": 2638, "loc": { "start": { "line": 112, @@ -26452,8 +26452,8 @@ "binop": null, "updateContext": null }, - "start": 2639, - "end": 2640, + "start": 2638, + "end": 2639, "loc": { "start": { "line": 112, @@ -26478,8 +26478,8 @@ "binop": null, "updateContext": null }, - "start": 2640, - "end": 2641, + "start": 2639, + "end": 2640, "loc": { "start": { "line": 112, @@ -26504,8 +26504,8 @@ "binop": null }, "value": "textProperties", - "start": 2650, - "end": 2664, + "start": 2649, + "end": 2663, "loc": { "start": { "line": 113, @@ -26530,8 +26530,8 @@ "binop": null, "updateContext": null }, - "start": 2664, - "end": 2665, + "start": 2663, + "end": 2664, "loc": { "start": { "line": 113, @@ -26555,8 +26555,8 @@ "postfix": false, "binop": null }, - "start": 2666, - "end": 2667, + "start": 2665, + "end": 2666, "loc": { "start": { "line": 113, @@ -26581,8 +26581,8 @@ "binop": null }, "value": "textCandidateListSize", - "start": 2678, - "end": 2699, + "start": 2677, + "end": 2698, "loc": { "start": { "line": 114, @@ -26607,8 +26607,8 @@ "binop": null, "updateContext": null }, - "start": 2699, - "end": 2700, + "start": 2698, + "end": 2699, "loc": { "start": { "line": 114, @@ -26634,8 +26634,8 @@ "updateContext": null }, "value": 1, - "start": 2701, - "end": 2702, + "start": 2700, + "end": 2701, "loc": { "start": { "line": 114, @@ -26660,8 +26660,8 @@ "binop": null, "updateContext": null }, - "start": 2702, - "end": 2703, + "start": 2701, + "end": 2702, "loc": { "start": { "line": 114, @@ -26686,8 +26686,8 @@ "binop": null }, "value": "wordCandidateListSize", - "start": 2714, - "end": 2735, + "start": 2713, + "end": 2734, "loc": { "start": { "line": 115, @@ -26712,8 +26712,8 @@ "binop": null, "updateContext": null }, - "start": 2735, - "end": 2736, + "start": 2734, + "end": 2735, "loc": { "start": { "line": 115, @@ -26738,8 +26738,8 @@ "binop": null }, "value": "undefined", - "start": 2737, - "end": 2746, + "start": 2736, + "end": 2745, "loc": { "start": { "line": 115, @@ -26764,8 +26764,8 @@ "binop": null, "updateContext": null }, - "start": 2746, - "end": 2747, + "start": 2745, + "end": 2746, "loc": { "start": { "line": 115, @@ -26790,8 +26790,8 @@ "binop": null }, "value": "wordPredictionListSize", - "start": 2758, - "end": 2780, + "start": 2757, + "end": 2779, "loc": { "start": { "line": 116, @@ -26816,8 +26816,8 @@ "binop": null, "updateContext": null }, - "start": 2780, - "end": 2781, + "start": 2779, + "end": 2780, "loc": { "start": { "line": 116, @@ -26843,8 +26843,8 @@ "updateContext": null }, "value": 0, - "start": 2782, - "end": 2783, + "start": 2781, + "end": 2782, "loc": { "start": { "line": 116, @@ -26869,8 +26869,8 @@ "binop": null, "updateContext": null }, - "start": 2783, - "end": 2784, + "start": 2782, + "end": 2783, "loc": { "start": { "line": 116, @@ -26895,8 +26895,8 @@ "binop": null }, "value": "wordCompletionListSize", - "start": 2795, - "end": 2817, + "start": 2794, + "end": 2816, "loc": { "start": { "line": 117, @@ -26921,8 +26921,8 @@ "binop": null, "updateContext": null }, - "start": 2817, - "end": 2818, + "start": 2816, + "end": 2817, "loc": { "start": { "line": 117, @@ -26948,8 +26948,8 @@ "updateContext": null }, "value": 0, - "start": 2819, - "end": 2820, + "start": 2818, + "end": 2819, "loc": { "start": { "line": 117, @@ -26974,8 +26974,8 @@ "binop": null, "updateContext": null }, - "start": 2820, - "end": 2821, + "start": 2819, + "end": 2820, "loc": { "start": { "line": 117, @@ -27000,8 +27000,8 @@ "binop": null }, "value": "characterCandidateListSize", - "start": 2832, - "end": 2858, + "start": 2831, + "end": 2857, "loc": { "start": { "line": 118, @@ -27026,8 +27026,8 @@ "binop": null, "updateContext": null }, - "start": 2858, - "end": 2859, + "start": 2857, + "end": 2858, "loc": { "start": { "line": 118, @@ -27052,8 +27052,8 @@ "binop": null }, "value": "undefined", - "start": 2860, - "end": 2869, + "start": 2859, + "end": 2868, "loc": { "start": { "line": 118, @@ -27078,8 +27078,8 @@ "binop": null, "updateContext": null }, - "start": 2869, - "end": 2870, + "start": 2868, + "end": 2869, "loc": { "start": { "line": 118, @@ -27104,8 +27104,8 @@ "binop": null }, "value": "enableOutOfLexicon", - "start": 2881, - "end": 2899, + "start": 2880, + "end": 2898, "loc": { "start": { "line": 119, @@ -27130,8 +27130,8 @@ "binop": null, "updateContext": null }, - "start": 2899, - "end": 2900, + "start": 2898, + "end": 2899, "loc": { "start": { "line": 119, @@ -27158,8 +27158,8 @@ "updateContext": null }, "value": "false", - "start": 2901, - "end": 2906, + "start": 2900, + "end": 2905, "loc": { "start": { "line": 119, @@ -27184,8 +27184,8 @@ "binop": null, "updateContext": null }, - "start": 2906, - "end": 2907, + "start": 2905, + "end": 2906, "loc": { "start": { "line": 119, @@ -27210,8 +27210,8 @@ "binop": null }, "value": "discardCaseVariations", - "start": 2918, - "end": 2939, + "start": 2917, + "end": 2938, "loc": { "start": { "line": 120, @@ -27236,8 +27236,8 @@ "binop": null, "updateContext": null }, - "start": 2939, - "end": 2940, + "start": 2938, + "end": 2939, "loc": { "start": { "line": 120, @@ -27264,8 +27264,8 @@ "updateContext": null }, "value": "false", - "start": 2941, - "end": 2946, + "start": 2940, + "end": 2945, "loc": { "start": { "line": 120, @@ -27290,8 +27290,8 @@ "binop": null, "updateContext": null }, - "start": 2946, - "end": 2947, + "start": 2945, + "end": 2946, "loc": { "start": { "line": 120, @@ -27316,8 +27316,8 @@ "binop": null }, "value": "discardAccentuationVariations", - "start": 2958, - "end": 2987, + "start": 2957, + "end": 2986, "loc": { "start": { "line": 121, @@ -27342,8 +27342,8 @@ "binop": null, "updateContext": null }, - "start": 2987, - "end": 2988, + "start": 2986, + "end": 2987, "loc": { "start": { "line": 121, @@ -27370,8 +27370,8 @@ "updateContext": null }, "value": "false", - "start": 2989, - "end": 2994, + "start": 2988, + "end": 2993, "loc": { "start": { "line": 121, @@ -27396,8 +27396,8 @@ "binop": null, "updateContext": null }, - "start": 2994, - "end": 2995, + "start": 2993, + "end": 2994, "loc": { "start": { "line": 121, @@ -27422,8 +27422,8 @@ "binop": null }, "value": "glyphDistortion", - "start": 3006, - "end": 3021, + "start": 3005, + "end": 3020, "loc": { "start": { "line": 122, @@ -27448,8 +27448,8 @@ "binop": null, "updateContext": null }, - "start": 3021, - "end": 3022, + "start": 3020, + "end": 3021, "loc": { "start": { "line": 122, @@ -27474,8 +27474,8 @@ "binop": null }, "value": "undefined", - "start": 3023, - "end": 3032, + "start": 3022, + "end": 3031, "loc": { "start": { "line": 122, @@ -27500,8 +27500,8 @@ "binop": null, "updateContext": null }, - "start": 3032, - "end": 3033, + "start": 3031, + "end": 3032, "loc": { "start": { "line": 122, @@ -27526,8 +27526,8 @@ "binop": null }, "value": "enableTagger", - "start": 3044, - "end": 3056, + "start": 3043, + "end": 3055, "loc": { "start": { "line": 123, @@ -27552,8 +27552,8 @@ "binop": null, "updateContext": null }, - "start": 3056, - "end": 3057, + "start": 3055, + "end": 3056, "loc": { "start": { "line": 123, @@ -27580,8 +27580,8 @@ "updateContext": null }, "value": "false", - "start": 3058, - "end": 3063, + "start": 3057, + "end": 3062, "loc": { "start": { "line": 123, @@ -27606,8 +27606,8 @@ "binop": null, "updateContext": null }, - "start": 3063, - "end": 3064, + "start": 3062, + "end": 3063, "loc": { "start": { "line": 123, @@ -27632,8 +27632,8 @@ "binop": null }, "value": "spellingDistortion", - "start": 3075, - "end": 3093, + "start": 3074, + "end": 3092, "loc": { "start": { "line": 124, @@ -27658,8 +27658,8 @@ "binop": null, "updateContext": null }, - "start": 3093, - "end": 3094, + "start": 3092, + "end": 3093, "loc": { "start": { "line": 124, @@ -27684,8 +27684,8 @@ "binop": null }, "value": "undefined", - "start": 3095, - "end": 3104, + "start": 3094, + "end": 3103, "loc": { "start": { "line": 124, @@ -27709,8 +27709,8 @@ "postfix": false, "binop": null }, - "start": 3113, - "end": 3114, + "start": 3112, + "end": 3113, "loc": { "start": { "line": 125, @@ -27734,8 +27734,8 @@ "postfix": false, "binop": null }, - "start": 3121, - "end": 3122, + "start": 3120, + "end": 3121, "loc": { "start": { "line": 126, @@ -27760,8 +27760,8 @@ "binop": null, "updateContext": null }, - "start": 3122, - "end": 3123, + "start": 3121, + "end": 3122, "loc": { "start": { "line": 126, @@ -27786,8 +27786,8 @@ "binop": null }, "value": "shapeParameter", - "start": 3130, - "end": 3144, + "start": 3129, + "end": 3143, "loc": { "start": { "line": 127, @@ -27812,8 +27812,8 @@ "binop": null, "updateContext": null }, - "start": 3144, - "end": 3145, + "start": 3143, + "end": 3144, "loc": { "start": { "line": 127, @@ -27837,8 +27837,8 @@ "postfix": false, "binop": null }, - "start": 3146, - "end": 3147, + "start": 3145, + "end": 3146, "loc": { "start": { "line": 127, @@ -27863,8 +27863,8 @@ "binop": null }, "value": "userResources", - "start": 3156, - "end": 3169, + "start": 3155, + "end": 3168, "loc": { "start": { "line": 128, @@ -27889,8 +27889,8 @@ "binop": null, "updateContext": null }, - "start": 3169, - "end": 3170, + "start": 3168, + "end": 3169, "loc": { "start": { "line": 128, @@ -27915,8 +27915,8 @@ "binop": null }, "value": "undefined", - "start": 3171, - "end": 3180, + "start": 3170, + "end": 3179, "loc": { "start": { "line": 128, @@ -27941,8 +27941,8 @@ "binop": null, "updateContext": null }, - "start": 3180, - "end": 3181, + "start": 3179, + "end": 3180, "loc": { "start": { "line": 128, @@ -27967,8 +27967,8 @@ "binop": null }, "value": "rejectDetectionSensitivity", - "start": 3190, - "end": 3216, + "start": 3189, + "end": 3215, "loc": { "start": { "line": 129, @@ -27993,8 +27993,8 @@ "binop": null, "updateContext": null }, - "start": 3216, - "end": 3217, + "start": 3215, + "end": 3216, "loc": { "start": { "line": 129, @@ -28020,8 +28020,8 @@ "updateContext": null }, "value": 1, - "start": 3218, - "end": 3219, + "start": 3217, + "end": 3218, "loc": { "start": { "line": 129, @@ -28046,8 +28046,8 @@ "binop": null, "updateContext": null }, - "start": 3219, - "end": 3220, + "start": 3218, + "end": 3219, "loc": { "start": { "line": 129, @@ -28072,8 +28072,8 @@ "binop": null }, "value": "doBeautification", - "start": 3229, - "end": 3245, + "start": 3228, + "end": 3244, "loc": { "start": { "line": 130, @@ -28098,8 +28098,8 @@ "binop": null, "updateContext": null }, - "start": 3245, - "end": 3246, + "start": 3244, + "end": 3245, "loc": { "start": { "line": 130, @@ -28126,8 +28126,8 @@ "updateContext": null }, "value": "true", - "start": 3247, - "end": 3251, + "start": 3246, + "end": 3250, "loc": { "start": { "line": 130, @@ -28151,8 +28151,8 @@ "postfix": false, "binop": null }, - "start": 3258, - "end": 3259, + "start": 3257, + "end": 3258, "loc": { "start": { "line": 131, @@ -28177,8 +28177,8 @@ "binop": null, "updateContext": null }, - "start": 3259, - "end": 3260, + "start": 3258, + "end": 3259, "loc": { "start": { "line": 131, @@ -28203,8 +28203,8 @@ "binop": null }, "value": "musicParameter", - "start": 3267, - "end": 3281, + "start": 3266, + "end": 3280, "loc": { "start": { "line": 132, @@ -28229,8 +28229,8 @@ "binop": null, "updateContext": null }, - "start": 3281, - "end": 3282, + "start": 3280, + "end": 3281, "loc": { "start": { "line": 132, @@ -28254,8 +28254,8 @@ "postfix": false, "binop": null }, - "start": 3283, - "end": 3284, + "start": 3282, + "end": 3283, "loc": { "start": { "line": 132, @@ -28280,8 +28280,8 @@ "binop": null }, "value": "divisions", - "start": 3293, - "end": 3302, + "start": 3292, + "end": 3301, "loc": { "start": { "line": 133, @@ -28306,8 +28306,8 @@ "binop": null, "updateContext": null }, - "start": 3302, - "end": 3303, + "start": 3301, + "end": 3302, "loc": { "start": { "line": 133, @@ -28333,8 +28333,8 @@ "updateContext": null }, "value": 480, - "start": 3304, - "end": 3307, + "start": 3303, + "end": 3306, "loc": { "start": { "line": 133, @@ -28359,8 +28359,8 @@ "binop": null, "updateContext": null }, - "start": 3307, - "end": 3308, + "start": 3306, + "end": 3307, "loc": { "start": { "line": 133, @@ -28385,8 +28385,8 @@ "binop": null }, "value": "resultTypes", - "start": 3317, - "end": 3328, + "start": 3316, + "end": 3327, "loc": { "start": { "line": 134, @@ -28411,8 +28411,8 @@ "binop": null, "updateContext": null }, - "start": 3328, - "end": 3329, + "start": 3327, + "end": 3328, "loc": { "start": { "line": 134, @@ -28437,8 +28437,8 @@ "binop": null, "updateContext": null }, - "start": 3330, - "end": 3331, + "start": 3329, + "end": 3330, "loc": { "start": { "line": 134, @@ -28464,8 +28464,8 @@ "updateContext": null }, "value": "MUSICXML", - "start": 3331, - "end": 3341, + "start": 3330, + "end": 3340, "loc": { "start": { "line": 134, @@ -28490,8 +28490,8 @@ "binop": null, "updateContext": null }, - "start": 3341, - "end": 3342, + "start": 3340, + "end": 3341, "loc": { "start": { "line": 134, @@ -28517,8 +28517,8 @@ "updateContext": null }, "value": "SCORETREE", - "start": 3343, - "end": 3354, + "start": 3342, + "end": 3353, "loc": { "start": { "line": 134, @@ -28543,8 +28543,8 @@ "binop": null, "updateContext": null }, - "start": 3354, - "end": 3355, + "start": 3353, + "end": 3354, "loc": { "start": { "line": 134, @@ -28569,8 +28569,8 @@ "binop": null, "updateContext": null }, - "start": 3355, - "end": 3356, + "start": 3354, + "end": 3355, "loc": { "start": { "line": 134, @@ -28595,8 +28595,8 @@ "binop": null }, "value": "userResources", - "start": 3365, - "end": 3378, + "start": 3364, + "end": 3377, "loc": { "start": { "line": 135, @@ -28621,8 +28621,8 @@ "binop": null, "updateContext": null }, - "start": 3378, - "end": 3379, + "start": 3377, + "end": 3378, "loc": { "start": { "line": 135, @@ -28647,8 +28647,8 @@ "binop": null, "updateContext": null }, - "start": 3380, - "end": 3381, + "start": 3379, + "end": 3380, "loc": { "start": { "line": 135, @@ -28673,8 +28673,8 @@ "binop": null, "updateContext": null }, - "start": 3381, - "end": 3382, + "start": 3380, + "end": 3381, "loc": { "start": { "line": 135, @@ -28699,8 +28699,8 @@ "binop": null, "updateContext": null }, - "start": 3382, - "end": 3383, + "start": 3381, + "end": 3382, "loc": { "start": { "line": 135, @@ -28725,8 +28725,8 @@ "binop": null }, "value": "staff", - "start": 3392, - "end": 3397, + "start": 3391, + "end": 3396, "loc": { "start": { "line": 136, @@ -28751,8 +28751,8 @@ "binop": null, "updateContext": null }, - "start": 3397, - "end": 3398, + "start": 3396, + "end": 3397, "loc": { "start": { "line": 136, @@ -28776,8 +28776,8 @@ "postfix": false, "binop": null }, - "start": 3399, - "end": 3400, + "start": 3398, + "end": 3399, "loc": { "start": { "line": 136, @@ -28802,8 +28802,8 @@ "binop": null }, "value": "top", - "start": 3411, - "end": 3414, + "start": 3410, + "end": 3413, "loc": { "start": { "line": 137, @@ -28828,8 +28828,8 @@ "binop": null, "updateContext": null }, - "start": 3414, - "end": 3415, + "start": 3413, + "end": 3414, "loc": { "start": { "line": 137, @@ -28855,8 +28855,8 @@ "updateContext": null }, "value": 100, - "start": 3416, - "end": 3419, + "start": 3415, + "end": 3418, "loc": { "start": { "line": 137, @@ -28881,8 +28881,8 @@ "binop": null, "updateContext": null }, - "start": 3419, - "end": 3420, + "start": 3418, + "end": 3419, "loc": { "start": { "line": 137, @@ -28907,8 +28907,8 @@ "binop": null }, "value": "count", - "start": 3431, - "end": 3436, + "start": 3430, + "end": 3435, "loc": { "start": { "line": 138, @@ -28933,8 +28933,8 @@ "binop": null, "updateContext": null }, - "start": 3436, - "end": 3437, + "start": 3435, + "end": 3436, "loc": { "start": { "line": 138, @@ -28960,8 +28960,8 @@ "updateContext": null }, "value": 5, - "start": 3438, - "end": 3439, + "start": 3437, + "end": 3438, "loc": { "start": { "line": 138, @@ -28986,8 +28986,8 @@ "binop": null, "updateContext": null }, - "start": 3439, - "end": 3440, + "start": 3438, + "end": 3439, "loc": { "start": { "line": 138, @@ -29012,8 +29012,8 @@ "binop": null }, "value": "gap", - "start": 3451, - "end": 3454, + "start": 3450, + "end": 3453, "loc": { "start": { "line": 139, @@ -29038,8 +29038,8 @@ "binop": null, "updateContext": null }, - "start": 3454, - "end": 3455, + "start": 3453, + "end": 3454, "loc": { "start": { "line": 139, @@ -29065,8 +29065,8 @@ "updateContext": null }, "value": 20, - "start": 3456, - "end": 3458, + "start": 3455, + "end": 3457, "loc": { "start": { "line": 139, @@ -29090,8 +29090,8 @@ "postfix": false, "binop": null }, - "start": 3467, - "end": 3468, + "start": 3466, + "end": 3467, "loc": { "start": { "line": 140, @@ -29116,8 +29116,8 @@ "binop": null, "updateContext": null }, - "start": 3468, - "end": 3469, + "start": 3467, + "end": 3468, "loc": { "start": { "line": 140, @@ -29142,8 +29142,8 @@ "binop": null }, "value": "clef", - "start": 3478, - "end": 3482, + "start": 3477, + "end": 3481, "loc": { "start": { "line": 141, @@ -29168,8 +29168,8 @@ "binop": null, "updateContext": null }, - "start": 3482, - "end": 3483, + "start": 3481, + "end": 3482, "loc": { "start": { "line": 141, @@ -29193,8 +29193,8 @@ "postfix": false, "binop": null }, - "start": 3484, - "end": 3485, + "start": 3483, + "end": 3484, "loc": { "start": { "line": 141, @@ -29219,8 +29219,8 @@ "binop": null }, "value": "symbol", - "start": 3496, - "end": 3502, + "start": 3495, + "end": 3501, "loc": { "start": { "line": 142, @@ -29245,8 +29245,8 @@ "binop": null, "updateContext": null }, - "start": 3502, - "end": 3503, + "start": 3501, + "end": 3502, "loc": { "start": { "line": 142, @@ -29272,8 +29272,8 @@ "updateContext": null }, "value": "G", - "start": 3504, - "end": 3507, + "start": 3503, + "end": 3506, "loc": { "start": { "line": 142, @@ -29298,8 +29298,8 @@ "binop": null, "updateContext": null }, - "start": 3507, - "end": 3508, + "start": 3506, + "end": 3507, "loc": { "start": { "line": 142, @@ -29324,8 +29324,8 @@ "binop": null }, "value": "octave", - "start": 3519, - "end": 3525, + "start": 3518, + "end": 3524, "loc": { "start": { "line": 143, @@ -29350,8 +29350,8 @@ "binop": null, "updateContext": null }, - "start": 3525, - "end": 3526, + "start": 3524, + "end": 3525, "loc": { "start": { "line": 143, @@ -29377,8 +29377,8 @@ "updateContext": null }, "value": 0, - "start": 3527, - "end": 3528, + "start": 3526, + "end": 3527, "loc": { "start": { "line": 143, @@ -29403,8 +29403,8 @@ "binop": null, "updateContext": null }, - "start": 3528, - "end": 3529, + "start": 3527, + "end": 3528, "loc": { "start": { "line": 143, @@ -29429,8 +29429,8 @@ "binop": null }, "value": "line", - "start": 3540, - "end": 3544, + "start": 3539, + "end": 3543, "loc": { "start": { "line": 144, @@ -29455,8 +29455,8 @@ "binop": null, "updateContext": null }, - "start": 3544, - "end": 3545, + "start": 3543, + "end": 3544, "loc": { "start": { "line": 144, @@ -29482,8 +29482,8 @@ "updateContext": null }, "value": 2, - "start": 3546, - "end": 3547, + "start": 3545, + "end": 3546, "loc": { "start": { "line": 144, @@ -29507,8 +29507,8 @@ "postfix": false, "binop": null }, - "start": 3556, - "end": 3557, + "start": 3555, + "end": 3556, "loc": { "start": { "line": 145, @@ -29533,8 +29533,8 @@ "binop": null, "updateContext": null }, - "start": 3557, - "end": 3558, + "start": 3556, + "end": 3557, "loc": { "start": { "line": 145, @@ -29559,8 +29559,8 @@ "binop": null }, "value": "scratchOutDetectionSensitivity", - "start": 3567, - "end": 3597, + "start": 3566, + "end": 3596, "loc": { "start": { "line": 146, @@ -29585,8 +29585,8 @@ "binop": null, "updateContext": null }, - "start": 3597, - "end": 3598, + "start": 3596, + "end": 3597, "loc": { "start": { "line": 146, @@ -29612,8 +29612,8 @@ "updateContext": null }, "value": 1, - "start": 3599, - "end": 3600, + "start": 3598, + "end": 3599, "loc": { "start": { "line": 146, @@ -29637,8 +29637,8 @@ "postfix": false, "binop": null }, - "start": 3607, - "end": 3608, + "start": 3606, + "end": 3607, "loc": { "start": { "line": 147, @@ -29663,8 +29663,8 @@ "binop": null, "updateContext": null }, - "start": 3608, - "end": 3609, + "start": 3607, + "end": 3608, "loc": { "start": { "line": 147, @@ -29689,8 +29689,8 @@ "binop": null }, "value": "analyzerParameter", - "start": 3616, - "end": 3633, + "start": 3615, + "end": 3632, "loc": { "start": { "line": 148, @@ -29715,8 +29715,8 @@ "binop": null, "updateContext": null }, - "start": 3633, - "end": 3634, + "start": 3632, + "end": 3633, "loc": { "start": { "line": 148, @@ -29740,8 +29740,8 @@ "postfix": false, "binop": null }, - "start": 3635, - "end": 3636, + "start": 3634, + "end": 3635, "loc": { "start": { "line": 148, @@ -29766,8 +29766,8 @@ "binop": null }, "value": "textParameter", - "start": 3645, - "end": 3658, + "start": 3644, + "end": 3657, "loc": { "start": { "line": 149, @@ -29792,8 +29792,8 @@ "binop": null, "updateContext": null }, - "start": 3658, - "end": 3659, + "start": 3657, + "end": 3658, "loc": { "start": { "line": 149, @@ -29817,8 +29817,8 @@ "postfix": false, "binop": null }, - "start": 3660, - "end": 3661, + "start": 3659, + "end": 3660, "loc": { "start": { "line": 149, @@ -29843,8 +29843,8 @@ "binop": null }, "value": "textProperties", - "start": 3672, - "end": 3686, + "start": 3671, + "end": 3685, "loc": { "start": { "line": 150, @@ -29869,8 +29869,8 @@ "binop": null, "updateContext": null }, - "start": 3686, - "end": 3687, + "start": 3685, + "end": 3686, "loc": { "start": { "line": 150, @@ -29894,8 +29894,8 @@ "postfix": false, "binop": null }, - "start": 3688, - "end": 3689, + "start": 3687, + "end": 3688, "loc": { "start": { "line": 150, @@ -29919,8 +29919,8 @@ "postfix": false, "binop": null }, - "start": 3689, - "end": 3690, + "start": 3688, + "end": 3689, "loc": { "start": { "line": 150, @@ -29945,8 +29945,8 @@ "binop": null, "updateContext": null }, - "start": 3690, - "end": 3691, + "start": 3689, + "end": 3690, "loc": { "start": { "line": 150, @@ -29971,8 +29971,8 @@ "binop": null }, "value": "language", - "start": 3702, - "end": 3710, + "start": 3701, + "end": 3709, "loc": { "start": { "line": 151, @@ -29997,8 +29997,8 @@ "binop": null, "updateContext": null }, - "start": 3710, - "end": 3711, + "start": 3709, + "end": 3710, "loc": { "start": { "line": 151, @@ -30024,8 +30024,8 @@ "updateContext": null }, "value": "en_US", - "start": 3712, - "end": 3719, + "start": 3711, + "end": 3718, "loc": { "start": { "line": 151, @@ -30050,8 +30050,8 @@ "binop": null, "updateContext": null }, - "start": 3719, - "end": 3720, + "start": 3718, + "end": 3719, "loc": { "start": { "line": 151, @@ -30076,8 +30076,8 @@ "binop": null }, "value": "textInputMode", - "start": 3731, - "end": 3744, + "start": 3730, + "end": 3743, "loc": { "start": { "line": 152, @@ -30102,8 +30102,8 @@ "binop": null, "updateContext": null }, - "start": 3744, - "end": 3745, + "start": 3743, + "end": 3744, "loc": { "start": { "line": 152, @@ -30129,8 +30129,8 @@ "updateContext": null }, "value": "CURSIVE", - "start": 3746, - "end": 3755, + "start": 3745, + "end": 3754, "loc": { "start": { "line": 152, @@ -30154,8 +30154,8 @@ "postfix": false, "binop": null }, - "start": 3764, - "end": 3765, + "start": 3763, + "end": 3764, "loc": { "start": { "line": 153, @@ -30180,8 +30180,8 @@ "binop": null, "updateContext": null }, - "start": 3765, - "end": 3766, + "start": 3764, + "end": 3765, "loc": { "start": { "line": 153, @@ -30206,8 +30206,8 @@ "binop": null }, "value": "coordinateResolution", - "start": 3775, - "end": 3795, + "start": 3774, + "end": 3794, "loc": { "start": { "line": 154, @@ -30232,8 +30232,8 @@ "binop": null, "updateContext": null }, - "start": 3795, - "end": 3796, + "start": 3794, + "end": 3795, "loc": { "start": { "line": 154, @@ -30258,8 +30258,8 @@ "binop": null }, "value": "undefined", - "start": 3797, - "end": 3806, + "start": 3796, + "end": 3805, "loc": { "start": { "line": 154, @@ -30283,8 +30283,8 @@ "postfix": false, "binop": null }, - "start": 3813, - "end": 3814, + "start": 3812, + "end": 3813, "loc": { "start": { "line": 155, @@ -30308,8 +30308,8 @@ "postfix": false, "binop": null }, - "start": 3819, - "end": 3820, + "start": 3818, + "end": 3819, "loc": { "start": { "line": 156, @@ -30333,8 +30333,8 @@ "postfix": false, "binop": null }, - "start": 3823, - "end": 3824, + "start": 3822, + "end": 3823, "loc": { "start": { "line": 157, @@ -30359,8 +30359,8 @@ "binop": null, "updateContext": null }, - "start": 3824, - "end": 3825, + "start": 3823, + "end": 3824, "loc": { "start": { "line": 157, @@ -30375,8 +30375,8 @@ { "type": "CommentLine", "value": " @see generated documentation on top", - "start": 3828, - "end": 3866, + "start": 3827, + "end": 3865, "loc": { "start": { "line": 158, @@ -30401,8 +30401,8 @@ "binop": null }, "value": "listenerOptions", - "start": 3869, - "end": 3884, + "start": 3868, + "end": 3883, "loc": { "start": { "line": 159, @@ -30427,8 +30427,8 @@ "binop": null, "updateContext": null }, - "start": 3884, - "end": 3885, + "start": 3883, + "end": 3884, "loc": { "start": { "line": 159, @@ -30452,8 +30452,8 @@ "postfix": false, "binop": null }, - "start": 3886, - "end": 3887, + "start": 3885, + "end": 3886, "loc": { "start": { "line": 159, @@ -30478,8 +30478,8 @@ "binop": null }, "value": "capture", - "start": 3892, - "end": 3899, + "start": 3891, + "end": 3898, "loc": { "start": { "line": 160, @@ -30504,8 +30504,8 @@ "binop": null, "updateContext": null }, - "start": 3899, - "end": 3900, + "start": 3898, + "end": 3899, "loc": { "start": { "line": 160, @@ -30532,8 +30532,8 @@ "updateContext": null }, "value": "false", - "start": 3901, - "end": 3906, + "start": 3900, + "end": 3905, "loc": { "start": { "line": 160, @@ -30558,8 +30558,8 @@ "binop": null, "updateContext": null }, - "start": 3906, - "end": 3907, + "start": 3905, + "end": 3906, "loc": { "start": { "line": 160, @@ -30584,8 +30584,8 @@ "binop": null }, "value": "passive", - "start": 3912, - "end": 3919, + "start": 3911, + "end": 3918, "loc": { "start": { "line": 161, @@ -30610,8 +30610,8 @@ "binop": null, "updateContext": null }, - "start": 3919, - "end": 3920, + "start": 3918, + "end": 3919, "loc": { "start": { "line": 161, @@ -30638,8 +30638,8 @@ "updateContext": null }, "value": "true", - "start": 3921, - "end": 3925, + "start": 3920, + "end": 3924, "loc": { "start": { "line": 161, @@ -30663,8 +30663,8 @@ "postfix": false, "binop": null }, - "start": 3928, - "end": 3929, + "start": 3927, + "end": 3928, "loc": { "start": { "line": 162, @@ -30689,8 +30689,8 @@ "binop": null, "updateContext": null }, - "start": 3929, - "end": 3930, + "start": 3928, + "end": 3929, "loc": { "start": { "line": 162, @@ -30715,8 +30715,8 @@ "binop": null }, "value": "undoRedoMaxStackSize", - "start": 3933, - "end": 3953, + "start": 3932, + "end": 3952, "loc": { "start": { "line": 163, @@ -30741,8 +30741,8 @@ "binop": null, "updateContext": null }, - "start": 3953, - "end": 3954, + "start": 3952, + "end": 3953, "loc": { "start": { "line": 163, @@ -30768,8 +30768,8 @@ "updateContext": null }, "value": 20, - "start": 3955, - "end": 3957, + "start": 3954, + "end": 3956, "loc": { "start": { "line": 163, @@ -30794,8 +30794,8 @@ "binop": null, "updateContext": null }, - "start": 3957, - "end": 3958, + "start": 3956, + "end": 3957, "loc": { "start": { "line": 163, @@ -30820,8 +30820,8 @@ "binop": null }, "value": "xyFloatPrecision", - "start": 3961, - "end": 3977, + "start": 3960, + "end": 3976, "loc": { "start": { "line": 164, @@ -30846,8 +30846,8 @@ "binop": null, "updateContext": null }, - "start": 3977, - "end": 3978, + "start": 3976, + "end": 3977, "loc": { "start": { "line": 164, @@ -30873,8 +30873,8 @@ "updateContext": null }, "value": 0, - "start": 3979, - "end": 3980, + "start": 3978, + "end": 3979, "loc": { "start": { "line": 164, @@ -30899,8 +30899,8 @@ "binop": null, "updateContext": null }, - "start": 3980, - "end": 3981, + "start": 3979, + "end": 3980, "loc": { "start": { "line": 164, @@ -30925,8 +30925,8 @@ "binop": null }, "value": "timestampFloatPrecision", - "start": 3984, - "end": 4007, + "start": 3983, + "end": 4006, "loc": { "start": { "line": 165, @@ -30951,8 +30951,8 @@ "binop": null, "updateContext": null }, - "start": 4007, - "end": 4008, + "start": 4006, + "end": 4007, "loc": { "start": { "line": 165, @@ -30978,8 +30978,8 @@ "updateContext": null }, "value": 0, - "start": 4009, - "end": 4010, + "start": 4008, + "end": 4009, "loc": { "start": { "line": 165, @@ -31004,8 +31004,8 @@ "binop": null, "updateContext": null }, - "start": 4010, - "end": 4011, + "start": 4009, + "end": 4010, "loc": { "start": { "line": 165, @@ -31030,8 +31030,8 @@ "binop": null }, "value": "triggerDelay", - "start": 4014, - "end": 4026, + "start": 4013, + "end": 4025, "loc": { "start": { "line": 166, @@ -31056,8 +31056,8 @@ "binop": null, "updateContext": null }, - "start": 4026, - "end": 4027, + "start": 4025, + "end": 4026, "loc": { "start": { "line": 166, @@ -31083,8 +31083,8 @@ "updateContext": null }, "value": 2000, - "start": 4028, - "end": 4032, + "start": 4027, + "end": 4031, "loc": { "start": { "line": 166, @@ -31109,8 +31109,8 @@ "binop": null, "updateContext": null }, - "start": 4032, - "end": 4033, + "start": 4031, + "end": 4032, "loc": { "start": { "line": 166, @@ -31135,8 +31135,8 @@ "binop": null }, "value": "processDelay", - "start": 4036, - "end": 4048, + "start": 4035, + "end": 4047, "loc": { "start": { "line": 167, @@ -31161,8 +31161,8 @@ "binop": null, "updateContext": null }, - "start": 4048, - "end": 4049, + "start": 4047, + "end": 4048, "loc": { "start": { "line": 167, @@ -31188,8 +31188,8 @@ "updateContext": null }, "value": 0, - "start": 4050, - "end": 4051, + "start": 4049, + "end": 4050, "loc": { "start": { "line": 167, @@ -31214,8 +31214,8 @@ "binop": null, "updateContext": null }, - "start": 4051, - "end": 4052, + "start": 4050, + "end": 4051, "loc": { "start": { "line": 167, @@ -31240,8 +31240,8 @@ "binop": null }, "value": "resizeTriggerDelay", - "start": 4055, - "end": 4073, + "start": 4054, + "end": 4072, "loc": { "start": { "line": 168, @@ -31266,8 +31266,8 @@ "binop": null, "updateContext": null }, - "start": 4073, - "end": 4074, + "start": 4072, + "end": 4073, "loc": { "start": { "line": 168, @@ -31293,8 +31293,8 @@ "updateContext": null }, "value": 200, - "start": 4075, - "end": 4078, + "start": 4074, + "end": 4077, "loc": { "start": { "line": 168, @@ -31319,8 +31319,8 @@ "binop": null, "updateContext": null }, - "start": 4078, - "end": 4079, + "start": 4077, + "end": 4078, "loc": { "start": { "line": 168, @@ -31335,8 +31335,8 @@ { "type": "CommentLine", "value": " Configure when the action is triggered.", - "start": 4082, - "end": 4124, + "start": 4081, + "end": 4123, "loc": { "start": { "line": 169, @@ -31351,8 +31351,8 @@ { "type": "CommentLine", "value": " POINTER_UP : Action is triggered on every PenUP. This is the recommended mode for CDK V3 WebSocket recognitions.", - "start": 4127, - "end": 4242, + "start": 4126, + "end": 4241, "loc": { "start": { "line": 170, @@ -31367,8 +31367,8 @@ { "type": "CommentLine", "value": " QUIET_PERIOD : Action is triggered after a quiet period in milli-seconds on every pointer up. I value is set to 2000 for example the recognition will be fired when user stop writing 2 seconds. This is the recommended mode for all REST recognitions.", - "start": 4245, - "end": 4497, + "start": 4244, + "end": 4496, "loc": { "start": { "line": 171, @@ -31393,8 +31393,8 @@ "binop": null }, "value": "triggers", - "start": 4500, - "end": 4508, + "start": 4499, + "end": 4507, "loc": { "start": { "line": 172, @@ -31419,8 +31419,8 @@ "binop": null, "updateContext": null }, - "start": 4508, - "end": 4509, + "start": 4507, + "end": 4508, "loc": { "start": { "line": 172, @@ -31444,8 +31444,8 @@ "postfix": false, "binop": null }, - "start": 4510, - "end": 4511, + "start": 4509, + "end": 4510, "loc": { "start": { "line": 172, @@ -31470,8 +31470,8 @@ "binop": null }, "value": "exportContent", - "start": 4516, - "end": 4529, + "start": 4515, + "end": 4528, "loc": { "start": { "line": 173, @@ -31496,8 +31496,8 @@ "binop": null, "updateContext": null }, - "start": 4529, - "end": 4530, + "start": 4528, + "end": 4529, "loc": { "start": { "line": 173, @@ -31523,8 +31523,8 @@ "updateContext": null }, "value": "POINTER_UP", - "start": 4531, - "end": 4543, + "start": 4530, + "end": 4542, "loc": { "start": { "line": 173, @@ -31549,8 +31549,8 @@ "binop": null, "updateContext": null }, - "start": 4543, - "end": 4544, + "start": 4542, + "end": 4543, "loc": { "start": { "line": 173, @@ -31575,8 +31575,8 @@ "binop": null }, "value": "addStrokes", - "start": 4549, - "end": 4559, + "start": 4548, + "end": 4558, "loc": { "start": { "line": 174, @@ -31601,8 +31601,8 @@ "binop": null, "updateContext": null }, - "start": 4559, - "end": 4560, + "start": 4558, + "end": 4559, "loc": { "start": { "line": 174, @@ -31628,8 +31628,8 @@ "updateContext": null }, "value": "POINTER_UP", - "start": 4561, - "end": 4573, + "start": 4560, + "end": 4572, "loc": { "start": { "line": 174, @@ -31653,8 +31653,8 @@ "postfix": false, "binop": null }, - "start": 4576, - "end": 4577, + "start": 4575, + "end": 4576, "loc": { "start": { "line": 175, @@ -31679,8 +31679,8 @@ "binop": null, "updateContext": null }, - "start": 4577, - "end": 4578, + "start": 4576, + "end": 4577, "loc": { "start": { "line": 175, @@ -31705,8 +31705,8 @@ "binop": null }, "value": "restConversionState", - "start": 4581, - "end": 4600, + "start": 4580, + "end": 4599, "loc": { "start": { "line": 176, @@ -31731,8 +31731,8 @@ "binop": null, "updateContext": null }, - "start": 4600, - "end": 4601, + "start": 4599, + "end": 4600, "loc": { "start": { "line": 176, @@ -31758,8 +31758,8 @@ "updateContext": null }, "value": "", - "start": 4602, - "end": 4604, + "start": 4601, + "end": 4603, "loc": { "start": { "line": 176, @@ -31784,8 +31784,8 @@ "binop": null, "updateContext": null }, - "start": 4604, - "end": 4605, + "start": 4603, + "end": 4604, "loc": { "start": { "line": 176, @@ -31810,8 +31810,8 @@ "binop": null }, "value": "renderingParams", - "start": 4608, - "end": 4623, + "start": 4607, + "end": 4622, "loc": { "start": { "line": 177, @@ -31836,8 +31836,8 @@ "binop": null, "updateContext": null }, - "start": 4623, - "end": 4624, + "start": 4622, + "end": 4623, "loc": { "start": { "line": 177, @@ -31861,8 +31861,8 @@ "postfix": false, "binop": null }, - "start": 4625, - "end": 4626, + "start": 4624, + "end": 4625, "loc": { "start": { "line": 177, @@ -31887,8 +31887,8 @@ "binop": null }, "value": "stroker", - "start": 4631, - "end": 4638, + "start": 4630, + "end": 4637, "loc": { "start": { "line": 178, @@ -31913,8 +31913,8 @@ "binop": null, "updateContext": null }, - "start": 4638, - "end": 4639, + "start": 4637, + "end": 4638, "loc": { "start": { "line": 178, @@ -31940,8 +31940,8 @@ "updateContext": null }, "value": "quadratic", - "start": 4640, - "end": 4651, + "start": 4639, + "end": 4650, "loc": { "start": { "line": 178, @@ -31966,8 +31966,8 @@ "binop": null, "updateContext": null }, - "start": 4651, - "end": 4652, + "start": 4650, + "end": 4651, "loc": { "start": { "line": 178, @@ -31992,8 +31992,8 @@ "binop": null }, "value": "minHeight", - "start": 4657, - "end": 4666, + "start": 4656, + "end": 4665, "loc": { "start": { "line": 179, @@ -32018,8 +32018,8 @@ "binop": null, "updateContext": null }, - "start": 4666, - "end": 4667, + "start": 4665, + "end": 4666, "loc": { "start": { "line": 179, @@ -32045,8 +32045,8 @@ "updateContext": null }, "value": 100, - "start": 4668, - "end": 4671, + "start": 4667, + "end": 4670, "loc": { "start": { "line": 179, @@ -32071,8 +32071,8 @@ "binop": null, "updateContext": null }, - "start": 4671, - "end": 4672, + "start": 4670, + "end": 4671, "loc": { "start": { "line": 179, @@ -32097,8 +32097,8 @@ "binop": null }, "value": "minWidth", - "start": 4677, - "end": 4685, + "start": 4676, + "end": 4684, "loc": { "start": { "line": 180, @@ -32123,8 +32123,8 @@ "binop": null, "updateContext": null }, - "start": 4685, - "end": 4686, + "start": 4684, + "end": 4685, "loc": { "start": { "line": 180, @@ -32150,8 +32150,8 @@ "updateContext": null }, "value": 100, - "start": 4687, - "end": 4690, + "start": 4686, + "end": 4689, "loc": { "start": { "line": 180, @@ -32175,8 +32175,8 @@ "postfix": false, "binop": null }, - "start": 4693, - "end": 4694, + "start": 4692, + "end": 4693, "loc": { "start": { "line": 181, @@ -32200,8 +32200,8 @@ "postfix": false, "binop": null }, - "start": 4695, - "end": 4696, + "start": 4694, + "end": 4695, "loc": { "start": { "line": 182, @@ -32226,8 +32226,8 @@ "binop": null, "updateContext": null }, - "start": 4696, - "end": 4697, + "start": 4695, + "end": 4696, "loc": { "start": { "line": 182, @@ -32242,8 +32242,8 @@ { "type": "CommentBlock", "value": "*\n * Generate parameters\n * @param {Configuration} configuration Configuration to be used\n * @return {Configuration} Overridden configuration\n ", - "start": 4699, - "end": 4846, + "start": 4698, + "end": 4845, "loc": { "start": { "line": 184, @@ -32270,8 +32270,8 @@ "updateContext": null }, "value": "export", - "start": 4847, - "end": 4853, + "start": 4846, + "end": 4852, "loc": { "start": { "line": 189, @@ -32297,8 +32297,8 @@ "binop": null }, "value": "function", - "start": 4854, - "end": 4862, + "start": 4853, + "end": 4861, "loc": { "start": { "line": 189, @@ -32323,8 +32323,8 @@ "binop": null }, "value": "overrideDefaultConfiguration", - "start": 4863, - "end": 4891, + "start": 4862, + "end": 4890, "loc": { "start": { "line": 189, @@ -32348,8 +32348,8 @@ "postfix": false, "binop": null }, - "start": 4891, - "end": 4892, + "start": 4890, + "end": 4891, "loc": { "start": { "line": 189, @@ -32374,8 +32374,8 @@ "binop": null }, "value": "configuration", - "start": 4892, - "end": 4905, + "start": 4891, + "end": 4904, "loc": { "start": { "line": 189, @@ -32399,8 +32399,8 @@ "postfix": false, "binop": null }, - "start": 4905, - "end": 4906, + "start": 4904, + "end": 4905, "loc": { "start": { "line": 189, @@ -32424,8 +32424,8 @@ "postfix": false, "binop": null }, - "start": 4907, - "end": 4908, + "start": 4906, + "end": 4907, "loc": { "start": { "line": 189, @@ -32452,8 +32452,8 @@ "updateContext": null }, "value": "const", - "start": 4911, - "end": 4916, + "start": 4910, + "end": 4915, "loc": { "start": { "line": 190, @@ -32478,8 +32478,8 @@ "binop": null }, "value": "confRef", - "start": 4917, - "end": 4924, + "start": 4916, + "end": 4923, "loc": { "start": { "line": 190, @@ -32505,8 +32505,8 @@ "updateContext": null }, "value": "=", - "start": 4925, - "end": 4926, + "start": 4924, + "end": 4925, "loc": { "start": { "line": 190, @@ -32531,8 +32531,8 @@ "binop": null }, "value": "configuration", - "start": 4927, - "end": 4940, + "start": 4926, + "end": 4939, "loc": { "start": { "line": 190, @@ -32557,8 +32557,8 @@ "binop": null, "updateContext": null }, - "start": 4940, - "end": 4941, + "start": 4939, + "end": 4940, "loc": { "start": { "line": 190, @@ -32585,8 +32585,8 @@ "updateContext": null }, "value": "let", - "start": 4944, - "end": 4947, + "start": 4943, + "end": 4946, "loc": { "start": { "line": 191, @@ -32611,8 +32611,8 @@ "binop": null }, "value": "currentConfiguration", - "start": 4948, - "end": 4968, + "start": 4947, + "end": 4967, "loc": { "start": { "line": 191, @@ -32637,8 +32637,8 @@ "binop": null, "updateContext": null }, - "start": 4968, - "end": 4969, + "start": 4967, + "end": 4968, "loc": { "start": { "line": 191, @@ -32665,8 +32665,8 @@ "updateContext": null }, "value": "if", - "start": 4972, - "end": 4974, + "start": 4971, + "end": 4973, "loc": { "start": { "line": 192, @@ -32690,8 +32690,8 @@ "postfix": false, "binop": null }, - "start": 4975, - "end": 4976, + "start": 4974, + "end": 4975, "loc": { "start": { "line": 192, @@ -32716,8 +32716,8 @@ "binop": null }, "value": "confRef", - "start": 4976, - "end": 4983, + "start": 4975, + "end": 4982, "loc": { "start": { "line": 192, @@ -32743,8 +32743,8 @@ "updateContext": null }, "value": "&&", - "start": 4984, - "end": 4986, + "start": 4983, + "end": 4985, "loc": { "start": { "line": 192, @@ -32769,8 +32769,8 @@ "binop": null }, "value": "confRef", - "start": 4987, - "end": 4994, + "start": 4986, + "end": 4993, "loc": { "start": { "line": 192, @@ -32795,8 +32795,8 @@ "binop": null, "updateContext": null }, - "start": 4994, - "end": 4995, + "start": 4993, + "end": 4994, "loc": { "start": { "line": 192, @@ -32821,8 +32821,8 @@ "binop": null }, "value": "recognitionParams", - "start": 4995, - "end": 5012, + "start": 4994, + "end": 5011, "loc": { "start": { "line": 192, @@ -32847,8 +32847,8 @@ "binop": null, "updateContext": null }, - "start": 5012, - "end": 5013, + "start": 5011, + "end": 5012, "loc": { "start": { "line": 192, @@ -32873,8 +32873,8 @@ "binop": null }, "value": "server", - "start": 5013, - "end": 5019, + "start": 5012, + "end": 5018, "loc": { "start": { "line": 192, @@ -32900,8 +32900,8 @@ "updateContext": null }, "value": "&&", - "start": 5020, - "end": 5022, + "start": 5019, + "end": 5021, "loc": { "start": { "line": 192, @@ -32926,8 +32926,8 @@ "binop": null }, "value": "confRef", - "start": 5023, - "end": 5030, + "start": 5022, + "end": 5029, "loc": { "start": { "line": 192, @@ -32952,8 +32952,8 @@ "binop": null, "updateContext": null }, - "start": 5030, - "end": 5031, + "start": 5029, + "end": 5030, "loc": { "start": { "line": 192, @@ -32978,8 +32978,8 @@ "binop": null }, "value": "recognitionParams", - "start": 5031, - "end": 5048, + "start": 5030, + "end": 5047, "loc": { "start": { "line": 192, @@ -33004,8 +33004,8 @@ "binop": null, "updateContext": null }, - "start": 5048, - "end": 5049, + "start": 5047, + "end": 5048, "loc": { "start": { "line": 192, @@ -33030,8 +33030,8 @@ "binop": null }, "value": "server", - "start": 5049, - "end": 5055, + "start": 5048, + "end": 5054, "loc": { "start": { "line": 192, @@ -33056,8 +33056,8 @@ "binop": null, "updateContext": null }, - "start": 5055, - "end": 5056, + "start": 5054, + "end": 5055, "loc": { "start": { "line": 192, @@ -33082,8 +33082,8 @@ "binop": null }, "value": "useWindowLocation", - "start": 5056, - "end": 5073, + "start": 5055, + "end": 5072, "loc": { "start": { "line": 192, @@ -33107,8 +33107,8 @@ "postfix": false, "binop": null }, - "start": 5073, - "end": 5074, + "start": 5072, + "end": 5073, "loc": { "start": { "line": 192, @@ -33132,8 +33132,8 @@ "postfix": false, "binop": null }, - "start": 5075, - "end": 5076, + "start": 5074, + "end": 5075, "loc": { "start": { "line": 192, @@ -33158,8 +33158,8 @@ "binop": null }, "value": "confRef", - "start": 5081, - "end": 5088, + "start": 5080, + "end": 5087, "loc": { "start": { "line": 193, @@ -33184,8 +33184,8 @@ "binop": null, "updateContext": null }, - "start": 5088, - "end": 5089, + "start": 5087, + "end": 5088, "loc": { "start": { "line": 193, @@ -33210,8 +33210,8 @@ "binop": null }, "value": "recognitionParams", - "start": 5089, - "end": 5106, + "start": 5088, + "end": 5105, "loc": { "start": { "line": 193, @@ -33236,8 +33236,8 @@ "binop": null, "updateContext": null }, - "start": 5106, - "end": 5107, + "start": 5105, + "end": 5106, "loc": { "start": { "line": 193, @@ -33262,8 +33262,8 @@ "binop": null }, "value": "server", - "start": 5107, - "end": 5113, + "start": 5106, + "end": 5112, "loc": { "start": { "line": 193, @@ -33288,8 +33288,8 @@ "binop": null, "updateContext": null }, - "start": 5113, - "end": 5114, + "start": 5112, + "end": 5113, "loc": { "start": { "line": 193, @@ -33314,8 +33314,8 @@ "binop": null }, "value": "scheme", - "start": 5114, - "end": 5120, + "start": 5113, + "end": 5119, "loc": { "start": { "line": 193, @@ -33341,8 +33341,8 @@ "updateContext": null }, "value": "=", - "start": 5121, - "end": 5122, + "start": 5120, + "end": 5121, "loc": { "start": { "line": 193, @@ -33367,8 +33367,8 @@ "binop": null }, "value": "window", - "start": 5123, - "end": 5129, + "start": 5122, + "end": 5128, "loc": { "start": { "line": 193, @@ -33393,8 +33393,8 @@ "binop": null, "updateContext": null }, - "start": 5129, - "end": 5130, + "start": 5128, + "end": 5129, "loc": { "start": { "line": 193, @@ -33419,8 +33419,8 @@ "binop": null }, "value": "location", - "start": 5130, - "end": 5138, + "start": 5129, + "end": 5137, "loc": { "start": { "line": 193, @@ -33445,8 +33445,8 @@ "binop": null, "updateContext": null }, - "start": 5138, - "end": 5139, + "start": 5137, + "end": 5138, "loc": { "start": { "line": 193, @@ -33471,8 +33471,8 @@ "binop": null }, "value": "protocol", - "start": 5139, - "end": 5147, + "start": 5138, + "end": 5146, "loc": { "start": { "line": 193, @@ -33497,8 +33497,8 @@ "binop": null, "updateContext": null }, - "start": 5147, - "end": 5148, + "start": 5146, + "end": 5147, "loc": { "start": { "line": 193, @@ -33523,8 +33523,8 @@ "binop": null }, "value": "slice", - "start": 5148, - "end": 5153, + "start": 5147, + "end": 5152, "loc": { "start": { "line": 193, @@ -33548,8 +33548,8 @@ "postfix": false, "binop": null }, - "start": 5153, - "end": 5154, + "start": 5152, + "end": 5153, "loc": { "start": { "line": 193, @@ -33575,8 +33575,8 @@ "updateContext": null }, "value": 0, - "start": 5154, - "end": 5155, + "start": 5153, + "end": 5154, "loc": { "start": { "line": 193, @@ -33601,8 +33601,8 @@ "binop": null, "updateContext": null }, - "start": 5155, - "end": 5156, + "start": 5154, + "end": 5155, "loc": { "start": { "line": 193, @@ -33628,8 +33628,8 @@ "updateContext": null }, "value": "-", - "start": 5157, - "end": 5158, + "start": 5156, + "end": 5157, "loc": { "start": { "line": 193, @@ -33655,8 +33655,8 @@ "updateContext": null }, "value": 1, - "start": 5158, - "end": 5159, + "start": 5157, + "end": 5158, "loc": { "start": { "line": 193, @@ -33680,8 +33680,8 @@ "postfix": false, "binop": null }, - "start": 5159, - "end": 5160, + "start": 5158, + "end": 5159, "loc": { "start": { "line": 193, @@ -33706,8 +33706,8 @@ "binop": null, "updateContext": null }, - "start": 5160, - "end": 5161, + "start": 5159, + "end": 5160, "loc": { "start": { "line": 193, @@ -33732,8 +33732,8 @@ "binop": null }, "value": "confRef", - "start": 5166, - "end": 5173, + "start": 5165, + "end": 5172, "loc": { "start": { "line": 194, @@ -33758,8 +33758,8 @@ "binop": null, "updateContext": null }, - "start": 5173, - "end": 5174, + "start": 5172, + "end": 5173, "loc": { "start": { "line": 194, @@ -33784,8 +33784,8 @@ "binop": null }, "value": "recognitionParams", - "start": 5174, - "end": 5191, + "start": 5173, + "end": 5190, "loc": { "start": { "line": 194, @@ -33810,8 +33810,8 @@ "binop": null, "updateContext": null }, - "start": 5191, - "end": 5192, + "start": 5190, + "end": 5191, "loc": { "start": { "line": 194, @@ -33836,8 +33836,8 @@ "binop": null }, "value": "server", - "start": 5192, - "end": 5198, + "start": 5191, + "end": 5197, "loc": { "start": { "line": 194, @@ -33862,8 +33862,8 @@ "binop": null, "updateContext": null }, - "start": 5198, - "end": 5199, + "start": 5197, + "end": 5198, "loc": { "start": { "line": 194, @@ -33888,8 +33888,8 @@ "binop": null }, "value": "host", - "start": 5199, - "end": 5203, + "start": 5198, + "end": 5202, "loc": { "start": { "line": 194, @@ -33915,8 +33915,8 @@ "updateContext": null }, "value": "=", - "start": 5204, - "end": 5205, + "start": 5203, + "end": 5204, "loc": { "start": { "line": 194, @@ -33941,8 +33941,8 @@ "binop": null }, "value": "window", - "start": 5206, - "end": 5212, + "start": 5205, + "end": 5211, "loc": { "start": { "line": 194, @@ -33967,8 +33967,8 @@ "binop": null, "updateContext": null }, - "start": 5212, - "end": 5213, + "start": 5211, + "end": 5212, "loc": { "start": { "line": 194, @@ -33993,8 +33993,8 @@ "binop": null }, "value": "location", - "start": 5213, - "end": 5221, + "start": 5212, + "end": 5220, "loc": { "start": { "line": 194, @@ -34019,8 +34019,8 @@ "binop": null, "updateContext": null }, - "start": 5221, - "end": 5222, + "start": 5220, + "end": 5221, "loc": { "start": { "line": 194, @@ -34045,8 +34045,8 @@ "binop": null }, "value": "host", - "start": 5222, - "end": 5226, + "start": 5221, + "end": 5225, "loc": { "start": { "line": 194, @@ -34071,8 +34071,8 @@ "binop": null, "updateContext": null }, - "start": 5226, - "end": 5227, + "start": 5225, + "end": 5226, "loc": { "start": { "line": 194, @@ -34097,8 +34097,8 @@ "binop": null }, "value": "currentConfiguration", - "start": 5232, - "end": 5252, + "start": 5231, + "end": 5251, "loc": { "start": { "line": 195, @@ -34124,8 +34124,8 @@ "updateContext": null }, "value": "=", - "start": 5253, - "end": 5254, + "start": 5252, + "end": 5253, "loc": { "start": { "line": 195, @@ -34150,8 +34150,8 @@ "binop": null }, "value": "assign", - "start": 5255, - "end": 5261, + "start": 5254, + "end": 5260, "loc": { "start": { "line": 195, @@ -34175,8 +34175,8 @@ "postfix": false, "binop": null }, - "start": 5261, - "end": 5262, + "start": 5260, + "end": 5261, "loc": { "start": { "line": 195, @@ -34200,8 +34200,8 @@ "postfix": false, "binop": null }, - "start": 5262, - "end": 5263, + "start": 5261, + "end": 5262, "loc": { "start": { "line": 195, @@ -34225,8 +34225,8 @@ "postfix": false, "binop": null }, - "start": 5263, - "end": 5264, + "start": 5262, + "end": 5263, "loc": { "start": { "line": 195, @@ -34251,8 +34251,8 @@ "binop": null, "updateContext": null }, - "start": 5264, - "end": 5265, + "start": 5263, + "end": 5264, "loc": { "start": { "line": 195, @@ -34277,8 +34277,8 @@ "binop": null }, "value": "defaultConfiguration", - "start": 5266, - "end": 5286, + "start": 5265, + "end": 5285, "loc": { "start": { "line": 195, @@ -34303,8 +34303,8 @@ "binop": null, "updateContext": null }, - "start": 5286, - "end": 5287, + "start": 5285, + "end": 5286, "loc": { "start": { "line": 195, @@ -34329,8 +34329,8 @@ "binop": null }, "value": "confRef", - "start": 5288, - "end": 5295, + "start": 5287, + "end": 5294, "loc": { "start": { "line": 195, @@ -34356,8 +34356,8 @@ "updateContext": null }, "value": "===", - "start": 5296, - "end": 5299, + "start": 5295, + "end": 5298, "loc": { "start": { "line": 195, @@ -34382,8 +34382,8 @@ "binop": null }, "value": "undefined", - "start": 5300, - "end": 5309, + "start": 5299, + "end": 5308, "loc": { "start": { "line": 195, @@ -34408,8 +34408,8 @@ "binop": null, "updateContext": null }, - "start": 5310, - "end": 5311, + "start": 5309, + "end": 5310, "loc": { "start": { "line": 195, @@ -34433,8 +34433,8 @@ "postfix": false, "binop": null }, - "start": 5312, - "end": 5313, + "start": 5311, + "end": 5312, "loc": { "start": { "line": 195, @@ -34458,8 +34458,8 @@ "postfix": false, "binop": null }, - "start": 5313, - "end": 5314, + "start": 5312, + "end": 5313, "loc": { "start": { "line": 195, @@ -34484,8 +34484,8 @@ "binop": null, "updateContext": null }, - "start": 5315, - "end": 5316, + "start": 5314, + "end": 5315, "loc": { "start": { "line": 195, @@ -34510,8 +34510,8 @@ "binop": null }, "value": "confRef", - "start": 5317, - "end": 5324, + "start": 5316, + "end": 5323, "loc": { "start": { "line": 195, @@ -34535,8 +34535,8 @@ "postfix": false, "binop": null }, - "start": 5324, - "end": 5325, + "start": 5323, + "end": 5324, "loc": { "start": { "line": 195, @@ -34561,8 +34561,8 @@ "binop": null, "updateContext": null }, - "start": 5325, - "end": 5326, + "start": 5324, + "end": 5325, "loc": { "start": { "line": 195, @@ -34586,8 +34586,8 @@ "postfix": false, "binop": null }, - "start": 5329, - "end": 5330, + "start": 5328, + "end": 5329, "loc": { "start": { "line": 196, @@ -34614,8 +34614,8 @@ "updateContext": null }, "value": "else", - "start": 5331, - "end": 5335, + "start": 5330, + "end": 5334, "loc": { "start": { "line": 196, @@ -34639,8 +34639,8 @@ "postfix": false, "binop": null }, - "start": 5336, - "end": 5337, + "start": 5335, + "end": 5336, "loc": { "start": { "line": 196, @@ -34665,8 +34665,8 @@ "binop": null }, "value": "currentConfiguration", - "start": 5342, - "end": 5362, + "start": 5341, + "end": 5361, "loc": { "start": { "line": 197, @@ -34692,8 +34692,8 @@ "updateContext": null }, "value": "=", - "start": 5363, - "end": 5364, + "start": 5362, + "end": 5363, "loc": { "start": { "line": 197, @@ -34718,8 +34718,8 @@ "binop": null }, "value": "assign", - "start": 5365, - "end": 5371, + "start": 5364, + "end": 5370, "loc": { "start": { "line": 197, @@ -34743,8 +34743,8 @@ "postfix": false, "binop": null }, - "start": 5371, - "end": 5372, + "start": 5370, + "end": 5371, "loc": { "start": { "line": 197, @@ -34768,8 +34768,8 @@ "postfix": false, "binop": null }, - "start": 5372, - "end": 5373, + "start": 5371, + "end": 5372, "loc": { "start": { "line": 197, @@ -34793,8 +34793,8 @@ "postfix": false, "binop": null }, - "start": 5373, - "end": 5374, + "start": 5372, + "end": 5373, "loc": { "start": { "line": 197, @@ -34819,8 +34819,8 @@ "binop": null, "updateContext": null }, - "start": 5374, - "end": 5375, + "start": 5373, + "end": 5374, "loc": { "start": { "line": 197, @@ -34845,8 +34845,8 @@ "binop": null }, "value": "defaultConfiguration", - "start": 5376, - "end": 5396, + "start": 5375, + "end": 5395, "loc": { "start": { "line": 197, @@ -34871,8 +34871,8 @@ "binop": null, "updateContext": null }, - "start": 5396, - "end": 5397, + "start": 5395, + "end": 5396, "loc": { "start": { "line": 197, @@ -34897,8 +34897,8 @@ "binop": null }, "value": "configuration", - "start": 5398, - "end": 5411, + "start": 5397, + "end": 5410, "loc": { "start": { "line": 197, @@ -34924,8 +34924,8 @@ "updateContext": null }, "value": "===", - "start": 5412, - "end": 5415, + "start": 5411, + "end": 5414, "loc": { "start": { "line": 197, @@ -34950,8 +34950,8 @@ "binop": null }, "value": "undefined", - "start": 5416, - "end": 5425, + "start": 5415, + "end": 5424, "loc": { "start": { "line": 197, @@ -34976,8 +34976,8 @@ "binop": null, "updateContext": null }, - "start": 5426, - "end": 5427, + "start": 5425, + "end": 5426, "loc": { "start": { "line": 197, @@ -35001,8 +35001,8 @@ "postfix": false, "binop": null }, - "start": 5428, - "end": 5429, + "start": 5427, + "end": 5428, "loc": { "start": { "line": 197, @@ -35026,8 +35026,8 @@ "postfix": false, "binop": null }, - "start": 5429, - "end": 5430, + "start": 5428, + "end": 5429, "loc": { "start": { "line": 197, @@ -35052,8 +35052,8 @@ "binop": null, "updateContext": null }, - "start": 5431, - "end": 5432, + "start": 5430, + "end": 5431, "loc": { "start": { "line": 197, @@ -35078,8 +35078,8 @@ "binop": null }, "value": "configuration", - "start": 5433, - "end": 5446, + "start": 5432, + "end": 5445, "loc": { "start": { "line": 197, @@ -35103,8 +35103,8 @@ "postfix": false, "binop": null }, - "start": 5446, - "end": 5447, + "start": 5445, + "end": 5446, "loc": { "start": { "line": 197, @@ -35129,8 +35129,8 @@ "binop": null, "updateContext": null }, - "start": 5447, - "end": 5448, + "start": 5446, + "end": 5447, "loc": { "start": { "line": 197, @@ -35154,8 +35154,8 @@ "postfix": false, "binop": null }, - "start": 5451, - "end": 5452, + "start": 5450, + "end": 5451, "loc": { "start": { "line": 198, @@ -35180,8 +35180,8 @@ "binop": null }, "value": "logger", - "start": 5455, - "end": 5461, + "start": 5454, + "end": 5460, "loc": { "start": { "line": 199, @@ -35206,8 +35206,8 @@ "binop": null, "updateContext": null }, - "start": 5461, - "end": 5462, + "start": 5460, + "end": 5461, "loc": { "start": { "line": 199, @@ -35232,8 +35232,8 @@ "binop": null }, "value": "debug", - "start": 5462, - "end": 5467, + "start": 5461, + "end": 5466, "loc": { "start": { "line": 199, @@ -35257,8 +35257,8 @@ "postfix": false, "binop": null }, - "start": 5467, - "end": 5468, + "start": 5466, + "end": 5467, "loc": { "start": { "line": 199, @@ -35284,8 +35284,8 @@ "updateContext": null }, "value": "Override default configuration", - "start": 5468, - "end": 5500, + "start": 5467, + "end": 5499, "loc": { "start": { "line": 199, @@ -35310,8 +35310,8 @@ "binop": null, "updateContext": null }, - "start": 5500, - "end": 5501, + "start": 5499, + "end": 5500, "loc": { "start": { "line": 199, @@ -35336,8 +35336,8 @@ "binop": null }, "value": "currentConfiguration", - "start": 5502, - "end": 5522, + "start": 5501, + "end": 5521, "loc": { "start": { "line": 199, @@ -35361,8 +35361,8 @@ "postfix": false, "binop": null }, - "start": 5522, - "end": 5523, + "start": 5521, + "end": 5522, "loc": { "start": { "line": 199, @@ -35387,8 +35387,8 @@ "binop": null, "updateContext": null }, - "start": 5523, - "end": 5524, + "start": 5522, + "end": 5523, "loc": { "start": { "line": 199, @@ -35415,8 +35415,8 @@ "updateContext": null }, "value": "return", - "start": 5527, - "end": 5533, + "start": 5526, + "end": 5532, "loc": { "start": { "line": 200, @@ -35441,8 +35441,8 @@ "binop": null }, "value": "currentConfiguration", - "start": 5534, - "end": 5554, + "start": 5533, + "end": 5553, "loc": { "start": { "line": 200, @@ -35467,8 +35467,8 @@ "binop": null, "updateContext": null }, - "start": 5554, - "end": 5555, + "start": 5553, + "end": 5554, "loc": { "start": { "line": 200, @@ -35492,8 +35492,8 @@ "postfix": false, "binop": null }, - "start": 5556, - "end": 5557, + "start": 5555, + "end": 5556, "loc": { "start": { "line": 201, @@ -35520,8 +35520,8 @@ "updateContext": null }, "value": "export", - "start": 5559, - "end": 5565, + "start": 5558, + "end": 5564, "loc": { "start": { "line": 203, @@ -35548,8 +35548,8 @@ "updateContext": null }, "value": "default", - "start": 5566, - "end": 5573, + "start": 5565, + "end": 5572, "loc": { "start": { "line": 203, @@ -35574,8 +35574,8 @@ "binop": null }, "value": "defaultConfiguration", - "start": 5574, - "end": 5594, + "start": 5573, + "end": 5593, "loc": { "start": { "line": 203, @@ -35600,8 +35600,8 @@ "binop": null, "updateContext": null }, - "start": 5594, - "end": 5595, + "start": 5593, + "end": 5594, "loc": { "start": { "line": 203, @@ -35626,8 +35626,8 @@ "binop": null, "updateContext": null }, - "start": 5596, - "end": 5596, + "start": 5595, + "end": 5595, "loc": { "start": { "line": 204, diff --git a/docs/ast/source/grabber/PointerEventGrabber.js.json b/docs/ast/source/grabber/PointerEventGrabber.js.json index 7aacfc15..bb34e3a2 100644 --- a/docs/ast/source/grabber/PointerEventGrabber.js.json +++ b/docs/ast/source/grabber/PointerEventGrabber.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 8882, + "end": 9570, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 194, + "line": 202, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 8882, + "end": 9570, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 194, + "line": 202, "column": 0 } }, @@ -2761,14 +2761,14 @@ { "type": "ExportNamedDeclaration", "start": 2920, - "end": 8642, + "end": 9330, "loc": { "start": { "line": 68, "column": 0 }, "end": { - "line": 186, + "line": 194, "column": 1 } }, @@ -2777,14 +2777,14 @@ "declaration": { "type": "FunctionDeclaration", "start": 2927, - "end": 8642, + "end": 9330, "loc": { "start": { "line": 68, "column": 7 }, "end": { - "line": 186, + "line": 194, "column": 1 } }, @@ -2952,14 +2952,14 @@ "body": { "type": "BlockStatement", "start": 2991, - "end": 8642, + "end": 9330, "loc": { "start": { "line": 68, "column": 71 }, "end": { - "line": 186, + "line": 194, "column": 1 } }, @@ -11888,14 +11888,14 @@ { "type": "FunctionDeclaration", "start": 6505, - "end": 8073, + "end": 8761, "loc": { "start": { "line": 145, "column": 2 }, "end": { - "line": 165, + "line": 173, "column": 3 } }, @@ -11941,14 +11941,14 @@ "body": { "type": "BlockStatement", "start": 6536, - "end": 8073, + "end": 8761, "loc": { "start": { "line": 145, "column": 33 }, "end": { - "line": 165, + "line": 173, "column": 3 } }, @@ -12425,49 +12425,97 @@ "column": 73 } } + }, + { + "type": "CommentLine", + "value": " Use case : when the pointer is entering the smartguide or scrollbar, a pointerout (or leave) is fired.", + "start": 6868, + "end": 6973, + "loc": { + "start": { + "line": 151, + "column": 4 + }, + "end": { + "line": 151, + "column": 109 + } + } + }, + { + "type": "CommentLine", + "value": " The related target is then the DOM element that was left.", + "start": 6978, + "end": 7038, + "loc": { + "start": { + "line": 152, + "column": 4 + }, + "end": { + "line": 152, + "column": 64 + } + } + }, + { + "type": "CommentLine", + "value": " We don't want this to cause editor.pointerUp because the stroke isn't finished.", + "start": 7043, + "end": 7125, + "loc": { + "start": { + "line": 153, + "column": 4 + }, + "end": { + "line": 153, + "column": 86 + } + } } ] }, { "type": "VariableDeclaration", - "start": 6868, - "end": 7034, + "start": 7130, + "end": 7296, "loc": { "start": { - "line": 151, + "line": 154, "column": 4 }, "end": { - "line": 151, + "line": 154, "column": 170 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 6874, - "end": 7033, + "start": 7136, + "end": 7295, "loc": { "start": { - "line": 151, + "line": 154, "column": 10 }, "end": { - "line": 151, + "line": 154, "column": 169 } }, "id": { "type": "Identifier", - "start": 6874, - "end": 6898, + "start": 7136, + "end": 7160, "loc": { "start": { - "line": 151, + "line": 154, "column": 10 }, "end": { - "line": 151, + "line": 154, "column": 34 }, "identifierName": "pointerEnteredSmartGuide" @@ -12477,43 +12525,43 @@ }, "init": { "type": "LogicalExpression", - "start": 6901, - "end": 7033, + "start": 7163, + "end": 7295, "loc": { "start": { - "line": 151, + "line": 154, "column": 37 }, "end": { - "line": 151, + "line": 154, "column": 169 } }, "left": { "type": "MemberExpression", - "start": 6901, - "end": 6918, + "start": 7163, + "end": 7180, "loc": { "start": { - "line": 151, + "line": 154, "column": 37 }, "end": { - "line": 151, + "line": 154, "column": 54 } }, "object": { "type": "Identifier", - "start": 6901, - "end": 6904, + "start": 7163, + "end": 7166, "loc": { "start": { - "line": 151, + "line": 154, "column": 37 }, "end": { - "line": 151, + "line": 154, "column": 40 }, "identifierName": "evt" @@ -12522,15 +12570,15 @@ }, "property": { "type": "Identifier", - "start": 6905, - "end": 6918, + "start": 7167, + "end": 7180, "loc": { "start": { - "line": 151, + "line": 154, "column": 41 }, "end": { - "line": 151, + "line": 154, "column": 54 }, "identifierName": "relatedTarget" @@ -12542,57 +12590,57 @@ "operator": "&&", "right": { "type": "LogicalExpression", - "start": 6923, - "end": 7032, + "start": 7185, + "end": 7294, "loc": { "start": { - "line": 151, + "line": 154, "column": 59 }, "end": { - "line": 151, + "line": 154, "column": 168 } }, "left": { "type": "CallExpression", - "start": 6923, - "end": 6974, + "start": 7185, + "end": 7236, "loc": { "start": { - "line": 151, + "line": 154, "column": 59 }, "end": { - "line": 151, + "line": 154, "column": 110 } }, "callee": { "type": "MemberExpression", - "start": 6923, - "end": 6945, + "start": 7185, + "end": 7207, "loc": { "start": { - "line": 151, + "line": 154, "column": 59 }, "end": { - "line": 151, + "line": 154, "column": 81 } }, "object": { "type": "Identifier", - "start": 6923, - "end": 6936, + "start": 7185, + "end": 7198, "loc": { "start": { - "line": 151, + "line": 154, "column": 59 }, "end": { - "line": 151, + "line": 154, "column": 72 }, "identifierName": "smartGuideIds" @@ -12601,15 +12649,15 @@ }, "property": { "type": "Identifier", - "start": 6937, - "end": 6945, + "start": 7199, + "end": 7207, "loc": { "start": { - "line": 151, + "line": 154, "column": 73 }, "end": { - "line": 151, + "line": 154, "column": 81 }, "identifierName": "includes" @@ -12621,43 +12669,43 @@ "arguments": [ { "type": "MemberExpression", - "start": 6946, - "end": 6973, + "start": 7208, + "end": 7235, "loc": { "start": { - "line": 151, + "line": 154, "column": 82 }, "end": { - "line": 151, + "line": 154, "column": 109 } }, "object": { "type": "MemberExpression", - "start": 6946, - "end": 6963, + "start": 7208, + "end": 7225, "loc": { "start": { - "line": 151, + "line": 154, "column": 82 }, "end": { - "line": 151, + "line": 154, "column": 99 } }, "object": { "type": "Identifier", - "start": 6946, - "end": 6949, + "start": 7208, + "end": 7211, "loc": { "start": { - "line": 151, + "line": 154, "column": 82 }, "end": { - "line": 151, + "line": 154, "column": 85 }, "identifierName": "evt" @@ -12666,15 +12714,15 @@ }, "property": { "type": "Identifier", - "start": 6950, - "end": 6963, + "start": 7212, + "end": 7225, "loc": { "start": { - "line": 151, + "line": 154, "column": 86 }, "end": { - "line": 151, + "line": 154, "column": 99 }, "identifierName": "relatedTarget" @@ -12685,15 +12733,15 @@ }, "property": { "type": "Identifier", - "start": 6964, - "end": 6973, + "start": 7226, + "end": 7235, "loc": { "start": { - "line": 151, + "line": 154, "column": 100 }, "end": { - "line": 151, + "line": 154, "column": 109 }, "identifierName": "className" @@ -12707,43 +12755,43 @@ "operator": "||", "right": { "type": "CallExpression", - "start": 6978, - "end": 7032, + "start": 7240, + "end": 7294, "loc": { "start": { - "line": 151, + "line": 154, "column": 114 }, "end": { - "line": 151, + "line": 154, "column": 168 } }, "callee": { "type": "MemberExpression", - "start": 6978, - "end": 7003, + "start": 7240, + "end": 7265, "loc": { "start": { - "line": 151, + "line": 154, "column": 114 }, "end": { - "line": 151, + "line": 154, "column": 139 } }, "object": { "type": "Identifier", - "start": 6978, - "end": 6994, + "start": 7240, + "end": 7256, "loc": { "start": { - "line": 151, + "line": 154, "column": 114 }, "end": { - "line": 151, + "line": 154, "column": 130 }, "identifierName": "scrollbarClasses" @@ -12752,15 +12800,15 @@ }, "property": { "type": "Identifier", - "start": 6995, - "end": 7003, + "start": 7257, + "end": 7265, "loc": { "start": { - "line": 151, + "line": 154, "column": 131 }, "end": { - "line": 151, + "line": 154, "column": 139 }, "identifierName": "includes" @@ -12772,43 +12820,43 @@ "arguments": [ { "type": "MemberExpression", - "start": 7004, - "end": 7031, + "start": 7266, + "end": 7293, "loc": { "start": { - "line": 151, + "line": 154, "column": 140 }, "end": { - "line": 151, + "line": 154, "column": 167 } }, "object": { "type": "MemberExpression", - "start": 7004, - "end": 7021, + "start": 7266, + "end": 7283, "loc": { "start": { - "line": 151, + "line": 154, "column": 140 }, "end": { - "line": 151, + "line": 154, "column": 157 } }, "object": { "type": "Identifier", - "start": 7004, - "end": 7007, + "start": 7266, + "end": 7269, "loc": { "start": { - "line": 151, + "line": 154, "column": 140 }, "end": { - "line": 151, + "line": 154, "column": 143 }, "identifierName": "evt" @@ -12817,15 +12865,15 @@ }, "property": { "type": "Identifier", - "start": 7008, - "end": 7021, + "start": 7270, + "end": 7283, "loc": { "start": { - "line": 151, + "line": 154, "column": 144 }, "end": { - "line": 151, + "line": 154, "column": 157 }, "identifierName": "relatedTarget" @@ -12836,15 +12884,15 @@ }, "property": { "type": "Identifier", - "start": 7022, - "end": 7031, + "start": 7284, + "end": 7293, "loc": { "start": { - "line": 151, + "line": 154, "column": 158 }, "end": { - "line": 151, + "line": 154, "column": 167 }, "identifierName": "className" @@ -12857,7 +12905,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 6922 + "parenStart": 7184 } } }, @@ -12881,67 +12929,179 @@ "column": 73 } } + }, + { + "type": "CommentLine", + "value": " Use case : when the pointer is entering the smartguide or scrollbar, a pointerout (or leave) is fired.", + "start": 6868, + "end": 6973, + "loc": { + "start": { + "line": 151, + "column": 4 + }, + "end": { + "line": 151, + "column": 109 + } + } + }, + { + "type": "CommentLine", + "value": " The related target is then the DOM element that was left.", + "start": 6978, + "end": 7038, + "loc": { + "start": { + "line": 152, + "column": 4 + }, + "end": { + "line": 152, + "column": 64 + } + } + }, + { + "type": "CommentLine", + "value": " We don't want this to cause editor.pointerUp because the stroke isn't finished.", + "start": 7043, + "end": 7125, + "loc": { + "start": { + "line": 153, + "column": 4 + }, + "end": { + "line": 153, + "column": 86 + } + } } ], "trailingComments": [ { "type": "CommentLine", "value": " Check if pointer didn't stay in the smartguide and pointer exited the smartguide or scrollbar", - "start": 7039, - "end": 7135, + "start": 7301, + "end": 7397, "loc": { "start": { - "line": 152, + "line": 155, "column": 4 }, "end": { - "line": 152, + "line": 155, "column": 100 } } + }, + { + "type": "CommentLine", + "value": " Use case : when the pointer is leaving the smartguide or scrollbar, a pointerout (or leave) is fired.", + "start": 7402, + "end": 7506, + "loc": { + "start": { + "line": 156, + "column": 4 + }, + "end": { + "line": 156, + "column": 108 + } + } + }, + { + "type": "CommentLine", + "value": " The related target is then the DOM element that was left (the smart guide)", + "start": 7511, + "end": 7588, + "loc": { + "start": { + "line": 157, + "column": 4 + }, + "end": { + "line": 157, + "column": 81 + } + } + }, + { + "type": "CommentLine", + "value": " We are entering again the editor", + "start": 7593, + "end": 7628, + "loc": { + "start": { + "line": 158, + "column": 4 + }, + "end": { + "line": 158, + "column": 39 + } + } + }, + { + "type": "CommentLine", + "value": " We don't want this to cause editor.pointerUp because the stroke isn't finished.", + "start": 7633, + "end": 7715, + "loc": { + "start": { + "line": 159, + "column": 4 + }, + "end": { + "line": 159, + "column": 86 + } + } } ] }, { "type": "VariableDeclaration", - "start": 7140, - "end": 7305, + "start": 7720, + "end": 7885, "loc": { "start": { - "line": 153, + "line": 160, "column": 4 }, "end": { - "line": 153, + "line": 160, "column": 169 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7146, - "end": 7304, + "start": 7726, + "end": 7884, "loc": { "start": { - "line": 153, + "line": 160, "column": 10 }, "end": { - "line": 153, + "line": 160, "column": 168 } }, "id": { "type": "Identifier", - "start": 7146, - "end": 7169, + "start": 7726, + "end": 7749, "loc": { "start": { - "line": 153, + "line": 160, "column": 10 }, "end": { - "line": 153, + "line": 160, "column": 33 }, "identifierName": "pointerExitedSmartGuide" @@ -12951,57 +13111,57 @@ }, "init": { "type": "LogicalExpression", - "start": 7172, - "end": 7304, + "start": 7752, + "end": 7884, "loc": { "start": { - "line": 153, + "line": 160, "column": 36 }, "end": { - "line": 153, + "line": 160, "column": 168 } }, "left": { "type": "LogicalExpression", - "start": 7172, - "end": 7203, + "start": 7752, + "end": 7783, "loc": { "start": { - "line": 153, + "line": 160, "column": 36 }, "end": { - "line": 153, + "line": 160, "column": 67 } }, "left": { "type": "MemberExpression", - "start": 7172, - "end": 7189, + "start": 7752, + "end": 7769, "loc": { "start": { - "line": 153, + "line": 160, "column": 36 }, "end": { - "line": 153, + "line": 160, "column": 53 } }, "object": { "type": "Identifier", - "start": 7172, - "end": 7175, + "start": 7752, + "end": 7755, "loc": { "start": { - "line": 153, + "line": 160, "column": 36 }, "end": { - "line": 153, + "line": 160, "column": 39 }, "identifierName": "evt" @@ -13010,15 +13170,15 @@ }, "property": { "type": "Identifier", - "start": 7176, - "end": 7189, + "start": 7756, + "end": 7769, "loc": { "start": { - "line": 153, + "line": 160, "column": 40 }, "end": { - "line": 153, + "line": 160, "column": 53 }, "identifierName": "relatedTarget" @@ -13030,29 +13190,29 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 7193, - "end": 7203, + "start": 7773, + "end": 7783, "loc": { "start": { - "line": 153, + "line": 160, "column": 57 }, "end": { - "line": 153, + "line": 160, "column": 67 } }, "object": { "type": "Identifier", - "start": 7193, - "end": 7196, + "start": 7773, + "end": 7776, "loc": { "start": { - "line": 153, + "line": 160, "column": 57 }, "end": { - "line": 153, + "line": 160, "column": 60 }, "identifierName": "evt" @@ -13061,15 +13221,15 @@ }, "property": { "type": "Identifier", - "start": 7197, - "end": 7203, + "start": 7777, + "end": 7783, "loc": { "start": { - "line": 153, + "line": 160, "column": 61 }, "end": { - "line": 153, + "line": 160, "column": 67 }, "identifierName": "target" @@ -13082,57 +13242,57 @@ "operator": "&&", "right": { "type": "LogicalExpression", - "start": 7208, - "end": 7303, + "start": 7788, + "end": 7883, "loc": { "start": { - "line": 153, + "line": 160, "column": 72 }, "end": { - "line": 153, + "line": 160, "column": 167 } }, "left": { "type": "CallExpression", - "start": 7208, - "end": 7252, + "start": 7788, + "end": 7832, "loc": { "start": { - "line": 153, + "line": 160, "column": 72 }, "end": { - "line": 153, + "line": 160, "column": 116 } }, "callee": { "type": "MemberExpression", - "start": 7208, - "end": 7230, + "start": 7788, + "end": 7810, "loc": { "start": { - "line": 153, + "line": 160, "column": 72 }, "end": { - "line": 153, + "line": 160, "column": 94 } }, "object": { "type": "Identifier", - "start": 7208, - "end": 7221, + "start": 7788, + "end": 7801, "loc": { "start": { - "line": 153, + "line": 160, "column": 72 }, "end": { - "line": 153, + "line": 160, "column": 85 }, "identifierName": "smartGuideIds" @@ -13141,15 +13301,15 @@ }, "property": { "type": "Identifier", - "start": 7222, - "end": 7230, + "start": 7802, + "end": 7810, "loc": { "start": { - "line": 153, + "line": 160, "column": 86 }, "end": { - "line": 153, + "line": 160, "column": 94 }, "identifierName": "includes" @@ -13161,43 +13321,43 @@ "arguments": [ { "type": "MemberExpression", - "start": 7231, - "end": 7251, + "start": 7811, + "end": 7831, "loc": { "start": { - "line": 153, + "line": 160, "column": 95 }, "end": { - "line": 153, + "line": 160, "column": 115 } }, "object": { "type": "MemberExpression", - "start": 7231, - "end": 7241, + "start": 7811, + "end": 7821, "loc": { "start": { - "line": 153, + "line": 160, "column": 95 }, "end": { - "line": 153, + "line": 160, "column": 105 } }, "object": { "type": "Identifier", - "start": 7231, - "end": 7234, + "start": 7811, + "end": 7814, "loc": { "start": { - "line": 153, + "line": 160, "column": 95 }, "end": { - "line": 153, + "line": 160, "column": 98 }, "identifierName": "evt" @@ -13206,15 +13366,15 @@ }, "property": { "type": "Identifier", - "start": 7235, - "end": 7241, + "start": 7815, + "end": 7821, "loc": { "start": { - "line": 153, + "line": 160, "column": 99 }, "end": { - "line": 153, + "line": 160, "column": 105 }, "identifierName": "target" @@ -13225,15 +13385,15 @@ }, "property": { "type": "Identifier", - "start": 7242, - "end": 7251, + "start": 7822, + "end": 7831, "loc": { "start": { - "line": 153, + "line": 160, "column": 106 }, "end": { - "line": 153, + "line": 160, "column": 115 }, "identifierName": "className" @@ -13247,43 +13407,43 @@ "operator": "||", "right": { "type": "CallExpression", - "start": 7256, - "end": 7303, + "start": 7836, + "end": 7883, "loc": { "start": { - "line": 153, + "line": 160, "column": 120 }, "end": { - "line": 153, + "line": 160, "column": 167 } }, "callee": { "type": "MemberExpression", - "start": 7256, - "end": 7281, + "start": 7836, + "end": 7861, "loc": { "start": { - "line": 153, + "line": 160, "column": 120 }, "end": { - "line": 153, + "line": 160, "column": 145 } }, "object": { "type": "Identifier", - "start": 7256, - "end": 7272, + "start": 7836, + "end": 7852, "loc": { "start": { - "line": 153, + "line": 160, "column": 120 }, "end": { - "line": 153, + "line": 160, "column": 136 }, "identifierName": "scrollbarClasses" @@ -13292,15 +13452,15 @@ }, "property": { "type": "Identifier", - "start": 7273, - "end": 7281, + "start": 7853, + "end": 7861, "loc": { "start": { - "line": 153, + "line": 160, "column": 137 }, "end": { - "line": 153, + "line": 160, "column": 145 }, "identifierName": "includes" @@ -13312,43 +13472,43 @@ "arguments": [ { "type": "MemberExpression", - "start": 7282, - "end": 7302, + "start": 7862, + "end": 7882, "loc": { "start": { - "line": 153, + "line": 160, "column": 146 }, "end": { - "line": 153, + "line": 160, "column": 166 } }, "object": { "type": "MemberExpression", - "start": 7282, - "end": 7292, + "start": 7862, + "end": 7872, "loc": { "start": { - "line": 153, + "line": 160, "column": 146 }, "end": { - "line": 153, + "line": 160, "column": 156 } }, "object": { "type": "Identifier", - "start": 7282, - "end": 7285, + "start": 7862, + "end": 7865, "loc": { "start": { - "line": 153, + "line": 160, "column": 146 }, "end": { - "line": 153, + "line": 160, "column": 149 }, "identifierName": "evt" @@ -13357,15 +13517,15 @@ }, "property": { "type": "Identifier", - "start": 7286, - "end": 7292, + "start": 7866, + "end": 7872, "loc": { "start": { - "line": 153, + "line": 160, "column": 150 }, "end": { - "line": 153, + "line": 160, "column": 156 }, "identifierName": "target" @@ -13376,15 +13536,15 @@ }, "property": { "type": "Identifier", - "start": 7293, - "end": 7302, + "start": 7873, + "end": 7882, "loc": { "start": { - "line": 153, + "line": 160, "column": 157 }, "end": { - "line": 153, + "line": 160, "column": 166 }, "identifierName": "className" @@ -13397,7 +13557,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 7207 + "parenStart": 7787 } } }, @@ -13409,79 +13569,159 @@ { "type": "CommentLine", "value": " Check if pointer didn't stay in the smartguide and pointer exited the smartguide or scrollbar", - "start": 7039, - "end": 7135, + "start": 7301, + "end": 7397, "loc": { "start": { - "line": 152, + "line": 155, "column": 4 }, "end": { - "line": 152, + "line": 155, "column": 100 } } + }, + { + "type": "CommentLine", + "value": " Use case : when the pointer is leaving the smartguide or scrollbar, a pointerout (or leave) is fired.", + "start": 7402, + "end": 7506, + "loc": { + "start": { + "line": 156, + "column": 4 + }, + "end": { + "line": 156, + "column": 108 + } + } + }, + { + "type": "CommentLine", + "value": " The related target is then the DOM element that was left (the smart guide)", + "start": 7511, + "end": 7588, + "loc": { + "start": { + "line": 157, + "column": 4 + }, + "end": { + "line": 157, + "column": 81 + } + } + }, + { + "type": "CommentLine", + "value": " We are entering again the editor", + "start": 7593, + "end": 7628, + "loc": { + "start": { + "line": 158, + "column": 4 + }, + "end": { + "line": 158, + "column": 39 + } + } + }, + { + "type": "CommentLine", + "value": " We don't want this to cause editor.pointerUp because the stroke isn't finished.", + "start": 7633, + "end": 7715, + "loc": { + "start": { + "line": 159, + "column": 4 + }, + "end": { + "line": 159, + "column": 86 + } + } } ], "trailingComments": [ { "type": "CommentLine", "value": " Check if pointer moved between words in smartguide", - "start": 7310, - "end": 7363, + "start": 7890, + "end": 7943, "loc": { "start": { - "line": 154, + "line": 161, "column": 4 }, "end": { - "line": 154, + "line": 161, "column": 57 } } + }, + { + "type": "CommentLine", + "value": " Same use case as pointerEnteredSmartGuide but for the words in the smartguide (each word is a span).", + "start": 7948, + "end": 8051, + "loc": { + "start": { + "line": 162, + "column": 4 + }, + "end": { + "line": 162, + "column": 107 + } + } } ] }, { "type": "VariableDeclaration", - "start": 7368, - "end": 7501, + "start": 8056, + "end": 8189, "loc": { "start": { - "line": 155, + "line": 163, "column": 4 }, "end": { - "line": 155, + "line": 163, "column": 137 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 7374, - "end": 7500, + "start": 8062, + "end": 8188, "loc": { "start": { - "line": 155, + "line": 163, "column": 10 }, "end": { - "line": 155, + "line": 163, "column": 136 } }, "id": { "type": "Identifier", - "start": 7374, - "end": 7391, + "start": 8062, + "end": 8079, "loc": { "start": { - "line": 155, + "line": 163, "column": 10 }, "end": { - "line": 155, + "line": 163, "column": 27 }, "identifierName": "pointerMovedWords" @@ -13491,57 +13731,57 @@ }, "init": { "type": "LogicalExpression", - "start": 7394, - "end": 7500, + "start": 8082, + "end": 8188, "loc": { "start": { - "line": 155, + "line": 163, "column": 30 }, "end": { - "line": 155, + "line": 163, "column": 136 } }, "left": { "type": "LogicalExpression", - "start": 7394, - "end": 7425, + "start": 8082, + "end": 8113, "loc": { "start": { - "line": 155, + "line": 163, "column": 30 }, "end": { - "line": 155, + "line": 163, "column": 61 } }, "left": { "type": "MemberExpression", - "start": 7394, - "end": 7411, + "start": 8082, + "end": 8099, "loc": { "start": { - "line": 155, + "line": 163, "column": 30 }, "end": { - "line": 155, + "line": 163, "column": 47 } }, "object": { "type": "Identifier", - "start": 7394, - "end": 7397, + "start": 8082, + "end": 8085, "loc": { "start": { - "line": 155, + "line": 163, "column": 30 }, "end": { - "line": 155, + "line": 163, "column": 33 }, "identifierName": "evt" @@ -13550,15 +13790,15 @@ }, "property": { "type": "Identifier", - "start": 7398, - "end": 7411, + "start": 8086, + "end": 8099, "loc": { "start": { - "line": 155, + "line": 163, "column": 34 }, "end": { - "line": 155, + "line": 163, "column": 47 }, "identifierName": "relatedTarget" @@ -13570,29 +13810,29 @@ "operator": "&&", "right": { "type": "MemberExpression", - "start": 7415, - "end": 7425, + "start": 8103, + "end": 8113, "loc": { "start": { - "line": 155, + "line": 163, "column": 51 }, "end": { - "line": 155, + "line": 163, "column": 61 } }, "object": { "type": "Identifier", - "start": 7415, - "end": 7418, + "start": 8103, + "end": 8106, "loc": { "start": { - "line": 155, + "line": 163, "column": 51 }, "end": { - "line": 155, + "line": 163, "column": 54 }, "identifierName": "evt" @@ -13601,15 +13841,15 @@ }, "property": { "type": "Identifier", - "start": 7419, - "end": 7425, + "start": 8107, + "end": 8113, "loc": { "start": { - "line": 155, + "line": 163, "column": 55 }, "end": { - "line": 155, + "line": 163, "column": 61 }, "identifierName": "target" @@ -13622,71 +13862,71 @@ "operator": "&&", "right": { "type": "LogicalExpression", - "start": 7430, - "end": 7499, + "start": 8118, + "end": 8187, "loc": { "start": { - "line": 155, + "line": 163, "column": 66 }, "end": { - "line": 155, + "line": 163, "column": 135 } }, "left": { "type": "BinaryExpression", - "start": 7430, - "end": 7459, + "start": 8118, + "end": 8147, "loc": { "start": { - "line": 155, + "line": 163, "column": 66 }, "end": { - "line": 155, + "line": 163, "column": 95 } }, "left": { "type": "MemberExpression", - "start": 7430, - "end": 7448, + "start": 8118, + "end": 8136, "loc": { "start": { - "line": 155, + "line": 163, "column": 66 }, "end": { - "line": 155, + "line": 163, "column": 84 } }, "object": { "type": "MemberExpression", - "start": 7430, - "end": 7440, + "start": 8118, + "end": 8128, "loc": { "start": { - "line": 155, + "line": 163, "column": 66 }, "end": { - "line": 155, + "line": 163, "column": 76 } }, "object": { "type": "Identifier", - "start": 7430, - "end": 7433, + "start": 8118, + "end": 8121, "loc": { "start": { - "line": 155, + "line": 163, "column": 66 }, "end": { - "line": 155, + "line": 163, "column": 69 }, "identifierName": "evt" @@ -13695,15 +13935,15 @@ }, "property": { "type": "Identifier", - "start": 7434, - "end": 7440, + "start": 8122, + "end": 8128, "loc": { "start": { - "line": 155, + "line": 163, "column": 70 }, "end": { - "line": 155, + "line": 163, "column": 76 }, "identifierName": "target" @@ -13714,15 +13954,15 @@ }, "property": { "type": "Identifier", - "start": 7441, - "end": 7448, + "start": 8129, + "end": 8136, "loc": { "start": { - "line": 155, + "line": 163, "column": 77 }, "end": { - "line": 155, + "line": 163, "column": 84 }, "identifierName": "tagName" @@ -13734,15 +13974,15 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 7453, - "end": 7459, + "start": 8141, + "end": 8147, "loc": { "start": { - "line": 155, + "line": 163, "column": 89 }, "end": { - "line": 155, + "line": 163, "column": 95 } }, @@ -13756,57 +13996,57 @@ "operator": "||", "right": { "type": "BinaryExpression", - "start": 7463, - "end": 7499, + "start": 8151, + "end": 8187, "loc": { "start": { - "line": 155, + "line": 163, "column": 99 }, "end": { - "line": 155, + "line": 163, "column": 135 } }, "left": { "type": "MemberExpression", - "start": 7463, - "end": 7488, + "start": 8151, + "end": 8176, "loc": { "start": { - "line": 155, + "line": 163, "column": 99 }, "end": { - "line": 155, + "line": 163, "column": 124 } }, "object": { "type": "MemberExpression", - "start": 7463, - "end": 7480, + "start": 8151, + "end": 8168, "loc": { "start": { - "line": 155, + "line": 163, "column": 99 }, "end": { - "line": 155, + "line": 163, "column": 116 } }, "object": { "type": "Identifier", - "start": 7463, - "end": 7466, + "start": 8151, + "end": 8154, "loc": { "start": { - "line": 155, + "line": 163, "column": 99 }, "end": { - "line": 155, + "line": 163, "column": 102 }, "identifierName": "evt" @@ -13815,15 +14055,15 @@ }, "property": { "type": "Identifier", - "start": 7467, - "end": 7480, + "start": 8155, + "end": 8168, "loc": { "start": { - "line": 155, + "line": 163, "column": 103 }, "end": { - "line": 155, + "line": 163, "column": 116 }, "identifierName": "relatedTarget" @@ -13834,15 +14074,15 @@ }, "property": { "type": "Identifier", - "start": 7481, - "end": 7488, + "start": 8169, + "end": 8176, "loc": { "start": { - "line": 155, + "line": 163, "column": 117 }, "end": { - "line": 155, + "line": 163, "column": 124 }, "identifierName": "tagName" @@ -13854,15 +14094,15 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 7493, - "end": 7499, + "start": 8181, + "end": 8187, "loc": { "start": { - "line": 155, + "line": 163, "column": 129 }, "end": { - "line": 155, + "line": 163, "column": 135 } }, @@ -13875,7 +14115,7 @@ }, "extra": { "parenthesized": true, - "parenStart": 7429 + "parenStart": 8117 } } }, @@ -13887,74 +14127,90 @@ { "type": "CommentLine", "value": " Check if pointer moved between words in smartguide", - "start": 7310, - "end": 7363, + "start": 7890, + "end": 7943, "loc": { "start": { - "line": 154, + "line": 161, "column": 4 }, "end": { - "line": 154, + "line": 161, "column": 57 } } + }, + { + "type": "CommentLine", + "value": " Same use case as pointerEnteredSmartGuide but for the words in the smartguide (each word is a span).", + "start": 7948, + "end": 8051, + "loc": { + "start": { + "line": 162, + "column": 4 + }, + "end": { + "line": 162, + "column": 107 + } + } } ] }, { "type": "IfStatement", - "start": 7506, - "end": 8069, + "start": 8194, + "end": 8757, "loc": { "start": { - "line": 156, + "line": 164, "column": 4 }, "end": { - "line": 164, + "line": 172, "column": 5 } }, "test": { "type": "LogicalExpression", - "start": 7510, - "end": 7582, + "start": 8198, + "end": 8270, "loc": { "start": { - "line": 156, + "line": 164, "column": 8 }, "end": { - "line": 156, + "line": 164, "column": 80 } }, "left": { "type": "LogicalExpression", - "start": 7510, - "end": 7561, + "start": 8198, + "end": 8249, "loc": { "start": { - "line": 156, + "line": 164, "column": 8 }, "end": { - "line": 156, + "line": 164, "column": 59 } }, "left": { "type": "Identifier", - "start": 7510, - "end": 7534, + "start": 8198, + "end": 8222, "loc": { "start": { - "line": 156, + "line": 164, "column": 8 }, "end": { - "line": 156, + "line": 164, "column": 32 }, "identifierName": "pointerEnteredSmartGuide" @@ -13964,15 +14220,15 @@ "operator": "||", "right": { "type": "Identifier", - "start": 7538, - "end": 7561, + "start": 8226, + "end": 8249, "loc": { "start": { - "line": 156, + "line": 164, "column": 36 }, "end": { - "line": 156, + "line": 164, "column": 59 }, "identifierName": "pointerExitedSmartGuide" @@ -13983,15 +14239,15 @@ "operator": "||", "right": { "type": "Identifier", - "start": 7565, - "end": 7582, + "start": 8253, + "end": 8270, "loc": { "start": { - "line": 156, + "line": 164, "column": 63 }, "end": { - "line": 156, + "line": 164, "column": 80 }, "identifierName": "pointerMovedWords" @@ -14001,72 +14257,72 @@ }, "consequent": { "type": "BlockStatement", - "start": 7584, - "end": 7620, + "start": 8272, + "end": 8308, "loc": { "start": { - "line": 156, + "line": 164, "column": 82 }, "end": { - "line": 158, + "line": 166, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 7592, - "end": 7614, + "start": 8280, + "end": 8302, "loc": { "start": { - "line": 157, + "line": 165, "column": 6 }, "end": { - "line": 157, + "line": 165, "column": 28 } }, "expression": { "type": "CallExpression", - "start": 7592, - "end": 7613, + "start": 8280, + "end": 8301, "loc": { "start": { - "line": 157, + "line": 165, "column": 6 }, "end": { - "line": 157, + "line": 165, "column": 27 } }, "callee": { "type": "MemberExpression", - "start": 7592, - "end": 7611, + "start": 8280, + "end": 8299, "loc": { "start": { - "line": 157, + "line": 165, "column": 6 }, "end": { - "line": 157, + "line": 165, "column": 25 } }, "object": { "type": "Identifier", - "start": 7592, - "end": 7595, + "start": 8280, + "end": 8283, "loc": { "start": { - "line": 157, + "line": 165, "column": 6 }, "end": { - "line": 157, + "line": 165, "column": 9 }, "identifierName": "evt" @@ -14075,15 +14331,15 @@ }, "property": { "type": "Identifier", - "start": 7596, - "end": 7611, + "start": 8284, + "end": 8299, "loc": { "start": { - "line": 157, + "line": 165, "column": 10 }, "end": { - "line": 157, + "line": 165, "column": 25 }, "identifierName": "stopPropagation" @@ -14100,86 +14356,86 @@ }, "alternate": { "type": "IfStatement", - "start": 7626, - "end": 8069, + "start": 8314, + "end": 8757, "loc": { "start": { - "line": 158, + "line": 166, "column": 11 }, "end": { - "line": 164, + "line": 172, "column": 5 } }, "test": { "type": "LogicalExpression", - "start": 7630, - "end": 7706, + "start": 8318, + "end": 8394, "loc": { "start": { - "line": 158, + "line": 166, "column": 15 }, "end": { - "line": 158, + "line": 166, "column": 91 } }, "left": { "type": "BinaryExpression", - "start": 7630, - "end": 7664, + "start": 8318, + "end": 8352, "loc": { "start": { - "line": 158, + "line": 166, "column": 15 }, "end": { - "line": 158, + "line": 166, "column": 49 } }, "left": { "type": "MemberExpression", - "start": 7630, - "end": 7650, + "start": 8318, + "end": 8338, "loc": { "start": { - "line": 158, + "line": 166, "column": 15 }, "end": { - "line": 158, + "line": 166, "column": 35 } }, "object": { "type": "ThisExpression", - "start": 7630, - "end": 7634, + "start": 8318, + "end": 8322, "loc": { "start": { - "line": 158, + "line": 166, "column": 15 }, "end": { - "line": 158, + "line": 166, "column": 19 } } }, "property": { "type": "Identifier", - "start": 7635, - "end": 7650, + "start": 8323, + "end": 8338, "loc": { "start": { - "line": 158, + "line": 166, "column": 20 }, "end": { - "line": 158, + "line": 166, "column": 35 }, "identifierName": "activePointerId" @@ -14191,15 +14447,15 @@ "operator": "!==", "right": { "type": "Identifier", - "start": 7655, - "end": 7664, + "start": 8343, + "end": 8352, "loc": { "start": { - "line": 158, + "line": 166, "column": 40 }, "end": { - "line": 158, + "line": 166, "column": 49 }, "identifierName": "undefined" @@ -14210,58 +14466,58 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 7668, - "end": 7706, + "start": 8356, + "end": 8394, "loc": { "start": { - "line": 158, + "line": 166, "column": 53 }, "end": { - "line": 158, + "line": 166, "column": 91 } }, "left": { "type": "MemberExpression", - "start": 7668, - "end": 7688, + "start": 8356, + "end": 8376, "loc": { "start": { - "line": 158, + "line": 166, "column": 53 }, "end": { - "line": 158, + "line": 166, "column": 73 } }, "object": { "type": "ThisExpression", - "start": 7668, - "end": 7672, + "start": 8356, + "end": 8360, "loc": { "start": { - "line": 158, + "line": 166, "column": 53 }, "end": { - "line": 158, + "line": 166, "column": 57 } } }, "property": { "type": "Identifier", - "start": 7673, - "end": 7688, + "start": 8361, + "end": 8376, "loc": { "start": { - "line": 158, + "line": 166, "column": 58 }, "end": { - "line": 158, + "line": 166, "column": 73 }, "identifierName": "activePointerId" @@ -14273,29 +14529,29 @@ "operator": "===", "right": { "type": "MemberExpression", - "start": 7693, - "end": 7706, + "start": 8381, + "end": 8394, "loc": { "start": { - "line": 158, + "line": 166, "column": 78 }, "end": { - "line": 158, + "line": 166, "column": 91 } }, "object": { "type": "Identifier", - "start": 7693, - "end": 7696, + "start": 8381, + "end": 8384, "loc": { "start": { - "line": 158, + "line": 166, "column": 78 }, "end": { - "line": 158, + "line": 166, "column": 81 }, "identifierName": "evt" @@ -14304,15 +14560,15 @@ }, "property": { "type": "Identifier", - "start": 7697, - "end": 7706, + "start": 8385, + "end": 8394, "loc": { "start": { - "line": 158, + "line": 166, "column": 82 }, "end": { - "line": 158, + "line": 166, "column": 91 }, "identifierName": "pointerId" @@ -14325,73 +14581,73 @@ }, "consequent": { "type": "BlockStatement", - "start": 7708, - "end": 7951, + "start": 8396, + "end": 8639, "loc": { "start": { - "line": 158, + "line": 166, "column": 93 }, "end": { - "line": 162, + "line": 170, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 7755, - "end": 7788, + "start": 8443, + "end": 8476, "loc": { "start": { - "line": 159, + "line": 167, "column": 6 }, "end": { - "line": 159, + "line": 167, "column": 39 } }, "expression": { "type": "AssignmentExpression", - "start": 7755, - "end": 7787, + "start": 8443, + "end": 8475, "loc": { "start": { - "line": 159, + "line": 167, "column": 6 }, "end": { - "line": 159, + "line": 167, "column": 38 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 7755, - "end": 7775, + "start": 8443, + "end": 8463, "loc": { "start": { - "line": 159, + "line": 167, "column": 6 }, "end": { - "line": 159, + "line": 167, "column": 26 } }, "object": { "type": "ThisExpression", - "start": 7755, - "end": 7759, + "start": 8443, + "end": 8447, "loc": { "start": { - "line": 159, + "line": 167, "column": 6 }, "end": { - "line": 159, + "line": 167, "column": 10 } }, @@ -14399,15 +14655,15 @@ }, "property": { "type": "Identifier", - "start": 7760, - "end": 7775, + "start": 8448, + "end": 8463, "loc": { "start": { - "line": 159, + "line": 167, "column": 11 }, "end": { - "line": 159, + "line": 167, "column": 26 }, "identifierName": "activePointerId" @@ -14419,15 +14675,15 @@ }, "right": { "type": "Identifier", - "start": 7778, - "end": 7787, + "start": 8466, + "end": 8475, "loc": { "start": { - "line": 159, + "line": 167, "column": 29 }, "end": { - "line": 159, + "line": 167, "column": 38 }, "identifierName": "undefined" @@ -14440,15 +14696,15 @@ { "type": "CommentLine", "value": " Only considering the active pointer", - "start": 7710, - "end": 7748, + "start": 8398, + "end": 8436, "loc": { "start": { - "line": 158, + "line": 166, "column": 95 }, "end": { - "line": 158, + "line": 166, "column": 133 } } @@ -14458,15 +14714,15 @@ { "type": "CommentLine", "value": " Managing the active pointer", - "start": 7789, - "end": 7819, + "start": 8477, + "end": 8507, "loc": { "start": { - "line": 159, + "line": 167, "column": 40 }, "end": { - "line": 159, + "line": 167, "column": 70 } } @@ -14475,57 +14731,57 @@ }, { "type": "ExpressionStatement", - "start": 7826, - "end": 7848, + "start": 8514, + "end": 8536, "loc": { "start": { - "line": 160, + "line": 168, "column": 6 }, "end": { - "line": 160, + "line": 168, "column": 28 } }, "expression": { "type": "CallExpression", - "start": 7826, - "end": 7847, + "start": 8514, + "end": 8535, "loc": { "start": { - "line": 160, + "line": 168, "column": 6 }, "end": { - "line": 160, + "line": 168, "column": 27 } }, "callee": { "type": "MemberExpression", - "start": 7826, - "end": 7845, + "start": 8514, + "end": 8533, "loc": { "start": { - "line": 160, + "line": 168, "column": 6 }, "end": { - "line": 160, + "line": 168, "column": 25 } }, "object": { "type": "Identifier", - "start": 7826, - "end": 7829, + "start": 8514, + "end": 8517, "loc": { "start": { - "line": 160, + "line": 168, "column": 6 }, "end": { - "line": 160, + "line": 168, "column": 9 }, "identifierName": "evt" @@ -14535,15 +14791,15 @@ }, "property": { "type": "Identifier", - "start": 7830, - "end": 7845, + "start": 8518, + "end": 8533, "loc": { "start": { - "line": 160, + "line": 168, "column": 10 }, "end": { - "line": 160, + "line": 168, "column": 25 }, "identifierName": "stopPropagation" @@ -14560,15 +14816,15 @@ { "type": "CommentLine", "value": " Managing the active pointer", - "start": 7789, - "end": 7819, + "start": 8477, + "end": 8507, "loc": { "start": { - "line": 159, + "line": 167, "column": 40 }, "end": { - "line": 159, + "line": 167, "column": 70 } } @@ -14577,57 +14833,57 @@ }, { "type": "ExpressionStatement", - "start": 7855, - "end": 7945, + "start": 8543, + "end": 8633, "loc": { "start": { - "line": 161, + "line": 169, "column": 6 }, "end": { - "line": 161, + "line": 169, "column": 96 } }, "expression": { "type": "CallExpression", - "start": 7855, - "end": 7944, + "start": 8543, + "end": 8632, "loc": { "start": { - "line": 161, + "line": 169, "column": 6 }, "end": { - "line": 161, + "line": 169, "column": 95 } }, "callee": { "type": "MemberExpression", - "start": 7855, - "end": 7871, + "start": 8543, + "end": 8559, "loc": { "start": { - "line": 161, + "line": 169, "column": 6 }, "end": { - "line": 161, + "line": 169, "column": 22 } }, "object": { "type": "Identifier", - "start": 7855, - "end": 7861, + "start": 8543, + "end": 8549, "loc": { "start": { - "line": 161, + "line": 169, "column": 6 }, "end": { - "line": 161, + "line": 169, "column": 12 }, "identifierName": "editor" @@ -14636,15 +14892,15 @@ }, "property": { "type": "Identifier", - "start": 7862, - "end": 7871, + "start": 8550, + "end": 8559, "loc": { "start": { - "line": 161, + "line": 169, "column": 13 }, "end": { - "line": 161, + "line": 169, "column": 22 }, "identifierName": "pointerUp" @@ -14656,29 +14912,29 @@ "arguments": [ { "type": "CallExpression", - "start": 7872, - "end": 7943, + "start": 8560, + "end": 8631, "loc": { "start": { - "line": 161, + "line": 169, "column": 23 }, "end": { - "line": 161, + "line": 169, "column": 94 } }, "callee": { "type": "Identifier", - "start": 7872, - "end": 7884, + "start": 8560, + "end": 8572, "loc": { "start": { - "line": 161, + "line": 169, "column": 23 }, "end": { - "line": 161, + "line": 169, "column": 35 }, "identifierName": "extractPoint" @@ -14688,15 +14944,15 @@ "arguments": [ { "type": "Identifier", - "start": 7885, - "end": 7888, + "start": 8573, + "end": 8576, "loc": { "start": { - "line": 161, + "line": 169, "column": 36 }, "end": { - "line": 161, + "line": 169, "column": 39 }, "identifierName": "evt" @@ -14705,15 +14961,15 @@ }, { "type": "Identifier", - "start": 7890, - "end": 7897, + "start": 8578, + "end": 8585, "loc": { "start": { - "line": 161, + "line": 169, "column": 41 }, "end": { - "line": 161, + "line": 169, "column": 48 }, "identifierName": "element" @@ -14722,29 +14978,29 @@ }, { "type": "MemberExpression", - "start": 7899, - "end": 7919, + "start": 8587, + "end": 8607, "loc": { "start": { - "line": 161, + "line": 169, "column": 50 }, "end": { - "line": 161, + "line": 169, "column": 70 } }, "object": { "type": "Identifier", - "start": 7899, - "end": 7905, + "start": 8587, + "end": 8593, "loc": { "start": { - "line": 161, + "line": 169, "column": 50 }, "end": { - "line": 161, + "line": 169, "column": 56 }, "identifierName": "editor" @@ -14753,15 +15009,15 @@ }, "property": { "type": "Identifier", - "start": 7906, - "end": 7919, + "start": 8594, + "end": 8607, "loc": { "start": { - "line": 161, + "line": 169, "column": 57 }, "end": { - "line": 161, + "line": 169, "column": 70 }, "identifierName": "configuration" @@ -14772,15 +15028,15 @@ }, { "type": "Identifier", - "start": 7921, - "end": 7930, + "start": 8609, + "end": 8618, "loc": { "start": { - "line": 161, + "line": 169, "column": 72 }, "end": { - "line": 161, + "line": 169, "column": 81 }, "identifierName": "offsetTop" @@ -14789,15 +15045,15 @@ }, { "type": "Identifier", - "start": 7932, - "end": 7942, + "start": 8620, + "end": 8630, "loc": { "start": { - "line": 161, + "line": 169, "column": 83 }, "end": { - "line": 161, + "line": 169, "column": 93 }, "identifierName": "offsetLeft" @@ -14814,72 +15070,72 @@ }, "alternate": { "type": "BlockStatement", - "start": 7957, - "end": 8069, + "start": 8645, + "end": 8757, "loc": { "start": { - "line": 162, + "line": 170, "column": 11 }, "end": { - "line": 164, + "line": 172, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 7965, - "end": 8063, + "start": 8653, + "end": 8751, "loc": { "start": { - "line": 163, + "line": 171, "column": 6 }, "end": { - "line": 163, + "line": 171, "column": 104 } }, "expression": { "type": "CallExpression", - "start": 7965, - "end": 8062, + "start": 8653, + "end": 8750, "loc": { "start": { - "line": 163, + "line": 171, "column": 6 }, "end": { - "line": 163, + "line": 171, "column": 103 } }, "callee": { "type": "MemberExpression", - "start": 7965, - "end": 7977, + "start": 8653, + "end": 8665, "loc": { "start": { - "line": 163, + "line": 171, "column": 6 }, "end": { - "line": 163, + "line": 171, "column": 18 } }, "object": { "type": "Identifier", - "start": 7965, - "end": 7971, + "start": 8653, + "end": 8659, "loc": { "start": { - "line": 163, + "line": 171, "column": 6 }, "end": { - "line": 163, + "line": 171, "column": 12 }, "identifierName": "logger" @@ -14888,15 +15144,15 @@ }, "property": { "type": "Identifier", - "start": 7972, - "end": 7977, + "start": 8660, + "end": 8665, "loc": { "start": { - "line": 163, + "line": 171, "column": 13 }, "end": { - "line": 163, + "line": 171, "column": 18 }, "identifierName": "trace" @@ -14908,44 +15164,44 @@ "arguments": [ { "type": "TemplateLiteral", - "start": 7978, - "end": 8039, + "start": 8666, + "end": 8727, "loc": { "start": { - "line": 163, + "line": 171, "column": 19 }, "end": { - "line": 163, + "line": 171, "column": 80 } }, "expressions": [ { "type": "MemberExpression", - "start": 7981, - "end": 7989, + "start": 8669, + "end": 8677, "loc": { "start": { - "line": 163, + "line": 171, "column": 22 }, "end": { - "line": 163, + "line": 171, "column": 30 } }, "object": { "type": "Identifier", - "start": 7981, - "end": 7984, + "start": 8669, + "end": 8672, "loc": { "start": { - "line": 163, + "line": 171, "column": 22 }, "end": { - "line": 163, + "line": 171, "column": 25 }, "identifierName": "evt" @@ -14954,15 +15210,15 @@ }, "property": { "type": "Identifier", - "start": 7985, - "end": 7989, + "start": 8673, + "end": 8677, "loc": { "start": { - "line": 163, + "line": 171, "column": 26 }, "end": { - "line": 163, + "line": 171, "column": 30 }, "identifierName": "type" @@ -14973,29 +15229,29 @@ }, { "type": "MemberExpression", - "start": 8023, - "end": 8036, + "start": 8711, + "end": 8724, "loc": { "start": { - "line": 163, + "line": 171, "column": 64 }, "end": { - "line": 163, + "line": 171, "column": 77 } }, "object": { "type": "Identifier", - "start": 8023, - "end": 8026, + "start": 8711, + "end": 8714, "loc": { "start": { - "line": 163, + "line": 171, "column": 64 }, "end": { - "line": 163, + "line": 171, "column": 67 }, "identifierName": "evt" @@ -15004,15 +15260,15 @@ }, "property": { "type": "Identifier", - "start": 8027, - "end": 8036, + "start": 8715, + "end": 8724, "loc": { "start": { - "line": 163, + "line": 171, "column": 68 }, "end": { - "line": 163, + "line": 171, "column": 77 }, "identifierName": "pointerId" @@ -15025,15 +15281,15 @@ "quasis": [ { "type": "TemplateElement", - "start": 7979, - "end": 7979, + "start": 8667, + "end": 8667, "loc": { "start": { - "line": 163, + "line": 171, "column": 20 }, "end": { - "line": 163, + "line": 171, "column": 20 } }, @@ -15045,15 +15301,15 @@ }, { "type": "TemplateElement", - "start": 7990, - "end": 8021, + "start": 8678, + "end": 8709, "loc": { "start": { - "line": 163, + "line": 171, "column": 31 }, "end": { - "line": 163, + "line": 171, "column": 62 } }, @@ -15065,15 +15321,15 @@ }, { "type": "TemplateElement", - "start": 8037, - "end": 8038, + "start": 8725, + "end": 8726, "loc": { "start": { - "line": 163, + "line": 171, "column": 78 }, "end": { - "line": 163, + "line": 171, "column": 79 } }, @@ -15087,44 +15343,44 @@ }, { "type": "MemberExpression", - "start": 8041, - "end": 8061, + "start": 8729, + "end": 8749, "loc": { "start": { - "line": 163, + "line": 171, "column": 82 }, "end": { - "line": 163, + "line": 171, "column": 102 } }, "object": { "type": "ThisExpression", - "start": 8041, - "end": 8045, + "start": 8729, + "end": 8733, "loc": { "start": { - "line": 163, + "line": 171, "column": 82 }, "end": { - "line": 163, + "line": 171, "column": 86 } } }, "property": { "type": "Identifier", - "start": 8046, - "end": 8061, + "start": 8734, + "end": 8749, "loc": { "start": { - "line": 163, + "line": 171, "column": 87 }, "end": { - "line": 163, + "line": 171, "column": 102 }, "identifierName": "activePointerId" @@ -15147,44 +15403,44 @@ }, { "type": "VariableDeclaration", - "start": 8077, - "end": 8431, + "start": 8765, + "end": 9119, "loc": { "start": { - "line": 167, + "line": 175, "column": 2 }, "end": { - "line": 179, + "line": 187, "column": 4 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 8083, - "end": 8430, + "start": 8771, + "end": 9118, "loc": { "start": { - "line": 167, + "line": 175, "column": 8 }, "end": { - "line": 179, + "line": 187, "column": 3 } }, "id": { "type": "Identifier", - "start": 8083, - "end": 8090, + "start": 8771, + "end": 8778, "loc": { "start": { - "line": 167, + "line": 175, "column": 8 }, "end": { - "line": 167, + "line": 175, "column": 15 }, "identifierName": "context" @@ -15193,30 +15449,30 @@ }, "init": { "type": "ObjectExpression", - "start": 8093, - "end": 8430, + "start": 8781, + "end": 9118, "loc": { "start": { - "line": 167, + "line": 175, "column": 18 }, "end": { - "line": 179, + "line": 187, "column": 3 } }, "properties": [ { "type": "ObjectProperty", - "start": 8099, - "end": 8144, + "start": 8787, + "end": 8832, "loc": { "start": { - "line": 168, + "line": 176, "column": 4 }, "end": { - "line": 168, + "line": 176, "column": 49 } }, @@ -15225,15 +15481,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 8099, - "end": 8106, + "start": 8787, + "end": 8794, "loc": { "start": { - "line": 168, + "line": 176, "column": 4 }, "end": { - "line": 168, + "line": 176, "column": 11 }, "identifierName": "options" @@ -15242,43 +15498,43 @@ }, "value": { "type": "MemberExpression", - "start": 8108, - "end": 8144, + "start": 8796, + "end": 8832, "loc": { "start": { - "line": 168, + "line": 176, "column": 13 }, "end": { - "line": 168, + "line": 176, "column": 49 } }, "object": { "type": "MemberExpression", - "start": 8108, - "end": 8128, + "start": 8796, + "end": 8816, "loc": { "start": { - "line": 168, + "line": 176, "column": 13 }, "end": { - "line": 168, + "line": 176, "column": 33 } }, "object": { "type": "Identifier", - "start": 8108, - "end": 8114, + "start": 8796, + "end": 8802, "loc": { "start": { - "line": 168, + "line": 176, "column": 13 }, "end": { - "line": 168, + "line": 176, "column": 19 }, "identifierName": "editor" @@ -15287,15 +15543,15 @@ }, "property": { "type": "Identifier", - "start": 8115, - "end": 8128, + "start": 8803, + "end": 8816, "loc": { "start": { - "line": 168, + "line": 176, "column": 20 }, "end": { - "line": 168, + "line": 176, "column": 33 }, "identifierName": "configuration" @@ -15306,15 +15562,15 @@ }, "property": { "type": "Identifier", - "start": 8129, - "end": 8144, + "start": 8817, + "end": 8832, "loc": { "start": { - "line": 168, + "line": 176, "column": 34 }, "end": { - "line": 168, + "line": 176, "column": 49 }, "identifierName": "listenerOptions" @@ -15326,15 +15582,15 @@ }, { "type": "ObjectProperty", - "start": 8150, - "end": 8426, + "start": 8838, + "end": 9114, "loc": { "start": { - "line": 169, + "line": 177, "column": 4 }, "end": { - "line": 178, + "line": 186, "column": 6 } }, @@ -15343,15 +15599,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 8150, - "end": 8159, + "start": 8838, + "end": 8847, "loc": { "start": { - "line": 169, + "line": 177, "column": 4 }, "end": { - "line": 169, + "line": 177, "column": 13 }, "identifierName": "listeners" @@ -15360,45 +15616,45 @@ }, "value": { "type": "ArrayExpression", - "start": 8161, - "end": 8426, + "start": 8849, + "end": 9114, "loc": { "start": { - "line": 169, + "line": 177, "column": 15 }, "end": { - "line": 178, + "line": 186, "column": 6 } }, "elements": [ { "type": "ObjectExpression", - "start": 8162, - "end": 8234, + "start": 8850, + "end": 8922, "loc": { "start": { - "line": 169, + "line": 177, "column": 16 }, "end": { - "line": 172, + "line": 180, "column": 5 } }, "properties": [ { "type": "ObjectProperty", - "start": 8170, - "end": 8192, + "start": 8858, + "end": 8880, "loc": { "start": { - "line": 170, + "line": 178, "column": 6 }, "end": { - "line": 170, + "line": 178, "column": 28 } }, @@ -15407,15 +15663,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 8170, - "end": 8175, + "start": 8858, + "end": 8863, "loc": { "start": { - "line": 170, + "line": 178, "column": 6 }, "end": { - "line": 170, + "line": 178, "column": 11 }, "identifierName": "types" @@ -15424,30 +15680,30 @@ }, "value": { "type": "ArrayExpression", - "start": 8177, - "end": 8192, + "start": 8865, + "end": 8880, "loc": { "start": { - "line": 170, + "line": 178, "column": 13 }, "end": { - "line": 170, + "line": 178, "column": 28 } }, "elements": [ { "type": "StringLiteral", - "start": 8178, - "end": 8191, + "start": 8866, + "end": 8879, "loc": { "start": { - "line": 170, + "line": 178, "column": 14 }, "end": { - "line": 170, + "line": 178, "column": 27 } }, @@ -15462,15 +15718,15 @@ }, { "type": "ObjectProperty", - "start": 8200, - "end": 8228, + "start": 8888, + "end": 8916, "loc": { "start": { - "line": 171, + "line": 179, "column": 6 }, "end": { - "line": 171, + "line": 179, "column": 34 } }, @@ -15479,15 +15735,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 8200, - "end": 8208, + "start": 8888, + "end": 8896, "loc": { "start": { - "line": 171, + "line": 179, "column": 6 }, "end": { - "line": 171, + "line": 179, "column": 14 }, "identifierName": "listener" @@ -15496,15 +15752,15 @@ }, "value": { "type": "Identifier", - "start": 8210, - "end": 8228, + "start": 8898, + "end": 8916, "loc": { "start": { - "line": 171, + "line": 179, "column": 16 }, "end": { - "line": 171, + "line": 179, "column": 34 }, "identifierName": "pointerDownHandler" @@ -15516,30 +15772,30 @@ }, { "type": "ObjectExpression", - "start": 8236, - "end": 8308, + "start": 8924, + "end": 8996, "loc": { "start": { - "line": 172, + "line": 180, "column": 7 }, "end": { - "line": 175, + "line": 183, "column": 5 } }, "properties": [ { "type": "ObjectProperty", - "start": 8244, - "end": 8266, + "start": 8932, + "end": 8954, "loc": { "start": { - "line": 173, + "line": 181, "column": 6 }, "end": { - "line": 173, + "line": 181, "column": 28 } }, @@ -15548,15 +15804,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 8244, - "end": 8249, + "start": 8932, + "end": 8937, "loc": { "start": { - "line": 173, + "line": 181, "column": 6 }, "end": { - "line": 173, + "line": 181, "column": 11 }, "identifierName": "types" @@ -15565,30 +15821,30 @@ }, "value": { "type": "ArrayExpression", - "start": 8251, - "end": 8266, + "start": 8939, + "end": 8954, "loc": { "start": { - "line": 173, + "line": 181, "column": 13 }, "end": { - "line": 173, + "line": 181, "column": 28 } }, "elements": [ { "type": "StringLiteral", - "start": 8252, - "end": 8265, + "start": 8940, + "end": 8953, "loc": { "start": { - "line": 173, + "line": 181, "column": 14 }, "end": { - "line": 173, + "line": 181, "column": 27 } }, @@ -15603,15 +15859,15 @@ }, { "type": "ObjectProperty", - "start": 8274, - "end": 8302, + "start": 8962, + "end": 8990, "loc": { "start": { - "line": 174, + "line": 182, "column": 6 }, "end": { - "line": 174, + "line": 182, "column": 34 } }, @@ -15620,15 +15876,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 8274, - "end": 8282, + "start": 8962, + "end": 8970, "loc": { "start": { - "line": 174, + "line": 182, "column": 6 }, "end": { - "line": 174, + "line": 182, "column": 14 }, "identifierName": "listener" @@ -15637,15 +15893,15 @@ }, "value": { "type": "Identifier", - "start": 8284, - "end": 8302, + "start": 8972, + "end": 8990, "loc": { "start": { - "line": 174, + "line": 182, "column": 16 }, "end": { - "line": 174, + "line": 182, "column": 34 }, "identifierName": "pointerMoveHandler" @@ -15657,30 +15913,30 @@ }, { "type": "ObjectExpression", - "start": 8310, - "end": 8425, + "start": 8998, + "end": 9113, "loc": { "start": { - "line": 175, + "line": 183, "column": 7 }, "end": { - "line": 178, + "line": 186, "column": 5 } }, "properties": [ { "type": "ObjectProperty", - "start": 8318, - "end": 8385, + "start": 9006, + "end": 9073, "loc": { "start": { - "line": 176, + "line": 184, "column": 6 }, "end": { - "line": 176, + "line": 184, "column": 73 } }, @@ -15689,15 +15945,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 8318, - "end": 8323, + "start": 9006, + "end": 9011, "loc": { "start": { - "line": 176, + "line": 184, "column": 6 }, "end": { - "line": 176, + "line": 184, "column": 11 }, "identifierName": "types" @@ -15706,30 +15962,30 @@ }, "value": { "type": "ArrayExpression", - "start": 8325, - "end": 8385, + "start": 9013, + "end": 9073, "loc": { "start": { - "line": 176, + "line": 184, "column": 13 }, "end": { - "line": 176, + "line": 184, "column": 73 } }, "elements": [ { "type": "StringLiteral", - "start": 8326, - "end": 8337, + "start": 9014, + "end": 9025, "loc": { "start": { - "line": 176, + "line": 184, "column": 14 }, "end": { - "line": 176, + "line": 184, "column": 25 } }, @@ -15741,15 +15997,15 @@ }, { "type": "StringLiteral", - "start": 8339, - "end": 8351, + "start": 9027, + "end": 9039, "loc": { "start": { - "line": 176, + "line": 184, "column": 27 }, "end": { - "line": 176, + "line": 184, "column": 39 } }, @@ -15761,15 +16017,15 @@ }, { "type": "StringLiteral", - "start": 8353, - "end": 8367, + "start": 9041, + "end": 9055, "loc": { "start": { - "line": 176, + "line": 184, "column": 41 }, "end": { - "line": 176, + "line": 184, "column": 55 } }, @@ -15781,15 +16037,15 @@ }, { "type": "StringLiteral", - "start": 8369, - "end": 8384, + "start": 9057, + "end": 9072, "loc": { "start": { - "line": 176, + "line": 184, "column": 57 }, "end": { - "line": 176, + "line": 184, "column": 72 } }, @@ -15804,15 +16060,15 @@ }, { "type": "ObjectProperty", - "start": 8393, - "end": 8419, + "start": 9081, + "end": 9107, "loc": { "start": { - "line": 177, + "line": 185, "column": 6 }, "end": { - "line": 177, + "line": 185, "column": 32 } }, @@ -15821,15 +16077,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 8393, - "end": 8401, + "start": 9081, + "end": 9089, "loc": { "start": { - "line": 177, + "line": 185, "column": 6 }, "end": { - "line": 177, + "line": 185, "column": 14 }, "identifierName": "listener" @@ -15838,15 +16094,15 @@ }, "value": { "type": "Identifier", - "start": 8403, - "end": 8419, + "start": 9091, + "end": 9107, "loc": { "start": { - "line": 177, + "line": 185, "column": 16 }, "end": { - "line": 177, + "line": 185, "column": 32 }, "identifierName": "pointerUpHandler" @@ -15867,57 +16123,57 @@ }, { "type": "ExpressionStatement", - "start": 8435, - "end": 8480, + "start": 9123, + "end": 9168, "loc": { "start": { - "line": 181, + "line": 189, "column": 2 }, "end": { - "line": 181, + "line": 189, "column": 47 } }, "expression": { "type": "CallExpression", - "start": 8435, - "end": 8479, + "start": 9123, + "end": 9167, "loc": { "start": { - "line": 181, + "line": 189, "column": 2 }, "end": { - "line": 181, + "line": 189, "column": 46 } }, "callee": { "type": "MemberExpression", - "start": 8435, - "end": 8447, + "start": 9123, + "end": 9135, "loc": { "start": { - "line": 181, + "line": 189, "column": 2 }, "end": { - "line": 181, + "line": 189, "column": 14 } }, "object": { "type": "Identifier", - "start": 8435, - "end": 8441, + "start": 9123, + "end": 9129, "loc": { "start": { - "line": 181, + "line": 189, "column": 2 }, "end": { - "line": 181, + "line": 189, "column": 8 }, "identifierName": "logger" @@ -15926,15 +16182,15 @@ }, "property": { "type": "Identifier", - "start": 8442, - "end": 8447, + "start": 9130, + "end": 9135, "loc": { "start": { - "line": 181, + "line": 189, "column": 9 }, "end": { - "line": 181, + "line": 189, "column": 14 }, "identifierName": "debug" @@ -15946,15 +16202,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 8448, - "end": 8469, + "start": 9136, + "end": 9157, "loc": { "start": { - "line": 181, + "line": 189, "column": 15 }, "end": { - "line": 181, + "line": 189, "column": 36 } }, @@ -15966,15 +16222,15 @@ }, { "type": "Identifier", - "start": 8471, - "end": 8478, + "start": 9159, + "end": 9166, "loc": { "start": { - "line": 181, + "line": 189, "column": 38 }, "end": { - "line": 181, + "line": 189, "column": 45 }, "identifierName": "context" @@ -15986,71 +16242,71 @@ }, { "type": "ExpressionStatement", - "start": 8483, - "end": 8622, + "start": 9171, + "end": 9310, "loc": { "start": { - "line": 182, + "line": 190, "column": 2 }, "end": { - "line": 184, + "line": 192, "column": 5 } }, "expression": { "type": "CallExpression", - "start": 8483, - "end": 8621, + "start": 9171, + "end": 9309, "loc": { "start": { - "line": 182, + "line": 190, "column": 2 }, "end": { - "line": 184, + "line": 192, "column": 4 } }, "callee": { "type": "MemberExpression", - "start": 8483, - "end": 8508, + "start": 9171, + "end": 9196, "loc": { "start": { - "line": 182, + "line": 190, "column": 2 }, "end": { - "line": 182, + "line": 190, "column": 27 } }, "object": { "type": "MemberExpression", - "start": 8483, - "end": 8500, + "start": 9171, + "end": 9188, "loc": { "start": { - "line": 182, + "line": 190, "column": 2 }, "end": { - "line": 182, + "line": 190, "column": 19 } }, "object": { "type": "Identifier", - "start": 8483, - "end": 8490, + "start": 9171, + "end": 9178, "loc": { "start": { - "line": 182, + "line": 190, "column": 2 }, "end": { - "line": 182, + "line": 190, "column": 9 }, "identifierName": "context" @@ -16059,15 +16315,15 @@ }, "property": { "type": "Identifier", - "start": 8491, - "end": 8500, + "start": 9179, + "end": 9188, "loc": { "start": { - "line": 182, + "line": 190, "column": 10 }, "end": { - "line": 182, + "line": 190, "column": 19 }, "identifierName": "listeners" @@ -16078,15 +16334,15 @@ }, "property": { "type": "Identifier", - "start": 8501, - "end": 8508, + "start": 9189, + "end": 9196, "loc": { "start": { - "line": 182, + "line": 190, "column": 20 }, "end": { - "line": 182, + "line": 190, "column": 27 }, "identifierName": "forEach" @@ -16098,15 +16354,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 8509, - "end": 8620, + "start": 9197, + "end": 9308, "loc": { "start": { - "line": 182, + "line": 190, "column": 28 }, "end": { - "line": 184, + "line": 192, "column": 3 } }, @@ -16117,15 +16373,15 @@ "params": [ { "type": "Identifier", - "start": 8510, - "end": 8514, + "start": 9198, + "end": 9202, "loc": { "start": { - "line": 182, + "line": 190, "column": 29 }, "end": { - "line": 182, + "line": 190, "column": 33 }, "identifierName": "item" @@ -16135,86 +16391,86 @@ ], "body": { "type": "BlockStatement", - "start": 8519, - "end": 8620, + "start": 9207, + "end": 9308, "loc": { "start": { - "line": 182, + "line": 190, "column": 38 }, "end": { - "line": 184, + "line": 192, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 8525, - "end": 8616, + "start": 9213, + "end": 9304, "loc": { "start": { - "line": 183, + "line": 191, "column": 4 }, "end": { - "line": 183, + "line": 191, "column": 95 } }, "expression": { "type": "CallExpression", - "start": 8525, - "end": 8615, + "start": 9213, + "end": 9303, "loc": { "start": { - "line": 183, + "line": 191, "column": 4 }, "end": { - "line": 183, + "line": 191, "column": 94 } }, "callee": { "type": "MemberExpression", - "start": 8525, - "end": 8543, + "start": 9213, + "end": 9231, "loc": { "start": { - "line": 183, + "line": 191, "column": 4 }, "end": { - "line": 183, + "line": 191, "column": 22 } }, "object": { "type": "MemberExpression", - "start": 8525, - "end": 8535, + "start": 9213, + "end": 9223, "loc": { "start": { - "line": 183, + "line": 191, "column": 4 }, "end": { - "line": 183, + "line": 191, "column": 14 } }, "object": { "type": "Identifier", - "start": 8525, - "end": 8529, + "start": 9213, + "end": 9217, "loc": { "start": { - "line": 183, + "line": 191, "column": 4 }, "end": { - "line": 183, + "line": 191, "column": 8 }, "identifierName": "item" @@ -16223,15 +16479,15 @@ }, "property": { "type": "Identifier", - "start": 8530, - "end": 8535, + "start": 9218, + "end": 9223, "loc": { "start": { - "line": 183, + "line": 191, "column": 9 }, "end": { - "line": 183, + "line": 191, "column": 14 }, "identifierName": "types" @@ -16242,15 +16498,15 @@ }, "property": { "type": "Identifier", - "start": 8536, - "end": 8543, + "start": 9224, + "end": 9231, "loc": { "start": { - "line": 183, + "line": 191, "column": 15 }, "end": { - "line": 183, + "line": 191, "column": 22 }, "identifierName": "forEach" @@ -16262,15 +16518,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 8544, - "end": 8614, + "start": 9232, + "end": 9302, "loc": { "start": { - "line": 183, + "line": 191, "column": 23 }, "end": { - "line": 183, + "line": 191, "column": 93 } }, @@ -16281,15 +16537,15 @@ "params": [ { "type": "Identifier", - "start": 8544, - "end": 8548, + "start": 9232, + "end": 9236, "loc": { "start": { - "line": 183, + "line": 191, "column": 23 }, "end": { - "line": 183, + "line": 191, "column": 27 }, "identifierName": "type" @@ -16299,43 +16555,43 @@ ], "body": { "type": "CallExpression", - "start": 8552, - "end": 8614, + "start": 9240, + "end": 9302, "loc": { "start": { - "line": 183, + "line": 191, "column": 31 }, "end": { - "line": 183, + "line": 191, "column": 93 } }, "callee": { "type": "MemberExpression", - "start": 8552, - "end": 8576, + "start": 9240, + "end": 9264, "loc": { "start": { - "line": 183, + "line": 191, "column": 31 }, "end": { - "line": 183, + "line": 191, "column": 55 } }, "object": { "type": "Identifier", - "start": 8552, - "end": 8559, + "start": 9240, + "end": 9247, "loc": { "start": { - "line": 183, + "line": 191, "column": 31 }, "end": { - "line": 183, + "line": 191, "column": 38 }, "identifierName": "element" @@ -16344,15 +16600,15 @@ }, "property": { "type": "Identifier", - "start": 8560, - "end": 8576, + "start": 9248, + "end": 9264, "loc": { "start": { - "line": 183, + "line": 191, "column": 39 }, "end": { - "line": 183, + "line": 191, "column": 55 }, "identifierName": "addEventListener" @@ -16364,15 +16620,15 @@ "arguments": [ { "type": "Identifier", - "start": 8577, - "end": 8581, + "start": 9265, + "end": 9269, "loc": { "start": { - "line": 183, + "line": 191, "column": 56 }, "end": { - "line": 183, + "line": 191, "column": 60 }, "identifierName": "type" @@ -16381,29 +16637,29 @@ }, { "type": "MemberExpression", - "start": 8583, - "end": 8596, + "start": 9271, + "end": 9284, "loc": { "start": { - "line": 183, + "line": 191, "column": 62 }, "end": { - "line": 183, + "line": 191, "column": 75 } }, "object": { "type": "Identifier", - "start": 8583, - "end": 8587, + "start": 9271, + "end": 9275, "loc": { "start": { - "line": 183, + "line": 191, "column": 62 }, "end": { - "line": 183, + "line": 191, "column": 66 }, "identifierName": "item" @@ -16412,15 +16668,15 @@ }, "property": { "type": "Identifier", - "start": 8588, - "end": 8596, + "start": 9276, + "end": 9284, "loc": { "start": { - "line": 183, + "line": 191, "column": 67 }, "end": { - "line": 183, + "line": 191, "column": 75 }, "identifierName": "listener" @@ -16431,29 +16687,29 @@ }, { "type": "MemberExpression", - "start": 8598, - "end": 8613, + "start": 9286, + "end": 9301, "loc": { "start": { - "line": 183, + "line": 191, "column": 77 }, "end": { - "line": 183, + "line": 191, "column": 92 } }, "object": { "type": "Identifier", - "start": 8598, - "end": 8605, + "start": 9286, + "end": 9293, "loc": { "start": { - "line": 183, + "line": 191, "column": 77 }, "end": { - "line": 183, + "line": 191, "column": 84 }, "identifierName": "context" @@ -16462,15 +16718,15 @@ }, "property": { "type": "Identifier", - "start": 8606, - "end": 8613, + "start": 9294, + "end": 9301, "loc": { "start": { - "line": 183, + "line": 191, "column": 85 }, "end": { - "line": 183, + "line": 191, "column": 92 }, "identifierName": "options" @@ -16494,29 +16750,29 @@ }, { "type": "ReturnStatement", - "start": 8625, - "end": 8640, + "start": 9313, + "end": 9328, "loc": { "start": { - "line": 185, + "line": 193, "column": 2 }, "end": { - "line": 185, + "line": 193, "column": 17 } }, "argument": { "type": "Identifier", - "start": 8632, - "end": 8639, + "start": 9320, + "end": 9327, "loc": { "start": { - "line": 185, + "line": 193, "column": 9 }, "end": { - "line": 185, + "line": 193, "column": 16 }, "identifierName": "context" @@ -16568,15 +16824,15 @@ }, { "type": "ExportNamedDeclaration", - "start": 8644, - "end": 8881, + "start": 9332, + "end": 9569, "loc": { "start": { - "line": 188, + "line": 196, "column": 0 }, "end": { - "line": 193, + "line": 201, "column": 1 } }, @@ -16584,29 +16840,29 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 8651, - "end": 8881, + "start": 9339, + "end": 9569, "loc": { "start": { - "line": 188, + "line": 196, "column": 7 }, "end": { - "line": 193, + "line": 201, "column": 1 } }, "id": { "type": "Identifier", - "start": 8660, - "end": 8666, + "start": 9348, + "end": 9354, "loc": { "start": { - "line": 188, + "line": 196, "column": 16 }, "end": { - "line": 188, + "line": 196, "column": 22 }, "identifierName": "detach" @@ -16619,15 +16875,15 @@ "params": [ { "type": "Identifier", - "start": 8667, - "end": 8674, + "start": 9355, + "end": 9362, "loc": { "start": { - "line": 188, + "line": 196, "column": 23 }, "end": { - "line": 188, + "line": 196, "column": 30 }, "identifierName": "element" @@ -16636,15 +16892,15 @@ }, { "type": "Identifier", - "start": 8676, - "end": 8683, + "start": 9364, + "end": 9371, "loc": { "start": { - "line": 188, + "line": 196, "column": 32 }, "end": { - "line": 188, + "line": 196, "column": 39 }, "identifierName": "context" @@ -16654,72 +16910,72 @@ ], "body": { "type": "BlockStatement", - "start": 8685, - "end": 8881, + "start": 9373, + "end": 9569, "loc": { "start": { - "line": 188, + "line": 196, "column": 41 }, "end": { - "line": 193, + "line": 201, "column": 1 } }, "body": [ { "type": "ExpressionStatement", - "start": 8689, - "end": 8734, + "start": 9377, + "end": 9422, "loc": { "start": { - "line": 189, + "line": 197, "column": 2 }, "end": { - "line": 189, + "line": 197, "column": 47 } }, "expression": { "type": "CallExpression", - "start": 8689, - "end": 8733, + "start": 9377, + "end": 9421, "loc": { "start": { - "line": 189, + "line": 197, "column": 2 }, "end": { - "line": 189, + "line": 197, "column": 46 } }, "callee": { "type": "MemberExpression", - "start": 8689, - "end": 8701, + "start": 9377, + "end": 9389, "loc": { "start": { - "line": 189, + "line": 197, "column": 2 }, "end": { - "line": 189, + "line": 197, "column": 14 } }, "object": { "type": "Identifier", - "start": 8689, - "end": 8695, + "start": 9377, + "end": 9383, "loc": { "start": { - "line": 189, + "line": 197, "column": 2 }, "end": { - "line": 189, + "line": 197, "column": 8 }, "identifierName": "logger" @@ -16728,15 +16984,15 @@ }, "property": { "type": "Identifier", - "start": 8696, - "end": 8701, + "start": 9384, + "end": 9389, "loc": { "start": { - "line": 189, + "line": 197, "column": 9 }, "end": { - "line": 189, + "line": 197, "column": 14 }, "identifierName": "debug" @@ -16748,15 +17004,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 8702, - "end": 8723, + "start": 9390, + "end": 9411, "loc": { "start": { - "line": 189, + "line": 197, "column": 15 }, "end": { - "line": 189, + "line": 197, "column": 36 } }, @@ -16768,15 +17024,15 @@ }, { "type": "Identifier", - "start": 8725, - "end": 8732, + "start": 9413, + "end": 9420, "loc": { "start": { - "line": 189, + "line": 197, "column": 38 }, "end": { - "line": 189, + "line": 197, "column": 45 }, "identifierName": "context" @@ -16788,71 +17044,71 @@ }, { "type": "ExpressionStatement", - "start": 8737, - "end": 8879, + "start": 9425, + "end": 9567, "loc": { "start": { - "line": 190, + "line": 198, "column": 2 }, "end": { - "line": 192, + "line": 200, "column": 5 } }, "expression": { "type": "CallExpression", - "start": 8737, - "end": 8878, + "start": 9425, + "end": 9566, "loc": { "start": { - "line": 190, + "line": 198, "column": 2 }, "end": { - "line": 192, + "line": 200, "column": 4 } }, "callee": { "type": "MemberExpression", - "start": 8737, - "end": 8762, + "start": 9425, + "end": 9450, "loc": { "start": { - "line": 190, + "line": 198, "column": 2 }, "end": { - "line": 190, + "line": 198, "column": 27 } }, "object": { "type": "MemberExpression", - "start": 8737, - "end": 8754, + "start": 9425, + "end": 9442, "loc": { "start": { - "line": 190, + "line": 198, "column": 2 }, "end": { - "line": 190, + "line": 198, "column": 19 } }, "object": { "type": "Identifier", - "start": 8737, - "end": 8744, + "start": 9425, + "end": 9432, "loc": { "start": { - "line": 190, + "line": 198, "column": 2 }, "end": { - "line": 190, + "line": 198, "column": 9 }, "identifierName": "context" @@ -16861,15 +17117,15 @@ }, "property": { "type": "Identifier", - "start": 8745, - "end": 8754, + "start": 9433, + "end": 9442, "loc": { "start": { - "line": 190, + "line": 198, "column": 10 }, "end": { - "line": 190, + "line": 198, "column": 19 }, "identifierName": "listeners" @@ -16880,15 +17136,15 @@ }, "property": { "type": "Identifier", - "start": 8755, - "end": 8762, + "start": 9443, + "end": 9450, "loc": { "start": { - "line": 190, + "line": 198, "column": 20 }, "end": { - "line": 190, + "line": 198, "column": 27 }, "identifierName": "forEach" @@ -16900,15 +17156,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 8763, - "end": 8877, + "start": 9451, + "end": 9565, "loc": { "start": { - "line": 190, + "line": 198, "column": 28 }, "end": { - "line": 192, + "line": 200, "column": 3 } }, @@ -16919,15 +17175,15 @@ "params": [ { "type": "Identifier", - "start": 8764, - "end": 8768, + "start": 9452, + "end": 9456, "loc": { "start": { - "line": 190, + "line": 198, "column": 29 }, "end": { - "line": 190, + "line": 198, "column": 33 }, "identifierName": "item" @@ -16937,86 +17193,86 @@ ], "body": { "type": "BlockStatement", - "start": 8773, - "end": 8877, + "start": 9461, + "end": 9565, "loc": { "start": { - "line": 190, + "line": 198, "column": 38 }, "end": { - "line": 192, + "line": 200, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 8779, - "end": 8873, + "start": 9467, + "end": 9561, "loc": { "start": { - "line": 191, + "line": 199, "column": 4 }, "end": { - "line": 191, + "line": 199, "column": 98 } }, "expression": { "type": "CallExpression", - "start": 8779, - "end": 8872, + "start": 9467, + "end": 9560, "loc": { "start": { - "line": 191, + "line": 199, "column": 4 }, "end": { - "line": 191, + "line": 199, "column": 97 } }, "callee": { "type": "MemberExpression", - "start": 8779, - "end": 8797, + "start": 9467, + "end": 9485, "loc": { "start": { - "line": 191, + "line": 199, "column": 4 }, "end": { - "line": 191, + "line": 199, "column": 22 } }, "object": { "type": "MemberExpression", - "start": 8779, - "end": 8789, + "start": 9467, + "end": 9477, "loc": { "start": { - "line": 191, + "line": 199, "column": 4 }, "end": { - "line": 191, + "line": 199, "column": 14 } }, "object": { "type": "Identifier", - "start": 8779, - "end": 8783, + "start": 9467, + "end": 9471, "loc": { "start": { - "line": 191, + "line": 199, "column": 4 }, "end": { - "line": 191, + "line": 199, "column": 8 }, "identifierName": "item" @@ -17025,15 +17281,15 @@ }, "property": { "type": "Identifier", - "start": 8784, - "end": 8789, + "start": 9472, + "end": 9477, "loc": { "start": { - "line": 191, + "line": 199, "column": 9 }, "end": { - "line": 191, + "line": 199, "column": 14 }, "identifierName": "types" @@ -17044,15 +17300,15 @@ }, "property": { "type": "Identifier", - "start": 8790, - "end": 8797, + "start": 9478, + "end": 9485, "loc": { "start": { - "line": 191, + "line": 199, "column": 15 }, "end": { - "line": 191, + "line": 199, "column": 22 }, "identifierName": "forEach" @@ -17064,15 +17320,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 8798, - "end": 8871, + "start": 9486, + "end": 9559, "loc": { "start": { - "line": 191, + "line": 199, "column": 23 }, "end": { - "line": 191, + "line": 199, "column": 96 } }, @@ -17083,15 +17339,15 @@ "params": [ { "type": "Identifier", - "start": 8798, - "end": 8802, + "start": 9486, + "end": 9490, "loc": { "start": { - "line": 191, + "line": 199, "column": 23 }, "end": { - "line": 191, + "line": 199, "column": 27 }, "identifierName": "type" @@ -17101,43 +17357,43 @@ ], "body": { "type": "CallExpression", - "start": 8806, - "end": 8871, + "start": 9494, + "end": 9559, "loc": { "start": { - "line": 191, + "line": 199, "column": 31 }, "end": { - "line": 191, + "line": 199, "column": 96 } }, "callee": { "type": "MemberExpression", - "start": 8806, - "end": 8833, + "start": 9494, + "end": 9521, "loc": { "start": { - "line": 191, + "line": 199, "column": 31 }, "end": { - "line": 191, + "line": 199, "column": 58 } }, "object": { "type": "Identifier", - "start": 8806, - "end": 8813, + "start": 9494, + "end": 9501, "loc": { "start": { - "line": 191, + "line": 199, "column": 31 }, "end": { - "line": 191, + "line": 199, "column": 38 }, "identifierName": "element" @@ -17146,15 +17402,15 @@ }, "property": { "type": "Identifier", - "start": 8814, - "end": 8833, + "start": 9502, + "end": 9521, "loc": { "start": { - "line": 191, + "line": 199, "column": 39 }, "end": { - "line": 191, + "line": 199, "column": 58 }, "identifierName": "removeEventListener" @@ -17166,15 +17422,15 @@ "arguments": [ { "type": "Identifier", - "start": 8834, - "end": 8838, + "start": 9522, + "end": 9526, "loc": { "start": { - "line": 191, + "line": 199, "column": 59 }, "end": { - "line": 191, + "line": 199, "column": 63 }, "identifierName": "type" @@ -17183,29 +17439,29 @@ }, { "type": "MemberExpression", - "start": 8840, - "end": 8853, + "start": 9528, + "end": 9541, "loc": { "start": { - "line": 191, + "line": 199, "column": 65 }, "end": { - "line": 191, + "line": 199, "column": 78 } }, "object": { "type": "Identifier", - "start": 8840, - "end": 8844, + "start": 9528, + "end": 9532, "loc": { "start": { - "line": 191, + "line": 199, "column": 65 }, "end": { - "line": 191, + "line": 199, "column": 69 }, "identifierName": "item" @@ -17214,15 +17470,15 @@ }, "property": { "type": "Identifier", - "start": 8845, - "end": 8853, + "start": 9533, + "end": 9541, "loc": { "start": { - "line": 191, + "line": 199, "column": 70 }, "end": { - "line": 191, + "line": 199, "column": 78 }, "identifierName": "listener" @@ -17233,29 +17489,29 @@ }, { "type": "MemberExpression", - "start": 8855, - "end": 8870, + "start": 9543, + "end": 9558, "loc": { "start": { - "line": 191, + "line": 199, "column": 80 }, "end": { - "line": 191, + "line": 199, "column": 95 } }, "object": { "type": "Identifier", - "start": 8855, - "end": 8862, + "start": 9543, + "end": 9550, "loc": { "start": { - "line": 191, + "line": 199, "column": 80 }, "end": { - "line": 191, + "line": 199, "column": 87 }, "identifierName": "context" @@ -17264,15 +17520,15 @@ }, "property": { "type": "Identifier", - "start": 8863, - "end": 8870, + "start": 9551, + "end": 9558, "loc": { "start": { - "line": 191, + "line": 199, "column": 88 }, "end": { - "line": 191, + "line": 199, "column": 95 }, "identifierName": "options" @@ -17515,9 +17771,25 @@ }, { "type": "CommentLine", - "value": " Check if pointer didn't stay in the smartguide and pointer exited the smartguide or scrollbar", - "start": 7039, - "end": 7135, + "value": " Use case : when the pointer is entering the smartguide or scrollbar, a pointerout (or leave) is fired.", + "start": 6868, + "end": 6973, + "loc": { + "start": { + "line": 151, + "column": 4 + }, + "end": { + "line": 151, + "column": 109 + } + } + }, + { + "type": "CommentLine", + "value": " The related target is then the DOM element that was left.", + "start": 6978, + "end": 7038, "loc": { "start": { "line": 152, @@ -17525,38 +17797,150 @@ }, "end": { "line": 152, + "column": 64 + } + } + }, + { + "type": "CommentLine", + "value": " We don't want this to cause editor.pointerUp because the stroke isn't finished.", + "start": 7043, + "end": 7125, + "loc": { + "start": { + "line": 153, + "column": 4 + }, + "end": { + "line": 153, + "column": 86 + } + } + }, + { + "type": "CommentLine", + "value": " Check if pointer didn't stay in the smartguide and pointer exited the smartguide or scrollbar", + "start": 7301, + "end": 7397, + "loc": { + "start": { + "line": 155, + "column": 4 + }, + "end": { + "line": 155, "column": 100 } } }, + { + "type": "CommentLine", + "value": " Use case : when the pointer is leaving the smartguide or scrollbar, a pointerout (or leave) is fired.", + "start": 7402, + "end": 7506, + "loc": { + "start": { + "line": 156, + "column": 4 + }, + "end": { + "line": 156, + "column": 108 + } + } + }, + { + "type": "CommentLine", + "value": " The related target is then the DOM element that was left (the smart guide)", + "start": 7511, + "end": 7588, + "loc": { + "start": { + "line": 157, + "column": 4 + }, + "end": { + "line": 157, + "column": 81 + } + } + }, + { + "type": "CommentLine", + "value": " We are entering again the editor", + "start": 7593, + "end": 7628, + "loc": { + "start": { + "line": 158, + "column": 4 + }, + "end": { + "line": 158, + "column": 39 + } + } + }, + { + "type": "CommentLine", + "value": " We don't want this to cause editor.pointerUp because the stroke isn't finished.", + "start": 7633, + "end": 7715, + "loc": { + "start": { + "line": 159, + "column": 4 + }, + "end": { + "line": 159, + "column": 86 + } + } + }, { "type": "CommentLine", "value": " Check if pointer moved between words in smartguide", - "start": 7310, - "end": 7363, + "start": 7890, + "end": 7943, "loc": { "start": { - "line": 154, + "line": 161, "column": 4 }, "end": { - "line": 154, + "line": 161, "column": 57 } } }, + { + "type": "CommentLine", + "value": " Same use case as pointerEnteredSmartGuide but for the words in the smartguide (each word is a span).", + "start": 7948, + "end": 8051, + "loc": { + "start": { + "line": 162, + "column": 4 + }, + "end": { + "line": 162, + "column": 107 + } + } + }, { "type": "CommentLine", "value": " Only considering the active pointer", - "start": 7710, - "end": 7748, + "start": 8398, + "end": 8436, "loc": { "start": { - "line": 158, + "line": 166, "column": 95 }, "end": { - "line": 158, + "line": 166, "column": 133 } } @@ -17564,15 +17948,15 @@ { "type": "CommentLine", "value": " Managing the active pointer", - "start": 7789, - "end": 7819, + "start": 8477, + "end": 8507, "loc": { "start": { - "line": 159, + "line": 167, "column": 40 }, "end": { - "line": 159, + "line": 167, "column": 70 } } @@ -41985,6 +42369,54 @@ } } }, + { + "type": "CommentLine", + "value": " Use case : when the pointer is entering the smartguide or scrollbar, a pointerout (or leave) is fired.", + "start": 6868, + "end": 6973, + "loc": { + "start": { + "line": 151, + "column": 4 + }, + "end": { + "line": 151, + "column": 109 + } + } + }, + { + "type": "CommentLine", + "value": " The related target is then the DOM element that was left.", + "start": 6978, + "end": 7038, + "loc": { + "start": { + "line": 152, + "column": 4 + }, + "end": { + "line": 152, + "column": 64 + } + } + }, + { + "type": "CommentLine", + "value": " We don't want this to cause editor.pointerUp because the stroke isn't finished.", + "start": 7043, + "end": 7125, + "loc": { + "start": { + "line": 153, + "column": 4 + }, + "end": { + "line": 153, + "column": 86 + } + } + }, { "type": { "label": "const", @@ -42000,15 +42432,15 @@ "updateContext": null }, "value": "const", - "start": 6868, - "end": 6873, + "start": 7130, + "end": 7135, "loc": { "start": { - "line": 151, + "line": 154, "column": 4 }, "end": { - "line": 151, + "line": 154, "column": 9 } } @@ -42026,15 +42458,15 @@ "binop": null }, "value": "pointerEnteredSmartGuide", - "start": 6874, - "end": 6898, + "start": 7136, + "end": 7160, "loc": { "start": { - "line": 151, + "line": 154, "column": 10 }, "end": { - "line": 151, + "line": 154, "column": 34 } } @@ -42053,15 +42485,15 @@ "updateContext": null }, "value": "=", - "start": 6899, - "end": 6900, + "start": 7161, + "end": 7162, "loc": { "start": { - "line": 151, + "line": 154, "column": 35 }, "end": { - "line": 151, + "line": 154, "column": 36 } } @@ -42079,15 +42511,15 @@ "binop": null }, "value": "evt", - "start": 6901, - "end": 6904, + "start": 7163, + "end": 7166, "loc": { "start": { - "line": 151, + "line": 154, "column": 37 }, "end": { - "line": 151, + "line": 154, "column": 40 } } @@ -42105,15 +42537,15 @@ "binop": null, "updateContext": null }, - "start": 6904, - "end": 6905, + "start": 7166, + "end": 7167, "loc": { "start": { - "line": 151, + "line": 154, "column": 40 }, "end": { - "line": 151, + "line": 154, "column": 41 } } @@ -42131,15 +42563,15 @@ "binop": null }, "value": "relatedTarget", - "start": 6905, - "end": 6918, + "start": 7167, + "end": 7180, "loc": { "start": { - "line": 151, + "line": 154, "column": 41 }, "end": { - "line": 151, + "line": 154, "column": 54 } } @@ -42158,15 +42590,15 @@ "updateContext": null }, "value": "&&", - "start": 6919, - "end": 6921, + "start": 7181, + "end": 7183, "loc": { "start": { - "line": 151, + "line": 154, "column": 55 }, "end": { - "line": 151, + "line": 154, "column": 57 } } @@ -42183,15 +42615,15 @@ "postfix": false, "binop": null }, - "start": 6922, - "end": 6923, + "start": 7184, + "end": 7185, "loc": { "start": { - "line": 151, + "line": 154, "column": 58 }, "end": { - "line": 151, + "line": 154, "column": 59 } } @@ -42209,15 +42641,15 @@ "binop": null }, "value": "smartGuideIds", - "start": 6923, - "end": 6936, + "start": 7185, + "end": 7198, "loc": { "start": { - "line": 151, + "line": 154, "column": 59 }, "end": { - "line": 151, + "line": 154, "column": 72 } } @@ -42235,15 +42667,15 @@ "binop": null, "updateContext": null }, - "start": 6936, - "end": 6937, + "start": 7198, + "end": 7199, "loc": { "start": { - "line": 151, + "line": 154, "column": 72 }, "end": { - "line": 151, + "line": 154, "column": 73 } } @@ -42261,15 +42693,15 @@ "binop": null }, "value": "includes", - "start": 6937, - "end": 6945, + "start": 7199, + "end": 7207, "loc": { "start": { - "line": 151, + "line": 154, "column": 73 }, "end": { - "line": 151, + "line": 154, "column": 81 } } @@ -42286,15 +42718,15 @@ "postfix": false, "binop": null }, - "start": 6945, - "end": 6946, + "start": 7207, + "end": 7208, "loc": { "start": { - "line": 151, + "line": 154, "column": 81 }, "end": { - "line": 151, + "line": 154, "column": 82 } } @@ -42312,15 +42744,15 @@ "binop": null }, "value": "evt", - "start": 6946, - "end": 6949, + "start": 7208, + "end": 7211, "loc": { "start": { - "line": 151, + "line": 154, "column": 82 }, "end": { - "line": 151, + "line": 154, "column": 85 } } @@ -42338,15 +42770,15 @@ "binop": null, "updateContext": null }, - "start": 6949, - "end": 6950, + "start": 7211, + "end": 7212, "loc": { "start": { - "line": 151, + "line": 154, "column": 85 }, "end": { - "line": 151, + "line": 154, "column": 86 } } @@ -42364,15 +42796,15 @@ "binop": null }, "value": "relatedTarget", - "start": 6950, - "end": 6963, + "start": 7212, + "end": 7225, "loc": { "start": { - "line": 151, + "line": 154, "column": 86 }, "end": { - "line": 151, + "line": 154, "column": 99 } } @@ -42390,15 +42822,15 @@ "binop": null, "updateContext": null }, - "start": 6963, - "end": 6964, + "start": 7225, + "end": 7226, "loc": { "start": { - "line": 151, + "line": 154, "column": 99 }, "end": { - "line": 151, + "line": 154, "column": 100 } } @@ -42416,15 +42848,15 @@ "binop": null }, "value": "className", - "start": 6964, - "end": 6973, + "start": 7226, + "end": 7235, "loc": { "start": { - "line": 151, + "line": 154, "column": 100 }, "end": { - "line": 151, + "line": 154, "column": 109 } } @@ -42441,15 +42873,15 @@ "postfix": false, "binop": null }, - "start": 6973, - "end": 6974, + "start": 7235, + "end": 7236, "loc": { "start": { - "line": 151, + "line": 154, "column": 109 }, "end": { - "line": 151, + "line": 154, "column": 110 } } @@ -42468,15 +42900,15 @@ "updateContext": null }, "value": "||", - "start": 6975, - "end": 6977, + "start": 7237, + "end": 7239, "loc": { "start": { - "line": 151, + "line": 154, "column": 111 }, "end": { - "line": 151, + "line": 154, "column": 113 } } @@ -42494,15 +42926,15 @@ "binop": null }, "value": "scrollbarClasses", - "start": 6978, - "end": 6994, + "start": 7240, + "end": 7256, "loc": { "start": { - "line": 151, + "line": 154, "column": 114 }, "end": { - "line": 151, + "line": 154, "column": 130 } } @@ -42520,15 +42952,15 @@ "binop": null, "updateContext": null }, - "start": 6994, - "end": 6995, + "start": 7256, + "end": 7257, "loc": { "start": { - "line": 151, + "line": 154, "column": 130 }, "end": { - "line": 151, + "line": 154, "column": 131 } } @@ -42546,15 +42978,15 @@ "binop": null }, "value": "includes", - "start": 6995, - "end": 7003, + "start": 7257, + "end": 7265, "loc": { "start": { - "line": 151, + "line": 154, "column": 131 }, "end": { - "line": 151, + "line": 154, "column": 139 } } @@ -42571,15 +43003,15 @@ "postfix": false, "binop": null }, - "start": 7003, - "end": 7004, + "start": 7265, + "end": 7266, "loc": { "start": { - "line": 151, + "line": 154, "column": 139 }, "end": { - "line": 151, + "line": 154, "column": 140 } } @@ -42597,15 +43029,15 @@ "binop": null }, "value": "evt", - "start": 7004, - "end": 7007, + "start": 7266, + "end": 7269, "loc": { "start": { - "line": 151, + "line": 154, "column": 140 }, "end": { - "line": 151, + "line": 154, "column": 143 } } @@ -42623,15 +43055,15 @@ "binop": null, "updateContext": null }, - "start": 7007, - "end": 7008, + "start": 7269, + "end": 7270, "loc": { "start": { - "line": 151, + "line": 154, "column": 143 }, "end": { - "line": 151, + "line": 154, "column": 144 } } @@ -42649,15 +43081,15 @@ "binop": null }, "value": "relatedTarget", - "start": 7008, - "end": 7021, + "start": 7270, + "end": 7283, "loc": { "start": { - "line": 151, + "line": 154, "column": 144 }, "end": { - "line": 151, + "line": 154, "column": 157 } } @@ -42675,15 +43107,15 @@ "binop": null, "updateContext": null }, - "start": 7021, - "end": 7022, + "start": 7283, + "end": 7284, "loc": { "start": { - "line": 151, + "line": 154, "column": 157 }, "end": { - "line": 151, + "line": 154, "column": 158 } } @@ -42701,15 +43133,15 @@ "binop": null }, "value": "className", - "start": 7022, - "end": 7031, + "start": 7284, + "end": 7293, "loc": { "start": { - "line": 151, + "line": 154, "column": 158 }, "end": { - "line": 151, + "line": 154, "column": 167 } } @@ -42726,15 +43158,15 @@ "postfix": false, "binop": null }, - "start": 7031, - "end": 7032, + "start": 7293, + "end": 7294, "loc": { "start": { - "line": 151, + "line": 154, "column": 167 }, "end": { - "line": 151, + "line": 154, "column": 168 } } @@ -42751,15 +43183,15 @@ "postfix": false, "binop": null }, - "start": 7032, - "end": 7033, + "start": 7294, + "end": 7295, "loc": { "start": { - "line": 151, + "line": 154, "column": 168 }, "end": { - "line": 151, + "line": 154, "column": 169 } } @@ -42777,15 +43209,15 @@ "binop": null, "updateContext": null }, - "start": 7033, - "end": 7034, + "start": 7295, + "end": 7296, "loc": { "start": { - "line": 151, + "line": 154, "column": 169 }, "end": { - "line": 151, + "line": 154, "column": 170 } } @@ -42793,19 +43225,83 @@ { "type": "CommentLine", "value": " Check if pointer didn't stay in the smartguide and pointer exited the smartguide or scrollbar", - "start": 7039, - "end": 7135, + "start": 7301, + "end": 7397, "loc": { "start": { - "line": 152, + "line": 155, "column": 4 }, "end": { - "line": 152, + "line": 155, "column": 100 } } }, + { + "type": "CommentLine", + "value": " Use case : when the pointer is leaving the smartguide or scrollbar, a pointerout (or leave) is fired.", + "start": 7402, + "end": 7506, + "loc": { + "start": { + "line": 156, + "column": 4 + }, + "end": { + "line": 156, + "column": 108 + } + } + }, + { + "type": "CommentLine", + "value": " The related target is then the DOM element that was left (the smart guide)", + "start": 7511, + "end": 7588, + "loc": { + "start": { + "line": 157, + "column": 4 + }, + "end": { + "line": 157, + "column": 81 + } + } + }, + { + "type": "CommentLine", + "value": " We are entering again the editor", + "start": 7593, + "end": 7628, + "loc": { + "start": { + "line": 158, + "column": 4 + }, + "end": { + "line": 158, + "column": 39 + } + } + }, + { + "type": "CommentLine", + "value": " We don't want this to cause editor.pointerUp because the stroke isn't finished.", + "start": 7633, + "end": 7715, + "loc": { + "start": { + "line": 159, + "column": 4 + }, + "end": { + "line": 159, + "column": 86 + } + } + }, { "type": { "label": "const", @@ -42821,15 +43317,15 @@ "updateContext": null }, "value": "const", - "start": 7140, - "end": 7145, + "start": 7720, + "end": 7725, "loc": { "start": { - "line": 153, + "line": 160, "column": 4 }, "end": { - "line": 153, + "line": 160, "column": 9 } } @@ -42847,15 +43343,15 @@ "binop": null }, "value": "pointerExitedSmartGuide", - "start": 7146, - "end": 7169, + "start": 7726, + "end": 7749, "loc": { "start": { - "line": 153, + "line": 160, "column": 10 }, "end": { - "line": 153, + "line": 160, "column": 33 } } @@ -42874,15 +43370,15 @@ "updateContext": null }, "value": "=", - "start": 7170, - "end": 7171, + "start": 7750, + "end": 7751, "loc": { "start": { - "line": 153, + "line": 160, "column": 34 }, "end": { - "line": 153, + "line": 160, "column": 35 } } @@ -42900,15 +43396,15 @@ "binop": null }, "value": "evt", - "start": 7172, - "end": 7175, + "start": 7752, + "end": 7755, "loc": { "start": { - "line": 153, + "line": 160, "column": 36 }, "end": { - "line": 153, + "line": 160, "column": 39 } } @@ -42926,15 +43422,15 @@ "binop": null, "updateContext": null }, - "start": 7175, - "end": 7176, + "start": 7755, + "end": 7756, "loc": { "start": { - "line": 153, + "line": 160, "column": 39 }, "end": { - "line": 153, + "line": 160, "column": 40 } } @@ -42952,15 +43448,15 @@ "binop": null }, "value": "relatedTarget", - "start": 7176, - "end": 7189, + "start": 7756, + "end": 7769, "loc": { "start": { - "line": 153, + "line": 160, "column": 40 }, "end": { - "line": 153, + "line": 160, "column": 53 } } @@ -42979,15 +43475,15 @@ "updateContext": null }, "value": "&&", - "start": 7190, - "end": 7192, + "start": 7770, + "end": 7772, "loc": { "start": { - "line": 153, + "line": 160, "column": 54 }, "end": { - "line": 153, + "line": 160, "column": 56 } } @@ -43005,15 +43501,15 @@ "binop": null }, "value": "evt", - "start": 7193, - "end": 7196, + "start": 7773, + "end": 7776, "loc": { "start": { - "line": 153, + "line": 160, "column": 57 }, "end": { - "line": 153, + "line": 160, "column": 60 } } @@ -43031,15 +43527,15 @@ "binop": null, "updateContext": null }, - "start": 7196, - "end": 7197, + "start": 7776, + "end": 7777, "loc": { "start": { - "line": 153, + "line": 160, "column": 60 }, "end": { - "line": 153, + "line": 160, "column": 61 } } @@ -43057,15 +43553,15 @@ "binop": null }, "value": "target", - "start": 7197, - "end": 7203, + "start": 7777, + "end": 7783, "loc": { "start": { - "line": 153, + "line": 160, "column": 61 }, "end": { - "line": 153, + "line": 160, "column": 67 } } @@ -43084,15 +43580,15 @@ "updateContext": null }, "value": "&&", - "start": 7204, - "end": 7206, + "start": 7784, + "end": 7786, "loc": { "start": { - "line": 153, + "line": 160, "column": 68 }, "end": { - "line": 153, + "line": 160, "column": 70 } } @@ -43109,15 +43605,15 @@ "postfix": false, "binop": null }, - "start": 7207, - "end": 7208, + "start": 7787, + "end": 7788, "loc": { "start": { - "line": 153, + "line": 160, "column": 71 }, "end": { - "line": 153, + "line": 160, "column": 72 } } @@ -43135,15 +43631,15 @@ "binop": null }, "value": "smartGuideIds", - "start": 7208, - "end": 7221, + "start": 7788, + "end": 7801, "loc": { "start": { - "line": 153, + "line": 160, "column": 72 }, "end": { - "line": 153, + "line": 160, "column": 85 } } @@ -43161,15 +43657,15 @@ "binop": null, "updateContext": null }, - "start": 7221, - "end": 7222, + "start": 7801, + "end": 7802, "loc": { "start": { - "line": 153, + "line": 160, "column": 85 }, "end": { - "line": 153, + "line": 160, "column": 86 } } @@ -43187,15 +43683,15 @@ "binop": null }, "value": "includes", - "start": 7222, - "end": 7230, + "start": 7802, + "end": 7810, "loc": { "start": { - "line": 153, + "line": 160, "column": 86 }, "end": { - "line": 153, + "line": 160, "column": 94 } } @@ -43212,15 +43708,15 @@ "postfix": false, "binop": null }, - "start": 7230, - "end": 7231, + "start": 7810, + "end": 7811, "loc": { "start": { - "line": 153, + "line": 160, "column": 94 }, "end": { - "line": 153, + "line": 160, "column": 95 } } @@ -43238,15 +43734,15 @@ "binop": null }, "value": "evt", - "start": 7231, - "end": 7234, + "start": 7811, + "end": 7814, "loc": { "start": { - "line": 153, + "line": 160, "column": 95 }, "end": { - "line": 153, + "line": 160, "column": 98 } } @@ -43264,15 +43760,15 @@ "binop": null, "updateContext": null }, - "start": 7234, - "end": 7235, + "start": 7814, + "end": 7815, "loc": { "start": { - "line": 153, + "line": 160, "column": 98 }, "end": { - "line": 153, + "line": 160, "column": 99 } } @@ -43290,15 +43786,15 @@ "binop": null }, "value": "target", - "start": 7235, - "end": 7241, + "start": 7815, + "end": 7821, "loc": { "start": { - "line": 153, + "line": 160, "column": 99 }, "end": { - "line": 153, + "line": 160, "column": 105 } } @@ -43316,15 +43812,15 @@ "binop": null, "updateContext": null }, - "start": 7241, - "end": 7242, + "start": 7821, + "end": 7822, "loc": { "start": { - "line": 153, + "line": 160, "column": 105 }, "end": { - "line": 153, + "line": 160, "column": 106 } } @@ -43342,15 +43838,15 @@ "binop": null }, "value": "className", - "start": 7242, - "end": 7251, + "start": 7822, + "end": 7831, "loc": { "start": { - "line": 153, + "line": 160, "column": 106 }, "end": { - "line": 153, + "line": 160, "column": 115 } } @@ -43367,15 +43863,15 @@ "postfix": false, "binop": null }, - "start": 7251, - "end": 7252, + "start": 7831, + "end": 7832, "loc": { "start": { - "line": 153, + "line": 160, "column": 115 }, "end": { - "line": 153, + "line": 160, "column": 116 } } @@ -43394,15 +43890,15 @@ "updateContext": null }, "value": "||", - "start": 7253, - "end": 7255, + "start": 7833, + "end": 7835, "loc": { "start": { - "line": 153, + "line": 160, "column": 117 }, "end": { - "line": 153, + "line": 160, "column": 119 } } @@ -43420,15 +43916,15 @@ "binop": null }, "value": "scrollbarClasses", - "start": 7256, - "end": 7272, + "start": 7836, + "end": 7852, "loc": { "start": { - "line": 153, + "line": 160, "column": 120 }, "end": { - "line": 153, + "line": 160, "column": 136 } } @@ -43446,15 +43942,15 @@ "binop": null, "updateContext": null }, - "start": 7272, - "end": 7273, + "start": 7852, + "end": 7853, "loc": { "start": { - "line": 153, + "line": 160, "column": 136 }, "end": { - "line": 153, + "line": 160, "column": 137 } } @@ -43472,15 +43968,15 @@ "binop": null }, "value": "includes", - "start": 7273, - "end": 7281, + "start": 7853, + "end": 7861, "loc": { "start": { - "line": 153, + "line": 160, "column": 137 }, "end": { - "line": 153, + "line": 160, "column": 145 } } @@ -43497,15 +43993,15 @@ "postfix": false, "binop": null }, - "start": 7281, - "end": 7282, + "start": 7861, + "end": 7862, "loc": { "start": { - "line": 153, + "line": 160, "column": 145 }, "end": { - "line": 153, + "line": 160, "column": 146 } } @@ -43523,15 +44019,15 @@ "binop": null }, "value": "evt", - "start": 7282, - "end": 7285, + "start": 7862, + "end": 7865, "loc": { "start": { - "line": 153, + "line": 160, "column": 146 }, "end": { - "line": 153, + "line": 160, "column": 149 } } @@ -43549,15 +44045,15 @@ "binop": null, "updateContext": null }, - "start": 7285, - "end": 7286, + "start": 7865, + "end": 7866, "loc": { "start": { - "line": 153, + "line": 160, "column": 149 }, "end": { - "line": 153, + "line": 160, "column": 150 } } @@ -43575,15 +44071,15 @@ "binop": null }, "value": "target", - "start": 7286, - "end": 7292, + "start": 7866, + "end": 7872, "loc": { "start": { - "line": 153, + "line": 160, "column": 150 }, "end": { - "line": 153, + "line": 160, "column": 156 } } @@ -43601,15 +44097,15 @@ "binop": null, "updateContext": null }, - "start": 7292, - "end": 7293, + "start": 7872, + "end": 7873, "loc": { "start": { - "line": 153, + "line": 160, "column": 156 }, "end": { - "line": 153, + "line": 160, "column": 157 } } @@ -43627,15 +44123,15 @@ "binop": null }, "value": "className", - "start": 7293, - "end": 7302, + "start": 7873, + "end": 7882, "loc": { "start": { - "line": 153, + "line": 160, "column": 157 }, "end": { - "line": 153, + "line": 160, "column": 166 } } @@ -43652,15 +44148,15 @@ "postfix": false, "binop": null }, - "start": 7302, - "end": 7303, + "start": 7882, + "end": 7883, "loc": { "start": { - "line": 153, + "line": 160, "column": 166 }, "end": { - "line": 153, + "line": 160, "column": 167 } } @@ -43677,15 +44173,15 @@ "postfix": false, "binop": null }, - "start": 7303, - "end": 7304, + "start": 7883, + "end": 7884, "loc": { "start": { - "line": 153, + "line": 160, "column": 167 }, "end": { - "line": 153, + "line": 160, "column": 168 } } @@ -43703,15 +44199,15 @@ "binop": null, "updateContext": null }, - "start": 7304, - "end": 7305, + "start": 7884, + "end": 7885, "loc": { "start": { - "line": 153, + "line": 160, "column": 168 }, "end": { - "line": 153, + "line": 160, "column": 169 } } @@ -43719,19 +44215,35 @@ { "type": "CommentLine", "value": " Check if pointer moved between words in smartguide", - "start": 7310, - "end": 7363, + "start": 7890, + "end": 7943, "loc": { "start": { - "line": 154, + "line": 161, "column": 4 }, "end": { - "line": 154, + "line": 161, "column": 57 } } }, + { + "type": "CommentLine", + "value": " Same use case as pointerEnteredSmartGuide but for the words in the smartguide (each word is a span).", + "start": 7948, + "end": 8051, + "loc": { + "start": { + "line": 162, + "column": 4 + }, + "end": { + "line": 162, + "column": 107 + } + } + }, { "type": { "label": "const", @@ -43747,15 +44259,15 @@ "updateContext": null }, "value": "const", - "start": 7368, - "end": 7373, + "start": 8056, + "end": 8061, "loc": { "start": { - "line": 155, + "line": 163, "column": 4 }, "end": { - "line": 155, + "line": 163, "column": 9 } } @@ -43773,15 +44285,15 @@ "binop": null }, "value": "pointerMovedWords", - "start": 7374, - "end": 7391, + "start": 8062, + "end": 8079, "loc": { "start": { - "line": 155, + "line": 163, "column": 10 }, "end": { - "line": 155, + "line": 163, "column": 27 } } @@ -43800,15 +44312,15 @@ "updateContext": null }, "value": "=", - "start": 7392, - "end": 7393, + "start": 8080, + "end": 8081, "loc": { "start": { - "line": 155, + "line": 163, "column": 28 }, "end": { - "line": 155, + "line": 163, "column": 29 } } @@ -43826,15 +44338,15 @@ "binop": null }, "value": "evt", - "start": 7394, - "end": 7397, + "start": 8082, + "end": 8085, "loc": { "start": { - "line": 155, + "line": 163, "column": 30 }, "end": { - "line": 155, + "line": 163, "column": 33 } } @@ -43852,15 +44364,15 @@ "binop": null, "updateContext": null }, - "start": 7397, - "end": 7398, + "start": 8085, + "end": 8086, "loc": { "start": { - "line": 155, + "line": 163, "column": 33 }, "end": { - "line": 155, + "line": 163, "column": 34 } } @@ -43878,15 +44390,15 @@ "binop": null }, "value": "relatedTarget", - "start": 7398, - "end": 7411, + "start": 8086, + "end": 8099, "loc": { "start": { - "line": 155, + "line": 163, "column": 34 }, "end": { - "line": 155, + "line": 163, "column": 47 } } @@ -43905,15 +44417,15 @@ "updateContext": null }, "value": "&&", - "start": 7412, - "end": 7414, + "start": 8100, + "end": 8102, "loc": { "start": { - "line": 155, + "line": 163, "column": 48 }, "end": { - "line": 155, + "line": 163, "column": 50 } } @@ -43931,15 +44443,15 @@ "binop": null }, "value": "evt", - "start": 7415, - "end": 7418, + "start": 8103, + "end": 8106, "loc": { "start": { - "line": 155, + "line": 163, "column": 51 }, "end": { - "line": 155, + "line": 163, "column": 54 } } @@ -43957,15 +44469,15 @@ "binop": null, "updateContext": null }, - "start": 7418, - "end": 7419, + "start": 8106, + "end": 8107, "loc": { "start": { - "line": 155, + "line": 163, "column": 54 }, "end": { - "line": 155, + "line": 163, "column": 55 } } @@ -43983,15 +44495,15 @@ "binop": null }, "value": "target", - "start": 7419, - "end": 7425, + "start": 8107, + "end": 8113, "loc": { "start": { - "line": 155, + "line": 163, "column": 55 }, "end": { - "line": 155, + "line": 163, "column": 61 } } @@ -44010,15 +44522,15 @@ "updateContext": null }, "value": "&&", - "start": 7426, - "end": 7428, + "start": 8114, + "end": 8116, "loc": { "start": { - "line": 155, + "line": 163, "column": 62 }, "end": { - "line": 155, + "line": 163, "column": 64 } } @@ -44035,15 +44547,15 @@ "postfix": false, "binop": null }, - "start": 7429, - "end": 7430, + "start": 8117, + "end": 8118, "loc": { "start": { - "line": 155, + "line": 163, "column": 65 }, "end": { - "line": 155, + "line": 163, "column": 66 } } @@ -44061,15 +44573,15 @@ "binop": null }, "value": "evt", - "start": 7430, - "end": 7433, + "start": 8118, + "end": 8121, "loc": { "start": { - "line": 155, + "line": 163, "column": 66 }, "end": { - "line": 155, + "line": 163, "column": 69 } } @@ -44087,15 +44599,15 @@ "binop": null, "updateContext": null }, - "start": 7433, - "end": 7434, + "start": 8121, + "end": 8122, "loc": { "start": { - "line": 155, + "line": 163, "column": 69 }, "end": { - "line": 155, + "line": 163, "column": 70 } } @@ -44113,15 +44625,15 @@ "binop": null }, "value": "target", - "start": 7434, - "end": 7440, + "start": 8122, + "end": 8128, "loc": { "start": { - "line": 155, + "line": 163, "column": 70 }, "end": { - "line": 155, + "line": 163, "column": 76 } } @@ -44139,15 +44651,15 @@ "binop": null, "updateContext": null }, - "start": 7440, - "end": 7441, + "start": 8128, + "end": 8129, "loc": { "start": { - "line": 155, + "line": 163, "column": 76 }, "end": { - "line": 155, + "line": 163, "column": 77 } } @@ -44165,15 +44677,15 @@ "binop": null }, "value": "tagName", - "start": 7441, - "end": 7448, + "start": 8129, + "end": 8136, "loc": { "start": { - "line": 155, + "line": 163, "column": 77 }, "end": { - "line": 155, + "line": 163, "column": 84 } } @@ -44192,15 +44704,15 @@ "updateContext": null }, "value": "===", - "start": 7449, - "end": 7452, + "start": 8137, + "end": 8140, "loc": { "start": { - "line": 155, + "line": 163, "column": 85 }, "end": { - "line": 155, + "line": 163, "column": 88 } } @@ -44219,15 +44731,15 @@ "updateContext": null }, "value": "SPAN", - "start": 7453, - "end": 7459, + "start": 8141, + "end": 8147, "loc": { "start": { - "line": 155, + "line": 163, "column": 89 }, "end": { - "line": 155, + "line": 163, "column": 95 } } @@ -44246,15 +44758,15 @@ "updateContext": null }, "value": "||", - "start": 7460, - "end": 7462, + "start": 8148, + "end": 8150, "loc": { "start": { - "line": 155, + "line": 163, "column": 96 }, "end": { - "line": 155, + "line": 163, "column": 98 } } @@ -44272,15 +44784,15 @@ "binop": null }, "value": "evt", - "start": 7463, - "end": 7466, + "start": 8151, + "end": 8154, "loc": { "start": { - "line": 155, + "line": 163, "column": 99 }, "end": { - "line": 155, + "line": 163, "column": 102 } } @@ -44298,15 +44810,15 @@ "binop": null, "updateContext": null }, - "start": 7466, - "end": 7467, + "start": 8154, + "end": 8155, "loc": { "start": { - "line": 155, + "line": 163, "column": 102 }, "end": { - "line": 155, + "line": 163, "column": 103 } } @@ -44324,15 +44836,15 @@ "binop": null }, "value": "relatedTarget", - "start": 7467, - "end": 7480, + "start": 8155, + "end": 8168, "loc": { "start": { - "line": 155, + "line": 163, "column": 103 }, "end": { - "line": 155, + "line": 163, "column": 116 } } @@ -44350,15 +44862,15 @@ "binop": null, "updateContext": null }, - "start": 7480, - "end": 7481, + "start": 8168, + "end": 8169, "loc": { "start": { - "line": 155, + "line": 163, "column": 116 }, "end": { - "line": 155, + "line": 163, "column": 117 } } @@ -44376,15 +44888,15 @@ "binop": null }, "value": "tagName", - "start": 7481, - "end": 7488, + "start": 8169, + "end": 8176, "loc": { "start": { - "line": 155, + "line": 163, "column": 117 }, "end": { - "line": 155, + "line": 163, "column": 124 } } @@ -44403,15 +44915,15 @@ "updateContext": null }, "value": "===", - "start": 7489, - "end": 7492, + "start": 8177, + "end": 8180, "loc": { "start": { - "line": 155, + "line": 163, "column": 125 }, "end": { - "line": 155, + "line": 163, "column": 128 } } @@ -44430,15 +44942,15 @@ "updateContext": null }, "value": "SPAN", - "start": 7493, - "end": 7499, + "start": 8181, + "end": 8187, "loc": { "start": { - "line": 155, + "line": 163, "column": 129 }, "end": { - "line": 155, + "line": 163, "column": 135 } } @@ -44455,15 +44967,15 @@ "postfix": false, "binop": null }, - "start": 7499, - "end": 7500, + "start": 8187, + "end": 8188, "loc": { "start": { - "line": 155, + "line": 163, "column": 135 }, "end": { - "line": 155, + "line": 163, "column": 136 } } @@ -44481,15 +44993,15 @@ "binop": null, "updateContext": null }, - "start": 7500, - "end": 7501, + "start": 8188, + "end": 8189, "loc": { "start": { - "line": 155, + "line": 163, "column": 136 }, "end": { - "line": 155, + "line": 163, "column": 137 } } @@ -44509,15 +45021,15 @@ "updateContext": null }, "value": "if", - "start": 7506, - "end": 7508, + "start": 8194, + "end": 8196, "loc": { "start": { - "line": 156, + "line": 164, "column": 4 }, "end": { - "line": 156, + "line": 164, "column": 6 } } @@ -44534,15 +45046,15 @@ "postfix": false, "binop": null }, - "start": 7509, - "end": 7510, + "start": 8197, + "end": 8198, "loc": { "start": { - "line": 156, + "line": 164, "column": 7 }, "end": { - "line": 156, + "line": 164, "column": 8 } } @@ -44560,15 +45072,15 @@ "binop": null }, "value": "pointerEnteredSmartGuide", - "start": 7510, - "end": 7534, + "start": 8198, + "end": 8222, "loc": { "start": { - "line": 156, + "line": 164, "column": 8 }, "end": { - "line": 156, + "line": 164, "column": 32 } } @@ -44587,15 +45099,15 @@ "updateContext": null }, "value": "||", - "start": 7535, - "end": 7537, + "start": 8223, + "end": 8225, "loc": { "start": { - "line": 156, + "line": 164, "column": 33 }, "end": { - "line": 156, + "line": 164, "column": 35 } } @@ -44613,15 +45125,15 @@ "binop": null }, "value": "pointerExitedSmartGuide", - "start": 7538, - "end": 7561, + "start": 8226, + "end": 8249, "loc": { "start": { - "line": 156, + "line": 164, "column": 36 }, "end": { - "line": 156, + "line": 164, "column": 59 } } @@ -44640,15 +45152,15 @@ "updateContext": null }, "value": "||", - "start": 7562, - "end": 7564, + "start": 8250, + "end": 8252, "loc": { "start": { - "line": 156, + "line": 164, "column": 60 }, "end": { - "line": 156, + "line": 164, "column": 62 } } @@ -44666,15 +45178,15 @@ "binop": null }, "value": "pointerMovedWords", - "start": 7565, - "end": 7582, + "start": 8253, + "end": 8270, "loc": { "start": { - "line": 156, + "line": 164, "column": 63 }, "end": { - "line": 156, + "line": 164, "column": 80 } } @@ -44691,15 +45203,15 @@ "postfix": false, "binop": null }, - "start": 7582, - "end": 7583, + "start": 8270, + "end": 8271, "loc": { "start": { - "line": 156, + "line": 164, "column": 80 }, "end": { - "line": 156, + "line": 164, "column": 81 } } @@ -44716,15 +45228,15 @@ "postfix": false, "binop": null }, - "start": 7584, - "end": 7585, + "start": 8272, + "end": 8273, "loc": { "start": { - "line": 156, + "line": 164, "column": 82 }, "end": { - "line": 156, + "line": 164, "column": 83 } } @@ -44742,15 +45254,15 @@ "binop": null }, "value": "evt", - "start": 7592, - "end": 7595, + "start": 8280, + "end": 8283, "loc": { "start": { - "line": 157, + "line": 165, "column": 6 }, "end": { - "line": 157, + "line": 165, "column": 9 } } @@ -44768,15 +45280,15 @@ "binop": null, "updateContext": null }, - "start": 7595, - "end": 7596, + "start": 8283, + "end": 8284, "loc": { "start": { - "line": 157, + "line": 165, "column": 9 }, "end": { - "line": 157, + "line": 165, "column": 10 } } @@ -44794,15 +45306,15 @@ "binop": null }, "value": "stopPropagation", - "start": 7596, - "end": 7611, + "start": 8284, + "end": 8299, "loc": { "start": { - "line": 157, + "line": 165, "column": 10 }, "end": { - "line": 157, + "line": 165, "column": 25 } } @@ -44819,15 +45331,15 @@ "postfix": false, "binop": null }, - "start": 7611, - "end": 7612, + "start": 8299, + "end": 8300, "loc": { "start": { - "line": 157, + "line": 165, "column": 25 }, "end": { - "line": 157, + "line": 165, "column": 26 } } @@ -44844,15 +45356,15 @@ "postfix": false, "binop": null }, - "start": 7612, - "end": 7613, + "start": 8300, + "end": 8301, "loc": { "start": { - "line": 157, + "line": 165, "column": 26 }, "end": { - "line": 157, + "line": 165, "column": 27 } } @@ -44870,15 +45382,15 @@ "binop": null, "updateContext": null }, - "start": 7613, - "end": 7614, + "start": 8301, + "end": 8302, "loc": { "start": { - "line": 157, + "line": 165, "column": 27 }, "end": { - "line": 157, + "line": 165, "column": 28 } } @@ -44895,15 +45407,15 @@ "postfix": false, "binop": null }, - "start": 7619, - "end": 7620, + "start": 8307, + "end": 8308, "loc": { "start": { - "line": 158, + "line": 166, "column": 4 }, "end": { - "line": 158, + "line": 166, "column": 5 } } @@ -44923,15 +45435,15 @@ "updateContext": null }, "value": "else", - "start": 7621, - "end": 7625, + "start": 8309, + "end": 8313, "loc": { "start": { - "line": 158, + "line": 166, "column": 6 }, "end": { - "line": 158, + "line": 166, "column": 10 } } @@ -44951,15 +45463,15 @@ "updateContext": null }, "value": "if", - "start": 7626, - "end": 7628, + "start": 8314, + "end": 8316, "loc": { "start": { - "line": 158, + "line": 166, "column": 11 }, "end": { - "line": 158, + "line": 166, "column": 13 } } @@ -44976,15 +45488,15 @@ "postfix": false, "binop": null }, - "start": 7629, - "end": 7630, + "start": 8317, + "end": 8318, "loc": { "start": { - "line": 158, + "line": 166, "column": 14 }, "end": { - "line": 158, + "line": 166, "column": 15 } } @@ -45004,15 +45516,15 @@ "updateContext": null }, "value": "this", - "start": 7630, - "end": 7634, + "start": 8318, + "end": 8322, "loc": { "start": { - "line": 158, + "line": 166, "column": 15 }, "end": { - "line": 158, + "line": 166, "column": 19 } } @@ -45030,15 +45542,15 @@ "binop": null, "updateContext": null }, - "start": 7634, - "end": 7635, + "start": 8322, + "end": 8323, "loc": { "start": { - "line": 158, + "line": 166, "column": 19 }, "end": { - "line": 158, + "line": 166, "column": 20 } } @@ -45056,15 +45568,15 @@ "binop": null }, "value": "activePointerId", - "start": 7635, - "end": 7650, + "start": 8323, + "end": 8338, "loc": { "start": { - "line": 158, + "line": 166, "column": 20 }, "end": { - "line": 158, + "line": 166, "column": 35 } } @@ -45083,15 +45595,15 @@ "updateContext": null }, "value": "!==", - "start": 7651, - "end": 7654, + "start": 8339, + "end": 8342, "loc": { "start": { - "line": 158, + "line": 166, "column": 36 }, "end": { - "line": 158, + "line": 166, "column": 39 } } @@ -45109,15 +45621,15 @@ "binop": null }, "value": "undefined", - "start": 7655, - "end": 7664, + "start": 8343, + "end": 8352, "loc": { "start": { - "line": 158, + "line": 166, "column": 40 }, "end": { - "line": 158, + "line": 166, "column": 49 } } @@ -45136,15 +45648,15 @@ "updateContext": null }, "value": "&&", - "start": 7665, - "end": 7667, + "start": 8353, + "end": 8355, "loc": { "start": { - "line": 158, + "line": 166, "column": 50 }, "end": { - "line": 158, + "line": 166, "column": 52 } } @@ -45164,15 +45676,15 @@ "updateContext": null }, "value": "this", - "start": 7668, - "end": 7672, + "start": 8356, + "end": 8360, "loc": { "start": { - "line": 158, + "line": 166, "column": 53 }, "end": { - "line": 158, + "line": 166, "column": 57 } } @@ -45190,15 +45702,15 @@ "binop": null, "updateContext": null }, - "start": 7672, - "end": 7673, + "start": 8360, + "end": 8361, "loc": { "start": { - "line": 158, + "line": 166, "column": 57 }, "end": { - "line": 158, + "line": 166, "column": 58 } } @@ -45216,15 +45728,15 @@ "binop": null }, "value": "activePointerId", - "start": 7673, - "end": 7688, + "start": 8361, + "end": 8376, "loc": { "start": { - "line": 158, + "line": 166, "column": 58 }, "end": { - "line": 158, + "line": 166, "column": 73 } } @@ -45243,15 +45755,15 @@ "updateContext": null }, "value": "===", - "start": 7689, - "end": 7692, + "start": 8377, + "end": 8380, "loc": { "start": { - "line": 158, + "line": 166, "column": 74 }, "end": { - "line": 158, + "line": 166, "column": 77 } } @@ -45269,15 +45781,15 @@ "binop": null }, "value": "evt", - "start": 7693, - "end": 7696, + "start": 8381, + "end": 8384, "loc": { "start": { - "line": 158, + "line": 166, "column": 78 }, "end": { - "line": 158, + "line": 166, "column": 81 } } @@ -45295,15 +45807,15 @@ "binop": null, "updateContext": null }, - "start": 7696, - "end": 7697, + "start": 8384, + "end": 8385, "loc": { "start": { - "line": 158, + "line": 166, "column": 81 }, "end": { - "line": 158, + "line": 166, "column": 82 } } @@ -45321,15 +45833,15 @@ "binop": null }, "value": "pointerId", - "start": 7697, - "end": 7706, + "start": 8385, + "end": 8394, "loc": { "start": { - "line": 158, + "line": 166, "column": 82 }, "end": { - "line": 158, + "line": 166, "column": 91 } } @@ -45346,15 +45858,15 @@ "postfix": false, "binop": null }, - "start": 7706, - "end": 7707, + "start": 8394, + "end": 8395, "loc": { "start": { - "line": 158, + "line": 166, "column": 91 }, "end": { - "line": 158, + "line": 166, "column": 92 } } @@ -45371,15 +45883,15 @@ "postfix": false, "binop": null }, - "start": 7708, - "end": 7709, + "start": 8396, + "end": 8397, "loc": { "start": { - "line": 158, + "line": 166, "column": 93 }, "end": { - "line": 158, + "line": 166, "column": 94 } } @@ -45387,15 +45899,15 @@ { "type": "CommentLine", "value": " Only considering the active pointer", - "start": 7710, - "end": 7748, + "start": 8398, + "end": 8436, "loc": { "start": { - "line": 158, + "line": 166, "column": 95 }, "end": { - "line": 158, + "line": 166, "column": 133 } } @@ -45415,15 +45927,15 @@ "updateContext": null }, "value": "this", - "start": 7755, - "end": 7759, + "start": 8443, + "end": 8447, "loc": { "start": { - "line": 159, + "line": 167, "column": 6 }, "end": { - "line": 159, + "line": 167, "column": 10 } } @@ -45441,15 +45953,15 @@ "binop": null, "updateContext": null }, - "start": 7759, - "end": 7760, + "start": 8447, + "end": 8448, "loc": { "start": { - "line": 159, + "line": 167, "column": 10 }, "end": { - "line": 159, + "line": 167, "column": 11 } } @@ -45467,15 +45979,15 @@ "binop": null }, "value": "activePointerId", - "start": 7760, - "end": 7775, + "start": 8448, + "end": 8463, "loc": { "start": { - "line": 159, + "line": 167, "column": 11 }, "end": { - "line": 159, + "line": 167, "column": 26 } } @@ -45494,15 +46006,15 @@ "updateContext": null }, "value": "=", - "start": 7776, - "end": 7777, + "start": 8464, + "end": 8465, "loc": { "start": { - "line": 159, + "line": 167, "column": 27 }, "end": { - "line": 159, + "line": 167, "column": 28 } } @@ -45520,15 +46032,15 @@ "binop": null }, "value": "undefined", - "start": 7778, - "end": 7787, + "start": 8466, + "end": 8475, "loc": { "start": { - "line": 159, + "line": 167, "column": 29 }, "end": { - "line": 159, + "line": 167, "column": 38 } } @@ -45546,15 +46058,15 @@ "binop": null, "updateContext": null }, - "start": 7787, - "end": 7788, + "start": 8475, + "end": 8476, "loc": { "start": { - "line": 159, + "line": 167, "column": 38 }, "end": { - "line": 159, + "line": 167, "column": 39 } } @@ -45562,15 +46074,15 @@ { "type": "CommentLine", "value": " Managing the active pointer", - "start": 7789, - "end": 7819, + "start": 8477, + "end": 8507, "loc": { "start": { - "line": 159, + "line": 167, "column": 40 }, "end": { - "line": 159, + "line": 167, "column": 70 } } @@ -45588,15 +46100,15 @@ "binop": null }, "value": "evt", - "start": 7826, - "end": 7829, + "start": 8514, + "end": 8517, "loc": { "start": { - "line": 160, + "line": 168, "column": 6 }, "end": { - "line": 160, + "line": 168, "column": 9 } } @@ -45614,15 +46126,15 @@ "binop": null, "updateContext": null }, - "start": 7829, - "end": 7830, + "start": 8517, + "end": 8518, "loc": { "start": { - "line": 160, + "line": 168, "column": 9 }, "end": { - "line": 160, + "line": 168, "column": 10 } } @@ -45640,15 +46152,15 @@ "binop": null }, "value": "stopPropagation", - "start": 7830, - "end": 7845, + "start": 8518, + "end": 8533, "loc": { "start": { - "line": 160, + "line": 168, "column": 10 }, "end": { - "line": 160, + "line": 168, "column": 25 } } @@ -45665,15 +46177,15 @@ "postfix": false, "binop": null }, - "start": 7845, - "end": 7846, + "start": 8533, + "end": 8534, "loc": { "start": { - "line": 160, + "line": 168, "column": 25 }, "end": { - "line": 160, + "line": 168, "column": 26 } } @@ -45690,15 +46202,15 @@ "postfix": false, "binop": null }, - "start": 7846, - "end": 7847, + "start": 8534, + "end": 8535, "loc": { "start": { - "line": 160, + "line": 168, "column": 26 }, "end": { - "line": 160, + "line": 168, "column": 27 } } @@ -45716,15 +46228,15 @@ "binop": null, "updateContext": null }, - "start": 7847, - "end": 7848, + "start": 8535, + "end": 8536, "loc": { "start": { - "line": 160, + "line": 168, "column": 27 }, "end": { - "line": 160, + "line": 168, "column": 28 } } @@ -45742,15 +46254,15 @@ "binop": null }, "value": "editor", - "start": 7855, - "end": 7861, + "start": 8543, + "end": 8549, "loc": { "start": { - "line": 161, + "line": 169, "column": 6 }, "end": { - "line": 161, + "line": 169, "column": 12 } } @@ -45768,15 +46280,15 @@ "binop": null, "updateContext": null }, - "start": 7861, - "end": 7862, + "start": 8549, + "end": 8550, "loc": { "start": { - "line": 161, + "line": 169, "column": 12 }, "end": { - "line": 161, + "line": 169, "column": 13 } } @@ -45794,15 +46306,15 @@ "binop": null }, "value": "pointerUp", - "start": 7862, - "end": 7871, + "start": 8550, + "end": 8559, "loc": { "start": { - "line": 161, + "line": 169, "column": 13 }, "end": { - "line": 161, + "line": 169, "column": 22 } } @@ -45819,15 +46331,15 @@ "postfix": false, "binop": null }, - "start": 7871, - "end": 7872, + "start": 8559, + "end": 8560, "loc": { "start": { - "line": 161, + "line": 169, "column": 22 }, "end": { - "line": 161, + "line": 169, "column": 23 } } @@ -45845,15 +46357,15 @@ "binop": null }, "value": "extractPoint", - "start": 7872, - "end": 7884, + "start": 8560, + "end": 8572, "loc": { "start": { - "line": 161, + "line": 169, "column": 23 }, "end": { - "line": 161, + "line": 169, "column": 35 } } @@ -45870,15 +46382,15 @@ "postfix": false, "binop": null }, - "start": 7884, - "end": 7885, + "start": 8572, + "end": 8573, "loc": { "start": { - "line": 161, + "line": 169, "column": 35 }, "end": { - "line": 161, + "line": 169, "column": 36 } } @@ -45896,15 +46408,15 @@ "binop": null }, "value": "evt", - "start": 7885, - "end": 7888, + "start": 8573, + "end": 8576, "loc": { "start": { - "line": 161, + "line": 169, "column": 36 }, "end": { - "line": 161, + "line": 169, "column": 39 } } @@ -45922,15 +46434,15 @@ "binop": null, "updateContext": null }, - "start": 7888, - "end": 7889, + "start": 8576, + "end": 8577, "loc": { "start": { - "line": 161, + "line": 169, "column": 39 }, "end": { - "line": 161, + "line": 169, "column": 40 } } @@ -45948,15 +46460,15 @@ "binop": null }, "value": "element", - "start": 7890, - "end": 7897, + "start": 8578, + "end": 8585, "loc": { "start": { - "line": 161, + "line": 169, "column": 41 }, "end": { - "line": 161, + "line": 169, "column": 48 } } @@ -45974,15 +46486,15 @@ "binop": null, "updateContext": null }, - "start": 7897, - "end": 7898, + "start": 8585, + "end": 8586, "loc": { "start": { - "line": 161, + "line": 169, "column": 48 }, "end": { - "line": 161, + "line": 169, "column": 49 } } @@ -46000,15 +46512,15 @@ "binop": null }, "value": "editor", - "start": 7899, - "end": 7905, + "start": 8587, + "end": 8593, "loc": { "start": { - "line": 161, + "line": 169, "column": 50 }, "end": { - "line": 161, + "line": 169, "column": 56 } } @@ -46026,15 +46538,15 @@ "binop": null, "updateContext": null }, - "start": 7905, - "end": 7906, + "start": 8593, + "end": 8594, "loc": { "start": { - "line": 161, + "line": 169, "column": 56 }, "end": { - "line": 161, + "line": 169, "column": 57 } } @@ -46052,15 +46564,15 @@ "binop": null }, "value": "configuration", - "start": 7906, - "end": 7919, + "start": 8594, + "end": 8607, "loc": { "start": { - "line": 161, + "line": 169, "column": 57 }, "end": { - "line": 161, + "line": 169, "column": 70 } } @@ -46078,15 +46590,15 @@ "binop": null, "updateContext": null }, - "start": 7919, - "end": 7920, + "start": 8607, + "end": 8608, "loc": { "start": { - "line": 161, + "line": 169, "column": 70 }, "end": { - "line": 161, + "line": 169, "column": 71 } } @@ -46104,15 +46616,15 @@ "binop": null }, "value": "offsetTop", - "start": 7921, - "end": 7930, + "start": 8609, + "end": 8618, "loc": { "start": { - "line": 161, + "line": 169, "column": 72 }, "end": { - "line": 161, + "line": 169, "column": 81 } } @@ -46130,15 +46642,15 @@ "binop": null, "updateContext": null }, - "start": 7930, - "end": 7931, + "start": 8618, + "end": 8619, "loc": { "start": { - "line": 161, + "line": 169, "column": 81 }, "end": { - "line": 161, + "line": 169, "column": 82 } } @@ -46156,15 +46668,15 @@ "binop": null }, "value": "offsetLeft", - "start": 7932, - "end": 7942, + "start": 8620, + "end": 8630, "loc": { "start": { - "line": 161, + "line": 169, "column": 83 }, "end": { - "line": 161, + "line": 169, "column": 93 } } @@ -46181,15 +46693,15 @@ "postfix": false, "binop": null }, - "start": 7942, - "end": 7943, + "start": 8630, + "end": 8631, "loc": { "start": { - "line": 161, + "line": 169, "column": 93 }, "end": { - "line": 161, + "line": 169, "column": 94 } } @@ -46206,15 +46718,15 @@ "postfix": false, "binop": null }, - "start": 7943, - "end": 7944, + "start": 8631, + "end": 8632, "loc": { "start": { - "line": 161, + "line": 169, "column": 94 }, "end": { - "line": 161, + "line": 169, "column": 95 } } @@ -46232,15 +46744,15 @@ "binop": null, "updateContext": null }, - "start": 7944, - "end": 7945, + "start": 8632, + "end": 8633, "loc": { "start": { - "line": 161, + "line": 169, "column": 95 }, "end": { - "line": 161, + "line": 169, "column": 96 } } @@ -46257,15 +46769,15 @@ "postfix": false, "binop": null }, - "start": 7950, - "end": 7951, + "start": 8638, + "end": 8639, "loc": { "start": { - "line": 162, + "line": 170, "column": 4 }, "end": { - "line": 162, + "line": 170, "column": 5 } } @@ -46285,15 +46797,15 @@ "updateContext": null }, "value": "else", - "start": 7952, - "end": 7956, + "start": 8640, + "end": 8644, "loc": { "start": { - "line": 162, + "line": 170, "column": 6 }, "end": { - "line": 162, + "line": 170, "column": 10 } } @@ -46310,15 +46822,15 @@ "postfix": false, "binop": null }, - "start": 7957, - "end": 7958, + "start": 8645, + "end": 8646, "loc": { "start": { - "line": 162, + "line": 170, "column": 11 }, "end": { - "line": 162, + "line": 170, "column": 12 } } @@ -46336,15 +46848,15 @@ "binop": null }, "value": "logger", - "start": 7965, - "end": 7971, + "start": 8653, + "end": 8659, "loc": { "start": { - "line": 163, + "line": 171, "column": 6 }, "end": { - "line": 163, + "line": 171, "column": 12 } } @@ -46362,15 +46874,15 @@ "binop": null, "updateContext": null }, - "start": 7971, - "end": 7972, + "start": 8659, + "end": 8660, "loc": { "start": { - "line": 163, + "line": 171, "column": 12 }, "end": { - "line": 163, + "line": 171, "column": 13 } } @@ -46388,15 +46900,15 @@ "binop": null }, "value": "trace", - "start": 7972, - "end": 7977, + "start": 8660, + "end": 8665, "loc": { "start": { - "line": 163, + "line": 171, "column": 13 }, "end": { - "line": 163, + "line": 171, "column": 18 } } @@ -46413,15 +46925,15 @@ "postfix": false, "binop": null }, - "start": 7977, - "end": 7978, + "start": 8665, + "end": 8666, "loc": { "start": { - "line": 163, + "line": 171, "column": 18 }, "end": { - "line": 163, + "line": 171, "column": 19 } } @@ -46438,15 +46950,15 @@ "postfix": false, "binop": null }, - "start": 7978, - "end": 7979, + "start": 8666, + "end": 8667, "loc": { "start": { - "line": 163, + "line": 171, "column": 19 }, "end": { - "line": 163, + "line": 171, "column": 20 } } @@ -46465,15 +46977,15 @@ "updateContext": null }, "value": "", - "start": 7979, - "end": 7979, + "start": 8667, + "end": 8667, "loc": { "start": { - "line": 163, + "line": 171, "column": 20 }, "end": { - "line": 163, + "line": 171, "column": 20 } } @@ -46490,15 +47002,15 @@ "postfix": false, "binop": null }, - "start": 7979, - "end": 7981, + "start": 8667, + "end": 8669, "loc": { "start": { - "line": 163, + "line": 171, "column": 20 }, "end": { - "line": 163, + "line": 171, "column": 22 } } @@ -46516,15 +47028,15 @@ "binop": null }, "value": "evt", - "start": 7981, - "end": 7984, + "start": 8669, + "end": 8672, "loc": { "start": { - "line": 163, + "line": 171, "column": 22 }, "end": { - "line": 163, + "line": 171, "column": 25 } } @@ -46542,15 +47054,15 @@ "binop": null, "updateContext": null }, - "start": 7984, - "end": 7985, + "start": 8672, + "end": 8673, "loc": { "start": { - "line": 163, + "line": 171, "column": 25 }, "end": { - "line": 163, + "line": 171, "column": 26 } } @@ -46568,15 +47080,15 @@ "binop": null }, "value": "type", - "start": 7985, - "end": 7989, + "start": 8673, + "end": 8677, "loc": { "start": { - "line": 163, + "line": 171, "column": 26 }, "end": { - "line": 163, + "line": 171, "column": 30 } } @@ -46593,15 +47105,15 @@ "postfix": false, "binop": null }, - "start": 7989, - "end": 7990, + "start": 8677, + "end": 8678, "loc": { "start": { - "line": 163, + "line": 171, "column": 30 }, "end": { - "line": 163, + "line": 171, "column": 31 } } @@ -46620,15 +47132,15 @@ "updateContext": null }, "value": " event from another pointerid (", - "start": 7990, - "end": 8021, + "start": 8678, + "end": 8709, "loc": { "start": { - "line": 163, + "line": 171, "column": 31 }, "end": { - "line": 163, + "line": 171, "column": 62 } } @@ -46645,15 +47157,15 @@ "postfix": false, "binop": null }, - "start": 8021, - "end": 8023, + "start": 8709, + "end": 8711, "loc": { "start": { - "line": 163, + "line": 171, "column": 62 }, "end": { - "line": 163, + "line": 171, "column": 64 } } @@ -46671,15 +47183,15 @@ "binop": null }, "value": "evt", - "start": 8023, - "end": 8026, + "start": 8711, + "end": 8714, "loc": { "start": { - "line": 163, + "line": 171, "column": 64 }, "end": { - "line": 163, + "line": 171, "column": 67 } } @@ -46697,15 +47209,15 @@ "binop": null, "updateContext": null }, - "start": 8026, - "end": 8027, + "start": 8714, + "end": 8715, "loc": { "start": { - "line": 163, + "line": 171, "column": 67 }, "end": { - "line": 163, + "line": 171, "column": 68 } } @@ -46723,15 +47235,15 @@ "binop": null }, "value": "pointerId", - "start": 8027, - "end": 8036, + "start": 8715, + "end": 8724, "loc": { "start": { - "line": 163, + "line": 171, "column": 68 }, "end": { - "line": 163, + "line": 171, "column": 77 } } @@ -46748,15 +47260,15 @@ "postfix": false, "binop": null }, - "start": 8036, - "end": 8037, + "start": 8724, + "end": 8725, "loc": { "start": { - "line": 163, + "line": 171, "column": 77 }, "end": { - "line": 163, + "line": 171, "column": 78 } } @@ -46775,15 +47287,15 @@ "updateContext": null }, "value": ")", - "start": 8037, - "end": 8038, + "start": 8725, + "end": 8726, "loc": { "start": { - "line": 163, + "line": 171, "column": 78 }, "end": { - "line": 163, + "line": 171, "column": 79 } } @@ -46800,15 +47312,15 @@ "postfix": false, "binop": null }, - "start": 8038, - "end": 8039, + "start": 8726, + "end": 8727, "loc": { "start": { - "line": 163, + "line": 171, "column": 79 }, "end": { - "line": 163, + "line": 171, "column": 80 } } @@ -46826,15 +47338,15 @@ "binop": null, "updateContext": null }, - "start": 8039, - "end": 8040, + "start": 8727, + "end": 8728, "loc": { "start": { - "line": 163, + "line": 171, "column": 80 }, "end": { - "line": 163, + "line": 171, "column": 81 } } @@ -46854,15 +47366,15 @@ "updateContext": null }, "value": "this", - "start": 8041, - "end": 8045, + "start": 8729, + "end": 8733, "loc": { "start": { - "line": 163, + "line": 171, "column": 82 }, "end": { - "line": 163, + "line": 171, "column": 86 } } @@ -46880,15 +47392,15 @@ "binop": null, "updateContext": null }, - "start": 8045, - "end": 8046, + "start": 8733, + "end": 8734, "loc": { "start": { - "line": 163, + "line": 171, "column": 86 }, "end": { - "line": 163, + "line": 171, "column": 87 } } @@ -46906,15 +47418,15 @@ "binop": null }, "value": "activePointerId", - "start": 8046, - "end": 8061, + "start": 8734, + "end": 8749, "loc": { "start": { - "line": 163, + "line": 171, "column": 87 }, "end": { - "line": 163, + "line": 171, "column": 102 } } @@ -46931,15 +47443,15 @@ "postfix": false, "binop": null }, - "start": 8061, - "end": 8062, + "start": 8749, + "end": 8750, "loc": { "start": { - "line": 163, + "line": 171, "column": 102 }, "end": { - "line": 163, + "line": 171, "column": 103 } } @@ -46957,15 +47469,15 @@ "binop": null, "updateContext": null }, - "start": 8062, - "end": 8063, + "start": 8750, + "end": 8751, "loc": { "start": { - "line": 163, + "line": 171, "column": 103 }, "end": { - "line": 163, + "line": 171, "column": 104 } } @@ -46982,15 +47494,15 @@ "postfix": false, "binop": null }, - "start": 8068, - "end": 8069, + "start": 8756, + "end": 8757, "loc": { "start": { - "line": 164, + "line": 172, "column": 4 }, "end": { - "line": 164, + "line": 172, "column": 5 } } @@ -47007,15 +47519,15 @@ "postfix": false, "binop": null }, - "start": 8072, - "end": 8073, + "start": 8760, + "end": 8761, "loc": { "start": { - "line": 165, + "line": 173, "column": 2 }, "end": { - "line": 165, + "line": 173, "column": 3 } } @@ -47035,15 +47547,15 @@ "updateContext": null }, "value": "const", - "start": 8077, - "end": 8082, + "start": 8765, + "end": 8770, "loc": { "start": { - "line": 167, + "line": 175, "column": 2 }, "end": { - "line": 167, + "line": 175, "column": 7 } } @@ -47061,15 +47573,15 @@ "binop": null }, "value": "context", - "start": 8083, - "end": 8090, + "start": 8771, + "end": 8778, "loc": { "start": { - "line": 167, + "line": 175, "column": 8 }, "end": { - "line": 167, + "line": 175, "column": 15 } } @@ -47088,15 +47600,15 @@ "updateContext": null }, "value": "=", - "start": 8091, - "end": 8092, + "start": 8779, + "end": 8780, "loc": { "start": { - "line": 167, + "line": 175, "column": 16 }, "end": { - "line": 167, + "line": 175, "column": 17 } } @@ -47113,15 +47625,15 @@ "postfix": false, "binop": null }, - "start": 8093, - "end": 8094, + "start": 8781, + "end": 8782, "loc": { "start": { - "line": 167, + "line": 175, "column": 18 }, "end": { - "line": 167, + "line": 175, "column": 19 } } @@ -47139,15 +47651,15 @@ "binop": null }, "value": "options", - "start": 8099, - "end": 8106, + "start": 8787, + "end": 8794, "loc": { "start": { - "line": 168, + "line": 176, "column": 4 }, "end": { - "line": 168, + "line": 176, "column": 11 } } @@ -47165,15 +47677,15 @@ "binop": null, "updateContext": null }, - "start": 8106, - "end": 8107, + "start": 8794, + "end": 8795, "loc": { "start": { - "line": 168, + "line": 176, "column": 11 }, "end": { - "line": 168, + "line": 176, "column": 12 } } @@ -47191,15 +47703,15 @@ "binop": null }, "value": "editor", - "start": 8108, - "end": 8114, + "start": 8796, + "end": 8802, "loc": { "start": { - "line": 168, + "line": 176, "column": 13 }, "end": { - "line": 168, + "line": 176, "column": 19 } } @@ -47217,15 +47729,15 @@ "binop": null, "updateContext": null }, - "start": 8114, - "end": 8115, + "start": 8802, + "end": 8803, "loc": { "start": { - "line": 168, + "line": 176, "column": 19 }, "end": { - "line": 168, + "line": 176, "column": 20 } } @@ -47243,15 +47755,15 @@ "binop": null }, "value": "configuration", - "start": 8115, - "end": 8128, + "start": 8803, + "end": 8816, "loc": { "start": { - "line": 168, + "line": 176, "column": 20 }, "end": { - "line": 168, + "line": 176, "column": 33 } } @@ -47269,15 +47781,15 @@ "binop": null, "updateContext": null }, - "start": 8128, - "end": 8129, + "start": 8816, + "end": 8817, "loc": { "start": { - "line": 168, + "line": 176, "column": 33 }, "end": { - "line": 168, + "line": 176, "column": 34 } } @@ -47295,15 +47807,15 @@ "binop": null }, "value": "listenerOptions", - "start": 8129, - "end": 8144, + "start": 8817, + "end": 8832, "loc": { "start": { - "line": 168, + "line": 176, "column": 34 }, "end": { - "line": 168, + "line": 176, "column": 49 } } @@ -47321,15 +47833,15 @@ "binop": null, "updateContext": null }, - "start": 8144, - "end": 8145, + "start": 8832, + "end": 8833, "loc": { "start": { - "line": 168, + "line": 176, "column": 49 }, "end": { - "line": 168, + "line": 176, "column": 50 } } @@ -47347,15 +47859,15 @@ "binop": null }, "value": "listeners", - "start": 8150, - "end": 8159, + "start": 8838, + "end": 8847, "loc": { "start": { - "line": 169, + "line": 177, "column": 4 }, "end": { - "line": 169, + "line": 177, "column": 13 } } @@ -47373,15 +47885,15 @@ "binop": null, "updateContext": null }, - "start": 8159, - "end": 8160, + "start": 8847, + "end": 8848, "loc": { "start": { - "line": 169, + "line": 177, "column": 13 }, "end": { - "line": 169, + "line": 177, "column": 14 } } @@ -47399,15 +47911,15 @@ "binop": null, "updateContext": null }, - "start": 8161, - "end": 8162, + "start": 8849, + "end": 8850, "loc": { "start": { - "line": 169, + "line": 177, "column": 15 }, "end": { - "line": 169, + "line": 177, "column": 16 } } @@ -47424,15 +47936,15 @@ "postfix": false, "binop": null }, - "start": 8162, - "end": 8163, + "start": 8850, + "end": 8851, "loc": { "start": { - "line": 169, + "line": 177, "column": 16 }, "end": { - "line": 169, + "line": 177, "column": 17 } } @@ -47450,15 +47962,15 @@ "binop": null }, "value": "types", - "start": 8170, - "end": 8175, + "start": 8858, + "end": 8863, "loc": { "start": { - "line": 170, + "line": 178, "column": 6 }, "end": { - "line": 170, + "line": 178, "column": 11 } } @@ -47476,15 +47988,15 @@ "binop": null, "updateContext": null }, - "start": 8175, - "end": 8176, + "start": 8863, + "end": 8864, "loc": { "start": { - "line": 170, + "line": 178, "column": 11 }, "end": { - "line": 170, + "line": 178, "column": 12 } } @@ -47502,15 +48014,15 @@ "binop": null, "updateContext": null }, - "start": 8177, - "end": 8178, + "start": 8865, + "end": 8866, "loc": { "start": { - "line": 170, + "line": 178, "column": 13 }, "end": { - "line": 170, + "line": 178, "column": 14 } } @@ -47529,15 +48041,15 @@ "updateContext": null }, "value": "pointerdown", - "start": 8178, - "end": 8191, + "start": 8866, + "end": 8879, "loc": { "start": { - "line": 170, + "line": 178, "column": 14 }, "end": { - "line": 170, + "line": 178, "column": 27 } } @@ -47555,15 +48067,15 @@ "binop": null, "updateContext": null }, - "start": 8191, - "end": 8192, + "start": 8879, + "end": 8880, "loc": { "start": { - "line": 170, + "line": 178, "column": 27 }, "end": { - "line": 170, + "line": 178, "column": 28 } } @@ -47581,15 +48093,15 @@ "binop": null, "updateContext": null }, - "start": 8192, - "end": 8193, + "start": 8880, + "end": 8881, "loc": { "start": { - "line": 170, + "line": 178, "column": 28 }, "end": { - "line": 170, + "line": 178, "column": 29 } } @@ -47607,15 +48119,15 @@ "binop": null }, "value": "listener", - "start": 8200, - "end": 8208, + "start": 8888, + "end": 8896, "loc": { "start": { - "line": 171, + "line": 179, "column": 6 }, "end": { - "line": 171, + "line": 179, "column": 14 } } @@ -47633,15 +48145,15 @@ "binop": null, "updateContext": null }, - "start": 8208, - "end": 8209, + "start": 8896, + "end": 8897, "loc": { "start": { - "line": 171, + "line": 179, "column": 14 }, "end": { - "line": 171, + "line": 179, "column": 15 } } @@ -47659,15 +48171,15 @@ "binop": null }, "value": "pointerDownHandler", - "start": 8210, - "end": 8228, + "start": 8898, + "end": 8916, "loc": { "start": { - "line": 171, + "line": 179, "column": 16 }, "end": { - "line": 171, + "line": 179, "column": 34 } } @@ -47684,15 +48196,15 @@ "postfix": false, "binop": null }, - "start": 8233, - "end": 8234, + "start": 8921, + "end": 8922, "loc": { "start": { - "line": 172, + "line": 180, "column": 4 }, "end": { - "line": 172, + "line": 180, "column": 5 } } @@ -47710,15 +48222,15 @@ "binop": null, "updateContext": null }, - "start": 8234, - "end": 8235, + "start": 8922, + "end": 8923, "loc": { "start": { - "line": 172, + "line": 180, "column": 5 }, "end": { - "line": 172, + "line": 180, "column": 6 } } @@ -47735,15 +48247,15 @@ "postfix": false, "binop": null }, - "start": 8236, - "end": 8237, + "start": 8924, + "end": 8925, "loc": { "start": { - "line": 172, + "line": 180, "column": 7 }, "end": { - "line": 172, + "line": 180, "column": 8 } } @@ -47761,15 +48273,15 @@ "binop": null }, "value": "types", - "start": 8244, - "end": 8249, + "start": 8932, + "end": 8937, "loc": { "start": { - "line": 173, + "line": 181, "column": 6 }, "end": { - "line": 173, + "line": 181, "column": 11 } } @@ -47787,15 +48299,15 @@ "binop": null, "updateContext": null }, - "start": 8249, - "end": 8250, + "start": 8937, + "end": 8938, "loc": { "start": { - "line": 173, + "line": 181, "column": 11 }, "end": { - "line": 173, + "line": 181, "column": 12 } } @@ -47813,15 +48325,15 @@ "binop": null, "updateContext": null }, - "start": 8251, - "end": 8252, + "start": 8939, + "end": 8940, "loc": { "start": { - "line": 173, + "line": 181, "column": 13 }, "end": { - "line": 173, + "line": 181, "column": 14 } } @@ -47840,15 +48352,15 @@ "updateContext": null }, "value": "pointermove", - "start": 8252, - "end": 8265, + "start": 8940, + "end": 8953, "loc": { "start": { - "line": 173, + "line": 181, "column": 14 }, "end": { - "line": 173, + "line": 181, "column": 27 } } @@ -47866,15 +48378,15 @@ "binop": null, "updateContext": null }, - "start": 8265, - "end": 8266, + "start": 8953, + "end": 8954, "loc": { "start": { - "line": 173, + "line": 181, "column": 27 }, "end": { - "line": 173, + "line": 181, "column": 28 } } @@ -47892,15 +48404,15 @@ "binop": null, "updateContext": null }, - "start": 8266, - "end": 8267, + "start": 8954, + "end": 8955, "loc": { "start": { - "line": 173, + "line": 181, "column": 28 }, "end": { - "line": 173, + "line": 181, "column": 29 } } @@ -47918,15 +48430,15 @@ "binop": null }, "value": "listener", - "start": 8274, - "end": 8282, + "start": 8962, + "end": 8970, "loc": { "start": { - "line": 174, + "line": 182, "column": 6 }, "end": { - "line": 174, + "line": 182, "column": 14 } } @@ -47944,15 +48456,15 @@ "binop": null, "updateContext": null }, - "start": 8282, - "end": 8283, + "start": 8970, + "end": 8971, "loc": { "start": { - "line": 174, + "line": 182, "column": 14 }, "end": { - "line": 174, + "line": 182, "column": 15 } } @@ -47970,15 +48482,15 @@ "binop": null }, "value": "pointerMoveHandler", - "start": 8284, - "end": 8302, + "start": 8972, + "end": 8990, "loc": { "start": { - "line": 174, + "line": 182, "column": 16 }, "end": { - "line": 174, + "line": 182, "column": 34 } } @@ -47995,15 +48507,15 @@ "postfix": false, "binop": null }, - "start": 8307, - "end": 8308, + "start": 8995, + "end": 8996, "loc": { "start": { - "line": 175, + "line": 183, "column": 4 }, "end": { - "line": 175, + "line": 183, "column": 5 } } @@ -48021,15 +48533,15 @@ "binop": null, "updateContext": null }, - "start": 8308, - "end": 8309, + "start": 8996, + "end": 8997, "loc": { "start": { - "line": 175, + "line": 183, "column": 5 }, "end": { - "line": 175, + "line": 183, "column": 6 } } @@ -48046,15 +48558,15 @@ "postfix": false, "binop": null }, - "start": 8310, - "end": 8311, + "start": 8998, + "end": 8999, "loc": { "start": { - "line": 175, + "line": 183, "column": 7 }, "end": { - "line": 175, + "line": 183, "column": 8 } } @@ -48072,15 +48584,15 @@ "binop": null }, "value": "types", - "start": 8318, - "end": 8323, + "start": 9006, + "end": 9011, "loc": { "start": { - "line": 176, + "line": 184, "column": 6 }, "end": { - "line": 176, + "line": 184, "column": 11 } } @@ -48098,15 +48610,15 @@ "binop": null, "updateContext": null }, - "start": 8323, - "end": 8324, + "start": 9011, + "end": 9012, "loc": { "start": { - "line": 176, + "line": 184, "column": 11 }, "end": { - "line": 176, + "line": 184, "column": 12 } } @@ -48124,15 +48636,15 @@ "binop": null, "updateContext": null }, - "start": 8325, - "end": 8326, + "start": 9013, + "end": 9014, "loc": { "start": { - "line": 176, + "line": 184, "column": 13 }, "end": { - "line": 176, + "line": 184, "column": 14 } } @@ -48151,15 +48663,15 @@ "updateContext": null }, "value": "pointerup", - "start": 8326, - "end": 8337, + "start": 9014, + "end": 9025, "loc": { "start": { - "line": 176, + "line": 184, "column": 14 }, "end": { - "line": 176, + "line": 184, "column": 25 } } @@ -48177,15 +48689,15 @@ "binop": null, "updateContext": null }, - "start": 8337, - "end": 8338, + "start": 9025, + "end": 9026, "loc": { "start": { - "line": 176, + "line": 184, "column": 25 }, "end": { - "line": 176, + "line": 184, "column": 26 } } @@ -48204,15 +48716,15 @@ "updateContext": null }, "value": "pointerout", - "start": 8339, - "end": 8351, + "start": 9027, + "end": 9039, "loc": { "start": { - "line": 176, + "line": 184, "column": 27 }, "end": { - "line": 176, + "line": 184, "column": 39 } } @@ -48230,15 +48742,15 @@ "binop": null, "updateContext": null }, - "start": 8351, - "end": 8352, + "start": 9039, + "end": 9040, "loc": { "start": { - "line": 176, + "line": 184, "column": 39 }, "end": { - "line": 176, + "line": 184, "column": 40 } } @@ -48257,15 +48769,15 @@ "updateContext": null }, "value": "pointerleave", - "start": 8353, - "end": 8367, + "start": 9041, + "end": 9055, "loc": { "start": { - "line": 176, + "line": 184, "column": 41 }, "end": { - "line": 176, + "line": 184, "column": 55 } } @@ -48283,15 +48795,15 @@ "binop": null, "updateContext": null }, - "start": 8367, - "end": 8368, + "start": 9055, + "end": 9056, "loc": { "start": { - "line": 176, + "line": 184, "column": 55 }, "end": { - "line": 176, + "line": 184, "column": 56 } } @@ -48310,15 +48822,15 @@ "updateContext": null }, "value": "pointercancel", - "start": 8369, - "end": 8384, + "start": 9057, + "end": 9072, "loc": { "start": { - "line": 176, + "line": 184, "column": 57 }, "end": { - "line": 176, + "line": 184, "column": 72 } } @@ -48336,15 +48848,15 @@ "binop": null, "updateContext": null }, - "start": 8384, - "end": 8385, + "start": 9072, + "end": 9073, "loc": { "start": { - "line": 176, + "line": 184, "column": 72 }, "end": { - "line": 176, + "line": 184, "column": 73 } } @@ -48362,15 +48874,15 @@ "binop": null, "updateContext": null }, - "start": 8385, - "end": 8386, + "start": 9073, + "end": 9074, "loc": { "start": { - "line": 176, + "line": 184, "column": 73 }, "end": { - "line": 176, + "line": 184, "column": 74 } } @@ -48388,15 +48900,15 @@ "binop": null }, "value": "listener", - "start": 8393, - "end": 8401, + "start": 9081, + "end": 9089, "loc": { "start": { - "line": 177, + "line": 185, "column": 6 }, "end": { - "line": 177, + "line": 185, "column": 14 } } @@ -48414,15 +48926,15 @@ "binop": null, "updateContext": null }, - "start": 8401, - "end": 8402, + "start": 9089, + "end": 9090, "loc": { "start": { - "line": 177, + "line": 185, "column": 14 }, "end": { - "line": 177, + "line": 185, "column": 15 } } @@ -48440,15 +48952,15 @@ "binop": null }, "value": "pointerUpHandler", - "start": 8403, - "end": 8419, + "start": 9091, + "end": 9107, "loc": { "start": { - "line": 177, + "line": 185, "column": 16 }, "end": { - "line": 177, + "line": 185, "column": 32 } } @@ -48465,15 +48977,15 @@ "postfix": false, "binop": null }, - "start": 8424, - "end": 8425, + "start": 9112, + "end": 9113, "loc": { "start": { - "line": 178, + "line": 186, "column": 4 }, "end": { - "line": 178, + "line": 186, "column": 5 } } @@ -48491,15 +49003,15 @@ "binop": null, "updateContext": null }, - "start": 8425, - "end": 8426, + "start": 9113, + "end": 9114, "loc": { "start": { - "line": 178, + "line": 186, "column": 5 }, "end": { - "line": 178, + "line": 186, "column": 6 } } @@ -48516,15 +49028,15 @@ "postfix": false, "binop": null }, - "start": 8429, - "end": 8430, + "start": 9117, + "end": 9118, "loc": { "start": { - "line": 179, + "line": 187, "column": 2 }, "end": { - "line": 179, + "line": 187, "column": 3 } } @@ -48542,15 +49054,15 @@ "binop": null, "updateContext": null }, - "start": 8430, - "end": 8431, + "start": 9118, + "end": 9119, "loc": { "start": { - "line": 179, + "line": 187, "column": 3 }, "end": { - "line": 179, + "line": 187, "column": 4 } } @@ -48568,15 +49080,15 @@ "binop": null }, "value": "logger", - "start": 8435, - "end": 8441, + "start": 9123, + "end": 9129, "loc": { "start": { - "line": 181, + "line": 189, "column": 2 }, "end": { - "line": 181, + "line": 189, "column": 8 } } @@ -48594,15 +49106,15 @@ "binop": null, "updateContext": null }, - "start": 8441, - "end": 8442, + "start": 9129, + "end": 9130, "loc": { "start": { - "line": 181, + "line": 189, "column": 8 }, "end": { - "line": 181, + "line": 189, "column": 9 } } @@ -48620,15 +49132,15 @@ "binop": null }, "value": "debug", - "start": 8442, - "end": 8447, + "start": 9130, + "end": 9135, "loc": { "start": { - "line": 181, + "line": 189, "column": 9 }, "end": { - "line": 181, + "line": 189, "column": 14 } } @@ -48645,15 +49157,15 @@ "postfix": false, "binop": null }, - "start": 8447, - "end": 8448, + "start": 9135, + "end": 9136, "loc": { "start": { - "line": 181, + "line": 189, "column": 14 }, "end": { - "line": 181, + "line": 189, "column": 15 } } @@ -48672,15 +49184,15 @@ "updateContext": null }, "value": "attaching listeners", - "start": 8448, - "end": 8469, + "start": 9136, + "end": 9157, "loc": { "start": { - "line": 181, + "line": 189, "column": 15 }, "end": { - "line": 181, + "line": 189, "column": 36 } } @@ -48698,15 +49210,15 @@ "binop": null, "updateContext": null }, - "start": 8469, - "end": 8470, + "start": 9157, + "end": 9158, "loc": { "start": { - "line": 181, + "line": 189, "column": 36 }, "end": { - "line": 181, + "line": 189, "column": 37 } } @@ -48724,15 +49236,15 @@ "binop": null }, "value": "context", - "start": 8471, - "end": 8478, + "start": 9159, + "end": 9166, "loc": { "start": { - "line": 181, + "line": 189, "column": 38 }, "end": { - "line": 181, + "line": 189, "column": 45 } } @@ -48749,15 +49261,15 @@ "postfix": false, "binop": null }, - "start": 8478, - "end": 8479, + "start": 9166, + "end": 9167, "loc": { "start": { - "line": 181, + "line": 189, "column": 45 }, "end": { - "line": 181, + "line": 189, "column": 46 } } @@ -48775,15 +49287,15 @@ "binop": null, "updateContext": null }, - "start": 8479, - "end": 8480, + "start": 9167, + "end": 9168, "loc": { "start": { - "line": 181, + "line": 189, "column": 46 }, "end": { - "line": 181, + "line": 189, "column": 47 } } @@ -48801,15 +49313,15 @@ "binop": null }, "value": "context", - "start": 8483, - "end": 8490, + "start": 9171, + "end": 9178, "loc": { "start": { - "line": 182, + "line": 190, "column": 2 }, "end": { - "line": 182, + "line": 190, "column": 9 } } @@ -48827,15 +49339,15 @@ "binop": null, "updateContext": null }, - "start": 8490, - "end": 8491, + "start": 9178, + "end": 9179, "loc": { "start": { - "line": 182, + "line": 190, "column": 9 }, "end": { - "line": 182, + "line": 190, "column": 10 } } @@ -48853,15 +49365,15 @@ "binop": null }, "value": "listeners", - "start": 8491, - "end": 8500, + "start": 9179, + "end": 9188, "loc": { "start": { - "line": 182, + "line": 190, "column": 10 }, "end": { - "line": 182, + "line": 190, "column": 19 } } @@ -48879,15 +49391,15 @@ "binop": null, "updateContext": null }, - "start": 8500, - "end": 8501, + "start": 9188, + "end": 9189, "loc": { "start": { - "line": 182, + "line": 190, "column": 19 }, "end": { - "line": 182, + "line": 190, "column": 20 } } @@ -48905,15 +49417,15 @@ "binop": null }, "value": "forEach", - "start": 8501, - "end": 8508, + "start": 9189, + "end": 9196, "loc": { "start": { - "line": 182, + "line": 190, "column": 20 }, "end": { - "line": 182, + "line": 190, "column": 27 } } @@ -48930,15 +49442,15 @@ "postfix": false, "binop": null }, - "start": 8508, - "end": 8509, + "start": 9196, + "end": 9197, "loc": { "start": { - "line": 182, + "line": 190, "column": 27 }, "end": { - "line": 182, + "line": 190, "column": 28 } } @@ -48955,15 +49467,15 @@ "postfix": false, "binop": null }, - "start": 8509, - "end": 8510, + "start": 9197, + "end": 9198, "loc": { "start": { - "line": 182, + "line": 190, "column": 28 }, "end": { - "line": 182, + "line": 190, "column": 29 } } @@ -48981,15 +49493,15 @@ "binop": null }, "value": "item", - "start": 8510, - "end": 8514, + "start": 9198, + "end": 9202, "loc": { "start": { - "line": 182, + "line": 190, "column": 29 }, "end": { - "line": 182, + "line": 190, "column": 33 } } @@ -49006,15 +49518,15 @@ "postfix": false, "binop": null }, - "start": 8514, - "end": 8515, + "start": 9202, + "end": 9203, "loc": { "start": { - "line": 182, + "line": 190, "column": 33 }, "end": { - "line": 182, + "line": 190, "column": 34 } } @@ -49032,15 +49544,15 @@ "binop": null, "updateContext": null }, - "start": 8516, - "end": 8518, + "start": 9204, + "end": 9206, "loc": { "start": { - "line": 182, + "line": 190, "column": 35 }, "end": { - "line": 182, + "line": 190, "column": 37 } } @@ -49057,15 +49569,15 @@ "postfix": false, "binop": null }, - "start": 8519, - "end": 8520, + "start": 9207, + "end": 9208, "loc": { "start": { - "line": 182, + "line": 190, "column": 38 }, "end": { - "line": 182, + "line": 190, "column": 39 } } @@ -49083,15 +49595,15 @@ "binop": null }, "value": "item", - "start": 8525, - "end": 8529, + "start": 9213, + "end": 9217, "loc": { "start": { - "line": 183, + "line": 191, "column": 4 }, "end": { - "line": 183, + "line": 191, "column": 8 } } @@ -49109,15 +49621,15 @@ "binop": null, "updateContext": null }, - "start": 8529, - "end": 8530, + "start": 9217, + "end": 9218, "loc": { "start": { - "line": 183, + "line": 191, "column": 8 }, "end": { - "line": 183, + "line": 191, "column": 9 } } @@ -49135,15 +49647,15 @@ "binop": null }, "value": "types", - "start": 8530, - "end": 8535, + "start": 9218, + "end": 9223, "loc": { "start": { - "line": 183, + "line": 191, "column": 9 }, "end": { - "line": 183, + "line": 191, "column": 14 } } @@ -49161,15 +49673,15 @@ "binop": null, "updateContext": null }, - "start": 8535, - "end": 8536, + "start": 9223, + "end": 9224, "loc": { "start": { - "line": 183, + "line": 191, "column": 14 }, "end": { - "line": 183, + "line": 191, "column": 15 } } @@ -49187,15 +49699,15 @@ "binop": null }, "value": "forEach", - "start": 8536, - "end": 8543, + "start": 9224, + "end": 9231, "loc": { "start": { - "line": 183, + "line": 191, "column": 15 }, "end": { - "line": 183, + "line": 191, "column": 22 } } @@ -49212,15 +49724,15 @@ "postfix": false, "binop": null }, - "start": 8543, - "end": 8544, + "start": 9231, + "end": 9232, "loc": { "start": { - "line": 183, + "line": 191, "column": 22 }, "end": { - "line": 183, + "line": 191, "column": 23 } } @@ -49238,15 +49750,15 @@ "binop": null }, "value": "type", - "start": 8544, - "end": 8548, + "start": 9232, + "end": 9236, "loc": { "start": { - "line": 183, + "line": 191, "column": 23 }, "end": { - "line": 183, + "line": 191, "column": 27 } } @@ -49264,15 +49776,15 @@ "binop": null, "updateContext": null }, - "start": 8549, - "end": 8551, + "start": 9237, + "end": 9239, "loc": { "start": { - "line": 183, + "line": 191, "column": 28 }, "end": { - "line": 183, + "line": 191, "column": 30 } } @@ -49290,15 +49802,15 @@ "binop": null }, "value": "element", - "start": 8552, - "end": 8559, + "start": 9240, + "end": 9247, "loc": { "start": { - "line": 183, + "line": 191, "column": 31 }, "end": { - "line": 183, + "line": 191, "column": 38 } } @@ -49316,15 +49828,15 @@ "binop": null, "updateContext": null }, - "start": 8559, - "end": 8560, + "start": 9247, + "end": 9248, "loc": { "start": { - "line": 183, + "line": 191, "column": 38 }, "end": { - "line": 183, + "line": 191, "column": 39 } } @@ -49342,15 +49854,15 @@ "binop": null }, "value": "addEventListener", - "start": 8560, - "end": 8576, + "start": 9248, + "end": 9264, "loc": { "start": { - "line": 183, + "line": 191, "column": 39 }, "end": { - "line": 183, + "line": 191, "column": 55 } } @@ -49367,15 +49879,15 @@ "postfix": false, "binop": null }, - "start": 8576, - "end": 8577, + "start": 9264, + "end": 9265, "loc": { "start": { - "line": 183, + "line": 191, "column": 55 }, "end": { - "line": 183, + "line": 191, "column": 56 } } @@ -49393,15 +49905,15 @@ "binop": null }, "value": "type", - "start": 8577, - "end": 8581, + "start": 9265, + "end": 9269, "loc": { "start": { - "line": 183, + "line": 191, "column": 56 }, "end": { - "line": 183, + "line": 191, "column": 60 } } @@ -49419,15 +49931,15 @@ "binop": null, "updateContext": null }, - "start": 8581, - "end": 8582, + "start": 9269, + "end": 9270, "loc": { "start": { - "line": 183, + "line": 191, "column": 60 }, "end": { - "line": 183, + "line": 191, "column": 61 } } @@ -49445,15 +49957,15 @@ "binop": null }, "value": "item", - "start": 8583, - "end": 8587, + "start": 9271, + "end": 9275, "loc": { "start": { - "line": 183, + "line": 191, "column": 62 }, "end": { - "line": 183, + "line": 191, "column": 66 } } @@ -49471,15 +49983,15 @@ "binop": null, "updateContext": null }, - "start": 8587, - "end": 8588, + "start": 9275, + "end": 9276, "loc": { "start": { - "line": 183, + "line": 191, "column": 66 }, "end": { - "line": 183, + "line": 191, "column": 67 } } @@ -49497,15 +50009,15 @@ "binop": null }, "value": "listener", - "start": 8588, - "end": 8596, + "start": 9276, + "end": 9284, "loc": { "start": { - "line": 183, + "line": 191, "column": 67 }, "end": { - "line": 183, + "line": 191, "column": 75 } } @@ -49523,15 +50035,15 @@ "binop": null, "updateContext": null }, - "start": 8596, - "end": 8597, + "start": 9284, + "end": 9285, "loc": { "start": { - "line": 183, + "line": 191, "column": 75 }, "end": { - "line": 183, + "line": 191, "column": 76 } } @@ -49549,15 +50061,15 @@ "binop": null }, "value": "context", - "start": 8598, - "end": 8605, + "start": 9286, + "end": 9293, "loc": { "start": { - "line": 183, + "line": 191, "column": 77 }, "end": { - "line": 183, + "line": 191, "column": 84 } } @@ -49575,15 +50087,15 @@ "binop": null, "updateContext": null }, - "start": 8605, - "end": 8606, + "start": 9293, + "end": 9294, "loc": { "start": { - "line": 183, + "line": 191, "column": 84 }, "end": { - "line": 183, + "line": 191, "column": 85 } } @@ -49601,15 +50113,15 @@ "binop": null }, "value": "options", - "start": 8606, - "end": 8613, + "start": 9294, + "end": 9301, "loc": { "start": { - "line": 183, + "line": 191, "column": 85 }, "end": { - "line": 183, + "line": 191, "column": 92 } } @@ -49626,15 +50138,15 @@ "postfix": false, "binop": null }, - "start": 8613, - "end": 8614, + "start": 9301, + "end": 9302, "loc": { "start": { - "line": 183, + "line": 191, "column": 92 }, "end": { - "line": 183, + "line": 191, "column": 93 } } @@ -49651,15 +50163,15 @@ "postfix": false, "binop": null }, - "start": 8614, - "end": 8615, + "start": 9302, + "end": 9303, "loc": { "start": { - "line": 183, + "line": 191, "column": 93 }, "end": { - "line": 183, + "line": 191, "column": 94 } } @@ -49677,15 +50189,15 @@ "binop": null, "updateContext": null }, - "start": 8615, - "end": 8616, + "start": 9303, + "end": 9304, "loc": { "start": { - "line": 183, + "line": 191, "column": 94 }, "end": { - "line": 183, + "line": 191, "column": 95 } } @@ -49702,15 +50214,15 @@ "postfix": false, "binop": null }, - "start": 8619, - "end": 8620, + "start": 9307, + "end": 9308, "loc": { "start": { - "line": 184, + "line": 192, "column": 2 }, "end": { - "line": 184, + "line": 192, "column": 3 } } @@ -49727,15 +50239,15 @@ "postfix": false, "binop": null }, - "start": 8620, - "end": 8621, + "start": 9308, + "end": 9309, "loc": { "start": { - "line": 184, + "line": 192, "column": 3 }, "end": { - "line": 184, + "line": 192, "column": 4 } } @@ -49753,15 +50265,15 @@ "binop": null, "updateContext": null }, - "start": 8621, - "end": 8622, + "start": 9309, + "end": 9310, "loc": { "start": { - "line": 184, + "line": 192, "column": 4 }, "end": { - "line": 184, + "line": 192, "column": 5 } } @@ -49781,15 +50293,15 @@ "updateContext": null }, "value": "return", - "start": 8625, - "end": 8631, + "start": 9313, + "end": 9319, "loc": { "start": { - "line": 185, + "line": 193, "column": 2 }, "end": { - "line": 185, + "line": 193, "column": 8 } } @@ -49807,15 +50319,15 @@ "binop": null }, "value": "context", - "start": 8632, - "end": 8639, + "start": 9320, + "end": 9327, "loc": { "start": { - "line": 185, + "line": 193, "column": 9 }, "end": { - "line": 185, + "line": 193, "column": 16 } } @@ -49833,15 +50345,15 @@ "binop": null, "updateContext": null }, - "start": 8639, - "end": 8640, + "start": 9327, + "end": 9328, "loc": { "start": { - "line": 185, + "line": 193, "column": 16 }, "end": { - "line": 185, + "line": 193, "column": 17 } } @@ -49858,15 +50370,15 @@ "postfix": false, "binop": null }, - "start": 8641, - "end": 8642, + "start": 9329, + "end": 9330, "loc": { "start": { - "line": 186, + "line": 194, "column": 0 }, "end": { - "line": 186, + "line": 194, "column": 1 } } @@ -49886,15 +50398,15 @@ "updateContext": null }, "value": "export", - "start": 8644, - "end": 8650, + "start": 9332, + "end": 9338, "loc": { "start": { - "line": 188, + "line": 196, "column": 0 }, "end": { - "line": 188, + "line": 196, "column": 6 } } @@ -49913,15 +50425,15 @@ "binop": null }, "value": "function", - "start": 8651, - "end": 8659, + "start": 9339, + "end": 9347, "loc": { "start": { - "line": 188, + "line": 196, "column": 7 }, "end": { - "line": 188, + "line": 196, "column": 15 } } @@ -49939,15 +50451,15 @@ "binop": null }, "value": "detach", - "start": 8660, - "end": 8666, + "start": 9348, + "end": 9354, "loc": { "start": { - "line": 188, + "line": 196, "column": 16 }, "end": { - "line": 188, + "line": 196, "column": 22 } } @@ -49964,15 +50476,15 @@ "postfix": false, "binop": null }, - "start": 8666, - "end": 8667, + "start": 9354, + "end": 9355, "loc": { "start": { - "line": 188, + "line": 196, "column": 22 }, "end": { - "line": 188, + "line": 196, "column": 23 } } @@ -49990,15 +50502,15 @@ "binop": null }, "value": "element", - "start": 8667, - "end": 8674, + "start": 9355, + "end": 9362, "loc": { "start": { - "line": 188, + "line": 196, "column": 23 }, "end": { - "line": 188, + "line": 196, "column": 30 } } @@ -50016,15 +50528,15 @@ "binop": null, "updateContext": null }, - "start": 8674, - "end": 8675, + "start": 9362, + "end": 9363, "loc": { "start": { - "line": 188, + "line": 196, "column": 30 }, "end": { - "line": 188, + "line": 196, "column": 31 } } @@ -50042,15 +50554,15 @@ "binop": null }, "value": "context", - "start": 8676, - "end": 8683, + "start": 9364, + "end": 9371, "loc": { "start": { - "line": 188, + "line": 196, "column": 32 }, "end": { - "line": 188, + "line": 196, "column": 39 } } @@ -50067,15 +50579,15 @@ "postfix": false, "binop": null }, - "start": 8683, - "end": 8684, + "start": 9371, + "end": 9372, "loc": { "start": { - "line": 188, + "line": 196, "column": 39 }, "end": { - "line": 188, + "line": 196, "column": 40 } } @@ -50092,15 +50604,15 @@ "postfix": false, "binop": null }, - "start": 8685, - "end": 8686, + "start": 9373, + "end": 9374, "loc": { "start": { - "line": 188, + "line": 196, "column": 41 }, "end": { - "line": 188, + "line": 196, "column": 42 } } @@ -50118,15 +50630,15 @@ "binop": null }, "value": "logger", - "start": 8689, - "end": 8695, + "start": 9377, + "end": 9383, "loc": { "start": { - "line": 189, + "line": 197, "column": 2 }, "end": { - "line": 189, + "line": 197, "column": 8 } } @@ -50144,15 +50656,15 @@ "binop": null, "updateContext": null }, - "start": 8695, - "end": 8696, + "start": 9383, + "end": 9384, "loc": { "start": { - "line": 189, + "line": 197, "column": 8 }, "end": { - "line": 189, + "line": 197, "column": 9 } } @@ -50170,15 +50682,15 @@ "binop": null }, "value": "debug", - "start": 8696, - "end": 8701, + "start": 9384, + "end": 9389, "loc": { "start": { - "line": 189, + "line": 197, "column": 9 }, "end": { - "line": 189, + "line": 197, "column": 14 } } @@ -50195,15 +50707,15 @@ "postfix": false, "binop": null }, - "start": 8701, - "end": 8702, + "start": 9389, + "end": 9390, "loc": { "start": { - "line": 189, + "line": 197, "column": 14 }, "end": { - "line": 189, + "line": 197, "column": 15 } } @@ -50222,15 +50734,15 @@ "updateContext": null }, "value": "detaching listeners", - "start": 8702, - "end": 8723, + "start": 9390, + "end": 9411, "loc": { "start": { - "line": 189, + "line": 197, "column": 15 }, "end": { - "line": 189, + "line": 197, "column": 36 } } @@ -50248,15 +50760,15 @@ "binop": null, "updateContext": null }, - "start": 8723, - "end": 8724, + "start": 9411, + "end": 9412, "loc": { "start": { - "line": 189, + "line": 197, "column": 36 }, "end": { - "line": 189, + "line": 197, "column": 37 } } @@ -50274,15 +50786,15 @@ "binop": null }, "value": "context", - "start": 8725, - "end": 8732, + "start": 9413, + "end": 9420, "loc": { "start": { - "line": 189, + "line": 197, "column": 38 }, "end": { - "line": 189, + "line": 197, "column": 45 } } @@ -50299,15 +50811,15 @@ "postfix": false, "binop": null }, - "start": 8732, - "end": 8733, + "start": 9420, + "end": 9421, "loc": { "start": { - "line": 189, + "line": 197, "column": 45 }, "end": { - "line": 189, + "line": 197, "column": 46 } } @@ -50325,15 +50837,15 @@ "binop": null, "updateContext": null }, - "start": 8733, - "end": 8734, + "start": 9421, + "end": 9422, "loc": { "start": { - "line": 189, + "line": 197, "column": 46 }, "end": { - "line": 189, + "line": 197, "column": 47 } } @@ -50351,15 +50863,15 @@ "binop": null }, "value": "context", - "start": 8737, - "end": 8744, + "start": 9425, + "end": 9432, "loc": { "start": { - "line": 190, + "line": 198, "column": 2 }, "end": { - "line": 190, + "line": 198, "column": 9 } } @@ -50377,15 +50889,15 @@ "binop": null, "updateContext": null }, - "start": 8744, - "end": 8745, + "start": 9432, + "end": 9433, "loc": { "start": { - "line": 190, + "line": 198, "column": 9 }, "end": { - "line": 190, + "line": 198, "column": 10 } } @@ -50403,15 +50915,15 @@ "binop": null }, "value": "listeners", - "start": 8745, - "end": 8754, + "start": 9433, + "end": 9442, "loc": { "start": { - "line": 190, + "line": 198, "column": 10 }, "end": { - "line": 190, + "line": 198, "column": 19 } } @@ -50429,15 +50941,15 @@ "binop": null, "updateContext": null }, - "start": 8754, - "end": 8755, + "start": 9442, + "end": 9443, "loc": { "start": { - "line": 190, + "line": 198, "column": 19 }, "end": { - "line": 190, + "line": 198, "column": 20 } } @@ -50455,15 +50967,15 @@ "binop": null }, "value": "forEach", - "start": 8755, - "end": 8762, + "start": 9443, + "end": 9450, "loc": { "start": { - "line": 190, + "line": 198, "column": 20 }, "end": { - "line": 190, + "line": 198, "column": 27 } } @@ -50480,15 +50992,15 @@ "postfix": false, "binop": null }, - "start": 8762, - "end": 8763, + "start": 9450, + "end": 9451, "loc": { "start": { - "line": 190, + "line": 198, "column": 27 }, "end": { - "line": 190, + "line": 198, "column": 28 } } @@ -50505,15 +51017,15 @@ "postfix": false, "binop": null }, - "start": 8763, - "end": 8764, + "start": 9451, + "end": 9452, "loc": { "start": { - "line": 190, + "line": 198, "column": 28 }, "end": { - "line": 190, + "line": 198, "column": 29 } } @@ -50531,15 +51043,15 @@ "binop": null }, "value": "item", - "start": 8764, - "end": 8768, + "start": 9452, + "end": 9456, "loc": { "start": { - "line": 190, + "line": 198, "column": 29 }, "end": { - "line": 190, + "line": 198, "column": 33 } } @@ -50556,15 +51068,15 @@ "postfix": false, "binop": null }, - "start": 8768, - "end": 8769, + "start": 9456, + "end": 9457, "loc": { "start": { - "line": 190, + "line": 198, "column": 33 }, "end": { - "line": 190, + "line": 198, "column": 34 } } @@ -50582,15 +51094,15 @@ "binop": null, "updateContext": null }, - "start": 8770, - "end": 8772, + "start": 9458, + "end": 9460, "loc": { "start": { - "line": 190, + "line": 198, "column": 35 }, "end": { - "line": 190, + "line": 198, "column": 37 } } @@ -50607,15 +51119,15 @@ "postfix": false, "binop": null }, - "start": 8773, - "end": 8774, + "start": 9461, + "end": 9462, "loc": { "start": { - "line": 190, + "line": 198, "column": 38 }, "end": { - "line": 190, + "line": 198, "column": 39 } } @@ -50633,15 +51145,15 @@ "binop": null }, "value": "item", - "start": 8779, - "end": 8783, + "start": 9467, + "end": 9471, "loc": { "start": { - "line": 191, + "line": 199, "column": 4 }, "end": { - "line": 191, + "line": 199, "column": 8 } } @@ -50659,15 +51171,15 @@ "binop": null, "updateContext": null }, - "start": 8783, - "end": 8784, + "start": 9471, + "end": 9472, "loc": { "start": { - "line": 191, + "line": 199, "column": 8 }, "end": { - "line": 191, + "line": 199, "column": 9 } } @@ -50685,15 +51197,15 @@ "binop": null }, "value": "types", - "start": 8784, - "end": 8789, + "start": 9472, + "end": 9477, "loc": { "start": { - "line": 191, + "line": 199, "column": 9 }, "end": { - "line": 191, + "line": 199, "column": 14 } } @@ -50711,15 +51223,15 @@ "binop": null, "updateContext": null }, - "start": 8789, - "end": 8790, + "start": 9477, + "end": 9478, "loc": { "start": { - "line": 191, + "line": 199, "column": 14 }, "end": { - "line": 191, + "line": 199, "column": 15 } } @@ -50737,15 +51249,15 @@ "binop": null }, "value": "forEach", - "start": 8790, - "end": 8797, + "start": 9478, + "end": 9485, "loc": { "start": { - "line": 191, + "line": 199, "column": 15 }, "end": { - "line": 191, + "line": 199, "column": 22 } } @@ -50762,15 +51274,15 @@ "postfix": false, "binop": null }, - "start": 8797, - "end": 8798, + "start": 9485, + "end": 9486, "loc": { "start": { - "line": 191, + "line": 199, "column": 22 }, "end": { - "line": 191, + "line": 199, "column": 23 } } @@ -50788,15 +51300,15 @@ "binop": null }, "value": "type", - "start": 8798, - "end": 8802, + "start": 9486, + "end": 9490, "loc": { "start": { - "line": 191, + "line": 199, "column": 23 }, "end": { - "line": 191, + "line": 199, "column": 27 } } @@ -50814,15 +51326,15 @@ "binop": null, "updateContext": null }, - "start": 8803, - "end": 8805, + "start": 9491, + "end": 9493, "loc": { "start": { - "line": 191, + "line": 199, "column": 28 }, "end": { - "line": 191, + "line": 199, "column": 30 } } @@ -50840,15 +51352,15 @@ "binop": null }, "value": "element", - "start": 8806, - "end": 8813, + "start": 9494, + "end": 9501, "loc": { "start": { - "line": 191, + "line": 199, "column": 31 }, "end": { - "line": 191, + "line": 199, "column": 38 } } @@ -50866,15 +51378,15 @@ "binop": null, "updateContext": null }, - "start": 8813, - "end": 8814, + "start": 9501, + "end": 9502, "loc": { "start": { - "line": 191, + "line": 199, "column": 38 }, "end": { - "line": 191, + "line": 199, "column": 39 } } @@ -50892,15 +51404,15 @@ "binop": null }, "value": "removeEventListener", - "start": 8814, - "end": 8833, + "start": 9502, + "end": 9521, "loc": { "start": { - "line": 191, + "line": 199, "column": 39 }, "end": { - "line": 191, + "line": 199, "column": 58 } } @@ -50917,15 +51429,15 @@ "postfix": false, "binop": null }, - "start": 8833, - "end": 8834, + "start": 9521, + "end": 9522, "loc": { "start": { - "line": 191, + "line": 199, "column": 58 }, "end": { - "line": 191, + "line": 199, "column": 59 } } @@ -50943,15 +51455,15 @@ "binop": null }, "value": "type", - "start": 8834, - "end": 8838, + "start": 9522, + "end": 9526, "loc": { "start": { - "line": 191, + "line": 199, "column": 59 }, "end": { - "line": 191, + "line": 199, "column": 63 } } @@ -50969,15 +51481,15 @@ "binop": null, "updateContext": null }, - "start": 8838, - "end": 8839, + "start": 9526, + "end": 9527, "loc": { "start": { - "line": 191, + "line": 199, "column": 63 }, "end": { - "line": 191, + "line": 199, "column": 64 } } @@ -50995,15 +51507,15 @@ "binop": null }, "value": "item", - "start": 8840, - "end": 8844, + "start": 9528, + "end": 9532, "loc": { "start": { - "line": 191, + "line": 199, "column": 65 }, "end": { - "line": 191, + "line": 199, "column": 69 } } @@ -51021,15 +51533,15 @@ "binop": null, "updateContext": null }, - "start": 8844, - "end": 8845, + "start": 9532, + "end": 9533, "loc": { "start": { - "line": 191, + "line": 199, "column": 69 }, "end": { - "line": 191, + "line": 199, "column": 70 } } @@ -51047,15 +51559,15 @@ "binop": null }, "value": "listener", - "start": 8845, - "end": 8853, + "start": 9533, + "end": 9541, "loc": { "start": { - "line": 191, + "line": 199, "column": 70 }, "end": { - "line": 191, + "line": 199, "column": 78 } } @@ -51073,15 +51585,15 @@ "binop": null, "updateContext": null }, - "start": 8853, - "end": 8854, + "start": 9541, + "end": 9542, "loc": { "start": { - "line": 191, + "line": 199, "column": 78 }, "end": { - "line": 191, + "line": 199, "column": 79 } } @@ -51099,15 +51611,15 @@ "binop": null }, "value": "context", - "start": 8855, - "end": 8862, + "start": 9543, + "end": 9550, "loc": { "start": { - "line": 191, + "line": 199, "column": 80 }, "end": { - "line": 191, + "line": 199, "column": 87 } } @@ -51125,15 +51637,15 @@ "binop": null, "updateContext": null }, - "start": 8862, - "end": 8863, + "start": 9550, + "end": 9551, "loc": { "start": { - "line": 191, + "line": 199, "column": 87 }, "end": { - "line": 191, + "line": 199, "column": 88 } } @@ -51151,15 +51663,15 @@ "binop": null }, "value": "options", - "start": 8863, - "end": 8870, + "start": 9551, + "end": 9558, "loc": { "start": { - "line": 191, + "line": 199, "column": 88 }, "end": { - "line": 191, + "line": 199, "column": 95 } } @@ -51176,15 +51688,15 @@ "postfix": false, "binop": null }, - "start": 8870, - "end": 8871, + "start": 9558, + "end": 9559, "loc": { "start": { - "line": 191, + "line": 199, "column": 95 }, "end": { - "line": 191, + "line": 199, "column": 96 } } @@ -51201,15 +51713,15 @@ "postfix": false, "binop": null }, - "start": 8871, - "end": 8872, + "start": 9559, + "end": 9560, "loc": { "start": { - "line": 191, + "line": 199, "column": 96 }, "end": { - "line": 191, + "line": 199, "column": 97 } } @@ -51227,15 +51739,15 @@ "binop": null, "updateContext": null }, - "start": 8872, - "end": 8873, + "start": 9560, + "end": 9561, "loc": { "start": { - "line": 191, + "line": 199, "column": 97 }, "end": { - "line": 191, + "line": 199, "column": 98 } } @@ -51252,15 +51764,15 @@ "postfix": false, "binop": null }, - "start": 8876, - "end": 8877, + "start": 9564, + "end": 9565, "loc": { "start": { - "line": 192, + "line": 200, "column": 2 }, "end": { - "line": 192, + "line": 200, "column": 3 } } @@ -51277,15 +51789,15 @@ "postfix": false, "binop": null }, - "start": 8877, - "end": 8878, + "start": 9565, + "end": 9566, "loc": { "start": { - "line": 192, + "line": 200, "column": 3 }, "end": { - "line": 192, + "line": 200, "column": 4 } } @@ -51303,15 +51815,15 @@ "binop": null, "updateContext": null }, - "start": 8878, - "end": 8879, + "start": 9566, + "end": 9567, "loc": { "start": { - "line": 192, + "line": 200, "column": 4 }, "end": { - "line": 192, + "line": 200, "column": 5 } } @@ -51328,15 +51840,15 @@ "postfix": false, "binop": null }, - "start": 8880, - "end": 8881, + "start": 9568, + "end": 9569, "loc": { "start": { - "line": 193, + "line": 201, "column": 0 }, "end": { - "line": 193, + "line": 201, "column": 1 } } @@ -51354,15 +51866,15 @@ "binop": null, "updateContext": null }, - "start": 8882, - "end": 8882, + "start": 9570, + "end": 9570, "loc": { "start": { - "line": 194, + "line": 202, "column": 0 }, "end": { - "line": 194, + "line": 202, "column": 0 } } diff --git a/docs/ast/source/myscript.js.json b/docs/ast/source/myscript.js.json index 5fb25b19..a1c7fe64 100644 --- a/docs/ast/source/myscript.js.json +++ b/docs/ast/source/myscript.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 739, + "end": 1152, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 32, + "line": 47, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 739, + "end": 1152, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 32, + "line": 47, "column": 0 } }, @@ -376,7 +376,7 @@ { "type": "ImportDeclaration", "start": 301, - "end": 335, + "end": 365, "loc": { "start": { "line": 6, @@ -384,35 +384,173 @@ }, "end": { "line": 6, + "column": 64 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 308, + "end": 324, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 23 + } + }, + "local": { + "type": "Identifier", + "start": 308, + "end": 324, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 23 + }, + "identifierName": "DefaultBehaviors" + }, + "name": "DefaultBehaviors" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 330, + "end": 364, + "loc": { + "start": { + "line": 6, + "column": 29 + }, + "end": { + "line": 6, + "column": 63 + } + }, + "extra": { + "rawValue": "./configuration/DefaultBehaviors", + "raw": "'./configuration/DefaultBehaviors'" + }, + "value": "./configuration/DefaultBehaviors" + } + }, + { + "type": "ImportDeclaration", + "start": 366, + "end": 411, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 45 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 373, + "end": 386, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 20 + } + }, + "local": { + "type": "Identifier", + "start": 378, + "end": 386, + "loc": { + "start": { + "line": 7, + "column": 12 + }, + "end": { + "line": 7, + "column": 20 + }, + "identifierName": "InkModel" + }, + "name": "InkModel" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 392, + "end": 410, + "loc": { + "start": { + "line": 7, + "column": 26 + }, + "end": { + "line": 7, + "column": 44 + } + }, + "extra": { + "rawValue": "./model/InkModel", + "raw": "'./model/InkModel'" + }, + "value": "./model/InkModel" + } + }, + { + "type": "ImportDeclaration", + "start": 412, + "end": 446, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, "column": 34 } }, "specifiers": [ { "type": "ImportSpecifier", - "start": 310, - "end": 316, + "start": 421, + "end": 427, "loc": { "start": { - "line": 6, + "line": 8, "column": 9 }, "end": { - "line": 6, + "line": 8, "column": 15 } }, "imported": { "type": "Identifier", - "start": 310, - "end": 316, + "start": 421, + "end": 427, "loc": { "start": { - "line": 6, + "line": 8, "column": 9 }, "end": { - "line": 6, + "line": 8, "column": 15 }, "identifierName": "Editor" @@ -421,15 +559,15 @@ }, "local": { "type": "Identifier", - "start": 310, - "end": 316, + "start": 421, + "end": 427, "loc": { "start": { - "line": 6, + "line": 8, "column": 9 }, "end": { - "line": 6, + "line": 8, "column": 15 }, "identifierName": "Editor" @@ -440,15 +578,15 @@ ], "source": { "type": "StringLiteral", - "start": 324, - "end": 334, + "start": 435, + "end": 445, "loc": { "start": { - "line": 6, + "line": 8, "column": 23 }, "end": { - "line": 6, + "line": 8, "column": 33 } }, @@ -461,44 +599,44 @@ }, { "type": "ImportDeclaration", - "start": 336, - "end": 404, + "start": 447, + "end": 515, "loc": { "start": { - "line": 7, + "line": 9, "column": 0 }, "end": { - "line": 7, + "line": 9, "column": 68 } }, "specifiers": [ { "type": "ImportSpecifier", - "start": 345, - "end": 353, + "start": 456, + "end": 464, "loc": { "start": { - "line": 7, + "line": 9, "column": 9 }, "end": { - "line": 7, + "line": 9, "column": 17 } }, "imported": { "type": "Identifier", - "start": 345, - "end": 353, + "start": 456, + "end": 464, "loc": { "start": { - "line": 7, + "line": 9, "column": 9 }, "end": { - "line": 7, + "line": 9, "column": 17 }, "identifierName": "register" @@ -507,15 +645,15 @@ }, "local": { "type": "Identifier", - "start": 345, - "end": 353, + "start": 456, + "end": 464, "loc": { "start": { - "line": 7, + "line": 9, "column": 9 }, "end": { - "line": 7, + "line": 9, "column": 17 }, "identifierName": "register" @@ -525,29 +663,29 @@ }, { "type": "ImportSpecifier", - "start": 355, - "end": 379, + "start": 466, + "end": 490, "loc": { "start": { - "line": 7, + "line": 9, "column": 19 }, "end": { - "line": 7, + "line": 9, "column": 43 } }, "imported": { "type": "Identifier", - "start": 355, - "end": 379, + "start": 466, + "end": 490, "loc": { "start": { - "line": 7, + "line": 9, "column": 19 }, "end": { - "line": 7, + "line": 9, "column": 43 }, "identifierName": "getAvailableLanguageList" @@ -556,15 +694,15 @@ }, "local": { "type": "Identifier", - "start": 355, - "end": 379, + "start": 466, + "end": 490, "loc": { "start": { - "line": 7, + "line": 9, "column": 19 }, "end": { - "line": 7, + "line": 9, "column": 43 }, "identifierName": "getAvailableLanguageList" @@ -575,15 +713,15 @@ ], "source": { "type": "StringLiteral", - "start": 387, - "end": 403, + "start": 498, + "end": 514, "loc": { "start": { - "line": 7, + "line": 9, "column": 51 }, "end": { - "line": 7, + "line": 9, "column": 67 } }, @@ -594,46 +732,115 @@ "value": "./EditorFacade" } }, + { + "type": "ImportDeclaration", + "start": 516, + "end": 579, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 63 + } + }, + "specifiers": [ + { + "type": "ImportNamespaceSpecifier", + "start": 523, + "end": 545, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 29 + } + }, + "local": { + "type": "Identifier", + "start": 528, + "end": 545, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 29 + }, + "identifierName": "RecognizerContext" + }, + "name": "RecognizerContext" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 551, + "end": 578, + "loc": { + "start": { + "line": 10, + "column": 35 + }, + "end": { + "line": 10, + "column": 62 + } + }, + "extra": { + "rawValue": "./model/RecognizerContext", + "raw": "'./model/RecognizerContext'" + }, + "value": "./model/RecognizerContext" + } + }, { "type": "VariableDeclaration", - "start": 406, - "end": 564, + "start": 581, + "end": 858, "loc": { "start": { - "line": 9, + "line": 12, "column": 0 }, "end": { - "line": 18, + "line": 27, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 412, - "end": 563, + "start": 587, + "end": 857, "loc": { "start": { - "line": 9, + "line": 12, "column": 6 }, "end": { - "line": 18, + "line": 27, "column": 1 } }, "id": { "type": "Identifier", - "start": 412, - "end": 420, + "start": 587, + "end": 595, "loc": { "start": { - "line": 9, + "line": 12, "column": 6 }, "end": { - "line": 9, + "line": 12, "column": 14 }, "identifierName": "MyScript" @@ -642,30 +849,30 @@ }, "init": { "type": "ObjectExpression", - "start": 423, - "end": 563, + "start": 598, + "end": 857, "loc": { "start": { - "line": 9, + "line": 12, "column": 17 }, "end": { - "line": 18, + "line": 27, "column": 1 } }, "properties": [ { "type": "ObjectProperty", - "start": 427, - "end": 436, + "start": 602, + "end": 611, "loc": { "start": { - "line": 10, + "line": 13, "column": 2 }, "end": { - "line": 10, + "line": 13, "column": 11 } }, @@ -674,15 +881,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 427, - "end": 436, + "start": 602, + "end": 611, "loc": { "start": { - "line": 10, + "line": 13, "column": 2 }, "end": { - "line": 10, + "line": 13, "column": 11 }, "identifierName": "Constants" @@ -691,15 +898,15 @@ }, "value": { "type": "Identifier", - "start": 427, - "end": 436, + "start": 602, + "end": 611, "loc": { "start": { - "line": 10, + "line": 13, "column": 2 }, "end": { - "line": 10, + "line": 13, "column": 11 }, "identifierName": "Constants" @@ -712,16 +919,16 @@ }, { "type": "ObjectProperty", - "start": 440, - "end": 452, + "start": 643, + "end": 663, "loc": { "start": { - "line": 11, + "line": 15, "column": 2 }, "end": { - "line": 11, - "column": 14 + "line": 15, + "column": 22 } }, "method": false, @@ -729,54 +936,73 @@ "computed": false, "key": { "type": "Identifier", - "start": 440, - "end": 452, + "start": 643, + "end": 663, "loc": { "start": { - "line": 11, + "line": 15, "column": 2 }, "end": { - "line": 11, - "column": 14 + "line": 15, + "column": 22 }, - "identifierName": "LoggerConfig" + "identifierName": "DefaultConfiguration" }, - "name": "LoggerConfig" + "name": "DefaultConfiguration", + "leadingComments": null }, "value": { "type": "Identifier", - "start": 440, - "end": 452, + "start": 643, + "end": 663, "loc": { "start": { - "line": 11, + "line": 15, "column": 2 }, "end": { - "line": 11, - "column": 14 + "line": 15, + "column": 22 }, - "identifierName": "LoggerConfig" + "identifierName": "DefaultConfiguration" }, - "name": "LoggerConfig" + "name": "DefaultConfiguration" }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Default instantiations", + "start": 615, + "end": 640, + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 14, + "column": 27 + } + } + } + ], "extra": { "shorthand": true } }, { "type": "ObjectProperty", - "start": 456, - "end": 462, + "start": 667, + "end": 683, "loc": { "start": { - "line": 12, + "line": 16, "column": 2 }, "end": { - "line": 12, - "column": 8 + "line": 16, + "column": 18 } }, "method": false, @@ -784,37 +1010,37 @@ "computed": false, "key": { "type": "Identifier", - "start": 456, - "end": 462, + "start": 667, + "end": 683, "loc": { "start": { - "line": 12, + "line": 16, "column": 2 }, "end": { - "line": 12, - "column": 8 + "line": 16, + "column": 18 }, - "identifierName": "Editor" + "identifierName": "DefaultBehaviors" }, - "name": "Editor" + "name": "DefaultBehaviors" }, "value": { "type": "Identifier", - "start": 456, - "end": 462, + "start": 667, + "end": 683, "loc": { "start": { - "line": 12, + "line": 16, "column": 2 }, "end": { - "line": 12, - "column": 8 + "line": 16, + "column": 18 }, - "identifierName": "Editor" + "identifierName": "DefaultBehaviors" }, - "name": "Editor" + "name": "DefaultBehaviors" }, "extra": { "shorthand": true @@ -822,16 +1048,16 @@ }, { "type": "ObjectProperty", - "start": 466, - "end": 486, + "start": 687, + "end": 702, "loc": { "start": { - "line": 13, + "line": 17, "column": 2 }, "end": { - "line": 13, - "column": 22 + "line": 17, + "column": 17 } }, "method": false, @@ -839,37 +1065,37 @@ "computed": false, "key": { "type": "Identifier", - "start": 466, - "end": 486, + "start": 687, + "end": 702, "loc": { "start": { - "line": 13, + "line": 17, "column": 2 }, "end": { - "line": 13, - "column": 22 + "line": 17, + "column": 17 }, - "identifierName": "DefaultConfiguration" + "identifierName": "DefaultPenStyle" }, - "name": "DefaultConfiguration" + "name": "DefaultPenStyle" }, "value": { "type": "Identifier", - "start": 466, - "end": 486, + "start": 687, + "end": 702, "loc": { "start": { - "line": 13, + "line": 17, "column": 2 }, "end": { - "line": 13, - "column": 22 + "line": 17, + "column": 17 }, - "identifierName": "DefaultConfiguration" + "identifierName": "DefaultPenStyle" }, - "name": "DefaultConfiguration" + "name": "DefaultPenStyle" }, "extra": { "shorthand": true @@ -877,16 +1103,16 @@ }, { "type": "ObjectProperty", - "start": 490, - "end": 505, + "start": 706, + "end": 718, "loc": { "start": { - "line": 14, + "line": 18, "column": 2 }, "end": { - "line": 14, - "column": 17 + "line": 18, + "column": 14 } }, "method": false, @@ -894,37 +1120,37 @@ "computed": false, "key": { "type": "Identifier", - "start": 490, - "end": 505, + "start": 706, + "end": 718, "loc": { "start": { - "line": 14, + "line": 18, "column": 2 }, "end": { - "line": 14, - "column": 17 + "line": 18, + "column": 14 }, - "identifierName": "DefaultPenStyle" + "identifierName": "DefaultTheme" }, - "name": "DefaultPenStyle" + "name": "DefaultTheme" }, "value": { "type": "Identifier", - "start": 490, - "end": 505, + "start": 706, + "end": 718, "loc": { "start": { - "line": 14, + "line": 18, "column": 2 }, "end": { - "line": 14, - "column": 17 + "line": 18, + "column": 14 }, - "identifierName": "DefaultPenStyle" + "identifierName": "DefaultTheme" }, - "name": "DefaultPenStyle" + "name": "DefaultTheme" }, "extra": { "shorthand": true @@ -932,15 +1158,144 @@ }, { "type": "ObjectProperty", - "start": 509, - "end": 521, + "start": 744, + "end": 752, "loc": { "start": { - "line": 15, + "line": 20, "column": 2 }, "end": { - "line": 15, + "line": 20, + "column": 10 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 744, + "end": 752, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 10 + }, + "identifierName": "register" + }, + "name": "register", + "leadingComments": null + }, + "value": { + "type": "Identifier", + "start": 744, + "end": 752, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 10 + }, + "identifierName": "register" + }, + "name": "register" + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Helper functions", + "start": 722, + "end": 741, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 21 + } + } + } + ], + "extra": { + "shorthand": true + } + }, + { + "type": "ObjectProperty", + "start": 756, + "end": 780, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 26 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 756, + "end": 780, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 26 + }, + "identifierName": "getAvailableLanguageList" + }, + "name": "getAvailableLanguageList" + }, + "value": { + "type": "Identifier", + "start": 756, + "end": 780, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 26 + }, + "identifierName": "getAvailableLanguageList" + }, + "name": "getAvailableLanguageList" + }, + "extra": { + "shorthand": true + } + }, + { + "type": "ObjectProperty", + "start": 799, + "end": 811, + "loc": { + "start": { + "line": 23, + "column": 2 + }, + "end": { + "line": 23, "column": 14 } }, @@ -949,53 +1304,127 @@ "computed": false, "key": { "type": "Identifier", - "start": 509, - "end": 521, + "start": 799, + "end": 811, "loc": { "start": { - "line": 15, + "line": 23, "column": 2 }, "end": { - "line": 15, + "line": 23, "column": 14 }, - "identifierName": "DefaultTheme" + "identifierName": "LoggerConfig" }, - "name": "DefaultTheme" + "name": "LoggerConfig", + "leadingComments": null }, "value": { "type": "Identifier", - "start": 509, - "end": 521, + "start": 799, + "end": 811, "loc": { "start": { - "line": 15, + "line": 23, "column": 2 }, "end": { - "line": 15, + "line": 23, "column": 14 }, - "identifierName": "DefaultTheme" + "identifierName": "LoggerConfig" }, - "name": "DefaultTheme" + "name": "LoggerConfig" }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Internals", + "start": 784, + "end": 796, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 14 + } + } + } + ], "extra": { "shorthand": true } }, { "type": "ObjectProperty", - "start": 525, - "end": 533, + "start": 815, + "end": 821, "loc": { "start": { - "line": 16, + "line": 24, "column": 2 }, "end": { - "line": 16, + "line": 24, + "column": 8 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 815, + "end": 821, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 8 + }, + "identifierName": "Editor" + }, + "name": "Editor" + }, + "value": { + "type": "Identifier", + "start": 815, + "end": 821, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 8 + }, + "identifierName": "Editor" + }, + "name": "Editor" + }, + "extra": { + "shorthand": true + } + }, + { + "type": "ObjectProperty", + "start": 825, + "end": 833, + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 25, "column": 10 } }, @@ -1004,37 +1433,37 @@ "computed": false, "key": { "type": "Identifier", - "start": 525, - "end": 533, + "start": 825, + "end": 833, "loc": { "start": { - "line": 16, + "line": 25, "column": 2 }, "end": { - "line": 16, + "line": 25, "column": 10 }, - "identifierName": "register" + "identifierName": "InkModel" }, - "name": "register" + "name": "InkModel" }, "value": { "type": "Identifier", - "start": 525, - "end": 533, + "start": 825, + "end": 833, "loc": { "start": { - "line": 16, + "line": 25, "column": 2 }, "end": { - "line": 16, + "line": 25, "column": 10 }, - "identifierName": "register" + "identifierName": "InkModel" }, - "name": "register" + "name": "InkModel" }, "extra": { "shorthand": true @@ -1042,16 +1471,16 @@ }, { "type": "ObjectProperty", - "start": 537, - "end": 561, + "start": 837, + "end": 854, "loc": { "start": { - "line": 17, + "line": 26, "column": 2 }, "end": { - "line": 17, - "column": 26 + "line": 26, + "column": 19 } }, "method": false, @@ -1059,37 +1488,37 @@ "computed": false, "key": { "type": "Identifier", - "start": 537, - "end": 561, + "start": 837, + "end": 854, "loc": { "start": { - "line": 17, + "line": 26, "column": 2 }, "end": { - "line": 17, - "column": 26 + "line": 26, + "column": 19 }, - "identifierName": "getAvailableLanguageList" + "identifierName": "RecognizerContext" }, - "name": "getAvailableLanguageList" + "name": "RecognizerContext" }, "value": { "type": "Identifier", - "start": 537, - "end": 561, + "start": 837, + "end": 854, "loc": { "start": { - "line": 17, + "line": 26, "column": 2 }, "end": { - "line": 17, - "column": 26 + "line": 26, + "column": 19 }, - "identifierName": "getAvailableLanguageList" + "identifierName": "RecognizerContext" }, - "name": "getAvailableLanguageList" + "name": "RecognizerContext" }, "extra": { "shorthand": true @@ -1103,15 +1532,15 @@ }, { "type": "ExportNamedDeclaration", - "start": 566, - "end": 737, + "start": 860, + "end": 1150, "loc": { "start": { - "line": 20, + "line": 29, "column": 0 }, "end": { - "line": 30, + "line": 45, "column": 2 } }, @@ -1119,29 +1548,29 @@ "specifiers": [ { "type": "ExportSpecifier", - "start": 577, - "end": 596, + "start": 871, + "end": 890, "loc": { "start": { - "line": 21, + "line": 30, "column": 2 }, "end": { - "line": 21, + "line": 30, "column": 21 } }, "local": { "type": "Identifier", - "start": 577, - "end": 585, + "start": 871, + "end": 879, "loc": { "start": { - "line": 21, + "line": 30, "column": 2 }, "end": { - "line": 21, + "line": 30, "column": 10 }, "identifierName": "MyScript" @@ -1150,15 +1579,15 @@ }, "exported": { "type": "Identifier", - "start": 589, - "end": 596, + "start": 883, + "end": 890, "loc": { "start": { - "line": 21, + "line": 30, "column": 14 }, "end": { - "line": 21, + "line": 30, "column": 21 }, "identifierName": "default" @@ -1168,29 +1597,29 @@ }, { "type": "ExportSpecifier", - "start": 600, - "end": 609, + "start": 894, + "end": 903, "loc": { "start": { - "line": 22, + "line": 31, "column": 2 }, "end": { - "line": 22, + "line": 31, "column": 11 } }, "local": { "type": "Identifier", - "start": 600, - "end": 609, + "start": 894, + "end": 903, "loc": { "start": { - "line": 22, + "line": 31, "column": 2 }, "end": { - "line": 22, + "line": 31, "column": 11 }, "identifierName": "Constants" @@ -1199,15 +1628,15 @@ }, "exported": { "type": "Identifier", - "start": 600, - "end": 609, + "start": 894, + "end": 903, "loc": { "start": { - "line": 22, + "line": 31, "column": 2 }, "end": { - "line": 22, + "line": 31, "column": 11 }, "identifierName": "Constants" @@ -1217,176 +1646,146 @@ }, { "type": "ExportSpecifier", - "start": 613, - "end": 625, + "start": 935, + "end": 955, "loc": { "start": { - "line": 23, + "line": 33, "column": 2 }, "end": { - "line": 23, - "column": 14 + "line": 33, + "column": 22 } }, "local": { "type": "Identifier", - "start": 613, - "end": 625, + "start": 935, + "end": 955, "loc": { "start": { - "line": 23, + "line": 33, "column": 2 }, "end": { - "line": 23, - "column": 14 + "line": 33, + "column": 22 }, - "identifierName": "LoggerConfig" + "identifierName": "DefaultConfiguration" }, - "name": "LoggerConfig" + "name": "DefaultConfiguration", + "leadingComments": null }, "exported": { "type": "Identifier", - "start": 613, - "end": 625, - "loc": { - "start": { - "line": 23, - "column": 2 - }, - "end": { - "line": 23, - "column": 14 - }, - "identifierName": "LoggerConfig" - }, - "name": "LoggerConfig" - } - }, - { - "type": "ExportSpecifier", - "start": 629, - "end": 635, - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 8 - } - }, - "local": { - "type": "Identifier", - "start": 629, - "end": 635, + "start": 935, + "end": 955, "loc": { "start": { - "line": 24, + "line": 33, "column": 2 }, "end": { - "line": 24, - "column": 8 + "line": 33, + "column": 22 }, - "identifierName": "Editor" + "identifierName": "DefaultConfiguration" }, - "name": "Editor" + "name": "DefaultConfiguration" }, - "exported": { - "type": "Identifier", - "start": 629, - "end": 635, - "loc": { - "start": { - "line": 24, - "column": 2 - }, - "end": { - "line": 24, - "column": 8 - }, - "identifierName": "Editor" - }, - "name": "Editor" - } + "leadingComments": [ + { + "type": "CommentLine", + "value": " Default instantiations", + "start": 907, + "end": 932, + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 32, + "column": 27 + } + } + } + ] }, { "type": "ExportSpecifier", - "start": 639, - "end": 659, + "start": 959, + "end": 975, "loc": { "start": { - "line": 25, + "line": 34, "column": 2 }, "end": { - "line": 25, - "column": 22 + "line": 34, + "column": 18 } }, "local": { "type": "Identifier", - "start": 639, - "end": 659, + "start": 959, + "end": 975, "loc": { "start": { - "line": 25, + "line": 34, "column": 2 }, "end": { - "line": 25, - "column": 22 + "line": 34, + "column": 18 }, - "identifierName": "DefaultConfiguration" + "identifierName": "DefaultBehaviors" }, - "name": "DefaultConfiguration" + "name": "DefaultBehaviors" }, "exported": { "type": "Identifier", - "start": 639, - "end": 659, + "start": 959, + "end": 975, "loc": { "start": { - "line": 25, + "line": 34, "column": 2 }, "end": { - "line": 25, - "column": 22 + "line": 34, + "column": 18 }, - "identifierName": "DefaultConfiguration" + "identifierName": "DefaultBehaviors" }, - "name": "DefaultConfiguration" + "name": "DefaultBehaviors" } }, { "type": "ExportSpecifier", - "start": 663, - "end": 678, + "start": 979, + "end": 994, "loc": { "start": { - "line": 26, + "line": 35, "column": 2 }, "end": { - "line": 26, + "line": 35, "column": 17 } }, "local": { "type": "Identifier", - "start": 663, - "end": 678, + "start": 979, + "end": 994, "loc": { "start": { - "line": 26, + "line": 35, "column": 2 }, "end": { - "line": 26, + "line": 35, "column": 17 }, "identifierName": "DefaultPenStyle" @@ -1395,15 +1794,15 @@ }, "exported": { "type": "Identifier", - "start": 663, - "end": 678, + "start": 979, + "end": 994, "loc": { "start": { - "line": 26, + "line": 35, "column": 2 }, "end": { - "line": 26, + "line": 35, "column": 17 }, "identifierName": "DefaultPenStyle" @@ -1413,29 +1812,29 @@ }, { "type": "ExportSpecifier", - "start": 682, - "end": 694, + "start": 998, + "end": 1010, "loc": { "start": { - "line": 27, + "line": 36, "column": 2 }, "end": { - "line": 27, + "line": 36, "column": 14 } }, "local": { "type": "Identifier", - "start": 682, - "end": 694, + "start": 998, + "end": 1010, "loc": { "start": { - "line": 27, + "line": 36, "column": 2 }, "end": { - "line": 27, + "line": 36, "column": 14 }, "identifierName": "DefaultTheme" @@ -1444,15 +1843,15 @@ }, "exported": { "type": "Identifier", - "start": 682, - "end": 694, + "start": 998, + "end": 1010, "loc": { "start": { - "line": 27, + "line": 36, "column": 2 }, "end": { - "line": 27, + "line": 36, "column": 14 }, "identifierName": "DefaultTheme" @@ -1462,78 +1861,97 @@ }, { "type": "ExportSpecifier", - "start": 698, - "end": 706, + "start": 1036, + "end": 1044, "loc": { "start": { - "line": 28, + "line": 38, "column": 2 }, "end": { - "line": 28, + "line": 38, "column": 10 } }, "local": { "type": "Identifier", - "start": 698, - "end": 706, + "start": 1036, + "end": 1044, "loc": { "start": { - "line": 28, + "line": 38, "column": 2 }, "end": { - "line": 28, + "line": 38, "column": 10 }, "identifierName": "register" }, - "name": "register" + "name": "register", + "leadingComments": null }, "exported": { "type": "Identifier", - "start": 698, - "end": 706, + "start": 1036, + "end": 1044, "loc": { "start": { - "line": 28, + "line": 38, "column": 2 }, "end": { - "line": 28, + "line": 38, "column": 10 }, "identifierName": "register" }, "name": "register" - } + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Helper functions", + "start": 1014, + "end": 1033, + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 37, + "column": 21 + } + } + } + ] }, { "type": "ExportSpecifier", - "start": 710, - "end": 734, + "start": 1048, + "end": 1072, "loc": { "start": { - "line": 29, + "line": 39, "column": 2 }, "end": { - "line": 29, + "line": 39, "column": 26 } }, "local": { "type": "Identifier", - "start": 710, - "end": 734, + "start": 1048, + "end": 1072, "loc": { "start": { - "line": 29, + "line": 39, "column": 2 }, "end": { - "line": 29, + "line": 39, "column": 26 }, "identifierName": "getAvailableLanguageList" @@ -1542,31 +1960,343 @@ }, "exported": { "type": "Identifier", - "start": 710, - "end": 734, + "start": 1048, + "end": 1072, "loc": { "start": { - "line": 29, + "line": 39, "column": 2 }, "end": { - "line": 29, + "line": 39, "column": 26 }, "identifierName": "getAvailableLanguageList" }, "name": "getAvailableLanguageList" } - } - ], - "source": null - } - ], - "directives": [] - }, - "comments": [], - "tokens": [ - { + }, + { + "type": "ExportSpecifier", + "start": 1091, + "end": 1103, + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 41, + "column": 14 + } + }, + "local": { + "type": "Identifier", + "start": 1091, + "end": 1103, + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 41, + "column": 14 + }, + "identifierName": "LoggerConfig" + }, + "name": "LoggerConfig", + "leadingComments": null + }, + "exported": { + "type": "Identifier", + "start": 1091, + "end": 1103, + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 41, + "column": 14 + }, + "identifierName": "LoggerConfig" + }, + "name": "LoggerConfig" + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Internals", + "start": 1076, + "end": 1088, + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 40, + "column": 14 + } + } + } + ] + }, + { + "type": "ExportSpecifier", + "start": 1107, + "end": 1113, + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 42, + "column": 8 + } + }, + "local": { + "type": "Identifier", + "start": 1107, + "end": 1113, + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 42, + "column": 8 + }, + "identifierName": "Editor" + }, + "name": "Editor" + }, + "exported": { + "type": "Identifier", + "start": 1107, + "end": 1113, + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 42, + "column": 8 + }, + "identifierName": "Editor" + }, + "name": "Editor" + } + }, + { + "type": "ExportSpecifier", + "start": 1117, + "end": 1125, + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 43, + "column": 10 + } + }, + "local": { + "type": "Identifier", + "start": 1117, + "end": 1125, + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 43, + "column": 10 + }, + "identifierName": "InkModel" + }, + "name": "InkModel" + }, + "exported": { + "type": "Identifier", + "start": 1117, + "end": 1125, + "loc": { + "start": { + "line": 43, + "column": 2 + }, + "end": { + "line": 43, + "column": 10 + }, + "identifierName": "InkModel" + }, + "name": "InkModel" + } + }, + { + "type": "ExportSpecifier", + "start": 1129, + "end": 1146, + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 44, + "column": 19 + } + }, + "local": { + "type": "Identifier", + "start": 1129, + "end": 1146, + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 44, + "column": 19 + }, + "identifierName": "RecognizerContext" + }, + "name": "RecognizerContext" + }, + "exported": { + "type": "Identifier", + "start": 1129, + "end": 1146, + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 44, + "column": 19 + }, + "identifierName": "RecognizerContext" + }, + "name": "RecognizerContext" + } + } + ], + "source": null + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentLine", + "value": " Default instantiations", + "start": 615, + "end": 640, + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 14, + "column": 27 + } + } + }, + { + "type": "CommentLine", + "value": " Helper functions", + "start": 722, + "end": 741, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 21 + } + } + }, + { + "type": "CommentLine", + "value": " Internals", + "start": 784, + "end": 796, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 14 + } + } + }, + { + "type": "CommentLine", + "value": " Default instantiations", + "start": 907, + "end": 932, + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 32, + "column": 27 + } + } + }, + { + "type": "CommentLine", + "value": " Helper functions", + "start": 1014, + "end": 1033, + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 37, + "column": 21 + } + } + }, + { + "type": "CommentLine", + "value": " Internals", + "start": 1076, + "end": 1088, + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 40, + "column": 14 + } + } + } + ], + "tokens": [ + { "type": { "label": "import", "keyword": "import", @@ -2261,8 +2991,8 @@ }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -2271,8 +3001,9 @@ "postfix": false, "binop": null }, + "value": "DefaultBehaviors", "start": 308, - "end": 309, + "end": 324, "loc": { "start": { "line": 6, @@ -2280,7 +3011,7 @@ }, "end": { "line": 6, - "column": 8 + "column": 23 } } }, @@ -2296,74 +3027,77 @@ "postfix": false, "binop": null }, - "value": "Editor", - "start": 310, - "end": 316, + "value": "from", + "start": 325, + "end": 329, "loc": { "start": { "line": 6, - "column": 9 + "column": 24 }, "end": { "line": 6, - "column": 15 + "column": 28 } } }, { "type": { - "label": "}", + "label": "string", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 317, - "end": 318, + "value": "./configuration/DefaultBehaviors", + "start": 330, + "end": 364, "loc": { "start": { "line": 6, - "column": 16 + "column": 29 }, "end": { "line": 6, - "column": 17 + "column": 63 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ";", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "from", - "start": 319, - "end": 323, + "start": 364, + "end": 365, "loc": { "start": { "line": 6, - "column": 18 + "column": 63 }, "end": { "line": 6, - "column": 22 + "column": 64 } } }, { "type": { - "label": "string", + "label": "import", + "keyword": "import", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -2374,17 +3108,149 @@ "binop": null, "updateContext": null }, - "value": "./Editor", - "start": 324, - "end": 334, + "value": "import", + "start": 366, + "end": 372, "loc": { "start": { - "line": 6, - "column": 23 + "line": 7, + "column": 0 }, "end": { - "line": 6, - "column": 33 + "line": 7, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 373, + "end": 374, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "as", + "start": 375, + "end": 377, + "loc": { + "start": { + "line": 7, + "column": 9 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "InkModel", + "start": 378, + "end": 386, + "loc": { + "start": { + "line": 7, + "column": 12 + }, + "end": { + "line": 7, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 387, + "end": 391, + "loc": { + "start": { + "line": 7, + "column": 21 + }, + "end": { + "line": 7, + "column": 25 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./model/InkModel", + "start": 392, + "end": 410, + "loc": { + "start": { + "line": 7, + "column": 26 + }, + "end": { + "line": 7, + "column": 44 } } }, @@ -2401,16 +3267,16 @@ "binop": null, "updateContext": null }, - "start": 334, - "end": 335, + "start": 410, + "end": 411, "loc": { "start": { - "line": 6, - "column": 33 + "line": 7, + "column": 44 }, "end": { - "line": 6, - "column": 34 + "line": 7, + "column": 45 } } }, @@ -2429,15 +3295,15 @@ "updateContext": null }, "value": "import", - "start": 336, - "end": 342, + "start": 412, + "end": 418, "loc": { "start": { - "line": 7, + "line": 8, "column": 0 }, "end": { - "line": 7, + "line": 8, "column": 6 } } @@ -2454,15 +3320,15 @@ "postfix": false, "binop": null }, - "start": 343, - "end": 344, + "start": 419, + "end": 420, "loc": { "start": { - "line": 7, + "line": 8, "column": 7 }, "end": { - "line": 7, + "line": 8, "column": 8 } } @@ -2479,43 +3345,42 @@ "postfix": false, "binop": null }, - "value": "register", - "start": 345, - "end": 353, + "value": "Editor", + "start": 421, + "end": 427, "loc": { "start": { - "line": 7, + "line": 8, "column": 9 }, "end": { - "line": 7, - "column": 17 + "line": 8, + "column": 15 } } }, { "type": { - "label": ",", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 353, - "end": 354, + "start": 428, + "end": 429, "loc": { "start": { - "line": 7, - "column": 17 + "line": 8, + "column": 16 }, "end": { - "line": 7, - "column": 18 + "line": 8, + "column": 17 } } }, @@ -2531,42 +3396,769 @@ "postfix": false, "binop": null }, - "value": "getAvailableLanguageList", - "start": 355, - "end": 379, + "value": "from", + "start": 430, + "end": 434, "loc": { "start": { - "line": 7, - "column": 19 + "line": 8, + "column": 18 }, "end": { - "line": 7, - "column": 43 + "line": 8, + "column": 22 } } }, { "type": { - "label": "}", + "label": "string", "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./Editor", + "start": 435, + "end": 445, + "loc": { + "start": { + "line": 8, + "column": 23 + }, + "end": { + "line": 8, + "column": 33 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 445, + "end": 446, + "loc": { + "start": { + "line": 8, + "column": 33 + }, + "end": { + "line": 8, + "column": 34 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 447, + "end": 453, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null }, - "start": 380, - "end": 381, + "start": 454, + "end": 455, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "register", + "start": 456, + "end": 464, + "loc": { + "start": { + "line": 9, + "column": 9 + }, + "end": { + "line": 9, + "column": 17 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 464, + "end": 465, + "loc": { + "start": { + "line": 9, + "column": 17 + }, + "end": { + "line": 9, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getAvailableLanguageList", + "start": 466, + "end": 490, + "loc": { + "start": { + "line": 9, + "column": 19 + }, + "end": { + "line": 9, + "column": 43 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 491, + "end": 492, + "loc": { + "start": { + "line": 9, + "column": 44 + }, + "end": { + "line": 9, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 493, + "end": 497, + "loc": { + "start": { + "line": 9, + "column": 46 + }, + "end": { + "line": 9, + "column": 50 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./EditorFacade", + "start": 498, + "end": 514, + "loc": { + "start": { + "line": 9, + "column": 51 + }, + "end": { + "line": 9, + "column": 67 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 514, + "end": 515, + "loc": { + "start": { + "line": 9, + "column": 67 + }, + "end": { + "line": 9, + "column": 68 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 516, + "end": 522, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 6 + } + } + }, + { + "type": { + "label": "*", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 10, + "updateContext": null + }, + "value": "*", + "start": 523, + "end": 524, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "as", + "start": 525, + "end": 527, + "loc": { + "start": { + "line": 10, + "column": 9 + }, + "end": { + "line": 10, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "RecognizerContext", + "start": 528, + "end": 545, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 546, + "end": 550, + "loc": { + "start": { + "line": 10, + "column": 30 + }, + "end": { + "line": 10, + "column": 34 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./model/RecognizerContext", + "start": 551, + "end": 578, + "loc": { + "start": { + "line": 10, + "column": 35 + }, + "end": { + "line": 10, + "column": 62 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 578, + "end": 579, + "loc": { + "start": { + "line": 10, + "column": 62 + }, + "end": { + "line": 10, + "column": 63 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 581, + "end": 586, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "MyScript", + "start": 587, + "end": 595, + "loc": { + "start": { + "line": 12, + "column": 6 + }, + "end": { + "line": 12, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 596, + "end": 597, + "loc": { + "start": { + "line": 12, + "column": 15 + }, + "end": { + "line": 12, + "column": 16 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 598, + "end": 599, + "loc": { + "start": { + "line": 12, + "column": 17 + }, + "end": { + "line": 12, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Constants", + "start": 602, + "end": 611, + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 11 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 611, + "end": 612, + "loc": { + "start": { + "line": 13, + "column": 11 + }, + "end": { + "line": 13, + "column": 12 + } + } + }, + { + "type": "CommentLine", + "value": " Default instantiations", + "start": 615, + "end": 640, + "loc": { + "start": { + "line": 14, + "column": 2 + }, + "end": { + "line": 14, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DefaultConfiguration", + "start": 643, + "end": 663, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 15, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 663, + "end": 664, + "loc": { + "start": { + "line": 15, + "column": 22 + }, + "end": { + "line": 15, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DefaultBehaviors", + "start": 667, + "end": 683, + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 16, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 683, + "end": 684, "loc": { "start": { - "line": 7, - "column": 44 + "line": 16, + "column": 18 }, "end": { - "line": 7, - "column": 45 + "line": 16, + "column": 19 } } }, @@ -2582,25 +4174,25 @@ "postfix": false, "binop": null }, - "value": "from", - "start": 382, - "end": 386, + "value": "DefaultPenStyle", + "start": 687, + "end": 702, "loc": { "start": { - "line": 7, - "column": 46 + "line": 17, + "column": 2 }, "end": { - "line": 7, - "column": 50 + "line": 17, + "column": 17 } } }, { "type": { - "label": "string", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -2609,51 +4201,49 @@ "binop": null, "updateContext": null }, - "value": "./EditorFacade", - "start": 387, - "end": 403, + "start": 702, + "end": 703, "loc": { "start": { - "line": 7, - "column": 51 + "line": 17, + "column": 17 }, "end": { - "line": 7, - "column": 67 + "line": 17, + "column": 18 } } }, { "type": { - "label": ";", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 403, - "end": 404, + "value": "DefaultTheme", + "start": 706, + "end": 718, "loc": { "start": { - "line": 7, - "column": 67 + "line": 18, + "column": 2 }, "end": { - "line": 7, - "column": 68 + "line": 18, + "column": 14 } } }, { "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -2663,95 +4253,84 @@ "binop": null, "updateContext": null }, - "value": "const", - "start": 406, - "end": 411, + "start": 718, + "end": 719, "loc": { "start": { - "line": 9, - "column": 0 + "line": 18, + "column": 14 }, "end": { - "line": 9, - "column": 5 + "line": 18, + "column": 15 } } }, { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "MyScript", - "start": 412, - "end": 420, + "type": "CommentLine", + "value": " Helper functions", + "start": 722, + "end": 741, "loc": { "start": { - "line": 9, - "column": 6 + "line": 19, + "column": 2 }, "end": { - "line": 9, - "column": 14 + "line": 19, + "column": 21 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 421, - "end": 422, + "value": "register", + "start": 744, + "end": 752, "loc": { "start": { - "line": 9, - "column": 15 + "line": 20, + "column": 2 }, "end": { - "line": 9, - "column": 16 + "line": 20, + "column": 10 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 423, - "end": 424, + "start": 752, + "end": 753, "loc": { "start": { - "line": 9, - "column": 17 + "line": 20, + "column": 10 }, "end": { - "line": 9, - "column": 18 + "line": 20, + "column": 11 } } }, @@ -2767,17 +4346,17 @@ "postfix": false, "binop": null }, - "value": "Constants", - "start": 427, - "end": 436, + "value": "getAvailableLanguageList", + "start": 756, + "end": 780, "loc": { "start": { - "line": 10, + "line": 21, "column": 2 }, "end": { - "line": 10, - "column": 11 + "line": 21, + "column": 26 } } }, @@ -2794,16 +4373,32 @@ "binop": null, "updateContext": null }, - "start": 436, - "end": 437, + "start": 780, + "end": 781, "loc": { "start": { - "line": 10, - "column": 11 + "line": 21, + "column": 26 }, "end": { - "line": 10, - "column": 12 + "line": 21, + "column": 27 + } + } + }, + { + "type": "CommentLine", + "value": " Internals", + "start": 784, + "end": 796, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 14 } } }, @@ -2820,15 +4415,15 @@ "binop": null }, "value": "LoggerConfig", - "start": 440, - "end": 452, + "start": 799, + "end": 811, "loc": { "start": { - "line": 11, + "line": 23, "column": 2 }, "end": { - "line": 11, + "line": 23, "column": 14 } } @@ -2846,15 +4441,15 @@ "binop": null, "updateContext": null }, - "start": 452, - "end": 453, + "start": 811, + "end": 812, "loc": { "start": { - "line": 11, + "line": 23, "column": 14 }, "end": { - "line": 11, + "line": 23, "column": 15 } } @@ -2872,15 +4467,15 @@ "binop": null }, "value": "Editor", - "start": 456, - "end": 462, + "start": 815, + "end": 821, "loc": { "start": { - "line": 12, + "line": 24, "column": 2 }, "end": { - "line": 12, + "line": 24, "column": 8 } } @@ -2898,15 +4493,15 @@ "binop": null, "updateContext": null }, - "start": 462, - "end": 463, + "start": 821, + "end": 822, "loc": { "start": { - "line": 12, + "line": 24, "column": 8 }, "end": { - "line": 12, + "line": 24, "column": 9 } } @@ -2923,17 +4518,17 @@ "postfix": false, "binop": null }, - "value": "DefaultConfiguration", - "start": 466, - "end": 486, + "value": "InkModel", + "start": 825, + "end": 833, "loc": { "start": { - "line": 13, + "line": 25, "column": 2 }, "end": { - "line": 13, - "column": 22 + "line": 25, + "column": 10 } } }, @@ -2950,16 +4545,16 @@ "binop": null, "updateContext": null }, - "start": 486, - "end": 487, + "start": 833, + "end": 834, "loc": { "start": { - "line": 13, - "column": 22 + "line": 25, + "column": 10 }, "end": { - "line": 13, - "column": 23 + "line": 25, + "column": 11 } } }, @@ -2975,17 +4570,17 @@ "postfix": false, "binop": null }, - "value": "DefaultPenStyle", - "start": 490, - "end": 505, + "value": "RecognizerContext", + "start": 837, + "end": 854, "loc": { "start": { - "line": 14, + "line": 26, "column": 2 }, "end": { - "line": 14, - "column": 17 + "line": 26, + "column": 19 } } }, @@ -3002,24 +4597,24 @@ "binop": null, "updateContext": null }, - "start": 505, - "end": 506, + "start": 854, + "end": 855, "loc": { "start": { - "line": 14, - "column": 17 + "line": 26, + "column": 19 }, "end": { - "line": 14, - "column": 18 + "line": 26, + "column": 20 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -3027,23 +4622,22 @@ "postfix": false, "binop": null }, - "value": "DefaultTheme", - "start": 509, - "end": 521, + "start": 856, + "end": 857, "loc": { "start": { - "line": 15, - "column": 2 + "line": 27, + "column": 0 }, "end": { - "line": 15, - "column": 14 + "line": 27, + "column": 1 } } }, { "type": { - "label": ",", + "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -3054,68 +4648,69 @@ "binop": null, "updateContext": null }, - "start": 521, - "end": 522, + "start": 857, + "end": 858, "loc": { "start": { - "line": 15, - "column": 14 + "line": 27, + "column": 1 }, "end": { - "line": 15, - "column": 15 + "line": 27, + "column": 2 } } }, { "type": { - "label": "name", + "label": "export", + "keyword": "export", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "register", - "start": 525, - "end": 533, + "value": "export", + "start": 860, + "end": 866, "loc": { "start": { - "line": 16, - "column": 2 + "line": 29, + "column": 0 }, "end": { - "line": 16, - "column": 10 + "line": 29, + "column": 6 } } }, { "type": { - "label": ",", + "label": "{", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 533, - "end": 534, + "start": 867, + "end": 868, "loc": { "start": { - "line": 16, - "column": 10 + "line": 29, + "column": 7 }, - "end": { - "line": 16, - "column": 11 + "end": { + "line": 29, + "column": 8 } } }, @@ -3131,25 +4726,25 @@ "postfix": false, "binop": null }, - "value": "getAvailableLanguageList", - "start": 537, - "end": 561, + "value": "MyScript", + "start": 871, + "end": 879, "loc": { "start": { - "line": 17, + "line": 30, "column": 2 }, "end": { - "line": 17, - "column": 26 + "line": 30, + "column": 10 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -3157,22 +4752,24 @@ "postfix": false, "binop": null }, - "start": 562, - "end": 563, + "value": "as", + "start": 880, + "end": 882, "loc": { "start": { - "line": 18, - "column": 0 + "line": 30, + "column": 11 }, "end": { - "line": 18, - "column": 1 + "line": 30, + "column": 13 } } }, { "type": { - "label": ";", + "label": "default", + "keyword": "default", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -3183,24 +4780,24 @@ "binop": null, "updateContext": null }, - "start": 563, - "end": 564, + "value": "default", + "start": 883, + "end": 890, "loc": { "start": { - "line": 18, - "column": 1 + "line": 30, + "column": 14 }, "end": { - "line": 18, - "column": 2 + "line": 30, + "column": 21 } } }, { "type": { - "label": "export", - "keyword": "export", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -3210,24 +4807,23 @@ "binop": null, "updateContext": null }, - "value": "export", - "start": 566, - "end": 572, + "start": 890, + "end": 891, "loc": { "start": { - "line": 20, - "column": 0 + "line": 30, + "column": 21 }, "end": { - "line": 20, - "column": 6 + "line": 30, + "column": 22 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -3236,42 +4832,59 @@ "postfix": false, "binop": null }, - "start": 573, - "end": 574, + "value": "Constants", + "start": 894, + "end": 903, "loc": { "start": { - "line": 20, - "column": 7 + "line": 31, + "column": 2 }, "end": { - "line": 20, - "column": 8 + "line": 31, + "column": 11 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "MyScript", - "start": 577, - "end": 585, + "start": 903, + "end": 904, "loc": { "start": { - "line": 21, + "line": 31, + "column": 11 + }, + "end": { + "line": 31, + "column": 12 + } + } + }, + { + "type": "CommentLine", + "value": " Default instantiations", + "start": 907, + "end": 932, + "loc": { + "start": { + "line": 32, "column": 2 }, "end": { - "line": 21, - "column": 10 + "line": 32, + "column": 27 } } }, @@ -3287,24 +4900,23 @@ "postfix": false, "binop": null }, - "value": "as", - "start": 586, - "end": 588, + "value": "DefaultConfiguration", + "start": 935, + "end": 955, "loc": { "start": { - "line": 21, - "column": 11 + "line": 33, + "column": 2 }, "end": { - "line": 21, - "column": 13 + "line": 33, + "column": 22 } } }, { "type": { - "label": "default", - "keyword": "default", + "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -3315,17 +4927,42 @@ "binop": null, "updateContext": null }, - "value": "default", - "start": 589, - "end": 596, + "start": 955, + "end": 956, "loc": { "start": { - "line": 21, - "column": 14 + "line": 33, + "column": 22 }, "end": { - "line": 21, - "column": 21 + "line": 33, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "DefaultBehaviors", + "start": 959, + "end": 975, + "loc": { + "start": { + "line": 34, + "column": 2 + }, + "end": { + "line": 34, + "column": 18 } } }, @@ -3342,16 +4979,16 @@ "binop": null, "updateContext": null }, - "start": 596, - "end": 597, + "start": 975, + "end": 976, "loc": { "start": { - "line": 21, - "column": 21 + "line": 34, + "column": 18 }, "end": { - "line": 21, - "column": 22 + "line": 34, + "column": 19 } } }, @@ -3367,17 +5004,17 @@ "postfix": false, "binop": null }, - "value": "Constants", - "start": 600, - "end": 609, + "value": "DefaultPenStyle", + "start": 979, + "end": 994, "loc": { "start": { - "line": 22, + "line": 35, "column": 2 }, "end": { - "line": 22, - "column": 11 + "line": 35, + "column": 17 } } }, @@ -3394,16 +5031,16 @@ "binop": null, "updateContext": null }, - "start": 609, - "end": 610, + "start": 994, + "end": 995, "loc": { "start": { - "line": 22, - "column": 11 + "line": 35, + "column": 17 }, "end": { - "line": 22, - "column": 12 + "line": 35, + "column": 18 } } }, @@ -3419,16 +5056,16 @@ "postfix": false, "binop": null }, - "value": "LoggerConfig", - "start": 613, - "end": 625, + "value": "DefaultTheme", + "start": 998, + "end": 1010, "loc": { "start": { - "line": 23, + "line": 36, "column": 2 }, "end": { - "line": 23, + "line": 36, "column": 14 } } @@ -3446,19 +5083,35 @@ "binop": null, "updateContext": null }, - "start": 625, - "end": 626, + "start": 1010, + "end": 1011, "loc": { "start": { - "line": 23, + "line": 36, "column": 14 }, "end": { - "line": 23, + "line": 36, "column": 15 } } }, + { + "type": "CommentLine", + "value": " Helper functions", + "start": 1014, + "end": 1033, + "loc": { + "start": { + "line": 37, + "column": 2 + }, + "end": { + "line": 37, + "column": 21 + } + } + }, { "type": { "label": "name", @@ -3471,17 +5124,17 @@ "postfix": false, "binop": null }, - "value": "Editor", - "start": 629, - "end": 635, + "value": "register", + "start": 1036, + "end": 1044, "loc": { "start": { - "line": 24, + "line": 38, "column": 2 }, "end": { - "line": 24, - "column": 8 + "line": 38, + "column": 10 } } }, @@ -3498,16 +5151,16 @@ "binop": null, "updateContext": null }, - "start": 635, - "end": 636, + "start": 1044, + "end": 1045, "loc": { "start": { - "line": 24, - "column": 8 + "line": 38, + "column": 10 }, "end": { - "line": 24, - "column": 9 + "line": 38, + "column": 11 } } }, @@ -3523,17 +5176,17 @@ "postfix": false, "binop": null }, - "value": "DefaultConfiguration", - "start": 639, - "end": 659, + "value": "getAvailableLanguageList", + "start": 1048, + "end": 1072, "loc": { "start": { - "line": 25, + "line": 39, "column": 2 }, "end": { - "line": 25, - "column": 22 + "line": 39, + "column": 26 } } }, @@ -3550,16 +5203,32 @@ "binop": null, "updateContext": null }, - "start": 659, - "end": 660, + "start": 1072, + "end": 1073, "loc": { "start": { - "line": 25, - "column": 22 + "line": 39, + "column": 26 }, "end": { - "line": 25, - "column": 23 + "line": 39, + "column": 27 + } + } + }, + { + "type": "CommentLine", + "value": " Internals", + "start": 1076, + "end": 1088, + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 40, + "column": 14 } } }, @@ -3575,17 +5244,17 @@ "postfix": false, "binop": null }, - "value": "DefaultPenStyle", - "start": 663, - "end": 678, + "value": "LoggerConfig", + "start": 1091, + "end": 1103, "loc": { "start": { - "line": 26, + "line": 41, "column": 2 }, "end": { - "line": 26, - "column": 17 + "line": 41, + "column": 14 } } }, @@ -3602,16 +5271,16 @@ "binop": null, "updateContext": null }, - "start": 678, - "end": 679, + "start": 1103, + "end": 1104, "loc": { "start": { - "line": 26, - "column": 17 + "line": 41, + "column": 14 }, "end": { - "line": 26, - "column": 18 + "line": 41, + "column": 15 } } }, @@ -3627,17 +5296,17 @@ "postfix": false, "binop": null }, - "value": "DefaultTheme", - "start": 682, - "end": 694, + "value": "Editor", + "start": 1107, + "end": 1113, "loc": { "start": { - "line": 27, + "line": 42, "column": 2 }, "end": { - "line": 27, - "column": 14 + "line": 42, + "column": 8 } } }, @@ -3654,16 +5323,16 @@ "binop": null, "updateContext": null }, - "start": 694, - "end": 695, + "start": 1113, + "end": 1114, "loc": { "start": { - "line": 27, - "column": 14 + "line": 42, + "column": 8 }, "end": { - "line": 27, - "column": 15 + "line": 42, + "column": 9 } } }, @@ -3679,16 +5348,16 @@ "postfix": false, "binop": null }, - "value": "register", - "start": 698, - "end": 706, + "value": "InkModel", + "start": 1117, + "end": 1125, "loc": { "start": { - "line": 28, + "line": 43, "column": 2 }, "end": { - "line": 28, + "line": 43, "column": 10 } } @@ -3706,15 +5375,15 @@ "binop": null, "updateContext": null }, - "start": 706, - "end": 707, + "start": 1125, + "end": 1126, "loc": { "start": { - "line": 28, + "line": 43, "column": 10 }, "end": { - "line": 28, + "line": 43, "column": 11 } } @@ -3731,17 +5400,43 @@ "postfix": false, "binop": null }, - "value": "getAvailableLanguageList", - "start": 710, - "end": 734, + "value": "RecognizerContext", + "start": 1129, + "end": 1146, "loc": { "start": { - "line": 29, + "line": 44, "column": 2 }, "end": { - "line": 29, - "column": 26 + "line": 44, + "column": 19 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1146, + "end": 1147, + "loc": { + "start": { + "line": 44, + "column": 19 + }, + "end": { + "line": 44, + "column": 20 } } }, @@ -3757,15 +5452,15 @@ "postfix": false, "binop": null }, - "start": 735, - "end": 736, + "start": 1148, + "end": 1149, "loc": { "start": { - "line": 30, + "line": 45, "column": 0 }, "end": { - "line": 30, + "line": 45, "column": 1 } } @@ -3783,15 +5478,15 @@ "binop": null, "updateContext": null }, - "start": 736, - "end": 737, + "start": 1149, + "end": 1150, "loc": { "start": { - "line": 30, + "line": 45, "column": 1 }, "end": { - "line": 30, + "line": 45, "column": 2 } } @@ -3809,15 +5504,15 @@ "binop": null, "updateContext": null }, - "start": 739, - "end": 739, + "start": 1152, + "end": 1152, "loc": { "start": { - "line": 32, + "line": 47, "column": 0 }, "end": { - "line": 32, + "line": 47, "column": 0 } } diff --git a/docs/ast/source/recognizer/DefaultRecognizer.js.json b/docs/ast/source/recognizer/DefaultRecognizer.js.json index dac3b4e8..6e6b7697 100644 --- a/docs/ast/source/recognizer/DefaultRecognizer.js.json +++ b/docs/ast/source/recognizer/DefaultRecognizer.js.json @@ -387,7 +387,7 @@ }, { "type": "CommentBlock", - "value": "*\n * Recognition service entry point\n * @typedef {Object} Recognizer\n * @property {function(): RecognizerInfo} getInfo Get information about the supported configuration (protocol, type, apiVersion, ...).\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} init Initialize recognition.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} clear Clear server context. Currently nothing to do there.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback)} [resize] Resize.\n * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)} [pointerEvents] Pointer Events.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback)} [import_] Import content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)} [convert] Convert.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [waitForIdle] Wait for idle.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback)} [setPenStyle] Set pen style.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback)} [setPenStyleClasses] Set pen style classes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback)} [setTheme] Set theme.\n ", + "value": "*\n * Recognition service entry point\n * @typedef {Object} Recognizer\n * @property {function(): RecognizerInfo} getInfo Get information about the supported configuration (protocol, type, apiVersion, ...).\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} init Initialize recognition.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} clear Clear server context. Currently nothing to do there.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, element: Element)} [resize] Resize.\n * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)} [pointerEvents] Pointer Events.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback)} [import_] Import content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)} [convert] Convert.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [waitForIdle] Wait for idle.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback)} [setPenStyle] Set pen style.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback)} [setPenStyleClasses] Set pen style classes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback)} [setTheme] Set theme.\n ", "start": 1134, "end": 3597, "loc": { @@ -1764,7 +1764,7 @@ }, { "type": "CommentBlock", - "value": "*\n * Recognition service entry point\n * @typedef {Object} Recognizer\n * @property {function(): RecognizerInfo} getInfo Get information about the supported configuration (protocol, type, apiVersion, ...).\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} init Initialize recognition.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} clear Clear server context. Currently nothing to do there.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback)} [resize] Resize.\n * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)} [pointerEvents] Pointer Events.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback)} [import_] Import content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)} [convert] Convert.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [waitForIdle] Wait for idle.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback)} [setPenStyle] Set pen style.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback)} [setPenStyleClasses] Set pen style classes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback)} [setTheme] Set theme.\n ", + "value": "*\n * Recognition service entry point\n * @typedef {Object} Recognizer\n * @property {function(): RecognizerInfo} getInfo Get information about the supported configuration (protocol, type, apiVersion, ...).\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} init Initialize recognition.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} clear Clear server context. Currently nothing to do there.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, element: Element)} [resize] Resize.\n * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)} [pointerEvents] Pointer Events.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback)} [import_] Import content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)} [convert] Convert.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [waitForIdle] Wait for idle.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback)} [setPenStyle] Set pen style.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback)} [setPenStyleClasses] Set pen style classes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback)} [setTheme] Set theme.\n ", "start": 1134, "end": 3597, "loc": { @@ -1881,7 +1881,7 @@ }, { "type": "CommentBlock", - "value": "*\n * Recognition service entry point\n * @typedef {Object} Recognizer\n * @property {function(): RecognizerInfo} getInfo Get information about the supported configuration (protocol, type, apiVersion, ...).\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} init Initialize recognition.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} clear Clear server context. Currently nothing to do there.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback)} [resize] Resize.\n * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)} [pointerEvents] Pointer Events.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback)} [import_] Import content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)} [convert] Convert.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [waitForIdle] Wait for idle.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback)} [setPenStyle] Set pen style.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback)} [setPenStyleClasses] Set pen style classes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback)} [setTheme] Set theme.\n ", + "value": "*\n * Recognition service entry point\n * @typedef {Object} Recognizer\n * @property {function(): RecognizerInfo} getInfo Get information about the supported configuration (protocol, type, apiVersion, ...).\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} init Initialize recognition.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} clear Clear server context. Currently nothing to do there.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, element: Element)} [resize] Resize.\n * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)} [pointerEvents] Pointer Events.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback)} [import_] Import content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)} [convert] Convert.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [waitForIdle] Wait for idle.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback)} [setPenStyle] Set pen style.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback)} [setPenStyleClasses] Set pen style classes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback)} [setTheme] Set theme.\n ", "start": 1134, "end": 3597, "loc": { @@ -4585,7 +4585,7 @@ }, { "type": "CommentBlock", - "value": "*\n * Recognition service entry point\n * @typedef {Object} Recognizer\n * @property {function(): RecognizerInfo} getInfo Get information about the supported configuration (protocol, type, apiVersion, ...).\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} init Initialize recognition.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} clear Clear server context. Currently nothing to do there.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback)} [resize] Resize.\n * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)} [pointerEvents] Pointer Events.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback)} [import_] Import content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)} [convert] Convert.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [waitForIdle] Wait for idle.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback)} [setPenStyle] Set pen style.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback)} [setPenStyleClasses] Set pen style classes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback)} [setTheme] Set theme.\n ", + "value": "*\n * Recognition service entry point\n * @typedef {Object} Recognizer\n * @property {function(): RecognizerInfo} getInfo Get information about the supported configuration (protocol, type, apiVersion, ...).\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} init Initialize recognition.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} clear Clear server context. Currently nothing to do there.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, element: Element)} [resize] Resize.\n * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)} [pointerEvents] Pointer Events.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback)} [import_] Import content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)} [convert] Convert.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [waitForIdle] Wait for idle.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback)} [setPenStyle] Set pen style.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback)} [setPenStyleClasses] Set pen style classes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback)} [setTheme] Set theme.\n ", "start": 1134, "end": 3597, "loc": { @@ -5471,7 +5471,7 @@ }, { "type": "CommentBlock", - "value": "*\n * Recognition service entry point\n * @typedef {Object} Recognizer\n * @property {function(): RecognizerInfo} getInfo Get information about the supported configuration (protocol, type, apiVersion, ...).\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} init Initialize recognition.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} clear Clear server context. Currently nothing to do there.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback)} [resize] Resize.\n * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)} [pointerEvents] Pointer Events.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback)} [import_] Import content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)} [convert] Convert.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [waitForIdle] Wait for idle.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback)} [setPenStyle] Set pen style.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback)} [setPenStyleClasses] Set pen style classes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback)} [setTheme] Set theme.\n ", + "value": "*\n * Recognition service entry point\n * @typedef {Object} Recognizer\n * @property {function(): RecognizerInfo} getInfo Get information about the supported configuration (protocol, type, apiVersion, ...).\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} init Initialize recognition.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} clear Clear server context. Currently nothing to do there.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, element: Element)} [resize] Resize.\n * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)} [pointerEvents] Pointer Events.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback)} [import_] Import content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)} [convert] Convert.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [waitForIdle] Wait for idle.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback)} [setPenStyle] Set pen style.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback)} [setPenStyleClasses] Set pen style classes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback)} [setTheme] Set theme.\n ", "start": 1134, "end": 3597, "loc": { diff --git a/docs/ast/source/recognizer/rest/networkInterface.js.json b/docs/ast/source/recognizer/rest/networkInterface.js.json index 4b1d3d43..85175475 100644 --- a/docs/ast/source/recognizer/rest/networkInterface.js.json +++ b/docs/ast/source/recognizer/rest/networkInterface.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 4805, + "end": 4897, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 147, + "line": 148, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 4805, + "end": 4897, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 147, + "line": 148, "column": 0 } }, @@ -1728,14 +1728,14 @@ { "type": "FunctionDeclaration", "start": 1165, - "end": 3994, + "end": 4086, "loc": { "start": { "line": 45, "column": 0 }, "end": { - "line": 118, + "line": 119, "column": 1 } }, @@ -1898,14 +1898,14 @@ "body": { "type": "BlockStatement", "start": 1241, - "end": 3994, + "end": 4086, "loc": { "start": { "line": 45, "column": 76 }, "end": { - "line": 118, + "line": 119, "column": 1 } }, @@ -2183,56 +2183,56 @@ { "type": "ReturnStatement", "start": 1459, - "end": 3992, + "end": 4084, "loc": { "start": { "line": 49, "column": 2 }, "end": { - "line": 117, + "line": 118, "column": 5 } }, "argument": { "type": "CallExpression", "start": 1466, - "end": 3991, + "end": 4083, "loc": { "start": { "line": 49, "column": 9 }, "end": { - "line": 117, + "line": 118, "column": 4 } }, "callee": { "type": "MemberExpression", "start": 1466, - "end": 3881, + "end": 3973, "loc": { "start": { "line": 49, "column": 9 }, "end": { - "line": 112, + "line": 113, "column": 9 } }, "object": { "type": "NewExpression", "start": 1466, - "end": 3876, + "end": 3968, "loc": { "start": { "line": 49, "column": 9 }, "end": { - "line": 112, + "line": 113, "column": 4 } }, @@ -2257,14 +2257,14 @@ { "type": "ArrowFunctionExpression", "start": 1478, - "end": 3875, + "end": 3967, "loc": { "start": { "line": 49, "column": 21 }, "end": { - "line": 112, + "line": 113, "column": 3 } }, @@ -2311,14 +2311,14 @@ "body": { "type": "BlockStatement", "start": 1499, - "end": 3875, + "end": 3967, "loc": { "start": { "line": 49, "column": 42 }, "end": { - "line": 112, + "line": 113, "column": 3 } }, @@ -4880,138 +4880,448 @@ } }, { - "type": "IfStatement", + "type": "VariableDeclaration", "start": 2918, - "end": 2993, + "end": 3050, "loc": { "start": { "line": 80, "column": 4 }, "end": { - "line": 82, - "column": 5 + "line": 80, + "column": 136 } }, - "test": { - "type": "BinaryExpression", - "start": 2922, - "end": 2947, - "loc": { - "start": { - "line": 80, - "column": 8 - }, - "end": { - "line": 80, - "column": 33 - } - }, - "left": { - "type": "Identifier", - "start": 2922, - "end": 2930, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2924, + "end": 3049, "loc": { "start": { "line": 80, - "column": 8 + "column": 10 }, "end": { "line": 80, - "column": 16 + "column": 135 + } + }, + "id": { + "type": "Identifier", + "start": 2924, + "end": 2934, + "loc": { + "start": { + "line": 80, + "column": 10 + }, + "end": { + "line": 80, + "column": 20 + }, + "identifierName": "isBlobType" }, - "identifierName": "mimeType" + "name": "isBlobType" }, - "name": "mimeType" - }, - "operator": "===", - "right": { - "type": "Identifier", - "start": 2935, - "end": 2947, - "loc": { - "start": { - "line": 80, - "column": 21 + "init": { + "type": "LogicalExpression", + "start": 2937, + "end": 3049, + "loc": { + "start": { + "line": 80, + "column": 23 + }, + "end": { + "line": 80, + "column": 135 + } }, - "end": { - "line": 80, - "column": 33 + "left": { + "type": "Identifier", + "start": 2937, + "end": 2945, + "loc": { + "start": { + "line": 80, + "column": 23 + }, + "end": { + "line": 80, + "column": 31 + }, + "identifierName": "mimeType" + }, + "name": "mimeType" }, - "identifierName": "pptxMimeType" - }, - "name": "pptxMimeType" + "operator": "&&", + "right": { + "type": "LogicalExpression", + "start": 2950, + "end": 3048, + "loc": { + "start": { + "line": 80, + "column": 36 + }, + "end": { + "line": 80, + "column": 134 + } + }, + "left": { + "type": "LogicalExpression", + "start": 2950, + "end": 3011, + "loc": { + "start": { + "line": 80, + "column": 36 + }, + "end": { + "line": 80, + "column": 97 + } + }, + "left": { + "type": "BinaryExpression", + "start": 2950, + "end": 2975, + "loc": { + "start": { + "line": 80, + "column": 36 + }, + "end": { + "line": 80, + "column": 61 + } + }, + "left": { + "type": "Identifier", + "start": 2950, + "end": 2958, + "loc": { + "start": { + "line": 80, + "column": 36 + }, + "end": { + "line": 80, + "column": 44 + }, + "identifierName": "mimeType" + }, + "name": "mimeType" + }, + "operator": "===", + "right": { + "type": "Identifier", + "start": 2963, + "end": 2975, + "loc": { + "start": { + "line": 80, + "column": 49 + }, + "end": { + "line": 80, + "column": 61 + }, + "identifierName": "pptxMimeType" + }, + "name": "pptxMimeType" + } + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 2979, + "end": 3011, + "loc": { + "start": { + "line": 80, + "column": 65 + }, + "end": { + "line": 80, + "column": 97 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2979, + "end": 2998, + "loc": { + "start": { + "line": 80, + "column": 65 + }, + "end": { + "line": 80, + "column": 84 + } + }, + "object": { + "type": "Identifier", + "start": 2979, + "end": 2987, + "loc": { + "start": { + "line": 80, + "column": 65 + }, + "end": { + "line": 80, + "column": 73 + }, + "identifierName": "mimeType" + }, + "name": "mimeType" + }, + "property": { + "type": "Identifier", + "start": 2988, + "end": 2998, + "loc": { + "start": { + "line": 80, + "column": 74 + }, + "end": { + "line": 80, + "column": 84 + }, + "identifierName": "startsWith" + }, + "name": "startsWith" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2999, + "end": 3010, + "loc": { + "start": { + "line": 80, + "column": 85 + }, + "end": { + "line": 80, + "column": 96 + } + }, + "extra": { + "rawValue": "image/png", + "raw": "'image/png'" + }, + "value": "image/png" + } + ] + } + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 3015, + "end": 3048, + "loc": { + "start": { + "line": 80, + "column": 101 + }, + "end": { + "line": 80, + "column": 134 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3015, + "end": 3034, + "loc": { + "start": { + "line": 80, + "column": 101 + }, + "end": { + "line": 80, + "column": 120 + } + }, + "object": { + "type": "Identifier", + "start": 3015, + "end": 3023, + "loc": { + "start": { + "line": 80, + "column": 101 + }, + "end": { + "line": 80, + "column": 109 + }, + "identifierName": "mimeType" + }, + "name": "mimeType" + }, + "property": { + "type": "Identifier", + "start": 3024, + "end": 3034, + "loc": { + "start": { + "line": 80, + "column": 110 + }, + "end": { + "line": 80, + "column": 120 + }, + "identifierName": "startsWith" + }, + "name": "startsWith" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 3035, + "end": 3047, + "loc": { + "start": { + "line": 80, + "column": 121 + }, + "end": { + "line": 80, + "column": 133 + } + }, + "extra": { + "rawValue": "image/jpeg", + "raw": "'image/jpeg'" + }, + "value": "image/jpeg" + } + ] + }, + "extra": { + "parenthesized": true, + "parenStart": 2949 + } + } + } } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 3055, + "end": 3115, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 83, + "column": 5 + } + }, + "test": { + "type": "Identifier", + "start": 3059, + "end": 3069, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 18 + }, + "identifierName": "isBlobType" + }, + "name": "isBlobType" }, "consequent": { "type": "BlockStatement", - "start": 2949, - "end": 2993, + "start": 3071, + "end": 3115, "loc": { "start": { - "line": 80, - "column": 35 + "line": 81, + "column": 20 }, "end": { - "line": 82, + "line": 83, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 2957, - "end": 2987, + "start": 3079, + "end": 3109, "loc": { "start": { - "line": 81, + "line": 82, "column": 6 }, "end": { - "line": 81, + "line": 82, "column": 36 } }, "expression": { "type": "AssignmentExpression", - "start": 2957, - "end": 2986, + "start": 3079, + "end": 3108, "loc": { "start": { - "line": 81, + "line": 82, "column": 6 }, "end": { - "line": 81, + "line": 82, "column": 35 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 2957, - "end": 2977, + "start": 3079, + "end": 3099, "loc": { "start": { - "line": 81, + "line": 82, "column": 6 }, "end": { - "line": 81, + "line": 82, "column": 26 } }, "object": { "type": "Identifier", - "start": 2957, - "end": 2964, + "start": 3079, + "end": 3086, "loc": { "start": { - "line": 81, + "line": 82, "column": 6 }, "end": { - "line": 81, + "line": 82, "column": 13 }, "identifierName": "request" @@ -5020,15 +5330,15 @@ }, "property": { "type": "Identifier", - "start": 2965, - "end": 2977, + "start": 3087, + "end": 3099, "loc": { "start": { - "line": 81, + "line": 82, "column": 14 }, "end": { - "line": 81, + "line": 82, "column": 26 }, "identifierName": "responseType" @@ -5039,15 +5349,15 @@ }, "right": { "type": "StringLiteral", - "start": 2980, - "end": 2986, + "start": 3102, + "end": 3108, "loc": { "start": { - "line": 81, + "line": 82, "column": 29 }, "end": { - "line": 81, + "line": 82, "column": 35 } }, @@ -5066,58 +5376,58 @@ }, { "type": "ExpressionStatement", - "start": 2999, - "end": 3122, + "start": 3121, + "end": 3244, "loc": { "start": { - "line": 84, + "line": 85, "column": 4 }, "end": { - "line": 86, + "line": 87, "column": 6 } }, "expression": { "type": "AssignmentExpression", - "start": 2999, - "end": 3121, + "start": 3121, + "end": 3243, "loc": { "start": { - "line": 84, + "line": 85, "column": 4 }, "end": { - "line": 86, + "line": 87, "column": 5 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 2999, - "end": 3014, + "start": 3121, + "end": 3136, "loc": { "start": { - "line": 84, + "line": 85, "column": 4 }, "end": { - "line": 84, + "line": 85, "column": 19 } }, "object": { "type": "Identifier", - "start": 2999, - "end": 3006, + "start": 3121, + "end": 3128, "loc": { "start": { - "line": 84, + "line": 85, "column": 4 }, "end": { - "line": 84, + "line": 85, "column": 11 }, "identifierName": "request" @@ -5126,15 +5436,15 @@ }, "property": { "type": "Identifier", - "start": 3007, - "end": 3014, + "start": 3129, + "end": 3136, "loc": { "start": { - "line": 84, + "line": 85, "column": 12 }, "end": { - "line": 84, + "line": 85, "column": 19 }, "identifierName": "onerror" @@ -5145,15 +5455,15 @@ }, "right": { "type": "ArrowFunctionExpression", - "start": 3017, - "end": 3121, + "start": 3139, + "end": 3243, "loc": { "start": { - "line": 84, + "line": 85, "column": 22 }, "end": { - "line": 86, + "line": 87, "column": 5 } }, @@ -5164,58 +5474,58 @@ "params": [], "body": { "type": "BlockStatement", - "start": 3023, - "end": 3121, + "start": 3145, + "end": 3243, "loc": { "start": { - "line": 84, + "line": 85, "column": 28 }, "end": { - "line": 86, + "line": 87, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 3031, - "end": 3115, + "start": 3153, + "end": 3237, "loc": { "start": { - "line": 85, + "line": 86, "column": 6 }, "end": { - "line": 85, + "line": 86, "column": 90 } }, "expression": { "type": "CallExpression", - "start": 3031, - "end": 3114, + "start": 3153, + "end": 3236, "loc": { "start": { - "line": 85, + "line": 86, "column": 6 }, "end": { - "line": 85, + "line": 86, "column": 89 } }, "callee": { "type": "Identifier", - "start": 3031, - "end": 3037, + "start": 3153, + "end": 3159, "loc": { "start": { - "line": 85, + "line": 86, "column": 6 }, "end": { - "line": 85, + "line": 86, "column": 12 }, "identifierName": "reject" @@ -5225,30 +5535,30 @@ "arguments": [ { "type": "ObjectExpression", - "start": 3038, - "end": 3113, + "start": 3160, + "end": 3235, "loc": { "start": { - "line": 85, + "line": 86, "column": 13 }, "end": { - "line": 85, + "line": 86, "column": 88 } }, "properties": [ { "type": "ObjectProperty", - "start": 3040, - "end": 3091, + "start": 3162, + "end": 3213, "loc": { "start": { - "line": 85, + "line": 86, "column": 15 }, "end": { - "line": 85, + "line": 86, "column": 66 } }, @@ -5257,15 +5567,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3040, - "end": 3043, + "start": 3162, + "end": 3165, "loc": { "start": { - "line": 85, + "line": 86, "column": 15 }, "end": { - "line": 85, + "line": 86, "column": 18 }, "identifierName": "msg" @@ -5274,30 +5584,30 @@ }, "value": { "type": "TemplateLiteral", - "start": 3045, - "end": 3091, + "start": 3167, + "end": 3213, "loc": { "start": { - "line": 85, + "line": 86, "column": 20 }, "end": { - "line": 85, + "line": 86, "column": 66 } }, "expressions": [ { "type": "Identifier", - "start": 3069, - "end": 3072, + "start": 3191, + "end": 3194, "loc": { "start": { - "line": 85, + "line": 86, "column": 44 }, "end": { - "line": 85, + "line": 86, "column": 47 }, "identifierName": "url" @@ -5308,15 +5618,15 @@ "quasis": [ { "type": "TemplateElement", - "start": 3046, - "end": 3067, + "start": 3168, + "end": 3189, "loc": { "start": { - "line": 85, + "line": 86, "column": 21 }, "end": { - "line": 85, + "line": 86, "column": 42 } }, @@ -5328,15 +5638,15 @@ }, { "type": "TemplateElement", - "start": 3073, - "end": 3090, + "start": 3195, + "end": 3212, "loc": { "start": { - "line": 85, + "line": 86, "column": 48 }, "end": { - "line": 85, + "line": 86, "column": 65 } }, @@ -5351,15 +5661,15 @@ }, { "type": "ObjectProperty", - "start": 3093, - "end": 3111, + "start": 3215, + "end": 3233, "loc": { "start": { - "line": 85, + "line": 86, "column": 68 }, "end": { - "line": 85, + "line": 86, "column": 86 } }, @@ -5368,15 +5678,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 3093, - "end": 3104, + "start": 3215, + "end": 3226, "loc": { "start": { - "line": 85, + "line": 86, "column": 68 }, "end": { - "line": 85, + "line": 86, "column": 79 }, "identifierName": "recoverable" @@ -5385,15 +5695,15 @@ }, "value": { "type": "BooleanLiteral", - "start": 3106, - "end": 3111, + "start": 3228, + "end": 3233, "loc": { "start": { - "line": 85, + "line": 86, "column": 81 }, "end": { - "line": 85, + "line": 86, "column": 86 } }, @@ -5413,58 +5723,58 @@ }, { "type": "ExpressionStatement", - "start": 3128, - "end": 3379, + "start": 3250, + "end": 3486, "loc": { "start": { - "line": 88, + "line": 89, "column": 4 }, "end": { - "line": 94, + "line": 95, "column": 6 } }, "expression": { "type": "AssignmentExpression", - "start": 3128, - "end": 3378, + "start": 3250, + "end": 3485, "loc": { "start": { - "line": 88, + "line": 89, "column": 4 }, "end": { - "line": 94, + "line": 95, "column": 5 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 3128, - "end": 3142, + "start": 3250, + "end": 3264, "loc": { "start": { - "line": 88, + "line": 89, "column": 4 }, "end": { - "line": 88, + "line": 89, "column": 18 } }, "object": { "type": "Identifier", - "start": 3128, - "end": 3135, + "start": 3250, + "end": 3257, "loc": { "start": { - "line": 88, + "line": 89, "column": 4 }, "end": { - "line": 88, + "line": 89, "column": 11 }, "identifierName": "request" @@ -5473,15 +5783,15 @@ }, "property": { "type": "Identifier", - "start": 3136, - "end": 3142, + "start": 3258, + "end": 3264, "loc": { "start": { - "line": 88, + "line": 89, "column": 12 }, "end": { - "line": 88, + "line": 89, "column": 18 }, "identifierName": "onload" @@ -5492,15 +5802,15 @@ }, "right": { "type": "ArrowFunctionExpression", - "start": 3145, - "end": 3378, + "start": 3267, + "end": 3485, "loc": { "start": { - "line": 88, + "line": 89, "column": 21 }, "end": { - "line": 94, + "line": 95, "column": 5 } }, @@ -5511,86 +5821,86 @@ "params": [], "body": { "type": "BlockStatement", - "start": 3151, - "end": 3378, + "start": 3273, + "end": 3485, "loc": { "start": { - "line": 88, + "line": 89, "column": 27 }, "end": { - "line": 94, + "line": 95, "column": 5 } }, "body": [ { "type": "IfStatement", - "start": 3159, - "end": 3372, + "start": 3281, + "end": 3479, "loc": { "start": { - "line": 89, + "line": 90, "column": 6 }, "end": { - "line": 93, + "line": 94, "column": 7 } }, "test": { "type": "LogicalExpression", - "start": 3163, - "end": 3208, + "start": 3285, + "end": 3330, "loc": { "start": { - "line": 89, + "line": 90, "column": 10 }, "end": { - "line": 89, + "line": 90, "column": 55 } }, "left": { "type": "BinaryExpression", - "start": 3163, - "end": 3184, + "start": 3285, + "end": 3306, "loc": { "start": { - "line": 89, + "line": 90, "column": 10 }, "end": { - "line": 89, + "line": 90, "column": 31 } }, "left": { "type": "MemberExpression", - "start": 3163, - "end": 3177, + "start": 3285, + "end": 3299, "loc": { "start": { - "line": 89, + "line": 90, "column": 10 }, "end": { - "line": 89, + "line": 90, "column": 24 } }, "object": { "type": "Identifier", - "start": 3163, - "end": 3170, + "start": 3285, + "end": 3292, "loc": { "start": { - "line": 89, + "line": 90, "column": 10 }, "end": { - "line": 89, + "line": 90, "column": 17 }, "identifierName": "request" @@ -5599,15 +5909,15 @@ }, "property": { "type": "Identifier", - "start": 3171, - "end": 3177, + "start": 3293, + "end": 3299, "loc": { "start": { - "line": 89, + "line": 90, "column": 18 }, "end": { - "line": 89, + "line": 90, "column": 24 }, "identifierName": "status" @@ -5619,15 +5929,15 @@ "operator": ">=", "right": { "type": "NumericLiteral", - "start": 3181, - "end": 3184, + "start": 3303, + "end": 3306, "loc": { "start": { - "line": 89, + "line": 90, "column": 28 }, "end": { - "line": 89, + "line": 90, "column": 31 } }, @@ -5641,43 +5951,43 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 3188, - "end": 3208, + "start": 3310, + "end": 3330, "loc": { "start": { - "line": 89, + "line": 90, "column": 35 }, "end": { - "line": 89, + "line": 90, "column": 55 } }, "left": { "type": "MemberExpression", - "start": 3188, - "end": 3202, + "start": 3310, + "end": 3324, "loc": { "start": { - "line": 89, + "line": 90, "column": 35 }, "end": { - "line": 89, + "line": 90, "column": 49 } }, "object": { "type": "Identifier", - "start": 3188, - "end": 3195, + "start": 3310, + "end": 3317, "loc": { "start": { - "line": 89, + "line": 90, "column": 35 }, "end": { - "line": 89, + "line": 90, "column": 42 }, "identifierName": "request" @@ -5686,15 +5996,15 @@ }, "property": { "type": "Identifier", - "start": 3196, - "end": 3202, + "start": 3318, + "end": 3324, "loc": { "start": { - "line": 89, + "line": 90, "column": 43 }, "end": { - "line": 89, + "line": 90, "column": 49 }, "identifierName": "status" @@ -5706,15 +6016,15 @@ "operator": "<", "right": { "type": "NumericLiteral", - "start": 3205, - "end": 3208, + "start": 3327, + "end": 3330, "loc": { "start": { - "line": 89, + "line": 90, "column": 52 }, "end": { - "line": 89, + "line": 90, "column": 55 } }, @@ -5728,123 +6038,90 @@ }, "consequent": { "type": "BlockStatement", - "start": 3210, - "end": 3308, + "start": 3332, + "end": 3415, "loc": { "start": { - "line": 89, + "line": 90, "column": 57 }, "end": { - "line": 91, + "line": 92, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 3220, - "end": 3300, + "start": 3342, + "end": 3407, "loc": { "start": { - "line": 90, + "line": 91, "column": 8 }, "end": { - "line": 90, - "column": 88 + "line": 91, + "column": 73 } }, "expression": { "type": "ConditionalExpression", - "start": 3220, - "end": 3299, + "start": 3342, + "end": 3406, "loc": { "start": { - "line": 90, + "line": 91, "column": 8 }, "end": { - "line": 90, - "column": 87 + "line": 91, + "column": 72 } }, "test": { - "type": "BinaryExpression", - "start": 3220, - "end": 3245, + "type": "Identifier", + "start": 3342, + "end": 3352, "loc": { "start": { - "line": 90, + "line": 91, "column": 8 }, "end": { - "line": 90, - "column": 33 - } - }, - "left": { - "type": "Identifier", - "start": 3220, - "end": 3228, - "loc": { - "start": { - "line": 90, - "column": 8 - }, - "end": { - "line": 90, - "column": 16 - }, - "identifierName": "mimeType" + "line": 91, + "column": 18 }, - "name": "mimeType" + "identifierName": "isBlobType" }, - "operator": "===", - "right": { - "type": "Identifier", - "start": 3233, - "end": 3245, - "loc": { - "start": { - "line": 90, - "column": 21 - }, - "end": { - "line": 90, - "column": 33 - }, - "identifierName": "pptxMimeType" - }, - "name": "pptxMimeType" - } + "name": "isBlobType" }, "consequent": { "type": "CallExpression", - "start": 3248, - "end": 3273, + "start": 3355, + "end": 3380, "loc": { "start": { - "line": 90, - "column": 36 + "line": 91, + "column": 21 }, "end": { - "line": 90, - "column": 61 + "line": 91, + "column": 46 } }, "callee": { "type": "Identifier", - "start": 3248, - "end": 3255, + "start": 3355, + "end": 3362, "loc": { "start": { - "line": 90, - "column": 36 + "line": 91, + "column": 21 }, "end": { - "line": 90, - "column": 43 + "line": 91, + "column": 28 }, "identifierName": "resolve" }, @@ -5853,30 +6130,30 @@ "arguments": [ { "type": "MemberExpression", - "start": 3256, - "end": 3272, + "start": 3363, + "end": 3379, "loc": { "start": { - "line": 90, - "column": 44 + "line": 91, + "column": 29 }, "end": { - "line": 90, - "column": 60 + "line": 91, + "column": 45 } }, "object": { "type": "Identifier", - "start": 3256, - "end": 3263, + "start": 3363, + "end": 3370, "loc": { "start": { - "line": 90, - "column": 44 + "line": 91, + "column": 29 }, "end": { - "line": 90, - "column": 51 + "line": 91, + "column": 36 }, "identifierName": "request" }, @@ -5884,16 +6161,16 @@ }, "property": { "type": "Identifier", - "start": 3264, - "end": 3272, + "start": 3371, + "end": 3379, "loc": { "start": { - "line": 90, - "column": 52 + "line": 91, + "column": 37 }, "end": { - "line": 90, - "column": 60 + "line": 91, + "column": 45 }, "identifierName": "response" }, @@ -5905,30 +6182,30 @@ }, "alternate": { "type": "CallExpression", - "start": 3276, - "end": 3299, + "start": 3383, + "end": 3406, "loc": { "start": { - "line": 90, - "column": 64 + "line": 91, + "column": 49 }, "end": { - "line": 90, - "column": 87 + "line": 91, + "column": 72 } }, "callee": { "type": "Identifier", - "start": 3276, - "end": 3283, + "start": 3383, + "end": 3390, "loc": { "start": { - "line": 90, - "column": 64 + "line": 91, + "column": 49 }, "end": { - "line": 90, - "column": 71 + "line": 91, + "column": 56 }, "identifierName": "resolve" }, @@ -5937,30 +6214,30 @@ "arguments": [ { "type": "CallExpression", - "start": 3284, - "end": 3298, + "start": 3391, + "end": 3405, "loc": { "start": { - "line": 90, - "column": 72 + "line": 91, + "column": 57 }, "end": { - "line": 90, - "column": 86 + "line": 91, + "column": 71 } }, "callee": { "type": "Identifier", - "start": 3284, - "end": 3289, + "start": 3391, + "end": 3396, "loc": { "start": { - "line": 90, - "column": 72 + "line": 91, + "column": 57 }, "end": { - "line": 90, - "column": 77 + "line": 91, + "column": 62 }, "identifierName": "parse" }, @@ -5969,16 +6246,16 @@ "arguments": [ { "type": "Identifier", - "start": 3290, - "end": 3297, + "start": 3397, + "end": 3404, "loc": { "start": { - "line": 90, - "column": 78 + "line": 91, + "column": 63 }, "end": { - "line": 90, - "column": 85 + "line": 91, + "column": 70 }, "identifierName": "request" }, @@ -5995,58 +6272,58 @@ }, "alternate": { "type": "BlockStatement", - "start": 3314, - "end": 3372, + "start": 3421, + "end": 3479, "loc": { "start": { - "line": 91, + "line": 92, "column": 13 }, "end": { - "line": 93, + "line": 94, "column": 7 } }, "body": [ { "type": "ExpressionStatement", - "start": 3324, - "end": 3364, + "start": 3431, + "end": 3471, "loc": { "start": { - "line": 92, + "line": 93, "column": 8 }, "end": { - "line": 92, + "line": 93, "column": 48 } }, "expression": { "type": "CallExpression", - "start": 3324, - "end": 3363, + "start": 3431, + "end": 3470, "loc": { "start": { - "line": 92, + "line": 93, "column": 8 }, "end": { - "line": 92, + "line": 93, "column": 47 } }, "callee": { "type": "Identifier", - "start": 3324, - "end": 3330, + "start": 3431, + "end": 3437, "loc": { "start": { - "line": 92, + "line": 93, "column": 8 }, "end": { - "line": 92, + "line": 93, "column": 14 }, "identifierName": "reject" @@ -6056,29 +6333,29 @@ "arguments": [ { "type": "NewExpression", - "start": 3331, - "end": 3362, + "start": 3438, + "end": 3469, "loc": { "start": { - "line": 92, + "line": 93, "column": 15 }, "end": { - "line": 92, + "line": 93, "column": 46 } }, "callee": { "type": "Identifier", - "start": 3335, - "end": 3340, + "start": 3442, + "end": 3447, "loc": { "start": { - "line": 92, + "line": 93, "column": 19 }, "end": { - "line": 92, + "line": 93, "column": 24 }, "identifierName": "Error" @@ -6088,29 +6365,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 3341, - "end": 3361, + "start": 3448, + "end": 3468, "loc": { "start": { - "line": 92, + "line": 93, "column": 25 }, "end": { - "line": 92, + "line": 93, "column": 45 } }, "object": { "type": "Identifier", - "start": 3341, - "end": 3348, + "start": 3448, + "end": 3455, "loc": { "start": { - "line": 92, + "line": 93, "column": 25 }, "end": { - "line": 92, + "line": 93, "column": 32 }, "identifierName": "request" @@ -6119,15 +6396,15 @@ }, "property": { "type": "Identifier", - "start": 3349, - "end": 3361, + "start": 3456, + "end": 3468, "loc": { "start": { - "line": 92, + "line": 93, "column": 33 }, "end": { - "line": 92, + "line": 93, "column": 45 }, "identifierName": "responseText" @@ -6153,58 +6430,58 @@ }, { "type": "ExpressionStatement", - "start": 3385, - "end": 3636, + "start": 3492, + "end": 3728, "loc": { "start": { - "line": 96, + "line": 97, "column": 4 }, "end": { - "line": 102, + "line": 103, "column": 6 } }, "expression": { "type": "AssignmentExpression", - "start": 3385, - "end": 3635, + "start": 3492, + "end": 3727, "loc": { "start": { - "line": 96, + "line": 97, "column": 4 }, "end": { - "line": 102, + "line": 103, "column": 5 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 3385, - "end": 3411, + "start": 3492, + "end": 3518, "loc": { "start": { - "line": 96, + "line": 97, "column": 4 }, "end": { - "line": 96, + "line": 97, "column": 30 } }, "object": { "type": "Identifier", - "start": 3385, - "end": 3392, + "start": 3492, + "end": 3499, "loc": { "start": { - "line": 96, + "line": 97, "column": 4 }, "end": { - "line": 96, + "line": 97, "column": 11 }, "identifierName": "request" @@ -6213,15 +6490,15 @@ }, "property": { "type": "Identifier", - "start": 3393, - "end": 3411, + "start": 3500, + "end": 3518, "loc": { "start": { - "line": 96, + "line": 97, "column": 12 }, "end": { - "line": 96, + "line": 97, "column": 30 }, "identifierName": "onreadystatechange" @@ -6232,15 +6509,15 @@ }, "right": { "type": "ArrowFunctionExpression", - "start": 3414, - "end": 3635, + "start": 3521, + "end": 3727, "loc": { "start": { - "line": 96, + "line": 97, "column": 33 }, "end": { - "line": 102, + "line": 103, "column": 5 } }, @@ -6251,72 +6528,72 @@ "params": [], "body": { "type": "BlockStatement", - "start": 3420, - "end": 3635, + "start": 3527, + "end": 3727, "loc": { "start": { - "line": 96, + "line": 97, "column": 39 }, "end": { - "line": 102, + "line": 103, "column": 5 } }, "body": [ { "type": "IfStatement", - "start": 3428, - "end": 3629, + "start": 3535, + "end": 3721, "loc": { "start": { - "line": 97, + "line": 98, "column": 6 }, "end": { - "line": 101, + "line": 102, "column": 7 } }, "test": { "type": "BinaryExpression", - "start": 3432, - "end": 3456, + "start": 3539, + "end": 3563, "loc": { "start": { - "line": 97, + "line": 98, "column": 10 }, "end": { - "line": 97, + "line": 98, "column": 34 } }, "left": { "type": "MemberExpression", - "start": 3432, - "end": 3450, + "start": 3539, + "end": 3557, "loc": { "start": { - "line": 97, + "line": 98, "column": 10 }, "end": { - "line": 97, + "line": 98, "column": 28 } }, "object": { "type": "Identifier", - "start": 3432, - "end": 3439, + "start": 3539, + "end": 3546, "loc": { "start": { - "line": 97, + "line": 98, "column": 10 }, "end": { - "line": 97, + "line": 98, "column": 17 }, "identifierName": "request" @@ -6325,15 +6602,15 @@ }, "property": { "type": "Identifier", - "start": 3440, - "end": 3450, + "start": 3547, + "end": 3557, "loc": { "start": { - "line": 97, + "line": 98, "column": 18 }, "end": { - "line": 97, + "line": 98, "column": 28 }, "identifierName": "readyState" @@ -6345,15 +6622,15 @@ "operator": "===", "right": { "type": "NumericLiteral", - "start": 3455, - "end": 3456, + "start": 3562, + "end": 3563, "loc": { "start": { - "line": 97, + "line": 98, "column": 33 }, "end": { - "line": 97, + "line": 98, "column": 34 } }, @@ -6366,86 +6643,86 @@ }, "consequent": { "type": "BlockStatement", - "start": 3458, - "end": 3629, + "start": 3565, + "end": 3721, "loc": { "start": { - "line": 97, + "line": 98, "column": 36 }, "end": { - "line": 101, + "line": 102, "column": 7 } }, "body": [ { "type": "IfStatement", - "start": 3468, - "end": 3621, + "start": 3575, + "end": 3713, "loc": { "start": { - "line": 98, + "line": 99, "column": 8 }, "end": { - "line": 100, + "line": 101, "column": 9 } }, "test": { "type": "LogicalExpression", - "start": 3472, - "end": 3517, + "start": 3579, + "end": 3624, "loc": { "start": { - "line": 98, + "line": 99, "column": 12 }, "end": { - "line": 98, + "line": 99, "column": 57 } }, "left": { "type": "BinaryExpression", - "start": 3472, - "end": 3493, + "start": 3579, + "end": 3600, "loc": { "start": { - "line": 98, + "line": 99, "column": 12 }, "end": { - "line": 98, + "line": 99, "column": 33 } }, "left": { "type": "MemberExpression", - "start": 3472, - "end": 3486, + "start": 3579, + "end": 3593, "loc": { "start": { - "line": 98, + "line": 99, "column": 12 }, "end": { - "line": 98, + "line": 99, "column": 26 } }, "object": { "type": "Identifier", - "start": 3472, - "end": 3479, + "start": 3579, + "end": 3586, "loc": { "start": { - "line": 98, + "line": 99, "column": 12 }, "end": { - "line": 98, + "line": 99, "column": 19 }, "identifierName": "request" @@ -6454,15 +6731,15 @@ }, "property": { "type": "Identifier", - "start": 3480, - "end": 3486, + "start": 3587, + "end": 3593, "loc": { "start": { - "line": 98, + "line": 99, "column": 20 }, "end": { - "line": 98, + "line": 99, "column": 26 }, "identifierName": "status" @@ -6474,15 +6751,15 @@ "operator": ">=", "right": { "type": "NumericLiteral", - "start": 3490, - "end": 3493, + "start": 3597, + "end": 3600, "loc": { "start": { - "line": 98, + "line": 99, "column": 30 }, "end": { - "line": 98, + "line": 99, "column": 33 } }, @@ -6496,43 +6773,43 @@ "operator": "&&", "right": { "type": "BinaryExpression", - "start": 3497, - "end": 3517, + "start": 3604, + "end": 3624, "loc": { "start": { - "line": 98, + "line": 99, "column": 37 }, "end": { - "line": 98, + "line": 99, "column": 57 } }, "left": { "type": "MemberExpression", - "start": 3497, - "end": 3511, + "start": 3604, + "end": 3618, "loc": { "start": { - "line": 98, + "line": 99, "column": 37 }, "end": { - "line": 98, + "line": 99, "column": 51 } }, "object": { "type": "Identifier", - "start": 3497, - "end": 3504, + "start": 3604, + "end": 3611, "loc": { "start": { - "line": 98, + "line": 99, "column": 37 }, "end": { - "line": 98, + "line": 99, "column": 44 }, "identifierName": "request" @@ -6541,15 +6818,15 @@ }, "property": { "type": "Identifier", - "start": 3505, - "end": 3511, + "start": 3612, + "end": 3618, "loc": { "start": { - "line": 98, + "line": 99, "column": 45 }, "end": { - "line": 98, + "line": 99, "column": 51 }, "identifierName": "status" @@ -6561,15 +6838,15 @@ "operator": "<", "right": { "type": "NumericLiteral", - "start": 3514, - "end": 3517, + "start": 3621, + "end": 3624, "loc": { "start": { - "line": 98, + "line": 99, "column": 54 }, "end": { - "line": 98, + "line": 99, "column": 57 } }, @@ -6583,123 +6860,90 @@ }, "consequent": { "type": "BlockStatement", - "start": 3519, - "end": 3621, + "start": 3626, + "end": 3713, "loc": { "start": { - "line": 98, + "line": 99, "column": 59 }, "end": { - "line": 100, + "line": 101, "column": 9 } }, "body": [ { "type": "ExpressionStatement", - "start": 3531, - "end": 3611, + "start": 3638, + "end": 3703, "loc": { "start": { - "line": 99, + "line": 100, "column": 10 }, "end": { - "line": 99, - "column": 90 + "line": 100, + "column": 75 } }, "expression": { "type": "ConditionalExpression", - "start": 3531, - "end": 3610, + "start": 3638, + "end": 3702, "loc": { "start": { - "line": 99, + "line": 100, "column": 10 }, "end": { - "line": 99, - "column": 89 + "line": 100, + "column": 74 } }, "test": { - "type": "BinaryExpression", - "start": 3531, - "end": 3556, + "type": "Identifier", + "start": 3638, + "end": 3648, "loc": { "start": { - "line": 99, + "line": 100, "column": 10 }, "end": { - "line": 99, - "column": 35 - } - }, - "left": { - "type": "Identifier", - "start": 3531, - "end": 3539, - "loc": { - "start": { - "line": 99, - "column": 10 - }, - "end": { - "line": 99, - "column": 18 - }, - "identifierName": "mimeType" + "line": 100, + "column": 20 }, - "name": "mimeType" + "identifierName": "isBlobType" }, - "operator": "===", - "right": { - "type": "Identifier", - "start": 3544, - "end": 3556, - "loc": { - "start": { - "line": 99, - "column": 23 - }, - "end": { - "line": 99, - "column": 35 - }, - "identifierName": "pptxMimeType" - }, - "name": "pptxMimeType" - } + "name": "isBlobType" }, "consequent": { "type": "CallExpression", - "start": 3559, - "end": 3584, + "start": 3651, + "end": 3676, "loc": { "start": { - "line": 99, - "column": 38 + "line": 100, + "column": 23 }, "end": { - "line": 99, - "column": 63 + "line": 100, + "column": 48 } }, "callee": { "type": "Identifier", - "start": 3559, - "end": 3566, + "start": 3651, + "end": 3658, "loc": { "start": { - "line": 99, - "column": 38 + "line": 100, + "column": 23 }, "end": { - "line": 99, - "column": 45 + "line": 100, + "column": 30 }, "identifierName": "resolve" }, @@ -6708,30 +6952,30 @@ "arguments": [ { "type": "MemberExpression", - "start": 3567, - "end": 3583, + "start": 3659, + "end": 3675, "loc": { "start": { - "line": 99, - "column": 46 + "line": 100, + "column": 31 }, "end": { - "line": 99, - "column": 62 + "line": 100, + "column": 47 } }, "object": { "type": "Identifier", - "start": 3567, - "end": 3574, + "start": 3659, + "end": 3666, "loc": { "start": { - "line": 99, - "column": 46 + "line": 100, + "column": 31 }, "end": { - "line": 99, - "column": 53 + "line": 100, + "column": 38 }, "identifierName": "request" }, @@ -6739,16 +6983,16 @@ }, "property": { "type": "Identifier", - "start": 3575, - "end": 3583, + "start": 3667, + "end": 3675, "loc": { "start": { - "line": 99, - "column": 54 + "line": 100, + "column": 39 }, "end": { - "line": 99, - "column": 62 + "line": 100, + "column": 47 }, "identifierName": "response" }, @@ -6760,30 +7004,30 @@ }, "alternate": { "type": "CallExpression", - "start": 3587, - "end": 3610, + "start": 3679, + "end": 3702, "loc": { "start": { - "line": 99, - "column": 66 + "line": 100, + "column": 51 }, "end": { - "line": 99, - "column": 89 + "line": 100, + "column": 74 } }, "callee": { "type": "Identifier", - "start": 3587, - "end": 3594, + "start": 3679, + "end": 3686, "loc": { "start": { - "line": 99, - "column": 66 + "line": 100, + "column": 51 }, "end": { - "line": 99, - "column": 73 + "line": 100, + "column": 58 }, "identifierName": "resolve" }, @@ -6792,30 +7036,30 @@ "arguments": [ { "type": "CallExpression", - "start": 3595, - "end": 3609, + "start": 3687, + "end": 3701, "loc": { "start": { - "line": 99, - "column": 74 + "line": 100, + "column": 59 }, "end": { - "line": 99, - "column": 88 + "line": 100, + "column": 73 } }, "callee": { "type": "Identifier", - "start": 3595, - "end": 3600, + "start": 3687, + "end": 3692, "loc": { "start": { - "line": 99, - "column": 74 + "line": 100, + "column": 59 }, "end": { - "line": 99, - "column": 79 + "line": 100, + "column": 64 }, "identifierName": "parse" }, @@ -6824,16 +7068,16 @@ "arguments": [ { "type": "Identifier", - "start": 3601, - "end": 3608, + "start": 3693, + "end": 3700, "loc": { "start": { - "line": 99, - "column": 80 + "line": 100, + "column": 65 }, "end": { - "line": 99, - "column": 87 + "line": 100, + "column": 72 }, "identifierName": "request" }, @@ -6863,29 +7107,29 @@ }, { "type": "IfStatement", - "start": 3642, - "end": 3716, + "start": 3734, + "end": 3808, "loc": { "start": { - "line": 104, + "line": 105, "column": 4 }, "end": { - "line": 106, + "line": 107, "column": 5 } }, "test": { "type": "Identifier", - "start": 3646, - "end": 3666, + "start": 3738, + "end": 3758, "loc": { "start": { - "line": 104, + "line": 105, "column": 8 }, "end": { - "line": 104, + "line": 105, "column": 28 }, "identifierName": "recognizerContextRef" @@ -6894,73 +7138,73 @@ }, "consequent": { "type": "BlockStatement", - "start": 3668, - "end": 3716, + "start": 3760, + "end": 3808, "loc": { "start": { - "line": 104, + "line": 105, "column": 30 }, "end": { - "line": 106, + "line": 107, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 3676, - "end": 3710, + "start": 3768, + "end": 3802, "loc": { "start": { - "line": 105, + "line": 106, "column": 6 }, "end": { - "line": 105, + "line": 106, "column": 40 } }, "expression": { "type": "AssignmentExpression", - "start": 3676, - "end": 3709, + "start": 3768, + "end": 3801, "loc": { "start": { - "line": 105, + "line": 106, "column": 6 }, "end": { - "line": 105, + "line": 106, "column": 39 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 3676, - "end": 3701, + "start": 3768, + "end": 3793, "loc": { "start": { - "line": 105, + "line": 106, "column": 6 }, "end": { - "line": 105, + "line": 106, "column": 31 } }, "object": { "type": "Identifier", - "start": 3676, - "end": 3696, + "start": 3768, + "end": 3788, "loc": { "start": { - "line": 105, + "line": 106, "column": 6 }, "end": { - "line": 105, + "line": 106, "column": 26 }, "identifierName": "recognizerContextRef" @@ -6969,15 +7213,15 @@ }, "property": { "type": "Identifier", - "start": 3697, - "end": 3701, + "start": 3789, + "end": 3793, "loc": { "start": { - "line": 105, + "line": 106, "column": 27 }, "end": { - "line": 105, + "line": 106, "column": 31 }, "identifierName": "idle" @@ -6988,15 +7232,15 @@ }, "right": { "type": "BooleanLiteral", - "start": 3704, - "end": 3709, + "start": 3796, + "end": 3801, "loc": { "start": { - "line": 105, + "line": 106, "column": 34 }, "end": { - "line": 105, + "line": 106, "column": 39 } }, @@ -7011,43 +7255,43 @@ }, { "type": "IfStatement", - "start": 3721, - "end": 3871, + "start": 3813, + "end": 3963, "loc": { "start": { - "line": 107, + "line": 108, "column": 4 }, "end": { - "line": 111, + "line": 112, "column": 5 } }, "test": { "type": "BinaryExpression", - "start": 3725, - "end": 3744, + "start": 3817, + "end": 3836, "loc": { "start": { - "line": 107, + "line": 108, "column": 8 }, "end": { - "line": 107, + "line": 108, "column": 27 } }, "left": { "type": "Identifier", - "start": 3725, - "end": 3735, + "start": 3817, + "end": 3827, "loc": { "start": { - "line": 107, + "line": 108, "column": 8 }, "end": { - "line": 107, + "line": 108, "column": 18 }, "identifierName": "apiVersion" @@ -7057,15 +7301,15 @@ "operator": "===", "right": { "type": "StringLiteral", - "start": 3740, - "end": 3744, + "start": 3832, + "end": 3836, "loc": { "start": { - "line": 107, + "line": 108, "column": 23 }, "end": { - "line": 107, + "line": 108, "column": 27 } }, @@ -7078,72 +7322,72 @@ }, "consequent": { "type": "BlockStatement", - "start": 3746, - "end": 3795, + "start": 3838, + "end": 3887, "loc": { "start": { - "line": 107, + "line": 108, "column": 29 }, "end": { - "line": 109, + "line": 110, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 3754, - "end": 3789, + "start": 3846, + "end": 3881, "loc": { "start": { - "line": 108, + "line": 109, "column": 6 }, "end": { - "line": 108, + "line": 109, "column": 41 } }, "expression": { "type": "CallExpression", - "start": 3754, - "end": 3788, + "start": 3846, + "end": 3880, "loc": { "start": { - "line": 108, + "line": 109, "column": 6 }, "end": { - "line": 108, + "line": 109, "column": 40 } }, "callee": { "type": "MemberExpression", - "start": 3754, - "end": 3766, + "start": 3846, + "end": 3858, "loc": { "start": { - "line": 108, + "line": 109, "column": 6 }, "end": { - "line": 108, + "line": 109, "column": 18 } }, "object": { "type": "Identifier", - "start": 3754, - "end": 3761, + "start": 3846, + "end": 3853, "loc": { "start": { - "line": 108, + "line": 109, "column": 6 }, "end": { - "line": 108, + "line": 109, "column": 13 }, "identifierName": "request" @@ -7152,15 +7396,15 @@ }, "property": { "type": "Identifier", - "start": 3762, - "end": 3766, + "start": 3854, + "end": 3858, "loc": { "start": { - "line": 108, + "line": 109, "column": 14 }, "end": { - "line": 108, + "line": 109, "column": 18 }, "identifierName": "send" @@ -7172,43 +7416,43 @@ "arguments": [ { "type": "CallExpression", - "start": 3767, - "end": 3787, + "start": 3859, + "end": 3879, "loc": { "start": { - "line": 108, + "line": 109, "column": 19 }, "end": { - "line": 108, + "line": 109, "column": 39 } }, "callee": { "type": "MemberExpression", - "start": 3767, - "end": 3781, + "start": 3859, + "end": 3873, "loc": { "start": { - "line": 108, + "line": 109, "column": 19 }, "end": { - "line": 108, + "line": 109, "column": 33 } }, "object": { "type": "Identifier", - "start": 3767, - "end": 3771, + "start": 3859, + "end": 3863, "loc": { "start": { - "line": 108, + "line": 109, "column": 19 }, "end": { - "line": 108, + "line": 109, "column": 23 }, "identifierName": "JSON" @@ -7217,15 +7461,15 @@ }, "property": { "type": "Identifier", - "start": 3772, - "end": 3781, + "start": 3864, + "end": 3873, "loc": { "start": { - "line": 108, + "line": 109, "column": 24 }, "end": { - "line": 108, + "line": 109, "column": 33 }, "identifierName": "stringify" @@ -7237,15 +7481,15 @@ "arguments": [ { "type": "Identifier", - "start": 3782, - "end": 3786, + "start": 3874, + "end": 3878, "loc": { "start": { - "line": 108, + "line": 109, "column": 34 }, "end": { - "line": 108, + "line": 109, "column": 38 }, "identifierName": "data" @@ -7262,72 +7506,72 @@ }, "alternate": { "type": "BlockStatement", - "start": 3801, - "end": 3871, + "start": 3893, + "end": 3963, "loc": { "start": { - "line": 109, + "line": 110, "column": 11 }, "end": { - "line": 111, + "line": 112, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 3809, - "end": 3865, + "start": 3901, + "end": 3957, "loc": { "start": { - "line": 110, + "line": 111, "column": 6 }, "end": { - "line": 110, + "line": 111, "column": 62 } }, "expression": { "type": "CallExpression", - "start": 3809, - "end": 3864, + "start": 3901, + "end": 3956, "loc": { "start": { - "line": 110, + "line": 111, "column": 6 }, "end": { - "line": 110, + "line": 111, "column": 61 } }, "callee": { "type": "MemberExpression", - "start": 3809, - "end": 3821, + "start": 3901, + "end": 3913, "loc": { "start": { - "line": 110, + "line": 111, "column": 6 }, "end": { - "line": 110, + "line": 111, "column": 18 } }, "object": { "type": "Identifier", - "start": 3809, - "end": 3816, + "start": 3901, + "end": 3908, "loc": { "start": { - "line": 110, + "line": 111, "column": 6 }, "end": { - "line": 110, + "line": 111, "column": 13 }, "identifierName": "request" @@ -7336,15 +7580,15 @@ }, "property": { "type": "Identifier", - "start": 3817, - "end": 3821, + "start": 3909, + "end": 3913, "loc": { "start": { - "line": 110, + "line": 111, "column": 14 }, "end": { - "line": 110, + "line": 111, "column": 18 }, "identifierName": "send" @@ -7356,29 +7600,29 @@ "arguments": [ { "type": "ConditionalExpression", - "start": 3822, - "end": 3863, + "start": 3914, + "end": 3955, "loc": { "start": { - "line": 110, + "line": 111, "column": 19 }, "end": { - "line": 110, + "line": 111, "column": 60 } }, "test": { "type": "Identifier", - "start": 3822, - "end": 3826, + "start": 3914, + "end": 3918, "loc": { "start": { - "line": 110, + "line": 111, "column": 19 }, "end": { - "line": 110, + "line": 111, "column": 23 }, "identifierName": "data" @@ -7387,29 +7631,29 @@ }, "consequent": { "type": "CallExpression", - "start": 3829, - "end": 3851, + "start": 3921, + "end": 3943, "loc": { "start": { - "line": 110, + "line": 111, "column": 26 }, "end": { - "line": 110, + "line": 111, "column": 48 } }, "callee": { "type": "Identifier", - "start": 3829, - "end": 3845, + "start": 3921, + "end": 3937, "loc": { "start": { - "line": 110, + "line": 111, "column": 26 }, "end": { - "line": 110, + "line": 111, "column": 42 }, "identifierName": "transformRequest" @@ -7419,15 +7663,15 @@ "arguments": [ { "type": "Identifier", - "start": 3846, - "end": 3850, + "start": 3938, + "end": 3942, "loc": { "start": { - "line": 110, + "line": 111, "column": 43 }, "end": { - "line": 110, + "line": 111, "column": 47 }, "identifierName": "data" @@ -7438,15 +7682,15 @@ }, "alternate": { "type": "Identifier", - "start": 3854, - "end": 3863, + "start": 3946, + "end": 3955, "loc": { "start": { - "line": 110, + "line": 111, "column": 51 }, "end": { - "line": 110, + "line": 111, "column": 60 }, "identifierName": "undefined" @@ -7469,15 +7713,15 @@ }, "property": { "type": "Identifier", - "start": 3877, - "end": 3881, + "start": 3969, + "end": 3973, "loc": { "start": { - "line": 112, + "line": 113, "column": 5 }, "end": { - "line": 112, + "line": 113, "column": 9 }, "identifierName": "then" @@ -7489,15 +7733,15 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 3882, - "end": 3990, + "start": 3974, + "end": 4082, "loc": { "start": { - "line": 112, + "line": 113, "column": 10 }, "end": { - "line": 117, + "line": 118, "column": 3 } }, @@ -7508,15 +7752,15 @@ "params": [ { "type": "Identifier", - "start": 3883, - "end": 3886, + "start": 3975, + "end": 3978, "loc": { "start": { - "line": 112, + "line": 113, "column": 11 }, "end": { - "line": 112, + "line": 113, "column": 14 }, "identifierName": "res" @@ -7526,44 +7770,44 @@ ], "body": { "type": "BlockStatement", - "start": 3891, - "end": 3990, + "start": 3983, + "end": 4082, "loc": { "start": { - "line": 112, + "line": 113, "column": 19 }, "end": { - "line": 117, + "line": 118, "column": 3 } }, "body": [ { "type": "IfStatement", - "start": 3897, - "end": 3970, + "start": 3989, + "end": 4062, "loc": { "start": { - "line": 113, + "line": 114, "column": 4 }, "end": { - "line": 115, + "line": 116, "column": 5 } }, "test": { "type": "Identifier", - "start": 3901, - "end": 3921, + "start": 3993, + "end": 4013, "loc": { "start": { - "line": 113, + "line": 114, "column": 8 }, "end": { - "line": 113, + "line": 114, "column": 28 }, "identifierName": "recognizerContextRef" @@ -7572,73 +7816,73 @@ }, "consequent": { "type": "BlockStatement", - "start": 3923, - "end": 3970, + "start": 4015, + "end": 4062, "loc": { "start": { - "line": 113, + "line": 114, "column": 30 }, "end": { - "line": 115, + "line": 116, "column": 5 } }, "body": [ { "type": "ExpressionStatement", - "start": 3931, - "end": 3964, + "start": 4023, + "end": 4056, "loc": { "start": { - "line": 114, + "line": 115, "column": 6 }, "end": { - "line": 114, + "line": 115, "column": 39 } }, "expression": { "type": "AssignmentExpression", - "start": 3931, - "end": 3963, + "start": 4023, + "end": 4055, "loc": { "start": { - "line": 114, + "line": 115, "column": 6 }, "end": { - "line": 114, + "line": 115, "column": 38 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 3931, - "end": 3956, + "start": 4023, + "end": 4048, "loc": { "start": { - "line": 114, + "line": 115, "column": 6 }, "end": { - "line": 114, + "line": 115, "column": 31 } }, "object": { "type": "Identifier", - "start": 3931, - "end": 3951, + "start": 4023, + "end": 4043, "loc": { "start": { - "line": 114, + "line": 115, "column": 6 }, "end": { - "line": 114, + "line": 115, "column": 26 }, "identifierName": "recognizerContextRef" @@ -7647,15 +7891,15 @@ }, "property": { "type": "Identifier", - "start": 3952, - "end": 3956, + "start": 4044, + "end": 4048, "loc": { "start": { - "line": 114, + "line": 115, "column": 27 }, "end": { - "line": 114, + "line": 115, "column": 31 }, "identifierName": "idle" @@ -7666,15 +7910,15 @@ }, "right": { "type": "BooleanLiteral", - "start": 3959, - "end": 3963, + "start": 4051, + "end": 4055, "loc": { "start": { - "line": 114, + "line": 115, "column": 34 }, "end": { - "line": 114, + "line": 115, "column": 38 } }, @@ -7689,29 +7933,29 @@ }, { "type": "ReturnStatement", - "start": 3975, - "end": 3986, + "start": 4067, + "end": 4078, "loc": { "start": { - "line": 116, + "line": 117, "column": 4 }, "end": { - "line": 116, + "line": 117, "column": 15 } }, "argument": { "type": "Identifier", - "start": 3982, - "end": 3985, + "start": 4074, + "end": 4077, "loc": { "start": { - "line": 116, + "line": 117, "column": 11 }, "end": { - "line": 116, + "line": 117, "column": 14 }, "identifierName": "res" @@ -7752,15 +7996,15 @@ { "type": "CommentBlock", "value": "*\n * Get request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} params Query properties\n * @return {Promise}\n ", - "start": 3996, - "end": 4176, + "start": 4088, + "end": 4268, "loc": { "start": { - "line": 120, + "line": 121, "column": 0 }, "end": { - "line": 126, + "line": 127, "column": 3 } } @@ -7769,15 +8013,15 @@ }, { "type": "ExportNamedDeclaration", - "start": 4177, - "end": 4383, + "start": 4269, + "end": 4475, "loc": { "start": { - "line": 127, + "line": 128, "column": 0 }, "end": { - "line": 133, + "line": 134, "column": 1 } }, @@ -7785,29 +8029,29 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 4184, - "end": 4383, + "start": 4276, + "end": 4475, "loc": { "start": { - "line": 127, + "line": 128, "column": 7 }, "end": { - "line": 133, + "line": 134, "column": 1 } }, "id": { "type": "Identifier", - "start": 4193, - "end": 4196, + "start": 4285, + "end": 4288, "loc": { "start": { - "line": 127, + "line": 128, "column": 16 }, "end": { - "line": 127, + "line": 128, "column": 19 }, "identifierName": "get" @@ -7821,15 +8065,15 @@ "params": [ { "type": "Identifier", - "start": 4197, - "end": 4214, + "start": 4289, + "end": 4306, "loc": { "start": { - "line": 127, + "line": 128, "column": 20 }, "end": { - "line": 127, + "line": 128, "column": 37 }, "identifierName": "recognizerContext" @@ -7838,15 +8082,15 @@ }, { "type": "Identifier", - "start": 4216, - "end": 4219, + "start": 4308, + "end": 4311, "loc": { "start": { - "line": 127, + "line": 128, "column": 39 }, "end": { - "line": 127, + "line": 128, "column": 42 }, "identifierName": "url" @@ -7855,15 +8099,15 @@ }, { "type": "Identifier", - "start": 4221, - "end": 4227, + "start": 4313, + "end": 4319, "loc": { "start": { - "line": 127, + "line": 128, "column": 44 }, "end": { - "line": 127, + "line": 128, "column": 50 }, "identifierName": "params" @@ -7873,59 +8117,59 @@ ], "body": { "type": "BlockStatement", - "start": 4229, - "end": 4383, + "start": 4321, + "end": 4475, "loc": { "start": { - "line": 127, + "line": 128, "column": 52 }, "end": { - "line": 133, + "line": 134, "column": 1 } }, "body": [ { "type": "VariableDeclaration", - "start": 4233, - "end": 4252, + "start": 4325, + "end": 4344, "loc": { "start": { - "line": 128, + "line": 129, "column": 2 }, "end": { - "line": 128, + "line": 129, "column": 21 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 4237, - "end": 4251, + "start": 4329, + "end": 4343, "loc": { "start": { - "line": 128, + "line": 129, "column": 6 }, "end": { - "line": 128, + "line": 129, "column": 20 } }, "id": { "type": "Identifier", - "start": 4237, - "end": 4245, + "start": 4329, + "end": 4337, "loc": { "start": { - "line": 128, + "line": 129, "column": 6 }, "end": { - "line": 128, + "line": 129, "column": 14 }, "identifierName": "queryUrl" @@ -7934,15 +8178,15 @@ }, "init": { "type": "Identifier", - "start": 4248, - "end": 4251, + "start": 4340, + "end": 4343, "loc": { "start": { - "line": 128, + "line": 129, "column": 17 }, "end": { - "line": 128, + "line": 129, "column": 20 }, "identifierName": "url" @@ -7955,29 +8199,29 @@ }, { "type": "IfStatement", - "start": 4255, - "end": 4320, + "start": 4347, + "end": 4412, "loc": { "start": { - "line": 129, + "line": 130, "column": 2 }, "end": { - "line": 131, + "line": 132, "column": 3 } }, "test": { "type": "Identifier", - "start": 4259, - "end": 4265, + "start": 4351, + "end": 4357, "loc": { "start": { - "line": 129, + "line": 130, "column": 6 }, "end": { - "line": 129, + "line": 130, "column": 12 }, "identifierName": "params" @@ -7986,59 +8230,59 @@ }, "consequent": { "type": "BlockStatement", - "start": 4267, - "end": 4320, + "start": 4359, + "end": 4412, "loc": { "start": { - "line": 129, + "line": 130, "column": 14 }, "end": { - "line": 131, + "line": 132, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 4273, - "end": 4316, + "start": 4365, + "end": 4408, "loc": { "start": { - "line": 130, + "line": 131, "column": 4 }, "end": { - "line": 130, + "line": 131, "column": 47 } }, "expression": { "type": "AssignmentExpression", - "start": 4273, - "end": 4315, + "start": 4365, + "end": 4407, "loc": { "start": { - "line": 130, + "line": 131, "column": 4 }, "end": { - "line": 130, + "line": 131, "column": 46 } }, "operator": "+=", "left": { "type": "Identifier", - "start": 4273, - "end": 4281, + "start": 4365, + "end": 4373, "loc": { "start": { - "line": 130, + "line": 131, "column": 4 }, "end": { - "line": 130, + "line": 131, "column": 12 }, "identifierName": "queryUrl" @@ -8047,44 +8291,44 @@ }, "right": { "type": "TemplateLiteral", - "start": 4285, - "end": 4315, + "start": 4377, + "end": 4407, "loc": { "start": { - "line": 130, + "line": 131, "column": 16 }, "end": { - "line": 130, + "line": 131, "column": 46 } }, "expressions": [ { "type": "CallExpression", - "start": 4289, - "end": 4313, + "start": 4381, + "end": 4405, "loc": { "start": { - "line": 130, + "line": 131, "column": 20 }, "end": { - "line": 130, + "line": 131, "column": 44 } }, "callee": { "type": "Identifier", - "start": 4289, - "end": 4305, + "start": 4381, + "end": 4397, "loc": { "start": { - "line": 130, + "line": 131, "column": 20 }, "end": { - "line": 130, + "line": 131, "column": 36 }, "identifierName": "transformRequest" @@ -8094,15 +8338,15 @@ "arguments": [ { "type": "Identifier", - "start": 4306, - "end": 4312, + "start": 4398, + "end": 4404, "loc": { "start": { - "line": 130, + "line": 131, "column": 37 }, "end": { - "line": 130, + "line": 131, "column": 43 }, "identifierName": "params" @@ -8115,15 +8359,15 @@ "quasis": [ { "type": "TemplateElement", - "start": 4286, - "end": 4287, + "start": 4378, + "end": 4379, "loc": { "start": { - "line": 130, + "line": 131, "column": 17 }, "end": { - "line": 130, + "line": 131, "column": 18 } }, @@ -8135,15 +8379,15 @@ }, { "type": "TemplateElement", - "start": 4314, - "end": 4314, + "start": 4406, + "end": 4406, "loc": { "start": { - "line": 130, + "line": 131, "column": 45 }, "end": { - "line": 130, + "line": 131, "column": 45 } }, @@ -8164,43 +8408,43 @@ }, { "type": "ReturnStatement", - "start": 4323, - "end": 4381, + "start": 4415, + "end": 4473, "loc": { "start": { - "line": 132, + "line": 133, "column": 2 }, "end": { - "line": 132, + "line": 133, "column": 60 } }, "argument": { "type": "CallExpression", - "start": 4330, - "end": 4380, + "start": 4422, + "end": 4472, "loc": { "start": { - "line": 132, + "line": 133, "column": 9 }, "end": { - "line": 132, + "line": 133, "column": 59 } }, "callee": { "type": "Identifier", - "start": 4330, - "end": 4333, + "start": 4422, + "end": 4425, "loc": { "start": { - "line": 132, + "line": 133, "column": 9 }, "end": { - "line": 132, + "line": 133, "column": 12 }, "identifierName": "xhr" @@ -8210,15 +8454,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 4334, - "end": 4339, + "start": 4426, + "end": 4431, "loc": { "start": { - "line": 132, + "line": 133, "column": 13 }, "end": { - "line": 132, + "line": 133, "column": 18 } }, @@ -8230,15 +8474,15 @@ }, { "type": "Identifier", - "start": 4341, - "end": 4349, + "start": 4433, + "end": 4441, "loc": { "start": { - "line": 132, + "line": 133, "column": 20 }, "end": { - "line": 132, + "line": 133, "column": 28 }, "identifierName": "queryUrl" @@ -8247,15 +8491,15 @@ }, { "type": "Identifier", - "start": 4351, - "end": 4360, + "start": 4443, + "end": 4452, "loc": { "start": { - "line": 132, + "line": 133, "column": 30 }, "end": { - "line": 132, + "line": 133, "column": 39 }, "identifierName": "undefined" @@ -8264,15 +8508,15 @@ }, { "type": "Identifier", - "start": 4362, - "end": 4379, + "start": 4454, + "end": 4471, "loc": { "start": { - "line": 132, + "line": 133, "column": 41 }, "end": { - "line": 132, + "line": 133, "column": 58 }, "identifierName": "recognizerContext" @@ -8290,15 +8534,15 @@ { "type": "CommentBlock", "value": "*\n * Get request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} params Query properties\n * @return {Promise}\n ", - "start": 3996, - "end": 4176, + "start": 4088, + "end": 4268, "loc": { "start": { - "line": 120, + "line": 121, "column": 0 }, "end": { - "line": 126, + "line": 127, "column": 3 } } @@ -8308,15 +8552,15 @@ { "type": "CommentBlock", "value": "*\n * Post request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} data Data to be sent\n * @param {String} apiVersion api version\n * @param {String} mimeType MimeType to be used\n * @return {Promise}\n ", - "start": 4385, - "end": 4653, + "start": 4477, + "end": 4745, "loc": { "start": { - "line": 135, + "line": 136, "column": 0 }, "end": { - "line": 143, + "line": 144, "column": 3 } } @@ -8327,15 +8571,15 @@ { "type": "CommentBlock", "value": "*\n * Get request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} params Query properties\n * @return {Promise}\n ", - "start": 3996, - "end": 4176, + "start": 4088, + "end": 4268, "loc": { "start": { - "line": 120, + "line": 121, "column": 0 }, "end": { - "line": 126, + "line": 127, "column": 3 } } @@ -8345,15 +8589,15 @@ { "type": "CommentBlock", "value": "*\n * Post request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} data Data to be sent\n * @param {String} apiVersion api version\n * @param {String} mimeType MimeType to be used\n * @return {Promise}\n ", - "start": 4385, - "end": 4653, + "start": 4477, + "end": 4745, "loc": { "start": { - "line": 135, + "line": 136, "column": 0 }, "end": { - "line": 143, + "line": 144, "column": 3 } } @@ -8362,15 +8606,15 @@ }, { "type": "ExportNamedDeclaration", - "start": 4654, - "end": 4804, + "start": 4746, + "end": 4896, "loc": { "start": { - "line": 144, + "line": 145, "column": 0 }, "end": { - "line": 146, + "line": 147, "column": 1 } }, @@ -8378,29 +8622,29 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 4661, - "end": 4804, + "start": 4753, + "end": 4896, "loc": { "start": { - "line": 144, + "line": 145, "column": 7 }, "end": { - "line": 146, + "line": 147, "column": 1 } }, "id": { "type": "Identifier", - "start": 4670, - "end": 4674, + "start": 4762, + "end": 4766, "loc": { "start": { - "line": 144, + "line": 145, "column": 16 }, "end": { - "line": 144, + "line": 145, "column": 20 }, "identifierName": "post" @@ -8414,15 +8658,15 @@ "params": [ { "type": "Identifier", - "start": 4675, - "end": 4692, + "start": 4767, + "end": 4784, "loc": { "start": { - "line": 144, + "line": 145, "column": 21 }, "end": { - "line": 144, + "line": 145, "column": 38 }, "identifierName": "recognizerContext" @@ -8431,15 +8675,15 @@ }, { "type": "Identifier", - "start": 4694, - "end": 4697, + "start": 4786, + "end": 4789, "loc": { "start": { - "line": 144, + "line": 145, "column": 40 }, "end": { - "line": 144, + "line": 145, "column": 43 }, "identifierName": "url" @@ -8448,15 +8692,15 @@ }, { "type": "Identifier", - "start": 4699, - "end": 4703, + "start": 4791, + "end": 4795, "loc": { "start": { - "line": 144, + "line": 145, "column": 45 }, "end": { - "line": 144, + "line": 145, "column": 49 }, "identifierName": "data" @@ -8465,15 +8709,15 @@ }, { "type": "Identifier", - "start": 4705, - "end": 4715, + "start": 4797, + "end": 4807, "loc": { "start": { - "line": 144, + "line": 145, "column": 51 }, "end": { - "line": 144, + "line": 145, "column": 61 }, "identifierName": "apiVersion" @@ -8482,15 +8726,15 @@ }, { "type": "Identifier", - "start": 4717, - "end": 4725, + "start": 4809, + "end": 4817, "loc": { "start": { - "line": 144, + "line": 145, "column": 63 }, "end": { - "line": 144, + "line": 145, "column": 71 }, "identifierName": "mimeType" @@ -8500,58 +8744,58 @@ ], "body": { "type": "BlockStatement", - "start": 4727, - "end": 4804, + "start": 4819, + "end": 4896, "loc": { "start": { - "line": 144, + "line": 145, "column": 73 }, "end": { - "line": 146, + "line": 147, "column": 1 } }, "body": [ { "type": "ReturnStatement", - "start": 4731, - "end": 4802, + "start": 4823, + "end": 4894, "loc": { "start": { - "line": 145, + "line": 146, "column": 2 }, "end": { - "line": 145, + "line": 146, "column": 73 } }, "argument": { "type": "CallExpression", - "start": 4738, - "end": 4801, + "start": 4830, + "end": 4893, "loc": { "start": { - "line": 145, + "line": 146, "column": 9 }, "end": { - "line": 145, + "line": 146, "column": 72 } }, "callee": { "type": "Identifier", - "start": 4738, - "end": 4741, + "start": 4830, + "end": 4833, "loc": { "start": { - "line": 145, + "line": 146, "column": 9 }, "end": { - "line": 145, + "line": 146, "column": 12 }, "identifierName": "xhr" @@ -8561,15 +8805,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 4742, - "end": 4748, + "start": 4834, + "end": 4840, "loc": { "start": { - "line": 145, + "line": 146, "column": 13 }, "end": { - "line": 145, + "line": 146, "column": 19 } }, @@ -8581,15 +8825,15 @@ }, { "type": "Identifier", - "start": 4750, - "end": 4753, + "start": 4842, + "end": 4845, "loc": { "start": { - "line": 145, + "line": 146, "column": 21 }, "end": { - "line": 145, + "line": 146, "column": 24 }, "identifierName": "url" @@ -8598,15 +8842,15 @@ }, { "type": "Identifier", - "start": 4755, - "end": 4759, + "start": 4847, + "end": 4851, "loc": { "start": { - "line": 145, + "line": 146, "column": 26 }, "end": { - "line": 145, + "line": 146, "column": 30 }, "identifierName": "data" @@ -8615,15 +8859,15 @@ }, { "type": "Identifier", - "start": 4761, - "end": 4778, + "start": 4853, + "end": 4870, "loc": { "start": { - "line": 145, + "line": 146, "column": 32 }, "end": { - "line": 145, + "line": 146, "column": 49 }, "identifierName": "recognizerContext" @@ -8632,15 +8876,15 @@ }, { "type": "Identifier", - "start": 4780, - "end": 4790, + "start": 4872, + "end": 4882, "loc": { "start": { - "line": 145, + "line": 146, "column": 51 }, "end": { - "line": 145, + "line": 146, "column": 61 }, "identifierName": "apiVersion" @@ -8649,15 +8893,15 @@ }, { "type": "Identifier", - "start": 4792, - "end": 4800, + "start": 4884, + "end": 4892, "loc": { "start": { - "line": 145, + "line": 146, "column": 63 }, "end": { - "line": 145, + "line": 146, "column": 71 }, "identifierName": "mimeType" @@ -8674,15 +8918,15 @@ { "type": "CommentBlock", "value": "*\n * Post request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} data Data to be sent\n * @param {String} apiVersion api version\n * @param {String} mimeType MimeType to be used\n * @return {Promise}\n ", - "start": 4385, - "end": 4653, + "start": 4477, + "end": 4745, "loc": { "start": { - "line": 135, + "line": 136, "column": 0 }, "end": { - "line": 143, + "line": 144, "column": 3 } } @@ -8694,15 +8938,15 @@ { "type": "CommentBlock", "value": "*\n * Post request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} data Data to be sent\n * @param {String} apiVersion api version\n * @param {String} mimeType MimeType to be used\n * @return {Promise}\n ", - "start": 4385, - "end": 4653, + "start": 4477, + "end": 4745, "loc": { "start": { - "line": 135, + "line": 136, "column": 0 }, "end": { - "line": 143, + "line": 144, "column": 3 } } @@ -8812,15 +9056,15 @@ { "type": "CommentBlock", "value": "*\n * Get request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} params Query properties\n * @return {Promise}\n ", - "start": 3996, - "end": 4176, + "start": 4088, + "end": 4268, "loc": { "start": { - "line": 120, + "line": 121, "column": 0 }, "end": { - "line": 126, + "line": 127, "column": 3 } } @@ -8828,15 +9072,15 @@ { "type": "CommentBlock", "value": "*\n * Post request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} data Data to be sent\n * @param {String} apiVersion api version\n * @param {String} mimeType MimeType to be used\n * @return {Promise}\n ", - "start": 4385, - "end": 4653, + "start": 4477, + "end": 4745, "loc": { "start": { - "line": 135, + "line": 136, "column": 0 }, "end": { - "line": 143, + "line": 144, "column": 3 } } @@ -18846,8 +19090,8 @@ }, { "type": { - "label": "if", - "keyword": "if", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -18858,9 +19102,9 @@ "binop": null, "updateContext": null }, - "value": "if", + "value": "const", "start": 2918, - "end": 2920, + "end": 2923, "loc": { "start": { "line": 80, @@ -18868,32 +19112,7 @@ }, "end": { "line": 80, - "column": 6 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 2921, - "end": 2922, - "loc": { - "start": { - "line": 80, - "column": 7 - }, - "end": { - "line": 80, - "column": 8 + "column": 9 } } }, @@ -18909,44 +19128,44 @@ "postfix": false, "binop": null }, - "value": "mimeType", - "start": 2922, - "end": 2930, + "value": "isBlobType", + "start": 2924, + "end": 2934, "loc": { "start": { "line": 80, - "column": 8 + "column": 10 }, "end": { "line": 80, - "column": 16 + "column": 20 } } }, { "type": { - "label": "==/!=", + "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 2931, - "end": 2934, + "value": "=", + "start": 2935, + "end": 2936, "loc": { "start": { "line": 80, - "column": 17 + "column": 21 }, "end": { "line": 80, - "column": 20 + "column": 22 } } }, @@ -18962,38 +19181,40 @@ "postfix": false, "binop": null }, - "value": "pptxMimeType", - "start": 2935, - "end": 2947, + "value": "mimeType", + "start": 2937, + "end": 2945, "loc": { "start": { "line": 80, - "column": 21 + "column": 23 }, "end": { "line": 80, - "column": 33 + "column": 31 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "&&", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 2, + "updateContext": null }, - "start": 2947, + "value": "&&", + "start": 2946, "end": 2948, "loc": { "start": { "line": 80, - "column": 33 + "column": 32 }, "end": { "line": 80, @@ -19003,7 +19224,7 @@ }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -19038,43 +19259,44 @@ "postfix": false, "binop": null }, - "value": "request", - "start": 2957, - "end": 2964, + "value": "mimeType", + "start": 2950, + "end": 2958, "loc": { "start": { - "line": 81, - "column": 6 + "line": 80, + "column": 36 }, "end": { - "line": 81, - "column": 13 + "line": 80, + "column": 44 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "==/!=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 6, "updateContext": null }, - "start": 2964, - "end": 2965, + "value": "===", + "start": 2959, + "end": 2962, "loc": { "start": { - "line": 81, - "column": 13 + "line": 80, + "column": 45 }, "end": { - "line": 81, - "column": 14 + "line": 80, + "column": 48 } } }, @@ -19090,44 +19312,666 @@ "postfix": false, "binop": null }, - "value": "responseType", - "start": 2965, - "end": 2977, + "value": "pptxMimeType", + "start": 2963, + "end": 2975, "loc": { "start": { - "line": 81, - "column": 14 + "line": 80, + "column": 49 }, "end": { - "line": 81, - "column": 26 + "line": 80, + "column": 61 } } }, { "type": { - "label": "=", + "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 1, "updateContext": null }, - "value": "=", - "start": 2978, - "end": 2979, + "value": "||", + "start": 2976, + "end": 2978, "loc": { "start": { - "line": 81, - "column": 27 + "line": 80, + "column": 62 }, "end": { - "line": 81, - "column": 28 + "line": 80, + "column": 64 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "mimeType", + "start": 2979, + "end": 2987, + "loc": { + "start": { + "line": 80, + "column": 65 + }, + "end": { + "line": 80, + "column": 73 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2987, + "end": 2988, + "loc": { + "start": { + "line": 80, + "column": 73 + }, + "end": { + "line": 80, + "column": 74 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "startsWith", + "start": 2988, + "end": 2998, + "loc": { + "start": { + "line": 80, + "column": 74 + }, + "end": { + "line": 80, + "column": 84 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2998, + "end": 2999, + "loc": { + "start": { + "line": 80, + "column": 84 + }, + "end": { + "line": 80, + "column": 85 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "image/png", + "start": 2999, + "end": 3010, + "loc": { + "start": { + "line": 80, + "column": 85 + }, + "end": { + "line": 80, + "column": 96 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3010, + "end": 3011, + "loc": { + "start": { + "line": 80, + "column": 96 + }, + "end": { + "line": 80, + "column": 97 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 3012, + "end": 3014, + "loc": { + "start": { + "line": 80, + "column": 98 + }, + "end": { + "line": 80, + "column": 100 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "mimeType", + "start": 3015, + "end": 3023, + "loc": { + "start": { + "line": 80, + "column": 101 + }, + "end": { + "line": 80, + "column": 109 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3023, + "end": 3024, + "loc": { + "start": { + "line": 80, + "column": 109 + }, + "end": { + "line": 80, + "column": 110 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "startsWith", + "start": 3024, + "end": 3034, + "loc": { + "start": { + "line": 80, + "column": 110 + }, + "end": { + "line": 80, + "column": 120 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3034, + "end": 3035, + "loc": { + "start": { + "line": 80, + "column": 120 + }, + "end": { + "line": 80, + "column": 121 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "image/jpeg", + "start": 3035, + "end": 3047, + "loc": { + "start": { + "line": 80, + "column": 121 + }, + "end": { + "line": 80, + "column": 133 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3047, + "end": 3048, + "loc": { + "start": { + "line": 80, + "column": 133 + }, + "end": { + "line": 80, + "column": 134 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3048, + "end": 3049, + "loc": { + "start": { + "line": 80, + "column": 134 + }, + "end": { + "line": 80, + "column": 135 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3049, + "end": 3050, + "loc": { + "start": { + "line": 80, + "column": 135 + }, + "end": { + "line": 80, + "column": 136 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 3055, + "end": 3057, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3058, + "end": 3059, + "loc": { + "start": { + "line": 81, + "column": 7 + }, + "end": { + "line": 81, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "isBlobType", + "start": 3059, + "end": 3069, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3069, + "end": 3070, + "loc": { + "start": { + "line": 81, + "column": 18 + }, + "end": { + "line": 81, + "column": 19 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3071, + "end": 3072, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 81, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "request", + "start": 3079, + "end": 3086, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3086, + "end": 3087, + "loc": { + "start": { + "line": 82, + "column": 13 + }, + "end": { + "line": 82, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "responseType", + "start": 3087, + "end": 3099, + "loc": { + "start": { + "line": 82, + "column": 14 + }, + "end": { + "line": 82, + "column": 26 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3100, + "end": 3101, + "loc": { + "start": { + "line": 82, + "column": 27 + }, + "end": { + "line": 82, + "column": 28 } } }, @@ -19145,15 +19989,15 @@ "updateContext": null }, "value": "blob", - "start": 2980, - "end": 2986, + "start": 3102, + "end": 3108, "loc": { "start": { - "line": 81, + "line": 82, "column": 29 }, "end": { - "line": 81, + "line": 82, "column": 35 } } @@ -19171,15 +20015,15 @@ "binop": null, "updateContext": null }, - "start": 2986, - "end": 2987, + "start": 3108, + "end": 3109, "loc": { "start": { - "line": 81, + "line": 82, "column": 35 }, "end": { - "line": 81, + "line": 82, "column": 36 } } @@ -19196,15 +20040,15 @@ "postfix": false, "binop": null }, - "start": 2992, - "end": 2993, + "start": 3114, + "end": 3115, "loc": { "start": { - "line": 82, + "line": 83, "column": 4 }, "end": { - "line": 82, + "line": 83, "column": 5 } } @@ -19222,15 +20066,15 @@ "binop": null }, "value": "request", - "start": 2999, - "end": 3006, + "start": 3121, + "end": 3128, "loc": { "start": { - "line": 84, + "line": 85, "column": 4 }, "end": { - "line": 84, + "line": 85, "column": 11 } } @@ -19248,15 +20092,15 @@ "binop": null, "updateContext": null }, - "start": 3006, - "end": 3007, + "start": 3128, + "end": 3129, "loc": { "start": { - "line": 84, + "line": 85, "column": 11 }, "end": { - "line": 84, + "line": 85, "column": 12 } } @@ -19274,15 +20118,15 @@ "binop": null }, "value": "onerror", - "start": 3007, - "end": 3014, + "start": 3129, + "end": 3136, "loc": { "start": { - "line": 84, + "line": 85, "column": 12 }, "end": { - "line": 84, + "line": 85, "column": 19 } } @@ -19301,15 +20145,15 @@ "updateContext": null }, "value": "=", - "start": 3015, - "end": 3016, + "start": 3137, + "end": 3138, "loc": { "start": { - "line": 84, + "line": 85, "column": 20 }, "end": { - "line": 84, + "line": 85, "column": 21 } } @@ -19326,15 +20170,15 @@ "postfix": false, "binop": null }, - "start": 3017, - "end": 3018, + "start": 3139, + "end": 3140, "loc": { "start": { - "line": 84, + "line": 85, "column": 22 }, "end": { - "line": 84, + "line": 85, "column": 23 } } @@ -19351,15 +20195,15 @@ "postfix": false, "binop": null }, - "start": 3018, - "end": 3019, + "start": 3140, + "end": 3141, "loc": { "start": { - "line": 84, + "line": 85, "column": 23 }, "end": { - "line": 84, + "line": 85, "column": 24 } } @@ -19377,15 +20221,15 @@ "binop": null, "updateContext": null }, - "start": 3020, - "end": 3022, + "start": 3142, + "end": 3144, "loc": { "start": { - "line": 84, + "line": 85, "column": 25 }, "end": { - "line": 84, + "line": 85, "column": 27 } } @@ -19402,15 +20246,15 @@ "postfix": false, "binop": null }, - "start": 3023, - "end": 3024, + "start": 3145, + "end": 3146, "loc": { "start": { - "line": 84, + "line": 85, "column": 28 }, "end": { - "line": 84, + "line": 85, "column": 29 } } @@ -19428,15 +20272,15 @@ "binop": null }, "value": "reject", - "start": 3031, - "end": 3037, + "start": 3153, + "end": 3159, "loc": { "start": { - "line": 85, + "line": 86, "column": 6 }, "end": { - "line": 85, + "line": 86, "column": 12 } } @@ -19453,15 +20297,15 @@ "postfix": false, "binop": null }, - "start": 3037, - "end": 3038, + "start": 3159, + "end": 3160, "loc": { "start": { - "line": 85, + "line": 86, "column": 12 }, "end": { - "line": 85, + "line": 86, "column": 13 } } @@ -19478,15 +20322,15 @@ "postfix": false, "binop": null }, - "start": 3038, - "end": 3039, + "start": 3160, + "end": 3161, "loc": { "start": { - "line": 85, + "line": 86, "column": 13 }, "end": { - "line": 85, + "line": 86, "column": 14 } } @@ -19504,15 +20348,15 @@ "binop": null }, "value": "msg", - "start": 3040, - "end": 3043, + "start": 3162, + "end": 3165, "loc": { "start": { - "line": 85, + "line": 86, "column": 15 }, "end": { - "line": 85, + "line": 86, "column": 18 } } @@ -19530,15 +20374,15 @@ "binop": null, "updateContext": null }, - "start": 3043, - "end": 3044, + "start": 3165, + "end": 3166, "loc": { "start": { - "line": 85, + "line": 86, "column": 18 }, "end": { - "line": 85, + "line": 86, "column": 19 } } @@ -19555,15 +20399,15 @@ "postfix": false, "binop": null }, - "start": 3045, - "end": 3046, + "start": 3167, + "end": 3168, "loc": { "start": { - "line": 85, + "line": 86, "column": 20 }, "end": { - "line": 85, + "line": 86, "column": 21 } } @@ -19582,15 +20426,15 @@ "updateContext": null }, "value": "Could not connect to ", - "start": 3046, - "end": 3067, + "start": 3168, + "end": 3189, "loc": { "start": { - "line": 85, + "line": 86, "column": 21 }, "end": { - "line": 85, + "line": 86, "column": 42 } } @@ -19607,15 +20451,15 @@ "postfix": false, "binop": null }, - "start": 3067, - "end": 3069, + "start": 3189, + "end": 3191, "loc": { "start": { - "line": 85, + "line": 86, "column": 42 }, "end": { - "line": 85, + "line": 86, "column": 44 } } @@ -19633,15 +20477,15 @@ "binop": null }, "value": "url", - "start": 3069, - "end": 3072, + "start": 3191, + "end": 3194, "loc": { "start": { - "line": 85, + "line": 86, "column": 44 }, "end": { - "line": 85, + "line": 86, "column": 47 } } @@ -19658,15 +20502,15 @@ "postfix": false, "binop": null }, - "start": 3072, - "end": 3073, + "start": 3194, + "end": 3195, "loc": { "start": { - "line": 85, + "line": 86, "column": 47 }, "end": { - "line": 85, + "line": 86, "column": 48 } } @@ -19685,15 +20529,15 @@ "updateContext": null }, "value": " connection error", - "start": 3073, - "end": 3090, + "start": 3195, + "end": 3212, "loc": { "start": { - "line": 85, + "line": 86, "column": 48 }, "end": { - "line": 85, + "line": 86, "column": 65 } } @@ -19710,15 +20554,15 @@ "postfix": false, "binop": null }, - "start": 3090, - "end": 3091, + "start": 3212, + "end": 3213, "loc": { "start": { - "line": 85, + "line": 86, "column": 65 }, "end": { - "line": 85, + "line": 86, "column": 66 } } @@ -19736,15 +20580,15 @@ "binop": null, "updateContext": null }, - "start": 3091, - "end": 3092, + "start": 3213, + "end": 3214, "loc": { "start": { - "line": 85, + "line": 86, "column": 66 }, "end": { - "line": 85, + "line": 86, "column": 67 } } @@ -19762,15 +20606,15 @@ "binop": null }, "value": "recoverable", - "start": 3093, - "end": 3104, + "start": 3215, + "end": 3226, "loc": { "start": { - "line": 85, + "line": 86, "column": 68 }, "end": { - "line": 85, + "line": 86, "column": 79 } } @@ -19788,15 +20632,15 @@ "binop": null, "updateContext": null }, - "start": 3104, - "end": 3105, + "start": 3226, + "end": 3227, "loc": { "start": { - "line": 85, + "line": 86, "column": 79 }, "end": { - "line": 85, + "line": 86, "column": 80 } } @@ -19816,15 +20660,15 @@ "updateContext": null }, "value": "false", - "start": 3106, - "end": 3111, + "start": 3228, + "end": 3233, "loc": { "start": { - "line": 85, + "line": 86, "column": 81 }, "end": { - "line": 85, + "line": 86, "column": 86 } } @@ -19841,15 +20685,15 @@ "postfix": false, "binop": null }, - "start": 3112, - "end": 3113, + "start": 3234, + "end": 3235, "loc": { "start": { - "line": 85, + "line": 86, "column": 87 }, "end": { - "line": 85, + "line": 86, "column": 88 } } @@ -19866,15 +20710,15 @@ "postfix": false, "binop": null }, - "start": 3113, - "end": 3114, + "start": 3235, + "end": 3236, "loc": { "start": { - "line": 85, + "line": 86, "column": 88 }, "end": { - "line": 85, + "line": 86, "column": 89 } } @@ -19892,15 +20736,15 @@ "binop": null, "updateContext": null }, - "start": 3114, - "end": 3115, + "start": 3236, + "end": 3237, "loc": { "start": { - "line": 85, + "line": 86, "column": 89 }, "end": { - "line": 85, + "line": 86, "column": 90 } } @@ -19917,15 +20761,15 @@ "postfix": false, "binop": null }, - "start": 3120, - "end": 3121, + "start": 3242, + "end": 3243, "loc": { "start": { - "line": 86, + "line": 87, "column": 4 }, "end": { - "line": 86, + "line": 87, "column": 5 } } @@ -19943,15 +20787,15 @@ "binop": null, "updateContext": null }, - "start": 3121, - "end": 3122, + "start": 3243, + "end": 3244, "loc": { "start": { - "line": 86, + "line": 87, "column": 5 }, "end": { - "line": 86, + "line": 87, "column": 6 } } @@ -19969,15 +20813,15 @@ "binop": null }, "value": "request", - "start": 3128, - "end": 3135, + "start": 3250, + "end": 3257, "loc": { "start": { - "line": 88, + "line": 89, "column": 4 }, "end": { - "line": 88, + "line": 89, "column": 11 } } @@ -19995,15 +20839,15 @@ "binop": null, "updateContext": null }, - "start": 3135, - "end": 3136, + "start": 3257, + "end": 3258, "loc": { "start": { - "line": 88, + "line": 89, "column": 11 }, "end": { - "line": 88, + "line": 89, "column": 12 } } @@ -20021,15 +20865,15 @@ "binop": null }, "value": "onload", - "start": 3136, - "end": 3142, + "start": 3258, + "end": 3264, "loc": { "start": { - "line": 88, + "line": 89, "column": 12 }, "end": { - "line": 88, + "line": 89, "column": 18 } } @@ -20048,15 +20892,15 @@ "updateContext": null }, "value": "=", - "start": 3143, - "end": 3144, + "start": 3265, + "end": 3266, "loc": { "start": { - "line": 88, + "line": 89, "column": 19 }, "end": { - "line": 88, + "line": 89, "column": 20 } } @@ -20073,15 +20917,15 @@ "postfix": false, "binop": null }, - "start": 3145, - "end": 3146, + "start": 3267, + "end": 3268, "loc": { "start": { - "line": 88, + "line": 89, "column": 21 }, "end": { - "line": 88, + "line": 89, "column": 22 } } @@ -20098,15 +20942,15 @@ "postfix": false, "binop": null }, - "start": 3146, - "end": 3147, + "start": 3268, + "end": 3269, "loc": { "start": { - "line": 88, + "line": 89, "column": 22 }, "end": { - "line": 88, + "line": 89, "column": 23 } } @@ -20124,15 +20968,15 @@ "binop": null, "updateContext": null }, - "start": 3148, - "end": 3150, + "start": 3270, + "end": 3272, "loc": { "start": { - "line": 88, + "line": 89, "column": 24 }, "end": { - "line": 88, + "line": 89, "column": 26 } } @@ -20149,15 +20993,15 @@ "postfix": false, "binop": null }, - "start": 3151, - "end": 3152, + "start": 3273, + "end": 3274, "loc": { "start": { - "line": 88, + "line": 89, "column": 27 }, "end": { - "line": 88, + "line": 89, "column": 28 } } @@ -20177,15 +21021,15 @@ "updateContext": null }, "value": "if", - "start": 3159, - "end": 3161, + "start": 3281, + "end": 3283, "loc": { "start": { - "line": 89, + "line": 90, "column": 6 }, "end": { - "line": 89, + "line": 90, "column": 8 } } @@ -20202,15 +21046,15 @@ "postfix": false, "binop": null }, - "start": 3162, - "end": 3163, + "start": 3284, + "end": 3285, "loc": { "start": { - "line": 89, + "line": 90, "column": 9 }, "end": { - "line": 89, + "line": 90, "column": 10 } } @@ -20228,15 +21072,15 @@ "binop": null }, "value": "request", - "start": 3163, - "end": 3170, + "start": 3285, + "end": 3292, "loc": { "start": { - "line": 89, + "line": 90, "column": 10 }, "end": { - "line": 89, + "line": 90, "column": 17 } } @@ -20254,15 +21098,15 @@ "binop": null, "updateContext": null }, - "start": 3170, - "end": 3171, + "start": 3292, + "end": 3293, "loc": { "start": { - "line": 89, + "line": 90, "column": 17 }, "end": { - "line": 89, + "line": 90, "column": 18 } } @@ -20280,15 +21124,15 @@ "binop": null }, "value": "status", - "start": 3171, - "end": 3177, + "start": 3293, + "end": 3299, "loc": { "start": { - "line": 89, + "line": 90, "column": 18 }, "end": { - "line": 89, + "line": 90, "column": 24 } } @@ -20307,15 +21151,15 @@ "updateContext": null }, "value": ">=", - "start": 3178, - "end": 3180, + "start": 3300, + "end": 3302, "loc": { "start": { - "line": 89, + "line": 90, "column": 25 }, "end": { - "line": 89, + "line": 90, "column": 27 } } @@ -20334,15 +21178,15 @@ "updateContext": null }, "value": 200, - "start": 3181, - "end": 3184, + "start": 3303, + "end": 3306, "loc": { "start": { - "line": 89, + "line": 90, "column": 28 }, "end": { - "line": 89, + "line": 90, "column": 31 } } @@ -20361,15 +21205,15 @@ "updateContext": null }, "value": "&&", - "start": 3185, - "end": 3187, + "start": 3307, + "end": 3309, "loc": { "start": { - "line": 89, + "line": 90, "column": 32 }, "end": { - "line": 89, + "line": 90, "column": 34 } } @@ -20387,15 +21231,15 @@ "binop": null }, "value": "request", - "start": 3188, - "end": 3195, + "start": 3310, + "end": 3317, "loc": { "start": { - "line": 89, + "line": 90, "column": 35 }, "end": { - "line": 89, + "line": 90, "column": 42 } } @@ -20413,15 +21257,15 @@ "binop": null, "updateContext": null }, - "start": 3195, - "end": 3196, + "start": 3317, + "end": 3318, "loc": { "start": { - "line": 89, + "line": 90, "column": 42 }, "end": { - "line": 89, + "line": 90, "column": 43 } } @@ -20439,15 +21283,15 @@ "binop": null }, "value": "status", - "start": 3196, - "end": 3202, + "start": 3318, + "end": 3324, "loc": { "start": { - "line": 89, + "line": 90, "column": 43 }, "end": { - "line": 89, + "line": 90, "column": 49 } } @@ -20466,15 +21310,15 @@ "updateContext": null }, "value": "<", - "start": 3203, - "end": 3204, + "start": 3325, + "end": 3326, "loc": { "start": { - "line": 89, + "line": 90, "column": 50 }, "end": { - "line": 89, + "line": 90, "column": 51 } } @@ -20493,15 +21337,15 @@ "updateContext": null }, "value": 300, - "start": 3205, - "end": 3208, + "start": 3327, + "end": 3330, "loc": { "start": { - "line": 89, + "line": 90, "column": 52 }, "end": { - "line": 89, + "line": 90, "column": 55 } } @@ -20518,15 +21362,15 @@ "postfix": false, "binop": null }, - "start": 3208, - "end": 3209, + "start": 3330, + "end": 3331, "loc": { "start": { - "line": 89, + "line": 90, "column": 55 }, "end": { - "line": 89, + "line": 90, "column": 56 } } @@ -20543,15 +21387,15 @@ "postfix": false, "binop": null }, - "start": 3210, - "end": 3211, + "start": 3332, + "end": 3333, "loc": { "start": { - "line": 89, + "line": 90, "column": 57 }, "end": { - "line": 89, + "line": 90, "column": 58 } } @@ -20568,70 +21412,17 @@ "postfix": false, "binop": null }, - "value": "mimeType", - "start": 3220, - "end": 3228, + "value": "isBlobType", + "start": 3342, + "end": 3352, "loc": { "start": { - "line": 90, + "line": 91, "column": 8 }, "end": { - "line": 90, - "column": 16 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 3229, - "end": 3232, - "loc": { - "start": { - "line": 90, - "column": 17 - }, - "end": { - "line": 90, - "column": 20 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pptxMimeType", - "start": 3233, - "end": 3245, - "loc": { - "start": { - "line": 90, - "column": 21 - }, - "end": { - "line": 90, - "column": 33 + "line": 91, + "column": 18 } } }, @@ -20648,16 +21439,16 @@ "binop": null, "updateContext": null }, - "start": 3246, - "end": 3247, + "start": 3353, + "end": 3354, "loc": { "start": { - "line": 90, - "column": 34 + "line": 91, + "column": 19 }, "end": { - "line": 90, - "column": 35 + "line": 91, + "column": 20 } } }, @@ -20674,16 +21465,16 @@ "binop": null }, "value": "resolve", - "start": 3248, - "end": 3255, + "start": 3355, + "end": 3362, "loc": { "start": { - "line": 90, - "column": 36 + "line": 91, + "column": 21 }, "end": { - "line": 90, - "column": 43 + "line": 91, + "column": 28 } } }, @@ -20699,16 +21490,16 @@ "postfix": false, "binop": null }, - "start": 3255, - "end": 3256, + "start": 3362, + "end": 3363, "loc": { "start": { - "line": 90, - "column": 43 + "line": 91, + "column": 28 }, "end": { - "line": 90, - "column": 44 + "line": 91, + "column": 29 } } }, @@ -20725,16 +21516,16 @@ "binop": null }, "value": "request", - "start": 3256, - "end": 3263, + "start": 3363, + "end": 3370, "loc": { "start": { - "line": 90, - "column": 44 + "line": 91, + "column": 29 }, - "end": { - "line": 90, - "column": 51 + "end": { + "line": 91, + "column": 36 } } }, @@ -20751,16 +21542,16 @@ "binop": null, "updateContext": null }, - "start": 3263, - "end": 3264, + "start": 3370, + "end": 3371, "loc": { "start": { - "line": 90, - "column": 51 + "line": 91, + "column": 36 }, "end": { - "line": 90, - "column": 52 + "line": 91, + "column": 37 } } }, @@ -20777,16 +21568,16 @@ "binop": null }, "value": "response", - "start": 3264, - "end": 3272, + "start": 3371, + "end": 3379, "loc": { "start": { - "line": 90, - "column": 52 + "line": 91, + "column": 37 }, "end": { - "line": 90, - "column": 60 + "line": 91, + "column": 45 } } }, @@ -20802,16 +21593,16 @@ "postfix": false, "binop": null }, - "start": 3272, - "end": 3273, + "start": 3379, + "end": 3380, "loc": { "start": { - "line": 90, - "column": 60 + "line": 91, + "column": 45 }, "end": { - "line": 90, - "column": 61 + "line": 91, + "column": 46 } } }, @@ -20828,16 +21619,16 @@ "binop": null, "updateContext": null }, - "start": 3274, - "end": 3275, + "start": 3381, + "end": 3382, "loc": { "start": { - "line": 90, - "column": 62 + "line": 91, + "column": 47 }, "end": { - "line": 90, - "column": 63 + "line": 91, + "column": 48 } } }, @@ -20854,16 +21645,16 @@ "binop": null }, "value": "resolve", - "start": 3276, - "end": 3283, + "start": 3383, + "end": 3390, "loc": { "start": { - "line": 90, - "column": 64 + "line": 91, + "column": 49 }, "end": { - "line": 90, - "column": 71 + "line": 91, + "column": 56 } } }, @@ -20879,16 +21670,16 @@ "postfix": false, "binop": null }, - "start": 3283, - "end": 3284, + "start": 3390, + "end": 3391, "loc": { "start": { - "line": 90, - "column": 71 + "line": 91, + "column": 56 }, "end": { - "line": 90, - "column": 72 + "line": 91, + "column": 57 } } }, @@ -20905,16 +21696,16 @@ "binop": null }, "value": "parse", - "start": 3284, - "end": 3289, + "start": 3391, + "end": 3396, "loc": { "start": { - "line": 90, - "column": 72 + "line": 91, + "column": 57 }, "end": { - "line": 90, - "column": 77 + "line": 91, + "column": 62 } } }, @@ -20930,16 +21721,16 @@ "postfix": false, "binop": null }, - "start": 3289, - "end": 3290, + "start": 3396, + "end": 3397, "loc": { "start": { - "line": 90, - "column": 77 + "line": 91, + "column": 62 }, "end": { - "line": 90, - "column": 78 + "line": 91, + "column": 63 } } }, @@ -20956,16 +21747,16 @@ "binop": null }, "value": "request", - "start": 3290, - "end": 3297, + "start": 3397, + "end": 3404, "loc": { "start": { - "line": 90, - "column": 78 + "line": 91, + "column": 63 }, "end": { - "line": 90, - "column": 85 + "line": 91, + "column": 70 } } }, @@ -20981,16 +21772,16 @@ "postfix": false, "binop": null }, - "start": 3297, - "end": 3298, + "start": 3404, + "end": 3405, "loc": { "start": { - "line": 90, - "column": 85 + "line": 91, + "column": 70 }, "end": { - "line": 90, - "column": 86 + "line": 91, + "column": 71 } } }, @@ -21006,16 +21797,16 @@ "postfix": false, "binop": null }, - "start": 3298, - "end": 3299, + "start": 3405, + "end": 3406, "loc": { "start": { - "line": 90, - "column": 86 + "line": 91, + "column": 71 }, "end": { - "line": 90, - "column": 87 + "line": 91, + "column": 72 } } }, @@ -21032,16 +21823,16 @@ "binop": null, "updateContext": null }, - "start": 3299, - "end": 3300, + "start": 3406, + "end": 3407, "loc": { "start": { - "line": 90, - "column": 87 + "line": 91, + "column": 72 }, "end": { - "line": 90, - "column": 88 + "line": 91, + "column": 73 } } }, @@ -21057,15 +21848,15 @@ "postfix": false, "binop": null }, - "start": 3307, - "end": 3308, + "start": 3414, + "end": 3415, "loc": { "start": { - "line": 91, + "line": 92, "column": 6 }, "end": { - "line": 91, + "line": 92, "column": 7 } } @@ -21085,15 +21876,15 @@ "updateContext": null }, "value": "else", - "start": 3309, - "end": 3313, + "start": 3416, + "end": 3420, "loc": { "start": { - "line": 91, + "line": 92, "column": 8 }, "end": { - "line": 91, + "line": 92, "column": 12 } } @@ -21110,15 +21901,15 @@ "postfix": false, "binop": null }, - "start": 3314, - "end": 3315, + "start": 3421, + "end": 3422, "loc": { "start": { - "line": 91, + "line": 92, "column": 13 }, "end": { - "line": 91, + "line": 92, "column": 14 } } @@ -21136,15 +21927,15 @@ "binop": null }, "value": "reject", - "start": 3324, - "end": 3330, + "start": 3431, + "end": 3437, "loc": { "start": { - "line": 92, + "line": 93, "column": 8 }, "end": { - "line": 92, + "line": 93, "column": 14 } } @@ -21161,15 +21952,15 @@ "postfix": false, "binop": null }, - "start": 3330, - "end": 3331, + "start": 3437, + "end": 3438, "loc": { "start": { - "line": 92, + "line": 93, "column": 14 }, "end": { - "line": 92, + "line": 93, "column": 15 } } @@ -21189,15 +21980,15 @@ "updateContext": null }, "value": "new", - "start": 3331, - "end": 3334, + "start": 3438, + "end": 3441, "loc": { "start": { - "line": 92, + "line": 93, "column": 15 }, "end": { - "line": 92, + "line": 93, "column": 18 } } @@ -21215,15 +22006,15 @@ "binop": null }, "value": "Error", - "start": 3335, - "end": 3340, + "start": 3442, + "end": 3447, "loc": { "start": { - "line": 92, + "line": 93, "column": 19 }, "end": { - "line": 92, + "line": 93, "column": 24 } } @@ -21240,15 +22031,15 @@ "postfix": false, "binop": null }, - "start": 3340, - "end": 3341, + "start": 3447, + "end": 3448, "loc": { "start": { - "line": 92, + "line": 93, "column": 24 }, "end": { - "line": 92, + "line": 93, "column": 25 } } @@ -21266,15 +22057,15 @@ "binop": null }, "value": "request", - "start": 3341, - "end": 3348, + "start": 3448, + "end": 3455, "loc": { "start": { - "line": 92, + "line": 93, "column": 25 }, "end": { - "line": 92, + "line": 93, "column": 32 } } @@ -21292,15 +22083,15 @@ "binop": null, "updateContext": null }, - "start": 3348, - "end": 3349, + "start": 3455, + "end": 3456, "loc": { "start": { - "line": 92, + "line": 93, "column": 32 }, "end": { - "line": 92, + "line": 93, "column": 33 } } @@ -21318,15 +22109,15 @@ "binop": null }, "value": "responseText", - "start": 3349, - "end": 3361, + "start": 3456, + "end": 3468, "loc": { "start": { - "line": 92, + "line": 93, "column": 33 }, "end": { - "line": 92, + "line": 93, "column": 45 } } @@ -21343,15 +22134,15 @@ "postfix": false, "binop": null }, - "start": 3361, - "end": 3362, + "start": 3468, + "end": 3469, "loc": { "start": { - "line": 92, + "line": 93, "column": 45 }, "end": { - "line": 92, + "line": 93, "column": 46 } } @@ -21368,15 +22159,15 @@ "postfix": false, "binop": null }, - "start": 3362, - "end": 3363, + "start": 3469, + "end": 3470, "loc": { "start": { - "line": 92, + "line": 93, "column": 46 }, "end": { - "line": 92, + "line": 93, "column": 47 } } @@ -21394,15 +22185,15 @@ "binop": null, "updateContext": null }, - "start": 3363, - "end": 3364, + "start": 3470, + "end": 3471, "loc": { "start": { - "line": 92, + "line": 93, "column": 47 }, "end": { - "line": 92, + "line": 93, "column": 48 } } @@ -21419,15 +22210,15 @@ "postfix": false, "binop": null }, - "start": 3371, - "end": 3372, + "start": 3478, + "end": 3479, "loc": { "start": { - "line": 93, + "line": 94, "column": 6 }, "end": { - "line": 93, + "line": 94, "column": 7 } } @@ -21444,15 +22235,15 @@ "postfix": false, "binop": null }, - "start": 3377, - "end": 3378, + "start": 3484, + "end": 3485, "loc": { "start": { - "line": 94, + "line": 95, "column": 4 }, "end": { - "line": 94, + "line": 95, "column": 5 } } @@ -21470,15 +22261,15 @@ "binop": null, "updateContext": null }, - "start": 3378, - "end": 3379, + "start": 3485, + "end": 3486, "loc": { "start": { - "line": 94, + "line": 95, "column": 5 }, "end": { - "line": 94, + "line": 95, "column": 6 } } @@ -21496,15 +22287,15 @@ "binop": null }, "value": "request", - "start": 3385, - "end": 3392, + "start": 3492, + "end": 3499, "loc": { "start": { - "line": 96, + "line": 97, "column": 4 }, "end": { - "line": 96, + "line": 97, "column": 11 } } @@ -21522,15 +22313,15 @@ "binop": null, "updateContext": null }, - "start": 3392, - "end": 3393, + "start": 3499, + "end": 3500, "loc": { "start": { - "line": 96, + "line": 97, "column": 11 }, "end": { - "line": 96, + "line": 97, "column": 12 } } @@ -21548,15 +22339,15 @@ "binop": null }, "value": "onreadystatechange", - "start": 3393, - "end": 3411, + "start": 3500, + "end": 3518, "loc": { "start": { - "line": 96, + "line": 97, "column": 12 }, "end": { - "line": 96, + "line": 97, "column": 30 } } @@ -21575,15 +22366,15 @@ "updateContext": null }, "value": "=", - "start": 3412, - "end": 3413, + "start": 3519, + "end": 3520, "loc": { "start": { - "line": 96, + "line": 97, "column": 31 }, "end": { - "line": 96, + "line": 97, "column": 32 } } @@ -21600,15 +22391,15 @@ "postfix": false, "binop": null }, - "start": 3414, - "end": 3415, + "start": 3521, + "end": 3522, "loc": { "start": { - "line": 96, + "line": 97, "column": 33 }, "end": { - "line": 96, + "line": 97, "column": 34 } } @@ -21625,15 +22416,15 @@ "postfix": false, "binop": null }, - "start": 3415, - "end": 3416, + "start": 3522, + "end": 3523, "loc": { "start": { - "line": 96, + "line": 97, "column": 34 }, "end": { - "line": 96, + "line": 97, "column": 35 } } @@ -21651,15 +22442,15 @@ "binop": null, "updateContext": null }, - "start": 3417, - "end": 3419, + "start": 3524, + "end": 3526, "loc": { "start": { - "line": 96, + "line": 97, "column": 36 }, "end": { - "line": 96, + "line": 97, "column": 38 } } @@ -21676,15 +22467,15 @@ "postfix": false, "binop": null }, - "start": 3420, - "end": 3421, + "start": 3527, + "end": 3528, "loc": { "start": { - "line": 96, + "line": 97, "column": 39 }, "end": { - "line": 96, + "line": 97, "column": 40 } } @@ -21704,15 +22495,15 @@ "updateContext": null }, "value": "if", - "start": 3428, - "end": 3430, + "start": 3535, + "end": 3537, "loc": { "start": { - "line": 97, + "line": 98, "column": 6 }, "end": { - "line": 97, + "line": 98, "column": 8 } } @@ -21729,15 +22520,15 @@ "postfix": false, "binop": null }, - "start": 3431, - "end": 3432, + "start": 3538, + "end": 3539, "loc": { "start": { - "line": 97, + "line": 98, "column": 9 }, "end": { - "line": 97, + "line": 98, "column": 10 } } @@ -21755,15 +22546,15 @@ "binop": null }, "value": "request", - "start": 3432, - "end": 3439, + "start": 3539, + "end": 3546, "loc": { "start": { - "line": 97, + "line": 98, "column": 10 }, "end": { - "line": 97, + "line": 98, "column": 17 } } @@ -21781,15 +22572,15 @@ "binop": null, "updateContext": null }, - "start": 3439, - "end": 3440, + "start": 3546, + "end": 3547, "loc": { "start": { - "line": 97, + "line": 98, "column": 17 }, "end": { - "line": 97, + "line": 98, "column": 18 } } @@ -21807,15 +22598,15 @@ "binop": null }, "value": "readyState", - "start": 3440, - "end": 3450, + "start": 3547, + "end": 3557, "loc": { "start": { - "line": 97, + "line": 98, "column": 18 }, "end": { - "line": 97, + "line": 98, "column": 28 } } @@ -21834,15 +22625,15 @@ "updateContext": null }, "value": "===", - "start": 3451, - "end": 3454, + "start": 3558, + "end": 3561, "loc": { "start": { - "line": 97, + "line": 98, "column": 29 }, "end": { - "line": 97, + "line": 98, "column": 32 } } @@ -21861,15 +22652,15 @@ "updateContext": null }, "value": 4, - "start": 3455, - "end": 3456, + "start": 3562, + "end": 3563, "loc": { "start": { - "line": 97, + "line": 98, "column": 33 }, "end": { - "line": 97, + "line": 98, "column": 34 } } @@ -21886,15 +22677,15 @@ "postfix": false, "binop": null }, - "start": 3456, - "end": 3457, + "start": 3563, + "end": 3564, "loc": { "start": { - "line": 97, + "line": 98, "column": 34 }, "end": { - "line": 97, + "line": 98, "column": 35 } } @@ -21911,15 +22702,15 @@ "postfix": false, "binop": null }, - "start": 3458, - "end": 3459, + "start": 3565, + "end": 3566, "loc": { "start": { - "line": 97, + "line": 98, "column": 36 }, "end": { - "line": 97, + "line": 98, "column": 37 } } @@ -21938,16 +22729,16 @@ "binop": null, "updateContext": null }, - "value": "if", - "start": 3468, - "end": 3470, + "value": "if", + "start": 3575, + "end": 3577, "loc": { "start": { - "line": 98, + "line": 99, "column": 8 }, "end": { - "line": 98, + "line": 99, "column": 10 } } @@ -21964,15 +22755,15 @@ "postfix": false, "binop": null }, - "start": 3471, - "end": 3472, + "start": 3578, + "end": 3579, "loc": { "start": { - "line": 98, + "line": 99, "column": 11 }, "end": { - "line": 98, + "line": 99, "column": 12 } } @@ -21990,15 +22781,15 @@ "binop": null }, "value": "request", - "start": 3472, - "end": 3479, + "start": 3579, + "end": 3586, "loc": { "start": { - "line": 98, + "line": 99, "column": 12 }, "end": { - "line": 98, + "line": 99, "column": 19 } } @@ -22016,15 +22807,15 @@ "binop": null, "updateContext": null }, - "start": 3479, - "end": 3480, + "start": 3586, + "end": 3587, "loc": { "start": { - "line": 98, + "line": 99, "column": 19 }, "end": { - "line": 98, + "line": 99, "column": 20 } } @@ -22042,15 +22833,15 @@ "binop": null }, "value": "status", - "start": 3480, - "end": 3486, + "start": 3587, + "end": 3593, "loc": { "start": { - "line": 98, + "line": 99, "column": 20 }, "end": { - "line": 98, + "line": 99, "column": 26 } } @@ -22069,15 +22860,15 @@ "updateContext": null }, "value": ">=", - "start": 3487, - "end": 3489, + "start": 3594, + "end": 3596, "loc": { "start": { - "line": 98, + "line": 99, "column": 27 }, "end": { - "line": 98, + "line": 99, "column": 29 } } @@ -22096,15 +22887,15 @@ "updateContext": null }, "value": 200, - "start": 3490, - "end": 3493, + "start": 3597, + "end": 3600, "loc": { "start": { - "line": 98, + "line": 99, "column": 30 }, "end": { - "line": 98, + "line": 99, "column": 33 } } @@ -22123,15 +22914,15 @@ "updateContext": null }, "value": "&&", - "start": 3494, - "end": 3496, + "start": 3601, + "end": 3603, "loc": { "start": { - "line": 98, + "line": 99, "column": 34 }, "end": { - "line": 98, + "line": 99, "column": 36 } } @@ -22149,15 +22940,15 @@ "binop": null }, "value": "request", - "start": 3497, - "end": 3504, + "start": 3604, + "end": 3611, "loc": { "start": { - "line": 98, + "line": 99, "column": 37 }, "end": { - "line": 98, + "line": 99, "column": 44 } } @@ -22175,15 +22966,15 @@ "binop": null, "updateContext": null }, - "start": 3504, - "end": 3505, + "start": 3611, + "end": 3612, "loc": { "start": { - "line": 98, + "line": 99, "column": 44 }, "end": { - "line": 98, + "line": 99, "column": 45 } } @@ -22201,15 +22992,15 @@ "binop": null }, "value": "status", - "start": 3505, - "end": 3511, + "start": 3612, + "end": 3618, "loc": { "start": { - "line": 98, + "line": 99, "column": 45 }, "end": { - "line": 98, + "line": 99, "column": 51 } } @@ -22228,15 +23019,15 @@ "updateContext": null }, "value": "<", - "start": 3512, - "end": 3513, + "start": 3619, + "end": 3620, "loc": { "start": { - "line": 98, + "line": 99, "column": 52 }, "end": { - "line": 98, + "line": 99, "column": 53 } } @@ -22255,15 +23046,15 @@ "updateContext": null }, "value": 300, - "start": 3514, - "end": 3517, + "start": 3621, + "end": 3624, "loc": { "start": { - "line": 98, + "line": 99, "column": 54 }, "end": { - "line": 98, + "line": 99, "column": 57 } } @@ -22280,15 +23071,15 @@ "postfix": false, "binop": null }, - "start": 3517, - "end": 3518, + "start": 3624, + "end": 3625, "loc": { "start": { - "line": 98, + "line": 99, "column": 57 }, "end": { - "line": 98, + "line": 99, "column": 58 } } @@ -22305,15 +23096,15 @@ "postfix": false, "binop": null }, - "start": 3519, - "end": 3520, + "start": 3626, + "end": 3627, "loc": { "start": { - "line": 98, + "line": 99, "column": 59 }, "end": { - "line": 98, + "line": 99, "column": 60 } } @@ -22330,70 +23121,17 @@ "postfix": false, "binop": null }, - "value": "mimeType", - "start": 3531, - "end": 3539, + "value": "isBlobType", + "start": 3638, + "end": 3648, "loc": { "start": { - "line": 99, + "line": 100, "column": 10 }, "end": { - "line": 99, - "column": 18 - } - } - }, - { - "type": { - "label": "==/!=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": 6, - "updateContext": null - }, - "value": "===", - "start": 3540, - "end": 3543, - "loc": { - "start": { - "line": 99, - "column": 19 - }, - "end": { - "line": 99, - "column": 22 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "pptxMimeType", - "start": 3544, - "end": 3556, - "loc": { - "start": { - "line": 99, - "column": 23 - }, - "end": { - "line": 99, - "column": 35 + "line": 100, + "column": 20 } } }, @@ -22410,16 +23148,16 @@ "binop": null, "updateContext": null }, - "start": 3557, - "end": 3558, + "start": 3649, + "end": 3650, "loc": { "start": { - "line": 99, - "column": 36 + "line": 100, + "column": 21 }, "end": { - "line": 99, - "column": 37 + "line": 100, + "column": 22 } } }, @@ -22436,16 +23174,16 @@ "binop": null }, "value": "resolve", - "start": 3559, - "end": 3566, + "start": 3651, + "end": 3658, "loc": { "start": { - "line": 99, - "column": 38 + "line": 100, + "column": 23 }, "end": { - "line": 99, - "column": 45 + "line": 100, + "column": 30 } } }, @@ -22461,16 +23199,16 @@ "postfix": false, "binop": null }, - "start": 3566, - "end": 3567, + "start": 3658, + "end": 3659, "loc": { "start": { - "line": 99, - "column": 45 + "line": 100, + "column": 30 }, "end": { - "line": 99, - "column": 46 + "line": 100, + "column": 31 } } }, @@ -22487,16 +23225,16 @@ "binop": null }, "value": "request", - "start": 3567, - "end": 3574, + "start": 3659, + "end": 3666, "loc": { "start": { - "line": 99, - "column": 46 + "line": 100, + "column": 31 }, "end": { - "line": 99, - "column": 53 + "line": 100, + "column": 38 } } }, @@ -22513,16 +23251,16 @@ "binop": null, "updateContext": null }, - "start": 3574, - "end": 3575, + "start": 3666, + "end": 3667, "loc": { "start": { - "line": 99, - "column": 53 + "line": 100, + "column": 38 }, "end": { - "line": 99, - "column": 54 + "line": 100, + "column": 39 } } }, @@ -22539,16 +23277,16 @@ "binop": null }, "value": "response", - "start": 3575, - "end": 3583, + "start": 3667, + "end": 3675, "loc": { "start": { - "line": 99, - "column": 54 + "line": 100, + "column": 39 }, "end": { - "line": 99, - "column": 62 + "line": 100, + "column": 47 } } }, @@ -22564,16 +23302,16 @@ "postfix": false, "binop": null }, - "start": 3583, - "end": 3584, + "start": 3675, + "end": 3676, "loc": { "start": { - "line": 99, - "column": 62 + "line": 100, + "column": 47 }, "end": { - "line": 99, - "column": 63 + "line": 100, + "column": 48 } } }, @@ -22590,16 +23328,16 @@ "binop": null, "updateContext": null }, - "start": 3585, - "end": 3586, + "start": 3677, + "end": 3678, "loc": { "start": { - "line": 99, - "column": 64 + "line": 100, + "column": 49 }, "end": { - "line": 99, - "column": 65 + "line": 100, + "column": 50 } } }, @@ -22616,16 +23354,16 @@ "binop": null }, "value": "resolve", - "start": 3587, - "end": 3594, + "start": 3679, + "end": 3686, "loc": { "start": { - "line": 99, - "column": 66 + "line": 100, + "column": 51 }, "end": { - "line": 99, - "column": 73 + "line": 100, + "column": 58 } } }, @@ -22641,16 +23379,16 @@ "postfix": false, "binop": null }, - "start": 3594, - "end": 3595, + "start": 3686, + "end": 3687, "loc": { "start": { - "line": 99, - "column": 73 + "line": 100, + "column": 58 }, "end": { - "line": 99, - "column": 74 + "line": 100, + "column": 59 } } }, @@ -22667,16 +23405,16 @@ "binop": null }, "value": "parse", - "start": 3595, - "end": 3600, + "start": 3687, + "end": 3692, "loc": { "start": { - "line": 99, - "column": 74 + "line": 100, + "column": 59 }, "end": { - "line": 99, - "column": 79 + "line": 100, + "column": 64 } } }, @@ -22692,16 +23430,16 @@ "postfix": false, "binop": null }, - "start": 3600, - "end": 3601, + "start": 3692, + "end": 3693, "loc": { "start": { - "line": 99, - "column": 79 + "line": 100, + "column": 64 }, "end": { - "line": 99, - "column": 80 + "line": 100, + "column": 65 } } }, @@ -22718,16 +23456,16 @@ "binop": null }, "value": "request", - "start": 3601, - "end": 3608, + "start": 3693, + "end": 3700, "loc": { "start": { - "line": 99, - "column": 80 + "line": 100, + "column": 65 }, "end": { - "line": 99, - "column": 87 + "line": 100, + "column": 72 } } }, @@ -22743,16 +23481,16 @@ "postfix": false, "binop": null }, - "start": 3608, - "end": 3609, + "start": 3700, + "end": 3701, "loc": { "start": { - "line": 99, - "column": 87 + "line": 100, + "column": 72 }, "end": { - "line": 99, - "column": 88 + "line": 100, + "column": 73 } } }, @@ -22768,16 +23506,16 @@ "postfix": false, "binop": null }, - "start": 3609, - "end": 3610, + "start": 3701, + "end": 3702, "loc": { - "start": { - "line": 99, - "column": 88 + "start": { + "line": 100, + "column": 73 }, "end": { - "line": 99, - "column": 89 + "line": 100, + "column": 74 } } }, @@ -22794,16 +23532,16 @@ "binop": null, "updateContext": null }, - "start": 3610, - "end": 3611, + "start": 3702, + "end": 3703, "loc": { "start": { - "line": 99, - "column": 89 + "line": 100, + "column": 74 }, "end": { - "line": 99, - "column": 90 + "line": 100, + "column": 75 } } }, @@ -22819,15 +23557,15 @@ "postfix": false, "binop": null }, - "start": 3620, - "end": 3621, + "start": 3712, + "end": 3713, "loc": { "start": { - "line": 100, + "line": 101, "column": 8 }, "end": { - "line": 100, + "line": 101, "column": 9 } } @@ -22844,15 +23582,15 @@ "postfix": false, "binop": null }, - "start": 3628, - "end": 3629, + "start": 3720, + "end": 3721, "loc": { "start": { - "line": 101, + "line": 102, "column": 6 }, "end": { - "line": 101, + "line": 102, "column": 7 } } @@ -22869,15 +23607,15 @@ "postfix": false, "binop": null }, - "start": 3634, - "end": 3635, + "start": 3726, + "end": 3727, "loc": { "start": { - "line": 102, + "line": 103, "column": 4 }, "end": { - "line": 102, + "line": 103, "column": 5 } } @@ -22895,15 +23633,15 @@ "binop": null, "updateContext": null }, - "start": 3635, - "end": 3636, + "start": 3727, + "end": 3728, "loc": { "start": { - "line": 102, + "line": 103, "column": 5 }, "end": { - "line": 102, + "line": 103, "column": 6 } } @@ -22923,15 +23661,15 @@ "updateContext": null }, "value": "if", - "start": 3642, - "end": 3644, + "start": 3734, + "end": 3736, "loc": { "start": { - "line": 104, + "line": 105, "column": 4 }, "end": { - "line": 104, + "line": 105, "column": 6 } } @@ -22948,15 +23686,15 @@ "postfix": false, "binop": null }, - "start": 3645, - "end": 3646, + "start": 3737, + "end": 3738, "loc": { "start": { - "line": 104, + "line": 105, "column": 7 }, "end": { - "line": 104, + "line": 105, "column": 8 } } @@ -22974,15 +23712,15 @@ "binop": null }, "value": "recognizerContextRef", - "start": 3646, - "end": 3666, + "start": 3738, + "end": 3758, "loc": { "start": { - "line": 104, + "line": 105, "column": 8 }, "end": { - "line": 104, + "line": 105, "column": 28 } } @@ -22999,15 +23737,15 @@ "postfix": false, "binop": null }, - "start": 3666, - "end": 3667, + "start": 3758, + "end": 3759, "loc": { "start": { - "line": 104, + "line": 105, "column": 28 }, "end": { - "line": 104, + "line": 105, "column": 29 } } @@ -23024,15 +23762,15 @@ "postfix": false, "binop": null }, - "start": 3668, - "end": 3669, + "start": 3760, + "end": 3761, "loc": { "start": { - "line": 104, + "line": 105, "column": 30 }, "end": { - "line": 104, + "line": 105, "column": 31 } } @@ -23050,15 +23788,15 @@ "binop": null }, "value": "recognizerContextRef", - "start": 3676, - "end": 3696, + "start": 3768, + "end": 3788, "loc": { "start": { - "line": 105, + "line": 106, "column": 6 }, "end": { - "line": 105, + "line": 106, "column": 26 } } @@ -23076,15 +23814,15 @@ "binop": null, "updateContext": null }, - "start": 3696, - "end": 3697, + "start": 3788, + "end": 3789, "loc": { "start": { - "line": 105, + "line": 106, "column": 26 }, "end": { - "line": 105, + "line": 106, "column": 27 } } @@ -23102,15 +23840,15 @@ "binop": null }, "value": "idle", - "start": 3697, - "end": 3701, + "start": 3789, + "end": 3793, "loc": { "start": { - "line": 105, + "line": 106, "column": 27 }, "end": { - "line": 105, + "line": 106, "column": 31 } } @@ -23129,15 +23867,15 @@ "updateContext": null }, "value": "=", - "start": 3702, - "end": 3703, + "start": 3794, + "end": 3795, "loc": { "start": { - "line": 105, + "line": 106, "column": 32 }, "end": { - "line": 105, + "line": 106, "column": 33 } } @@ -23157,15 +23895,15 @@ "updateContext": null }, "value": "false", - "start": 3704, - "end": 3709, + "start": 3796, + "end": 3801, "loc": { "start": { - "line": 105, + "line": 106, "column": 34 }, "end": { - "line": 105, + "line": 106, "column": 39 } } @@ -23183,15 +23921,15 @@ "binop": null, "updateContext": null }, - "start": 3709, - "end": 3710, + "start": 3801, + "end": 3802, "loc": { "start": { - "line": 105, + "line": 106, "column": 39 }, "end": { - "line": 105, + "line": 106, "column": 40 } } @@ -23208,15 +23946,15 @@ "postfix": false, "binop": null }, - "start": 3715, - "end": 3716, + "start": 3807, + "end": 3808, "loc": { "start": { - "line": 106, + "line": 107, "column": 4 }, "end": { - "line": 106, + "line": 107, "column": 5 } } @@ -23236,15 +23974,15 @@ "updateContext": null }, "value": "if", - "start": 3721, - "end": 3723, + "start": 3813, + "end": 3815, "loc": { "start": { - "line": 107, + "line": 108, "column": 4 }, "end": { - "line": 107, + "line": 108, "column": 6 } } @@ -23261,15 +23999,15 @@ "postfix": false, "binop": null }, - "start": 3724, - "end": 3725, + "start": 3816, + "end": 3817, "loc": { "start": { - "line": 107, + "line": 108, "column": 7 }, "end": { - "line": 107, + "line": 108, "column": 8 } } @@ -23287,15 +24025,15 @@ "binop": null }, "value": "apiVersion", - "start": 3725, - "end": 3735, + "start": 3817, + "end": 3827, "loc": { "start": { - "line": 107, + "line": 108, "column": 8 }, "end": { - "line": 107, + "line": 108, "column": 18 } } @@ -23314,15 +24052,15 @@ "updateContext": null }, "value": "===", - "start": 3736, - "end": 3739, + "start": 3828, + "end": 3831, "loc": { "start": { - "line": 107, + "line": 108, "column": 19 }, "end": { - "line": 107, + "line": 108, "column": 22 } } @@ -23341,15 +24079,15 @@ "updateContext": null }, "value": "V4", - "start": 3740, - "end": 3744, + "start": 3832, + "end": 3836, "loc": { "start": { - "line": 107, + "line": 108, "column": 23 }, "end": { - "line": 107, + "line": 108, "column": 27 } } @@ -23366,15 +24104,15 @@ "postfix": false, "binop": null }, - "start": 3744, - "end": 3745, + "start": 3836, + "end": 3837, "loc": { "start": { - "line": 107, + "line": 108, "column": 27 }, "end": { - "line": 107, + "line": 108, "column": 28 } } @@ -23391,15 +24129,15 @@ "postfix": false, "binop": null }, - "start": 3746, - "end": 3747, + "start": 3838, + "end": 3839, "loc": { "start": { - "line": 107, + "line": 108, "column": 29 }, "end": { - "line": 107, + "line": 108, "column": 30 } } @@ -23417,15 +24155,15 @@ "binop": null }, "value": "request", - "start": 3754, - "end": 3761, + "start": 3846, + "end": 3853, "loc": { "start": { - "line": 108, + "line": 109, "column": 6 }, "end": { - "line": 108, + "line": 109, "column": 13 } } @@ -23443,15 +24181,15 @@ "binop": null, "updateContext": null }, - "start": 3761, - "end": 3762, + "start": 3853, + "end": 3854, "loc": { "start": { - "line": 108, + "line": 109, "column": 13 }, "end": { - "line": 108, + "line": 109, "column": 14 } } @@ -23469,15 +24207,15 @@ "binop": null }, "value": "send", - "start": 3762, - "end": 3766, + "start": 3854, + "end": 3858, "loc": { "start": { - "line": 108, + "line": 109, "column": 14 }, "end": { - "line": 108, + "line": 109, "column": 18 } } @@ -23494,15 +24232,15 @@ "postfix": false, "binop": null }, - "start": 3766, - "end": 3767, + "start": 3858, + "end": 3859, "loc": { "start": { - "line": 108, + "line": 109, "column": 18 }, "end": { - "line": 108, + "line": 109, "column": 19 } } @@ -23520,15 +24258,15 @@ "binop": null }, "value": "JSON", - "start": 3767, - "end": 3771, + "start": 3859, + "end": 3863, "loc": { "start": { - "line": 108, + "line": 109, "column": 19 }, "end": { - "line": 108, + "line": 109, "column": 23 } } @@ -23546,15 +24284,15 @@ "binop": null, "updateContext": null }, - "start": 3771, - "end": 3772, + "start": 3863, + "end": 3864, "loc": { "start": { - "line": 108, + "line": 109, "column": 23 }, "end": { - "line": 108, + "line": 109, "column": 24 } } @@ -23572,15 +24310,15 @@ "binop": null }, "value": "stringify", - "start": 3772, - "end": 3781, + "start": 3864, + "end": 3873, "loc": { "start": { - "line": 108, + "line": 109, "column": 24 }, "end": { - "line": 108, + "line": 109, "column": 33 } } @@ -23597,15 +24335,15 @@ "postfix": false, "binop": null }, - "start": 3781, - "end": 3782, + "start": 3873, + "end": 3874, "loc": { "start": { - "line": 108, + "line": 109, "column": 33 }, "end": { - "line": 108, + "line": 109, "column": 34 } } @@ -23623,15 +24361,15 @@ "binop": null }, "value": "data", - "start": 3782, - "end": 3786, + "start": 3874, + "end": 3878, "loc": { "start": { - "line": 108, + "line": 109, "column": 34 }, "end": { - "line": 108, + "line": 109, "column": 38 } } @@ -23648,15 +24386,15 @@ "postfix": false, "binop": null }, - "start": 3786, - "end": 3787, + "start": 3878, + "end": 3879, "loc": { "start": { - "line": 108, + "line": 109, "column": 38 }, "end": { - "line": 108, + "line": 109, "column": 39 } } @@ -23673,15 +24411,15 @@ "postfix": false, "binop": null }, - "start": 3787, - "end": 3788, + "start": 3879, + "end": 3880, "loc": { "start": { - "line": 108, + "line": 109, "column": 39 }, "end": { - "line": 108, + "line": 109, "column": 40 } } @@ -23699,15 +24437,15 @@ "binop": null, "updateContext": null }, - "start": 3788, - "end": 3789, + "start": 3880, + "end": 3881, "loc": { "start": { - "line": 108, + "line": 109, "column": 40 }, "end": { - "line": 108, + "line": 109, "column": 41 } } @@ -23724,15 +24462,15 @@ "postfix": false, "binop": null }, - "start": 3794, - "end": 3795, + "start": 3886, + "end": 3887, "loc": { "start": { - "line": 109, + "line": 110, "column": 4 }, "end": { - "line": 109, + "line": 110, "column": 5 } } @@ -23752,15 +24490,15 @@ "updateContext": null }, "value": "else", - "start": 3796, - "end": 3800, + "start": 3888, + "end": 3892, "loc": { "start": { - "line": 109, + "line": 110, "column": 6 }, "end": { - "line": 109, + "line": 110, "column": 10 } } @@ -23777,15 +24515,15 @@ "postfix": false, "binop": null }, - "start": 3801, - "end": 3802, + "start": 3893, + "end": 3894, "loc": { "start": { - "line": 109, + "line": 110, "column": 11 }, "end": { - "line": 109, + "line": 110, "column": 12 } } @@ -23803,15 +24541,15 @@ "binop": null }, "value": "request", - "start": 3809, - "end": 3816, + "start": 3901, + "end": 3908, "loc": { "start": { - "line": 110, + "line": 111, "column": 6 }, "end": { - "line": 110, + "line": 111, "column": 13 } } @@ -23829,15 +24567,15 @@ "binop": null, "updateContext": null }, - "start": 3816, - "end": 3817, + "start": 3908, + "end": 3909, "loc": { "start": { - "line": 110, + "line": 111, "column": 13 }, "end": { - "line": 110, + "line": 111, "column": 14 } } @@ -23855,15 +24593,15 @@ "binop": null }, "value": "send", - "start": 3817, - "end": 3821, + "start": 3909, + "end": 3913, "loc": { "start": { - "line": 110, + "line": 111, "column": 14 }, "end": { - "line": 110, + "line": 111, "column": 18 } } @@ -23880,15 +24618,15 @@ "postfix": false, "binop": null }, - "start": 3821, - "end": 3822, + "start": 3913, + "end": 3914, "loc": { "start": { - "line": 110, + "line": 111, "column": 18 }, "end": { - "line": 110, + "line": 111, "column": 19 } } @@ -23906,15 +24644,15 @@ "binop": null }, "value": "data", - "start": 3822, - "end": 3826, + "start": 3914, + "end": 3918, "loc": { "start": { - "line": 110, + "line": 111, "column": 19 }, "end": { - "line": 110, + "line": 111, "column": 23 } } @@ -23932,15 +24670,15 @@ "binop": null, "updateContext": null }, - "start": 3827, - "end": 3828, + "start": 3919, + "end": 3920, "loc": { "start": { - "line": 110, + "line": 111, "column": 24 }, "end": { - "line": 110, + "line": 111, "column": 25 } } @@ -23958,15 +24696,15 @@ "binop": null }, "value": "transformRequest", - "start": 3829, - "end": 3845, + "start": 3921, + "end": 3937, "loc": { "start": { - "line": 110, + "line": 111, "column": 26 }, "end": { - "line": 110, + "line": 111, "column": 42 } } @@ -23983,15 +24721,15 @@ "postfix": false, "binop": null }, - "start": 3845, - "end": 3846, + "start": 3937, + "end": 3938, "loc": { "start": { - "line": 110, + "line": 111, "column": 42 }, "end": { - "line": 110, + "line": 111, "column": 43 } } @@ -24009,15 +24747,15 @@ "binop": null }, "value": "data", - "start": 3846, - "end": 3850, + "start": 3938, + "end": 3942, "loc": { "start": { - "line": 110, + "line": 111, "column": 43 }, "end": { - "line": 110, + "line": 111, "column": 47 } } @@ -24034,15 +24772,15 @@ "postfix": false, "binop": null }, - "start": 3850, - "end": 3851, + "start": 3942, + "end": 3943, "loc": { "start": { - "line": 110, + "line": 111, "column": 47 }, "end": { - "line": 110, + "line": 111, "column": 48 } } @@ -24060,15 +24798,15 @@ "binop": null, "updateContext": null }, - "start": 3852, - "end": 3853, + "start": 3944, + "end": 3945, "loc": { "start": { - "line": 110, + "line": 111, "column": 49 }, "end": { - "line": 110, + "line": 111, "column": 50 } } @@ -24086,15 +24824,15 @@ "binop": null }, "value": "undefined", - "start": 3854, - "end": 3863, + "start": 3946, + "end": 3955, "loc": { "start": { - "line": 110, + "line": 111, "column": 51 }, "end": { - "line": 110, + "line": 111, "column": 60 } } @@ -24110,16 +24848,16 @@ "prefix": false, "postfix": false, "binop": null - }, - "start": 3863, - "end": 3864, + }, + "start": 3955, + "end": 3956, "loc": { "start": { - "line": 110, + "line": 111, "column": 60 }, "end": { - "line": 110, + "line": 111, "column": 61 } } @@ -24137,15 +24875,15 @@ "binop": null, "updateContext": null }, - "start": 3864, - "end": 3865, + "start": 3956, + "end": 3957, "loc": { "start": { - "line": 110, + "line": 111, "column": 61 }, "end": { - "line": 110, + "line": 111, "column": 62 } } @@ -24162,15 +24900,15 @@ "postfix": false, "binop": null }, - "start": 3870, - "end": 3871, + "start": 3962, + "end": 3963, "loc": { "start": { - "line": 111, + "line": 112, "column": 4 }, "end": { - "line": 111, + "line": 112, "column": 5 } } @@ -24187,15 +24925,15 @@ "postfix": false, "binop": null }, - "start": 3874, - "end": 3875, + "start": 3966, + "end": 3967, "loc": { "start": { - "line": 112, + "line": 113, "column": 2 }, "end": { - "line": 112, + "line": 113, "column": 3 } } @@ -24212,15 +24950,15 @@ "postfix": false, "binop": null }, - "start": 3875, - "end": 3876, + "start": 3967, + "end": 3968, "loc": { "start": { - "line": 112, + "line": 113, "column": 3 }, "end": { - "line": 112, + "line": 113, "column": 4 } } @@ -24238,15 +24976,15 @@ "binop": null, "updateContext": null }, - "start": 3876, - "end": 3877, + "start": 3968, + "end": 3969, "loc": { "start": { - "line": 112, + "line": 113, "column": 4 }, "end": { - "line": 112, + "line": 113, "column": 5 } } @@ -24264,15 +25002,15 @@ "binop": null }, "value": "then", - "start": 3877, - "end": 3881, + "start": 3969, + "end": 3973, "loc": { "start": { - "line": 112, + "line": 113, "column": 5 }, "end": { - "line": 112, + "line": 113, "column": 9 } } @@ -24289,15 +25027,15 @@ "postfix": false, "binop": null }, - "start": 3881, - "end": 3882, + "start": 3973, + "end": 3974, "loc": { "start": { - "line": 112, + "line": 113, "column": 9 }, "end": { - "line": 112, + "line": 113, "column": 10 } } @@ -24314,15 +25052,15 @@ "postfix": false, "binop": null }, - "start": 3882, - "end": 3883, + "start": 3974, + "end": 3975, "loc": { "start": { - "line": 112, + "line": 113, "column": 10 }, "end": { - "line": 112, + "line": 113, "column": 11 } } @@ -24340,15 +25078,15 @@ "binop": null }, "value": "res", - "start": 3883, - "end": 3886, + "start": 3975, + "end": 3978, "loc": { "start": { - "line": 112, + "line": 113, "column": 11 }, "end": { - "line": 112, + "line": 113, "column": 14 } } @@ -24365,15 +25103,15 @@ "postfix": false, "binop": null }, - "start": 3886, - "end": 3887, + "start": 3978, + "end": 3979, "loc": { "start": { - "line": 112, + "line": 113, "column": 14 }, "end": { - "line": 112, + "line": 113, "column": 15 } } @@ -24391,15 +25129,15 @@ "binop": null, "updateContext": null }, - "start": 3888, - "end": 3890, + "start": 3980, + "end": 3982, "loc": { "start": { - "line": 112, + "line": 113, "column": 16 }, "end": { - "line": 112, + "line": 113, "column": 18 } } @@ -24416,15 +25154,15 @@ "postfix": false, "binop": null }, - "start": 3891, - "end": 3892, + "start": 3983, + "end": 3984, "loc": { "start": { - "line": 112, + "line": 113, "column": 19 }, "end": { - "line": 112, + "line": 113, "column": 20 } } @@ -24444,15 +25182,15 @@ "updateContext": null }, "value": "if", - "start": 3897, - "end": 3899, + "start": 3989, + "end": 3991, "loc": { "start": { - "line": 113, + "line": 114, "column": 4 }, "end": { - "line": 113, + "line": 114, "column": 6 } } @@ -24469,15 +25207,15 @@ "postfix": false, "binop": null }, - "start": 3900, - "end": 3901, + "start": 3992, + "end": 3993, "loc": { "start": { - "line": 113, + "line": 114, "column": 7 }, "end": { - "line": 113, + "line": 114, "column": 8 } } @@ -24495,15 +25233,15 @@ "binop": null }, "value": "recognizerContextRef", - "start": 3901, - "end": 3921, + "start": 3993, + "end": 4013, "loc": { "start": { - "line": 113, + "line": 114, "column": 8 }, "end": { - "line": 113, + "line": 114, "column": 28 } } @@ -24520,15 +25258,15 @@ "postfix": false, "binop": null }, - "start": 3921, - "end": 3922, + "start": 4013, + "end": 4014, "loc": { "start": { - "line": 113, + "line": 114, "column": 28 }, "end": { - "line": 113, + "line": 114, "column": 29 } } @@ -24545,15 +25283,15 @@ "postfix": false, "binop": null }, - "start": 3923, - "end": 3924, + "start": 4015, + "end": 4016, "loc": { "start": { - "line": 113, + "line": 114, "column": 30 }, "end": { - "line": 113, + "line": 114, "column": 31 } } @@ -24571,15 +25309,15 @@ "binop": null }, "value": "recognizerContextRef", - "start": 3931, - "end": 3951, + "start": 4023, + "end": 4043, "loc": { "start": { - "line": 114, + "line": 115, "column": 6 }, "end": { - "line": 114, + "line": 115, "column": 26 } } @@ -24597,15 +25335,15 @@ "binop": null, "updateContext": null }, - "start": 3951, - "end": 3952, + "start": 4043, + "end": 4044, "loc": { "start": { - "line": 114, + "line": 115, "column": 26 }, "end": { - "line": 114, + "line": 115, "column": 27 } } @@ -24623,15 +25361,15 @@ "binop": null }, "value": "idle", - "start": 3952, - "end": 3956, + "start": 4044, + "end": 4048, "loc": { "start": { - "line": 114, + "line": 115, "column": 27 }, "end": { - "line": 114, + "line": 115, "column": 31 } } @@ -24650,15 +25388,15 @@ "updateContext": null }, "value": "=", - "start": 3957, - "end": 3958, + "start": 4049, + "end": 4050, "loc": { "start": { - "line": 114, + "line": 115, "column": 32 }, "end": { - "line": 114, + "line": 115, "column": 33 } } @@ -24678,15 +25416,15 @@ "updateContext": null }, "value": "true", - "start": 3959, - "end": 3963, + "start": 4051, + "end": 4055, "loc": { "start": { - "line": 114, + "line": 115, "column": 34 }, "end": { - "line": 114, + "line": 115, "column": 38 } } @@ -24704,15 +25442,15 @@ "binop": null, "updateContext": null }, - "start": 3963, - "end": 3964, + "start": 4055, + "end": 4056, "loc": { "start": { - "line": 114, + "line": 115, "column": 38 }, "end": { - "line": 114, + "line": 115, "column": 39 } } @@ -24729,15 +25467,15 @@ "postfix": false, "binop": null }, - "start": 3969, - "end": 3970, + "start": 4061, + "end": 4062, "loc": { "start": { - "line": 115, + "line": 116, "column": 4 }, "end": { - "line": 115, + "line": 116, "column": 5 } } @@ -24757,15 +25495,15 @@ "updateContext": null }, "value": "return", - "start": 3975, - "end": 3981, + "start": 4067, + "end": 4073, "loc": { "start": { - "line": 116, + "line": 117, "column": 4 }, "end": { - "line": 116, + "line": 117, "column": 10 } } @@ -24783,15 +25521,15 @@ "binop": null }, "value": "res", - "start": 3982, - "end": 3985, + "start": 4074, + "end": 4077, "loc": { "start": { - "line": 116, + "line": 117, "column": 11 }, "end": { - "line": 116, + "line": 117, "column": 14 } } @@ -24809,15 +25547,15 @@ "binop": null, "updateContext": null }, - "start": 3985, - "end": 3986, + "start": 4077, + "end": 4078, "loc": { "start": { - "line": 116, + "line": 117, "column": 14 }, "end": { - "line": 116, + "line": 117, "column": 15 } } @@ -24834,15 +25572,15 @@ "postfix": false, "binop": null }, - "start": 3989, - "end": 3990, + "start": 4081, + "end": 4082, "loc": { "start": { - "line": 117, + "line": 118, "column": 2 }, "end": { - "line": 117, + "line": 118, "column": 3 } } @@ -24859,15 +25597,15 @@ "postfix": false, "binop": null }, - "start": 3990, - "end": 3991, + "start": 4082, + "end": 4083, "loc": { "start": { - "line": 117, + "line": 118, "column": 3 }, "end": { - "line": 117, + "line": 118, "column": 4 } } @@ -24885,15 +25623,15 @@ "binop": null, "updateContext": null }, - "start": 3991, - "end": 3992, + "start": 4083, + "end": 4084, "loc": { "start": { - "line": 117, + "line": 118, "column": 4 }, "end": { - "line": 117, + "line": 118, "column": 5 } } @@ -24910,15 +25648,15 @@ "postfix": false, "binop": null }, - "start": 3993, - "end": 3994, + "start": 4085, + "end": 4086, "loc": { "start": { - "line": 118, + "line": 119, "column": 0 }, "end": { - "line": 118, + "line": 119, "column": 1 } } @@ -24926,15 +25664,15 @@ { "type": "CommentBlock", "value": "*\n * Get request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} params Query properties\n * @return {Promise}\n ", - "start": 3996, - "end": 4176, + "start": 4088, + "end": 4268, "loc": { "start": { - "line": 120, + "line": 121, "column": 0 }, "end": { - "line": 126, + "line": 127, "column": 3 } } @@ -24954,15 +25692,15 @@ "updateContext": null }, "value": "export", - "start": 4177, - "end": 4183, + "start": 4269, + "end": 4275, "loc": { "start": { - "line": 127, + "line": 128, "column": 0 }, "end": { - "line": 127, + "line": 128, "column": 6 } } @@ -24981,15 +25719,15 @@ "binop": null }, "value": "function", - "start": 4184, - "end": 4192, + "start": 4276, + "end": 4284, "loc": { "start": { - "line": 127, + "line": 128, "column": 7 }, "end": { - "line": 127, + "line": 128, "column": 15 } } @@ -25007,15 +25745,15 @@ "binop": null }, "value": "get", - "start": 4193, - "end": 4196, + "start": 4285, + "end": 4288, "loc": { "start": { - "line": 127, + "line": 128, "column": 16 }, "end": { - "line": 127, + "line": 128, "column": 19 } } @@ -25032,15 +25770,15 @@ "postfix": false, "binop": null }, - "start": 4196, - "end": 4197, + "start": 4288, + "end": 4289, "loc": { "start": { - "line": 127, + "line": 128, "column": 19 }, "end": { - "line": 127, + "line": 128, "column": 20 } } @@ -25058,15 +25796,15 @@ "binop": null }, "value": "recognizerContext", - "start": 4197, - "end": 4214, + "start": 4289, + "end": 4306, "loc": { "start": { - "line": 127, + "line": 128, "column": 20 }, "end": { - "line": 127, + "line": 128, "column": 37 } } @@ -25084,15 +25822,15 @@ "binop": null, "updateContext": null }, - "start": 4214, - "end": 4215, + "start": 4306, + "end": 4307, "loc": { "start": { - "line": 127, + "line": 128, "column": 37 }, "end": { - "line": 127, + "line": 128, "column": 38 } } @@ -25110,15 +25848,15 @@ "binop": null }, "value": "url", - "start": 4216, - "end": 4219, + "start": 4308, + "end": 4311, "loc": { "start": { - "line": 127, + "line": 128, "column": 39 }, "end": { - "line": 127, + "line": 128, "column": 42 } } @@ -25136,15 +25874,15 @@ "binop": null, "updateContext": null }, - "start": 4219, - "end": 4220, + "start": 4311, + "end": 4312, "loc": { "start": { - "line": 127, + "line": 128, "column": 42 }, "end": { - "line": 127, + "line": 128, "column": 43 } } @@ -25162,15 +25900,15 @@ "binop": null }, "value": "params", - "start": 4221, - "end": 4227, + "start": 4313, + "end": 4319, "loc": { "start": { - "line": 127, + "line": 128, "column": 44 }, "end": { - "line": 127, + "line": 128, "column": 50 } } @@ -25187,15 +25925,15 @@ "postfix": false, "binop": null }, - "start": 4227, - "end": 4228, + "start": 4319, + "end": 4320, "loc": { "start": { - "line": 127, + "line": 128, "column": 50 }, "end": { - "line": 127, + "line": 128, "column": 51 } } @@ -25212,15 +25950,15 @@ "postfix": false, "binop": null }, - "start": 4229, - "end": 4230, + "start": 4321, + "end": 4322, "loc": { "start": { - "line": 127, + "line": 128, "column": 52 }, "end": { - "line": 127, + "line": 128, "column": 53 } } @@ -25240,15 +25978,15 @@ "updateContext": null }, "value": "let", - "start": 4233, - "end": 4236, + "start": 4325, + "end": 4328, "loc": { "start": { - "line": 128, + "line": 129, "column": 2 }, "end": { - "line": 128, + "line": 129, "column": 5 } } @@ -25266,15 +26004,15 @@ "binop": null }, "value": "queryUrl", - "start": 4237, - "end": 4245, + "start": 4329, + "end": 4337, "loc": { "start": { - "line": 128, + "line": 129, "column": 6 }, "end": { - "line": 128, + "line": 129, "column": 14 } } @@ -25293,15 +26031,15 @@ "updateContext": null }, "value": "=", - "start": 4246, - "end": 4247, + "start": 4338, + "end": 4339, "loc": { "start": { - "line": 128, + "line": 129, "column": 15 }, "end": { - "line": 128, + "line": 129, "column": 16 } } @@ -25319,15 +26057,15 @@ "binop": null }, "value": "url", - "start": 4248, - "end": 4251, + "start": 4340, + "end": 4343, "loc": { "start": { - "line": 128, + "line": 129, "column": 17 }, "end": { - "line": 128, + "line": 129, "column": 20 } } @@ -25345,15 +26083,15 @@ "binop": null, "updateContext": null }, - "start": 4251, - "end": 4252, + "start": 4343, + "end": 4344, "loc": { "start": { - "line": 128, + "line": 129, "column": 20 }, "end": { - "line": 128, + "line": 129, "column": 21 } } @@ -25373,15 +26111,15 @@ "updateContext": null }, "value": "if", - "start": 4255, - "end": 4257, + "start": 4347, + "end": 4349, "loc": { "start": { - "line": 129, + "line": 130, "column": 2 }, "end": { - "line": 129, + "line": 130, "column": 4 } } @@ -25398,15 +26136,15 @@ "postfix": false, "binop": null }, - "start": 4258, - "end": 4259, + "start": 4350, + "end": 4351, "loc": { "start": { - "line": 129, + "line": 130, "column": 5 }, "end": { - "line": 129, + "line": 130, "column": 6 } } @@ -25424,15 +26162,15 @@ "binop": null }, "value": "params", - "start": 4259, - "end": 4265, + "start": 4351, + "end": 4357, "loc": { "start": { - "line": 129, + "line": 130, "column": 6 }, "end": { - "line": 129, + "line": 130, "column": 12 } } @@ -25449,15 +26187,15 @@ "postfix": false, "binop": null }, - "start": 4265, - "end": 4266, + "start": 4357, + "end": 4358, "loc": { "start": { - "line": 129, + "line": 130, "column": 12 }, "end": { - "line": 129, + "line": 130, "column": 13 } } @@ -25474,15 +26212,15 @@ "postfix": false, "binop": null }, - "start": 4267, - "end": 4268, + "start": 4359, + "end": 4360, "loc": { "start": { - "line": 129, + "line": 130, "column": 14 }, "end": { - "line": 129, + "line": 130, "column": 15 } } @@ -25500,15 +26238,15 @@ "binop": null }, "value": "queryUrl", - "start": 4273, - "end": 4281, + "start": 4365, + "end": 4373, "loc": { "start": { - "line": 130, + "line": 131, "column": 4 }, "end": { - "line": 130, + "line": 131, "column": 12 } } @@ -25527,15 +26265,15 @@ "updateContext": null }, "value": "+=", - "start": 4282, - "end": 4284, + "start": 4374, + "end": 4376, "loc": { "start": { - "line": 130, + "line": 131, "column": 13 }, "end": { - "line": 130, + "line": 131, "column": 15 } } @@ -25552,15 +26290,15 @@ "postfix": false, "binop": null }, - "start": 4285, - "end": 4286, + "start": 4377, + "end": 4378, "loc": { "start": { - "line": 130, + "line": 131, "column": 16 }, "end": { - "line": 130, + "line": 131, "column": 17 } } @@ -25579,15 +26317,15 @@ "updateContext": null }, "value": "?", - "start": 4286, - "end": 4287, + "start": 4378, + "end": 4379, "loc": { "start": { - "line": 130, + "line": 131, "column": 17 }, "end": { - "line": 130, + "line": 131, "column": 18 } } @@ -25604,15 +26342,15 @@ "postfix": false, "binop": null }, - "start": 4287, - "end": 4289, + "start": 4379, + "end": 4381, "loc": { "start": { - "line": 130, + "line": 131, "column": 18 }, "end": { - "line": 130, + "line": 131, "column": 20 } } @@ -25630,15 +26368,15 @@ "binop": null }, "value": "transformRequest", - "start": 4289, - "end": 4305, + "start": 4381, + "end": 4397, "loc": { "start": { - "line": 130, + "line": 131, "column": 20 }, "end": { - "line": 130, + "line": 131, "column": 36 } } @@ -25655,15 +26393,15 @@ "postfix": false, "binop": null }, - "start": 4305, - "end": 4306, + "start": 4397, + "end": 4398, "loc": { "start": { - "line": 130, + "line": 131, "column": 36 }, "end": { - "line": 130, + "line": 131, "column": 37 } } @@ -25681,15 +26419,15 @@ "binop": null }, "value": "params", - "start": 4306, - "end": 4312, + "start": 4398, + "end": 4404, "loc": { "start": { - "line": 130, + "line": 131, "column": 37 }, "end": { - "line": 130, + "line": 131, "column": 43 } } @@ -25706,15 +26444,15 @@ "postfix": false, "binop": null }, - "start": 4312, - "end": 4313, + "start": 4404, + "end": 4405, "loc": { "start": { - "line": 130, + "line": 131, "column": 43 }, "end": { - "line": 130, + "line": 131, "column": 44 } } @@ -25731,15 +26469,15 @@ "postfix": false, "binop": null }, - "start": 4313, - "end": 4314, + "start": 4405, + "end": 4406, "loc": { "start": { - "line": 130, + "line": 131, "column": 44 }, "end": { - "line": 130, + "line": 131, "column": 45 } } @@ -25758,15 +26496,15 @@ "updateContext": null }, "value": "", - "start": 4314, - "end": 4314, + "start": 4406, + "end": 4406, "loc": { "start": { - "line": 130, + "line": 131, "column": 45 }, "end": { - "line": 130, + "line": 131, "column": 45 } } @@ -25783,15 +26521,15 @@ "postfix": false, "binop": null }, - "start": 4314, - "end": 4315, + "start": 4406, + "end": 4407, "loc": { "start": { - "line": 130, + "line": 131, "column": 45 }, "end": { - "line": 130, + "line": 131, "column": 46 } } @@ -25809,15 +26547,15 @@ "binop": null, "updateContext": null }, - "start": 4315, - "end": 4316, + "start": 4407, + "end": 4408, "loc": { "start": { - "line": 130, + "line": 131, "column": 46 }, "end": { - "line": 130, + "line": 131, "column": 47 } } @@ -25834,15 +26572,15 @@ "postfix": false, "binop": null }, - "start": 4319, - "end": 4320, + "start": 4411, + "end": 4412, "loc": { "start": { - "line": 131, + "line": 132, "column": 2 }, "end": { - "line": 131, + "line": 132, "column": 3 } } @@ -25862,15 +26600,15 @@ "updateContext": null }, "value": "return", - "start": 4323, - "end": 4329, + "start": 4415, + "end": 4421, "loc": { "start": { - "line": 132, + "line": 133, "column": 2 }, "end": { - "line": 132, + "line": 133, "column": 8 } } @@ -25888,15 +26626,15 @@ "binop": null }, "value": "xhr", - "start": 4330, - "end": 4333, + "start": 4422, + "end": 4425, "loc": { "start": { - "line": 132, + "line": 133, "column": 9 }, "end": { - "line": 132, + "line": 133, "column": 12 } } @@ -25913,15 +26651,15 @@ "postfix": false, "binop": null }, - "start": 4333, - "end": 4334, + "start": 4425, + "end": 4426, "loc": { "start": { - "line": 132, + "line": 133, "column": 12 }, "end": { - "line": 132, + "line": 133, "column": 13 } } @@ -25940,15 +26678,15 @@ "updateContext": null }, "value": "GET", - "start": 4334, - "end": 4339, + "start": 4426, + "end": 4431, "loc": { "start": { - "line": 132, + "line": 133, "column": 13 }, "end": { - "line": 132, + "line": 133, "column": 18 } } @@ -25966,15 +26704,15 @@ "binop": null, "updateContext": null }, - "start": 4339, - "end": 4340, + "start": 4431, + "end": 4432, "loc": { "start": { - "line": 132, + "line": 133, "column": 18 }, "end": { - "line": 132, + "line": 133, "column": 19 } } @@ -25992,15 +26730,15 @@ "binop": null }, "value": "queryUrl", - "start": 4341, - "end": 4349, + "start": 4433, + "end": 4441, "loc": { "start": { - "line": 132, + "line": 133, "column": 20 }, "end": { - "line": 132, + "line": 133, "column": 28 } } @@ -26018,15 +26756,15 @@ "binop": null, "updateContext": null }, - "start": 4349, - "end": 4350, + "start": 4441, + "end": 4442, "loc": { "start": { - "line": 132, + "line": 133, "column": 28 }, "end": { - "line": 132, + "line": 133, "column": 29 } } @@ -26044,15 +26782,15 @@ "binop": null }, "value": "undefined", - "start": 4351, - "end": 4360, + "start": 4443, + "end": 4452, "loc": { "start": { - "line": 132, + "line": 133, "column": 30 }, "end": { - "line": 132, + "line": 133, "column": 39 } } @@ -26070,15 +26808,15 @@ "binop": null, "updateContext": null }, - "start": 4360, - "end": 4361, + "start": 4452, + "end": 4453, "loc": { "start": { - "line": 132, + "line": 133, "column": 39 }, "end": { - "line": 132, + "line": 133, "column": 40 } } @@ -26096,15 +26834,15 @@ "binop": null }, "value": "recognizerContext", - "start": 4362, - "end": 4379, + "start": 4454, + "end": 4471, "loc": { "start": { - "line": 132, + "line": 133, "column": 41 }, "end": { - "line": 132, + "line": 133, "column": 58 } } @@ -26121,15 +26859,15 @@ "postfix": false, "binop": null }, - "start": 4379, - "end": 4380, + "start": 4471, + "end": 4472, "loc": { "start": { - "line": 132, + "line": 133, "column": 58 }, "end": { - "line": 132, + "line": 133, "column": 59 } } @@ -26147,15 +26885,15 @@ "binop": null, "updateContext": null }, - "start": 4380, - "end": 4381, + "start": 4472, + "end": 4473, "loc": { "start": { - "line": 132, + "line": 133, "column": 59 }, "end": { - "line": 132, + "line": 133, "column": 60 } } @@ -26172,15 +26910,15 @@ "postfix": false, "binop": null }, - "start": 4382, - "end": 4383, + "start": 4474, + "end": 4475, "loc": { "start": { - "line": 133, + "line": 134, "column": 0 }, "end": { - "line": 133, + "line": 134, "column": 1 } } @@ -26188,15 +26926,15 @@ { "type": "CommentBlock", "value": "*\n * Post request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} data Data to be sent\n * @param {String} apiVersion api version\n * @param {String} mimeType MimeType to be used\n * @return {Promise}\n ", - "start": 4385, - "end": 4653, + "start": 4477, + "end": 4745, "loc": { "start": { - "line": 135, + "line": 136, "column": 0 }, "end": { - "line": 143, + "line": 144, "column": 3 } } @@ -26216,15 +26954,15 @@ "updateContext": null }, "value": "export", - "start": 4654, - "end": 4660, + "start": 4746, + "end": 4752, "loc": { "start": { - "line": 144, + "line": 145, "column": 0 }, "end": { - "line": 144, + "line": 145, "column": 6 } } @@ -26243,15 +26981,15 @@ "binop": null }, "value": "function", - "start": 4661, - "end": 4669, + "start": 4753, + "end": 4761, "loc": { "start": { - "line": 144, + "line": 145, "column": 7 }, "end": { - "line": 144, + "line": 145, "column": 15 } } @@ -26269,15 +27007,15 @@ "binop": null }, "value": "post", - "start": 4670, - "end": 4674, + "start": 4762, + "end": 4766, "loc": { "start": { - "line": 144, + "line": 145, "column": 16 }, "end": { - "line": 144, + "line": 145, "column": 20 } } @@ -26294,15 +27032,15 @@ "postfix": false, "binop": null }, - "start": 4674, - "end": 4675, + "start": 4766, + "end": 4767, "loc": { "start": { - "line": 144, + "line": 145, "column": 20 }, "end": { - "line": 144, + "line": 145, "column": 21 } } @@ -26320,15 +27058,15 @@ "binop": null }, "value": "recognizerContext", - "start": 4675, - "end": 4692, + "start": 4767, + "end": 4784, "loc": { "start": { - "line": 144, + "line": 145, "column": 21 }, "end": { - "line": 144, + "line": 145, "column": 38 } } @@ -26346,15 +27084,15 @@ "binop": null, "updateContext": null }, - "start": 4692, - "end": 4693, + "start": 4784, + "end": 4785, "loc": { "start": { - "line": 144, + "line": 145, "column": 38 }, "end": { - "line": 144, + "line": 145, "column": 39 } } @@ -26372,15 +27110,15 @@ "binop": null }, "value": "url", - "start": 4694, - "end": 4697, + "start": 4786, + "end": 4789, "loc": { "start": { - "line": 144, + "line": 145, "column": 40 }, "end": { - "line": 144, + "line": 145, "column": 43 } } @@ -26398,15 +27136,15 @@ "binop": null, "updateContext": null }, - "start": 4697, - "end": 4698, + "start": 4789, + "end": 4790, "loc": { "start": { - "line": 144, + "line": 145, "column": 43 }, "end": { - "line": 144, + "line": 145, "column": 44 } } @@ -26424,15 +27162,15 @@ "binop": null }, "value": "data", - "start": 4699, - "end": 4703, + "start": 4791, + "end": 4795, "loc": { "start": { - "line": 144, + "line": 145, "column": 45 }, "end": { - "line": 144, + "line": 145, "column": 49 } } @@ -26450,15 +27188,15 @@ "binop": null, "updateContext": null }, - "start": 4703, - "end": 4704, + "start": 4795, + "end": 4796, "loc": { "start": { - "line": 144, + "line": 145, "column": 49 }, "end": { - "line": 144, + "line": 145, "column": 50 } } @@ -26476,15 +27214,15 @@ "binop": null }, "value": "apiVersion", - "start": 4705, - "end": 4715, + "start": 4797, + "end": 4807, "loc": { "start": { - "line": 144, + "line": 145, "column": 51 }, "end": { - "line": 144, + "line": 145, "column": 61 } } @@ -26502,15 +27240,15 @@ "binop": null, "updateContext": null }, - "start": 4715, - "end": 4716, + "start": 4807, + "end": 4808, "loc": { "start": { - "line": 144, + "line": 145, "column": 61 }, "end": { - "line": 144, + "line": 145, "column": 62 } } @@ -26528,15 +27266,15 @@ "binop": null }, "value": "mimeType", - "start": 4717, - "end": 4725, + "start": 4809, + "end": 4817, "loc": { "start": { - "line": 144, + "line": 145, "column": 63 }, "end": { - "line": 144, + "line": 145, "column": 71 } } @@ -26553,15 +27291,15 @@ "postfix": false, "binop": null }, - "start": 4725, - "end": 4726, + "start": 4817, + "end": 4818, "loc": { "start": { - "line": 144, + "line": 145, "column": 71 }, "end": { - "line": 144, + "line": 145, "column": 72 } } @@ -26578,15 +27316,15 @@ "postfix": false, "binop": null }, - "start": 4727, - "end": 4728, + "start": 4819, + "end": 4820, "loc": { "start": { - "line": 144, + "line": 145, "column": 73 }, "end": { - "line": 144, + "line": 145, "column": 74 } } @@ -26606,15 +27344,15 @@ "updateContext": null }, "value": "return", - "start": 4731, - "end": 4737, + "start": 4823, + "end": 4829, "loc": { "start": { - "line": 145, + "line": 146, "column": 2 }, "end": { - "line": 145, + "line": 146, "column": 8 } } @@ -26632,15 +27370,15 @@ "binop": null }, "value": "xhr", - "start": 4738, - "end": 4741, + "start": 4830, + "end": 4833, "loc": { "start": { - "line": 145, + "line": 146, "column": 9 }, "end": { - "line": 145, + "line": 146, "column": 12 } } @@ -26657,15 +27395,15 @@ "postfix": false, "binop": null }, - "start": 4741, - "end": 4742, + "start": 4833, + "end": 4834, "loc": { "start": { - "line": 145, + "line": 146, "column": 12 }, "end": { - "line": 145, + "line": 146, "column": 13 } } @@ -26684,15 +27422,15 @@ "updateContext": null }, "value": "POST", - "start": 4742, - "end": 4748, + "start": 4834, + "end": 4840, "loc": { "start": { - "line": 145, + "line": 146, "column": 13 }, "end": { - "line": 145, + "line": 146, "column": 19 } } @@ -26710,15 +27448,15 @@ "binop": null, "updateContext": null }, - "start": 4748, - "end": 4749, + "start": 4840, + "end": 4841, "loc": { "start": { - "line": 145, + "line": 146, "column": 19 }, "end": { - "line": 145, + "line": 146, "column": 20 } } @@ -26736,15 +27474,15 @@ "binop": null }, "value": "url", - "start": 4750, - "end": 4753, + "start": 4842, + "end": 4845, "loc": { "start": { - "line": 145, + "line": 146, "column": 21 }, "end": { - "line": 145, + "line": 146, "column": 24 } } @@ -26762,15 +27500,15 @@ "binop": null, "updateContext": null }, - "start": 4753, - "end": 4754, + "start": 4845, + "end": 4846, "loc": { "start": { - "line": 145, + "line": 146, "column": 24 }, "end": { - "line": 145, + "line": 146, "column": 25 } } @@ -26788,15 +27526,15 @@ "binop": null }, "value": "data", - "start": 4755, - "end": 4759, + "start": 4847, + "end": 4851, "loc": { "start": { - "line": 145, + "line": 146, "column": 26 }, "end": { - "line": 145, + "line": 146, "column": 30 } } @@ -26814,15 +27552,15 @@ "binop": null, "updateContext": null }, - "start": 4759, - "end": 4760, + "start": 4851, + "end": 4852, "loc": { "start": { - "line": 145, + "line": 146, "column": 30 }, "end": { - "line": 145, + "line": 146, "column": 31 } } @@ -26840,15 +27578,15 @@ "binop": null }, "value": "recognizerContext", - "start": 4761, - "end": 4778, + "start": 4853, + "end": 4870, "loc": { "start": { - "line": 145, + "line": 146, "column": 32 }, "end": { - "line": 145, + "line": 146, "column": 49 } } @@ -26866,15 +27604,15 @@ "binop": null, "updateContext": null }, - "start": 4778, - "end": 4779, + "start": 4870, + "end": 4871, "loc": { "start": { - "line": 145, + "line": 146, "column": 49 }, "end": { - "line": 145, + "line": 146, "column": 50 } } @@ -26892,15 +27630,15 @@ "binop": null }, "value": "apiVersion", - "start": 4780, - "end": 4790, + "start": 4872, + "end": 4882, "loc": { "start": { - "line": 145, + "line": 146, "column": 51 }, "end": { - "line": 145, + "line": 146, "column": 61 } } @@ -26918,15 +27656,15 @@ "binop": null, "updateContext": null }, - "start": 4790, - "end": 4791, + "start": 4882, + "end": 4883, "loc": { "start": { - "line": 145, + "line": 146, "column": 61 }, "end": { - "line": 145, + "line": 146, "column": 62 } } @@ -26944,15 +27682,15 @@ "binop": null }, "value": "mimeType", - "start": 4792, - "end": 4800, + "start": 4884, + "end": 4892, "loc": { "start": { - "line": 145, + "line": 146, "column": 63 }, "end": { - "line": 145, + "line": 146, "column": 71 } } @@ -26969,15 +27707,15 @@ "postfix": false, "binop": null }, - "start": 4800, - "end": 4801, + "start": 4892, + "end": 4893, "loc": { "start": { - "line": 145, + "line": 146, "column": 71 }, "end": { - "line": 145, + "line": 146, "column": 72 } } @@ -26995,15 +27733,15 @@ "binop": null, "updateContext": null }, - "start": 4801, - "end": 4802, + "start": 4893, + "end": 4894, "loc": { "start": { - "line": 145, + "line": 146, "column": 72 }, "end": { - "line": 145, + "line": 146, "column": 73 } } @@ -27020,15 +27758,15 @@ "postfix": false, "binop": null }, - "start": 4803, - "end": 4804, + "start": 4895, + "end": 4896, "loc": { "start": { - "line": 146, + "line": 147, "column": 0 }, "end": { - "line": 146, + "line": 147, "column": 1 } } @@ -27046,15 +27784,15 @@ "binop": null, "updateContext": null }, - "start": 4805, - "end": 4805, + "start": 4897, + "end": 4897, "loc": { "start": { - "line": 147, + "line": 148, "column": 0 }, "end": { - "line": 147, + "line": 148, "column": 0 } } diff --git a/docs/ast/source/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js.json b/docs/ast/source/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js.json index 92588f99..523f05bb 100644 --- a/docs/ast/source/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js.json +++ b/docs/ast/source/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js.json @@ -1,7 +1,7 @@ { "type": "File", "start": 0, - "end": 21235, + "end": 21244, "loc": { "start": { "line": 1, @@ -15,7 +15,7 @@ "program": { "type": "Program", "start": 0, - "end": 21235, + "end": 21244, "loc": { "start": { "line": 1, @@ -33487,7 +33487,7 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Element} element Current element\n * @param {RecognizerCallback} callback\n ", + "value": "*\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n * @param {Element} element Current element\n ", "start": 17787, "end": 18002, "loc": { @@ -33524,7 +33524,7 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Element} element Current element\n * @param {RecognizerCallback} callback\n ", + "value": "*\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n * @param {Element} element Current element\n ", "start": 17787, "end": 18002, "loc": { @@ -33543,7 +33543,7 @@ { "type": "ExportNamedDeclaration", "start": 18003, - "end": 18556, + "end": 18565, "loc": { "start": { "line": 509, @@ -33559,7 +33559,7 @@ "declaration": { "type": "FunctionDeclaration", "start": 18010, - "end": 18556, + "end": 18565, "loc": { "start": { "line": 509, @@ -33629,7 +33629,7 @@ { "type": "Identifier", "start": 18052, - "end": 18059, + "end": 18060, "loc": { "start": { "line": 509, @@ -33637,34 +33637,34 @@ }, "end": { "line": 509, - "column": 56 + "column": 57 }, - "identifierName": "element" + "identifierName": "callback" }, - "name": "element" + "name": "callback" }, { "type": "Identifier", - "start": 18061, + "start": 18062, "end": 18069, "loc": { "start": { "line": 509, - "column": 58 + "column": 59 }, "end": { "line": 509, "column": 66 }, - "identifierName": "callback" + "identifierName": "element" }, - "name": "callback" + "name": "element" } ], "body": { "type": "BlockStatement", "start": 18071, - "end": 18556, + "end": 18565, "loc": { "start": { "line": 509, @@ -34077,7 +34077,7 @@ { "type": "ExpressionStatement", "start": 18252, - "end": 18554, + "end": 18563, "loc": { "start": { "line": 514, @@ -34085,13 +34085,13 @@ }, "end": { "line": 515, - "column": 95 + "column": 104 } }, "expression": { "type": "CallExpression", "start": 18252, - "end": 18553, + "end": 18562, "loc": { "start": { "line": 514, @@ -34099,7 +34099,7 @@ }, "end": { "line": 515, - "column": 94 + "column": 103 } }, "callee": { @@ -34555,7 +34555,7 @@ { "type": "ArrowFunctionExpression", "start": 18470, - "end": 18552, + "end": 18561, "loc": { "start": { "line": 515, @@ -34563,7 +34563,7 @@ }, "end": { "line": 515, - "column": 93 + "column": 102 } }, "id": null, @@ -34592,7 +34592,7 @@ "body": { "type": "CallExpression", "start": 18483, - "end": 18552, + "end": 18561, "loc": { "start": { "line": 515, @@ -34600,7 +34600,7 @@ }, "end": { "line": 515, - "column": 93 + "column": 102 } }, "callee": { @@ -34721,6 +34721,23 @@ "identifierName": "callback" }, "name": "callback" + }, + { + "type": "Identifier", + "start": 18553, + "end": 18560, + "loc": { + "start": { + "line": 515, + "column": 94 + }, + "end": { + "line": 515, + "column": 101 + }, + "identifierName": "element" + }, + "name": "element" } ] } @@ -34735,7 +34752,7 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Element} element Current element\n * @param {RecognizerCallback} callback\n ", + "value": "*\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n * @param {Element} element Current element\n ", "start": 17787, "end": 18002, "loc": { @@ -34754,8 +34771,8 @@ { "type": "CommentBlock", "value": "*\n * Zoom action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Number} value=10 Zoom value\n * @param {RecognizerCallback} callback\n ", - "start": 18558, - "end": 18773, + "start": 18567, + "end": 18782, "loc": { "start": { "line": 518, @@ -34772,7 +34789,7 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Element} element Current element\n * @param {RecognizerCallback} callback\n ", + "value": "*\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n * @param {Element} element Current element\n ", "start": 17787, "end": 18002, "loc": { @@ -34791,8 +34808,8 @@ { "type": "CommentBlock", "value": "*\n * Zoom action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Number} value=10 Zoom value\n * @param {RecognizerCallback} callback\n ", - "start": 18558, - "end": 18773, + "start": 18567, + "end": 18782, "loc": { "start": { "line": 518, @@ -34808,8 +34825,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 18774, - "end": 19191, + "start": 18783, + "end": 19200, "loc": { "start": { "line": 525, @@ -34824,8 +34841,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 18781, - "end": 19191, + "start": 18790, + "end": 19200, "loc": { "start": { "line": 525, @@ -34838,8 +34855,8 @@ }, "id": { "type": "Identifier", - "start": 18790, - "end": 18794, + "start": 18799, + "end": 18803, "loc": { "start": { "line": 525, @@ -34860,8 +34877,8 @@ "params": [ { "type": "Identifier", - "start": 18795, - "end": 18812, + "start": 18804, + "end": 18821, "loc": { "start": { "line": 525, @@ -34877,8 +34894,8 @@ }, { "type": "Identifier", - "start": 18814, - "end": 18819, + "start": 18823, + "end": 18828, "loc": { "start": { "line": 525, @@ -34894,8 +34911,8 @@ }, { "type": "AssignmentPattern", - "start": 18821, - "end": 18831, + "start": 18830, + "end": 18840, "loc": { "start": { "line": 525, @@ -34908,8 +34925,8 @@ }, "left": { "type": "Identifier", - "start": 18821, - "end": 18826, + "start": 18830, + "end": 18835, "loc": { "start": { "line": 525, @@ -34925,8 +34942,8 @@ }, "right": { "type": "NumericLiteral", - "start": 18829, - "end": 18831, + "start": 18838, + "end": 18840, "loc": { "start": { "line": 525, @@ -34946,8 +34963,8 @@ }, { "type": "Identifier", - "start": 18833, - "end": 18841, + "start": 18842, + "end": 18850, "loc": { "start": { "line": 525, @@ -34964,8 +34981,8 @@ ], "body": { "type": "BlockStatement", - "start": 18843, - "end": 19191, + "start": 18852, + "end": 19200, "loc": { "start": { "line": 525, @@ -34979,8 +34996,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 18847, - "end": 19021, + "start": 18856, + "end": 19030, "loc": { "start": { "line": 526, @@ -34994,8 +35011,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 18853, - "end": 19020, + "start": 18862, + "end": 19029, "loc": { "start": { "line": 526, @@ -35008,8 +35025,8 @@ }, "id": { "type": "Identifier", - "start": 18853, - "end": 18873, + "start": 18862, + "end": 18882, "loc": { "start": { "line": 526, @@ -35025,8 +35042,8 @@ }, "init": { "type": "CallExpression", - "start": 18876, - "end": 19020, + "start": 18885, + "end": 19029, "loc": { "start": { "line": 526, @@ -35039,8 +35056,8 @@ }, "callee": { "type": "MemberExpression", - "start": 18876, - "end": 18915, + "start": 18885, + "end": 18924, "loc": { "start": { "line": 526, @@ -35053,8 +35070,8 @@ }, "object": { "type": "Identifier", - "start": 18876, - "end": 18893, + "start": 18885, + "end": 18902, "loc": { "start": { "line": 526, @@ -35070,8 +35087,8 @@ }, "property": { "type": "Identifier", - "start": 18894, - "end": 18915, + "start": 18903, + "end": 18924, "loc": { "start": { "line": 526, @@ -35090,8 +35107,8 @@ "arguments": [ { "type": "Identifier", - "start": 18916, - "end": 18933, + "start": 18925, + "end": 18942, "loc": { "start": { "line": 526, @@ -35107,8 +35124,8 @@ }, { "type": "ObjectExpression", - "start": 18935, - "end": 19019, + "start": 18944, + "end": 19028, "loc": { "start": { "line": 526, @@ -35122,8 +35139,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 18941, - "end": 18946, + "start": 18950, + "end": 18955, "loc": { "start": { "line": 527, @@ -35139,8 +35156,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 18941, - "end": 18946, + "start": 18950, + "end": 18955, "loc": { "start": { "line": 527, @@ -35156,8 +35173,8 @@ }, "value": { "type": "Identifier", - "start": 18941, - "end": 18946, + "start": 18950, + "end": 18955, "loc": { "start": { "line": 527, @@ -35177,8 +35194,8 @@ }, { "type": "ObjectProperty", - "start": 18952, - "end": 19015, + "start": 18961, + "end": 19024, "loc": { "start": { "line": 528, @@ -35194,8 +35211,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 18952, - "end": 18960, + "start": 18961, + "end": 18969, "loc": { "start": { "line": 528, @@ -35211,8 +35228,8 @@ }, "value": { "type": "ArrowFunctionExpression", - "start": 18962, - "end": 19015, + "start": 18971, + "end": 19024, "loc": { "start": { "line": 528, @@ -35230,8 +35247,8 @@ "params": [ { "type": "Identifier", - "start": 18963, - "end": 18966, + "start": 18972, + "end": 18975, "loc": { "start": { "line": 528, @@ -35247,8 +35264,8 @@ }, { "type": "Identifier", - "start": 18968, - "end": 18971, + "start": 18977, + "end": 18980, "loc": { "start": { "line": 528, @@ -35265,8 +35282,8 @@ ], "body": { "type": "CallExpression", - "start": 18976, - "end": 19015, + "start": 18985, + "end": 19024, "loc": { "start": { "line": 528, @@ -35279,8 +35296,8 @@ }, "callee": { "type": "Identifier", - "start": 18976, - "end": 18988, + "start": 18985, + "end": 18997, "loc": { "start": { "line": 528, @@ -35297,8 +35314,8 @@ "arguments": [ { "type": "Identifier", - "start": 18989, - "end": 18994, + "start": 18998, + "end": 19003, "loc": { "start": { "line": 528, @@ -35314,8 +35331,8 @@ }, { "type": "Identifier", - "start": 18996, - "end": 18999, + "start": 19005, + "end": 19008, "loc": { "start": { "line": 528, @@ -35331,8 +35348,8 @@ }, { "type": "Identifier", - "start": 19001, - "end": 19004, + "start": 19010, + "end": 19013, "loc": { "start": { "line": 528, @@ -35348,8 +35365,8 @@ }, { "type": "Identifier", - "start": 19006, - "end": 19014, + "start": 19015, + "end": 19023, "loc": { "start": { "line": 528, @@ -35377,8 +35394,8 @@ }, { "type": "ExpressionStatement", - "start": 19024, - "end": 19189, + "start": 19033, + "end": 19198, "loc": { "start": { "line": 530, @@ -35391,8 +35408,8 @@ }, "expression": { "type": "CallExpression", - "start": 19024, - "end": 19188, + "start": 19033, + "end": 19197, "loc": { "start": { "line": 530, @@ -35405,8 +35422,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19024, - "end": 19106, + "start": 19033, + "end": 19115, "loc": { "start": { "line": 530, @@ -35419,8 +35436,8 @@ }, "object": { "type": "CallExpression", - "start": 19024, - "end": 19095, + "start": 19033, + "end": 19104, "loc": { "start": { "line": 530, @@ -35433,8 +35450,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19024, - "end": 19055, + "start": 19033, + "end": 19064, "loc": { "start": { "line": 530, @@ -35447,8 +35464,8 @@ }, "object": { "type": "Identifier", - "start": 19024, - "end": 19043, + "start": 19033, + "end": 19052, "loc": { "start": { "line": 530, @@ -35464,8 +35481,8 @@ }, "property": { "type": "Identifier", - "start": 19044, - "end": 19055, + "start": 19053, + "end": 19064, "loc": { "start": { "line": 530, @@ -35484,8 +35501,8 @@ "arguments": [ { "type": "Identifier", - "start": 19056, - "end": 19076, + "start": 19065, + "end": 19085, "loc": { "start": { "line": 530, @@ -35501,8 +35518,8 @@ }, { "type": "Identifier", - "start": 19078, - "end": 19087, + "start": 19087, + "end": 19096, "loc": { "start": { "line": 530, @@ -35518,8 +35535,8 @@ }, { "type": "Identifier", - "start": 19089, - "end": 19094, + "start": 19098, + "end": 19103, "loc": { "start": { "line": 530, @@ -35537,8 +35554,8 @@ }, "property": { "type": "Identifier", - "start": 19101, - "end": 19106, + "start": 19110, + "end": 19115, "loc": { "start": { "line": 531, @@ -35557,8 +35574,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 19107, - "end": 19187, + "start": 19116, + "end": 19196, "loc": { "start": { "line": 531, @@ -35576,8 +35593,8 @@ "params": [ { "type": "Identifier", - "start": 19107, - "end": 19116, + "start": 19116, + "end": 19125, "loc": { "start": { "line": 531, @@ -35594,8 +35611,8 @@ ], "body": { "type": "CallExpression", - "start": 19120, - "end": 19187, + "start": 19129, + "end": 19196, "loc": { "start": { "line": 531, @@ -35608,8 +35625,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19120, - "end": 19145, + "start": 19129, + "end": 19154, "loc": { "start": { "line": 531, @@ -35622,8 +35639,8 @@ }, "object": { "type": "Identifier", - "start": 19120, - "end": 19139, + "start": 19129, + "end": 19148, "loc": { "start": { "line": 531, @@ -35639,8 +35656,8 @@ }, "property": { "type": "Identifier", - "start": 19140, - "end": 19145, + "start": 19149, + "end": 19154, "loc": { "start": { "line": 531, @@ -35659,8 +35676,8 @@ "arguments": [ { "type": "Identifier", - "start": 19146, - "end": 19150, + "start": 19155, + "end": 19159, "loc": { "start": { "line": 531, @@ -35676,8 +35693,8 @@ }, { "type": "Identifier", - "start": 19152, - "end": 19169, + "start": 19161, + "end": 19178, "loc": { "start": { "line": 531, @@ -35693,8 +35710,8 @@ }, { "type": "Identifier", - "start": 19171, - "end": 19176, + "start": 19180, + "end": 19185, "loc": { "start": { "line": 531, @@ -35710,8 +35727,8 @@ }, { "type": "Identifier", - "start": 19178, - "end": 19186, + "start": 19187, + "end": 19195, "loc": { "start": { "line": 531, @@ -35739,8 +35756,8 @@ { "type": "CommentBlock", "value": "*\n * Zoom action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Number} value=10 Zoom value\n * @param {RecognizerCallback} callback\n ", - "start": 18558, - "end": 18773, + "start": 18567, + "end": 18782, "loc": { "start": { "line": 518, @@ -35757,8 +35774,8 @@ { "type": "CommentBlock", "value": "*\n * SetPenStyle action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {PenStyle} penStyle Current penStyle\n * @param {RecognizerCallback} callback\n ", - "start": 19193, - "end": 19423, + "start": 19202, + "end": 19432, "loc": { "start": { "line": 534, @@ -35776,8 +35793,8 @@ { "type": "CommentBlock", "value": "*\n * Zoom action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Number} value=10 Zoom value\n * @param {RecognizerCallback} callback\n ", - "start": 18558, - "end": 18773, + "start": 18567, + "end": 18782, "loc": { "start": { "line": 518, @@ -35794,8 +35811,8 @@ { "type": "CommentBlock", "value": "*\n * SetPenStyle action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {PenStyle} penStyle Current penStyle\n * @param {RecognizerCallback} callback\n ", - "start": 19193, - "end": 19423, + "start": 19202, + "end": 19432, "loc": { "start": { "line": 534, @@ -35811,8 +35828,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 19424, - "end": 19863, + "start": 19433, + "end": 19872, "loc": { "start": { "line": 541, @@ -35827,8 +35844,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 19431, - "end": 19863, + "start": 19440, + "end": 19872, "loc": { "start": { "line": 541, @@ -35841,8 +35858,8 @@ }, "id": { "type": "Identifier", - "start": 19440, - "end": 19451, + "start": 19449, + "end": 19460, "loc": { "start": { "line": 541, @@ -35863,8 +35880,8 @@ "params": [ { "type": "Identifier", - "start": 19452, - "end": 19469, + "start": 19461, + "end": 19478, "loc": { "start": { "line": 541, @@ -35880,8 +35897,8 @@ }, { "type": "Identifier", - "start": 19471, - "end": 19476, + "start": 19480, + "end": 19485, "loc": { "start": { "line": 541, @@ -35897,8 +35914,8 @@ }, { "type": "Identifier", - "start": 19478, - "end": 19486, + "start": 19487, + "end": 19495, "loc": { "start": { "line": 541, @@ -35914,8 +35931,8 @@ }, { "type": "Identifier", - "start": 19488, - "end": 19496, + "start": 19497, + "end": 19505, "loc": { "start": { "line": 541, @@ -35932,8 +35949,8 @@ ], "body": { "type": "BlockStatement", - "start": 19498, - "end": 19863, + "start": 19507, + "end": 19872, "loc": { "start": { "line": 541, @@ -35947,8 +35964,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 19502, - "end": 19676, + "start": 19511, + "end": 19685, "loc": { "start": { "line": 542, @@ -35962,8 +35979,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 19508, - "end": 19675, + "start": 19517, + "end": 19684, "loc": { "start": { "line": 542, @@ -35976,8 +35993,8 @@ }, "id": { "type": "Identifier", - "start": 19508, - "end": 19528, + "start": 19517, + "end": 19537, "loc": { "start": { "line": 542, @@ -35993,8 +36010,8 @@ }, "init": { "type": "CallExpression", - "start": 19531, - "end": 19675, + "start": 19540, + "end": 19684, "loc": { "start": { "line": 542, @@ -36007,8 +36024,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19531, - "end": 19570, + "start": 19540, + "end": 19579, "loc": { "start": { "line": 542, @@ -36021,8 +36038,8 @@ }, "object": { "type": "Identifier", - "start": 19531, - "end": 19548, + "start": 19540, + "end": 19557, "loc": { "start": { "line": 542, @@ -36038,8 +36055,8 @@ }, "property": { "type": "Identifier", - "start": 19549, - "end": 19570, + "start": 19558, + "end": 19579, "loc": { "start": { "line": 542, @@ -36058,8 +36075,8 @@ "arguments": [ { "type": "Identifier", - "start": 19571, - "end": 19588, + "start": 19580, + "end": 19597, "loc": { "start": { "line": 542, @@ -36075,8 +36092,8 @@ }, { "type": "ObjectExpression", - "start": 19590, - "end": 19674, + "start": 19599, + "end": 19683, "loc": { "start": { "line": 542, @@ -36090,8 +36107,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 19596, - "end": 19601, + "start": 19605, + "end": 19610, "loc": { "start": { "line": 543, @@ -36107,8 +36124,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 19596, - "end": 19601, + "start": 19605, + "end": 19610, "loc": { "start": { "line": 543, @@ -36124,8 +36141,8 @@ }, "value": { "type": "Identifier", - "start": 19596, - "end": 19601, + "start": 19605, + "end": 19610, "loc": { "start": { "line": 543, @@ -36145,8 +36162,8 @@ }, { "type": "ObjectProperty", - "start": 19607, - "end": 19670, + "start": 19616, + "end": 19679, "loc": { "start": { "line": 544, @@ -36162,8 +36179,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 19607, - "end": 19615, + "start": 19616, + "end": 19624, "loc": { "start": { "line": 544, @@ -36179,8 +36196,8 @@ }, "value": { "type": "ArrowFunctionExpression", - "start": 19617, - "end": 19670, + "start": 19626, + "end": 19679, "loc": { "start": { "line": 544, @@ -36198,8 +36215,8 @@ "params": [ { "type": "Identifier", - "start": 19618, - "end": 19621, + "start": 19627, + "end": 19630, "loc": { "start": { "line": 544, @@ -36215,8 +36232,8 @@ }, { "type": "Identifier", - "start": 19623, - "end": 19626, + "start": 19632, + "end": 19635, "loc": { "start": { "line": 544, @@ -36233,8 +36250,8 @@ ], "body": { "type": "CallExpression", - "start": 19631, - "end": 19670, + "start": 19640, + "end": 19679, "loc": { "start": { "line": 544, @@ -36247,8 +36264,8 @@ }, "callee": { "type": "Identifier", - "start": 19631, - "end": 19643, + "start": 19640, + "end": 19652, "loc": { "start": { "line": 544, @@ -36265,8 +36282,8 @@ "arguments": [ { "type": "Identifier", - "start": 19644, - "end": 19649, + "start": 19653, + "end": 19658, "loc": { "start": { "line": 544, @@ -36282,8 +36299,8 @@ }, { "type": "Identifier", - "start": 19651, - "end": 19654, + "start": 19660, + "end": 19663, "loc": { "start": { "line": 544, @@ -36299,8 +36316,8 @@ }, { "type": "Identifier", - "start": 19656, - "end": 19659, + "start": 19665, + "end": 19668, "loc": { "start": { "line": 544, @@ -36316,8 +36333,8 @@ }, { "type": "Identifier", - "start": 19661, - "end": 19669, + "start": 19670, + "end": 19678, "loc": { "start": { "line": 544, @@ -36345,8 +36362,8 @@ }, { "type": "ExpressionStatement", - "start": 19679, - "end": 19861, + "start": 19688, + "end": 19870, "loc": { "start": { "line": 546, @@ -36359,8 +36376,8 @@ }, "expression": { "type": "CallExpression", - "start": 19679, - "end": 19860, + "start": 19688, + "end": 19869, "loc": { "start": { "line": 546, @@ -36373,8 +36390,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19679, - "end": 19771, + "start": 19688, + "end": 19780, "loc": { "start": { "line": 546, @@ -36387,8 +36404,8 @@ }, "object": { "type": "CallExpression", - "start": 19679, - "end": 19760, + "start": 19688, + "end": 19769, "loc": { "start": { "line": 546, @@ -36401,8 +36418,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19679, - "end": 19710, + "start": 19688, + "end": 19719, "loc": { "start": { "line": 546, @@ -36415,8 +36432,8 @@ }, "object": { "type": "Identifier", - "start": 19679, - "end": 19698, + "start": 19688, + "end": 19707, "loc": { "start": { "line": 546, @@ -36432,8 +36449,8 @@ }, "property": { "type": "Identifier", - "start": 19699, - "end": 19710, + "start": 19708, + "end": 19719, "loc": { "start": { "line": 546, @@ -36452,8 +36469,8 @@ "arguments": [ { "type": "Identifier", - "start": 19711, - "end": 19731, + "start": 19720, + "end": 19740, "loc": { "start": { "line": 546, @@ -36469,8 +36486,8 @@ }, { "type": "Identifier", - "start": 19733, - "end": 19749, + "start": 19742, + "end": 19758, "loc": { "start": { "line": 546, @@ -36486,8 +36503,8 @@ }, { "type": "Identifier", - "start": 19751, - "end": 19759, + "start": 19760, + "end": 19768, "loc": { "start": { "line": 546, @@ -36505,8 +36522,8 @@ }, "property": { "type": "Identifier", - "start": 19766, - "end": 19771, + "start": 19775, + "end": 19780, "loc": { "start": { "line": 547, @@ -36525,8 +36542,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 19772, - "end": 19859, + "start": 19781, + "end": 19868, "loc": { "start": { "line": 547, @@ -36544,8 +36561,8 @@ "params": [ { "type": "Identifier", - "start": 19772, - "end": 19781, + "start": 19781, + "end": 19790, "loc": { "start": { "line": 547, @@ -36562,8 +36579,8 @@ ], "body": { "type": "CallExpression", - "start": 19785, - "end": 19859, + "start": 19794, + "end": 19868, "loc": { "start": { "line": 547, @@ -36576,8 +36593,8 @@ }, "callee": { "type": "MemberExpression", - "start": 19785, - "end": 19810, + "start": 19794, + "end": 19819, "loc": { "start": { "line": 547, @@ -36590,8 +36607,8 @@ }, "object": { "type": "Identifier", - "start": 19785, - "end": 19804, + "start": 19794, + "end": 19813, "loc": { "start": { "line": 547, @@ -36607,8 +36624,8 @@ }, "property": { "type": "Identifier", - "start": 19805, - "end": 19810, + "start": 19814, + "end": 19819, "loc": { "start": { "line": 547, @@ -36627,8 +36644,8 @@ "arguments": [ { "type": "Identifier", - "start": 19811, - "end": 19822, + "start": 19820, + "end": 19831, "loc": { "start": { "line": 547, @@ -36644,8 +36661,8 @@ }, { "type": "Identifier", - "start": 19824, - "end": 19841, + "start": 19833, + "end": 19850, "loc": { "start": { "line": 547, @@ -36661,8 +36678,8 @@ }, { "type": "Identifier", - "start": 19843, - "end": 19848, + "start": 19852, + "end": 19857, "loc": { "start": { "line": 547, @@ -36678,8 +36695,8 @@ }, { "type": "Identifier", - "start": 19850, - "end": 19858, + "start": 19859, + "end": 19867, "loc": { "start": { "line": 547, @@ -36707,8 +36724,8 @@ { "type": "CommentBlock", "value": "*\n * SetPenStyle action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {PenStyle} penStyle Current penStyle\n * @param {RecognizerCallback} callback\n ", - "start": 19193, - "end": 19423, + "start": 19202, + "end": 19432, "loc": { "start": { "line": 534, @@ -36725,8 +36742,8 @@ { "type": "CommentBlock", "value": "*\n * setPenStyleClasses action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {String} penStyleClasses Current penStyleClasses\n * @param {RecognizerCallback} callback\n ", - "start": 19865, - "end": 20114, + "start": 19874, + "end": 20123, "loc": { "start": { "line": 550, @@ -36744,8 +36761,8 @@ { "type": "CommentBlock", "value": "*\n * SetPenStyle action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {PenStyle} penStyle Current penStyle\n * @param {RecognizerCallback} callback\n ", - "start": 19193, - "end": 19423, + "start": 19202, + "end": 19432, "loc": { "start": { "line": 534, @@ -36762,8 +36779,8 @@ { "type": "CommentBlock", "value": "*\n * setPenStyleClasses action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {String} penStyleClasses Current penStyleClasses\n * @param {RecognizerCallback} callback\n ", - "start": 19865, - "end": 20114, + "start": 19874, + "end": 20123, "loc": { "start": { "line": 550, @@ -36779,8 +36796,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 20115, - "end": 20589, + "start": 20124, + "end": 20598, "loc": { "start": { "line": 557, @@ -36795,8 +36812,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 20122, - "end": 20589, + "start": 20131, + "end": 20598, "loc": { "start": { "line": 557, @@ -36809,8 +36826,8 @@ }, "id": { "type": "Identifier", - "start": 20131, - "end": 20149, + "start": 20140, + "end": 20158, "loc": { "start": { "line": 557, @@ -36831,8 +36848,8 @@ "params": [ { "type": "Identifier", - "start": 20150, - "end": 20167, + "start": 20159, + "end": 20176, "loc": { "start": { "line": 557, @@ -36848,8 +36865,8 @@ }, { "type": "Identifier", - "start": 20169, - "end": 20174, + "start": 20178, + "end": 20183, "loc": { "start": { "line": 557, @@ -36865,8 +36882,8 @@ }, { "type": "Identifier", - "start": 20176, - "end": 20191, + "start": 20185, + "end": 20200, "loc": { "start": { "line": 557, @@ -36882,8 +36899,8 @@ }, { "type": "Identifier", - "start": 20193, - "end": 20201, + "start": 20202, + "end": 20210, "loc": { "start": { "line": 557, @@ -36900,8 +36917,8 @@ ], "body": { "type": "BlockStatement", - "start": 20203, - "end": 20589, + "start": 20212, + "end": 20598, "loc": { "start": { "line": 557, @@ -36915,8 +36932,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 20207, - "end": 20381, + "start": 20216, + "end": 20390, "loc": { "start": { "line": 558, @@ -36930,8 +36947,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 20213, - "end": 20380, + "start": 20222, + "end": 20389, "loc": { "start": { "line": 558, @@ -36944,8 +36961,8 @@ }, "id": { "type": "Identifier", - "start": 20213, - "end": 20233, + "start": 20222, + "end": 20242, "loc": { "start": { "line": 558, @@ -36961,8 +36978,8 @@ }, "init": { "type": "CallExpression", - "start": 20236, - "end": 20380, + "start": 20245, + "end": 20389, "loc": { "start": { "line": 558, @@ -36975,8 +36992,8 @@ }, "callee": { "type": "MemberExpression", - "start": 20236, - "end": 20275, + "start": 20245, + "end": 20284, "loc": { "start": { "line": 558, @@ -36989,8 +37006,8 @@ }, "object": { "type": "Identifier", - "start": 20236, - "end": 20253, + "start": 20245, + "end": 20262, "loc": { "start": { "line": 558, @@ -37006,8 +37023,8 @@ }, "property": { "type": "Identifier", - "start": 20254, - "end": 20275, + "start": 20263, + "end": 20284, "loc": { "start": { "line": 558, @@ -37026,8 +37043,8 @@ "arguments": [ { "type": "Identifier", - "start": 20276, - "end": 20293, + "start": 20285, + "end": 20302, "loc": { "start": { "line": 558, @@ -37043,8 +37060,8 @@ }, { "type": "ObjectExpression", - "start": 20295, - "end": 20379, + "start": 20304, + "end": 20388, "loc": { "start": { "line": 558, @@ -37058,8 +37075,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 20301, - "end": 20306, + "start": 20310, + "end": 20315, "loc": { "start": { "line": 559, @@ -37075,8 +37092,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 20301, - "end": 20306, + "start": 20310, + "end": 20315, "loc": { "start": { "line": 559, @@ -37092,8 +37109,8 @@ }, "value": { "type": "Identifier", - "start": 20301, - "end": 20306, + "start": 20310, + "end": 20315, "loc": { "start": { "line": 559, @@ -37113,8 +37130,8 @@ }, { "type": "ObjectProperty", - "start": 20312, - "end": 20375, + "start": 20321, + "end": 20384, "loc": { "start": { "line": 560, @@ -37130,8 +37147,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 20312, - "end": 20320, + "start": 20321, + "end": 20329, "loc": { "start": { "line": 560, @@ -37147,8 +37164,8 @@ }, "value": { "type": "ArrowFunctionExpression", - "start": 20322, - "end": 20375, + "start": 20331, + "end": 20384, "loc": { "start": { "line": 560, @@ -37166,8 +37183,8 @@ "params": [ { "type": "Identifier", - "start": 20323, - "end": 20326, + "start": 20332, + "end": 20335, "loc": { "start": { "line": 560, @@ -37183,8 +37200,8 @@ }, { "type": "Identifier", - "start": 20328, - "end": 20331, + "start": 20337, + "end": 20340, "loc": { "start": { "line": 560, @@ -37201,8 +37218,8 @@ ], "body": { "type": "CallExpression", - "start": 20336, - "end": 20375, + "start": 20345, + "end": 20384, "loc": { "start": { "line": 560, @@ -37215,8 +37232,8 @@ }, "callee": { "type": "Identifier", - "start": 20336, - "end": 20348, + "start": 20345, + "end": 20357, "loc": { "start": { "line": 560, @@ -37233,8 +37250,8 @@ "arguments": [ { "type": "Identifier", - "start": 20349, - "end": 20354, + "start": 20358, + "end": 20363, "loc": { "start": { "line": 560, @@ -37250,8 +37267,8 @@ }, { "type": "Identifier", - "start": 20356, - "end": 20359, + "start": 20365, + "end": 20368, "loc": { "start": { "line": 560, @@ -37267,8 +37284,8 @@ }, { "type": "Identifier", - "start": 20361, - "end": 20364, + "start": 20370, + "end": 20373, "loc": { "start": { "line": 560, @@ -37284,8 +37301,8 @@ }, { "type": "Identifier", - "start": 20366, - "end": 20374, + "start": 20375, + "end": 20383, "loc": { "start": { "line": 560, @@ -37313,8 +37330,8 @@ }, { "type": "ExpressionStatement", - "start": 20384, - "end": 20587, + "start": 20393, + "end": 20596, "loc": { "start": { "line": 562, @@ -37327,8 +37344,8 @@ }, "expression": { "type": "CallExpression", - "start": 20384, - "end": 20586, + "start": 20393, + "end": 20595, "loc": { "start": { "line": 562, @@ -37341,8 +37358,8 @@ }, "callee": { "type": "MemberExpression", - "start": 20384, - "end": 20490, + "start": 20393, + "end": 20499, "loc": { "start": { "line": 562, @@ -37355,8 +37372,8 @@ }, "object": { "type": "CallExpression", - "start": 20384, - "end": 20479, + "start": 20393, + "end": 20488, "loc": { "start": { "line": 562, @@ -37369,8 +37386,8 @@ }, "callee": { "type": "MemberExpression", - "start": 20384, - "end": 20415, + "start": 20393, + "end": 20424, "loc": { "start": { "line": 562, @@ -37383,8 +37400,8 @@ }, "object": { "type": "Identifier", - "start": 20384, - "end": 20403, + "start": 20393, + "end": 20412, "loc": { "start": { "line": 562, @@ -37400,8 +37417,8 @@ }, "property": { "type": "Identifier", - "start": 20404, - "end": 20415, + "start": 20413, + "end": 20424, "loc": { "start": { "line": 562, @@ -37420,8 +37437,8 @@ "arguments": [ { "type": "Identifier", - "start": 20416, - "end": 20436, + "start": 20425, + "end": 20445, "loc": { "start": { "line": 562, @@ -37437,8 +37454,8 @@ }, { "type": "Identifier", - "start": 20438, - "end": 20461, + "start": 20447, + "end": 20470, "loc": { "start": { "line": 562, @@ -37454,8 +37471,8 @@ }, { "type": "Identifier", - "start": 20463, - "end": 20478, + "start": 20472, + "end": 20487, "loc": { "start": { "line": 562, @@ -37473,8 +37490,8 @@ }, "property": { "type": "Identifier", - "start": 20485, - "end": 20490, + "start": 20494, + "end": 20499, "loc": { "start": { "line": 563, @@ -37493,8 +37510,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 20491, - "end": 20585, + "start": 20500, + "end": 20594, "loc": { "start": { "line": 563, @@ -37512,8 +37529,8 @@ "params": [ { "type": "Identifier", - "start": 20491, - "end": 20500, + "start": 20500, + "end": 20509, "loc": { "start": { "line": 563, @@ -37530,8 +37547,8 @@ ], "body": { "type": "CallExpression", - "start": 20504, - "end": 20585, + "start": 20513, + "end": 20594, "loc": { "start": { "line": 563, @@ -37544,8 +37561,8 @@ }, "callee": { "type": "MemberExpression", - "start": 20504, - "end": 20529, + "start": 20513, + "end": 20538, "loc": { "start": { "line": 563, @@ -37558,8 +37575,8 @@ }, "object": { "type": "Identifier", - "start": 20504, - "end": 20523, + "start": 20513, + "end": 20532, "loc": { "start": { "line": 563, @@ -37575,8 +37592,8 @@ }, "property": { "type": "Identifier", - "start": 20524, - "end": 20529, + "start": 20533, + "end": 20538, "loc": { "start": { "line": 563, @@ -37595,8 +37612,8 @@ "arguments": [ { "type": "Identifier", - "start": 20530, - "end": 20548, + "start": 20539, + "end": 20557, "loc": { "start": { "line": 563, @@ -37612,8 +37629,8 @@ }, { "type": "Identifier", - "start": 20550, - "end": 20567, + "start": 20559, + "end": 20576, "loc": { "start": { "line": 563, @@ -37629,8 +37646,8 @@ }, { "type": "Identifier", - "start": 20569, - "end": 20574, + "start": 20578, + "end": 20583, "loc": { "start": { "line": 563, @@ -37646,8 +37663,8 @@ }, { "type": "Identifier", - "start": 20576, - "end": 20584, + "start": 20585, + "end": 20593, "loc": { "start": { "line": 563, @@ -37675,8 +37692,8 @@ { "type": "CommentBlock", "value": "*\n * setPenStyleClasses action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {String} penStyleClasses Current penStyleClasses\n * @param {RecognizerCallback} callback\n ", - "start": 19865, - "end": 20114, + "start": 19874, + "end": 20123, "loc": { "start": { "line": 550, @@ -37693,8 +37710,8 @@ { "type": "CommentBlock", "value": "*\n * SetTheme action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Theme} theme Current theme\n * @param {RecognizerCallback} callback\n ", - "start": 20591, - "end": 20809, + "start": 20600, + "end": 20818, "loc": { "start": { "line": 566, @@ -37712,8 +37729,8 @@ { "type": "CommentBlock", "value": "*\n * setPenStyleClasses action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {String} penStyleClasses Current penStyleClasses\n * @param {RecognizerCallback} callback\n ", - "start": 19865, - "end": 20114, + "start": 19874, + "end": 20123, "loc": { "start": { "line": 550, @@ -37730,8 +37747,8 @@ { "type": "CommentBlock", "value": "*\n * SetTheme action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Theme} theme Current theme\n * @param {RecognizerCallback} callback\n ", - "start": 20591, - "end": 20809, + "start": 20600, + "end": 20818, "loc": { "start": { "line": 566, @@ -37747,8 +37764,8 @@ }, { "type": "ExportNamedDeclaration", - "start": 20810, - "end": 21234, + "start": 20819, + "end": 21243, "loc": { "start": { "line": 573, @@ -37763,8 +37780,8 @@ "source": null, "declaration": { "type": "FunctionDeclaration", - "start": 20817, - "end": 21234, + "start": 20826, + "end": 21243, "loc": { "start": { "line": 573, @@ -37777,8 +37794,8 @@ }, "id": { "type": "Identifier", - "start": 20826, - "end": 20834, + "start": 20835, + "end": 20843, "loc": { "start": { "line": 573, @@ -37799,8 +37816,8 @@ "params": [ { "type": "Identifier", - "start": 20835, - "end": 20852, + "start": 20844, + "end": 20861, "loc": { "start": { "line": 573, @@ -37816,8 +37833,8 @@ }, { "type": "Identifier", - "start": 20854, - "end": 20859, + "start": 20863, + "end": 20868, "loc": { "start": { "line": 573, @@ -37833,8 +37850,8 @@ }, { "type": "Identifier", - "start": 20861, - "end": 20866, + "start": 20870, + "end": 20875, "loc": { "start": { "line": 573, @@ -37850,8 +37867,8 @@ }, { "type": "Identifier", - "start": 20868, - "end": 20876, + "start": 20877, + "end": 20885, "loc": { "start": { "line": 573, @@ -37868,8 +37885,8 @@ ], "body": { "type": "BlockStatement", - "start": 20878, - "end": 21234, + "start": 20887, + "end": 21243, "loc": { "start": { "line": 573, @@ -37883,8 +37900,8 @@ "body": [ { "type": "VariableDeclaration", - "start": 20882, - "end": 21056, + "start": 20891, + "end": 21065, "loc": { "start": { "line": 574, @@ -37898,8 +37915,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 20888, - "end": 21055, + "start": 20897, + "end": 21064, "loc": { "start": { "line": 574, @@ -37912,8 +37929,8 @@ }, "id": { "type": "Identifier", - "start": 20888, - "end": 20908, + "start": 20897, + "end": 20917, "loc": { "start": { "line": 574, @@ -37929,8 +37946,8 @@ }, "init": { "type": "CallExpression", - "start": 20911, - "end": 21055, + "start": 20920, + "end": 21064, "loc": { "start": { "line": 574, @@ -37943,8 +37960,8 @@ }, "callee": { "type": "MemberExpression", - "start": 20911, - "end": 20950, + "start": 20920, + "end": 20959, "loc": { "start": { "line": 574, @@ -37957,8 +37974,8 @@ }, "object": { "type": "Identifier", - "start": 20911, - "end": 20928, + "start": 20920, + "end": 20937, "loc": { "start": { "line": 574, @@ -37974,8 +37991,8 @@ }, "property": { "type": "Identifier", - "start": 20929, - "end": 20950, + "start": 20938, + "end": 20959, "loc": { "start": { "line": 574, @@ -37994,8 +38011,8 @@ "arguments": [ { "type": "Identifier", - "start": 20951, - "end": 20968, + "start": 20960, + "end": 20977, "loc": { "start": { "line": 574, @@ -38011,8 +38028,8 @@ }, { "type": "ObjectExpression", - "start": 20970, - "end": 21054, + "start": 20979, + "end": 21063, "loc": { "start": { "line": 574, @@ -38026,8 +38043,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 20976, - "end": 20981, + "start": 20985, + "end": 20990, "loc": { "start": { "line": 575, @@ -38043,8 +38060,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 20976, - "end": 20981, + "start": 20985, + "end": 20990, "loc": { "start": { "line": 575, @@ -38060,8 +38077,8 @@ }, "value": { "type": "Identifier", - "start": 20976, - "end": 20981, + "start": 20985, + "end": 20990, "loc": { "start": { "line": 575, @@ -38081,8 +38098,8 @@ }, { "type": "ObjectProperty", - "start": 20987, - "end": 21050, + "start": 20996, + "end": 21059, "loc": { "start": { "line": 576, @@ -38098,8 +38115,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 20987, - "end": 20995, + "start": 20996, + "end": 21004, "loc": { "start": { "line": 576, @@ -38115,8 +38132,8 @@ }, "value": { "type": "ArrowFunctionExpression", - "start": 20997, - "end": 21050, + "start": 21006, + "end": 21059, "loc": { "start": { "line": 576, @@ -38134,8 +38151,8 @@ "params": [ { "type": "Identifier", - "start": 20998, - "end": 21001, + "start": 21007, + "end": 21010, "loc": { "start": { "line": 576, @@ -38151,8 +38168,8 @@ }, { "type": "Identifier", - "start": 21003, - "end": 21006, + "start": 21012, + "end": 21015, "loc": { "start": { "line": 576, @@ -38169,8 +38186,8 @@ ], "body": { "type": "CallExpression", - "start": 21011, - "end": 21050, + "start": 21020, + "end": 21059, "loc": { "start": { "line": 576, @@ -38183,8 +38200,8 @@ }, "callee": { "type": "Identifier", - "start": 21011, - "end": 21023, + "start": 21020, + "end": 21032, "loc": { "start": { "line": 576, @@ -38201,8 +38218,8 @@ "arguments": [ { "type": "Identifier", - "start": 21024, - "end": 21029, + "start": 21033, + "end": 21038, "loc": { "start": { "line": 576, @@ -38218,8 +38235,8 @@ }, { "type": "Identifier", - "start": 21031, - "end": 21034, + "start": 21040, + "end": 21043, "loc": { "start": { "line": 576, @@ -38235,8 +38252,8 @@ }, { "type": "Identifier", - "start": 21036, - "end": 21039, + "start": 21045, + "end": 21048, "loc": { "start": { "line": 576, @@ -38252,8 +38269,8 @@ }, { "type": "Identifier", - "start": 21041, - "end": 21049, + "start": 21050, + "end": 21058, "loc": { "start": { "line": 576, @@ -38281,8 +38298,8 @@ }, { "type": "ExpressionStatement", - "start": 21059, - "end": 21232, + "start": 21068, + "end": 21241, "loc": { "start": { "line": 578, @@ -38295,8 +38312,8 @@ }, "expression": { "type": "CallExpression", - "start": 21059, - "end": 21231, + "start": 21068, + "end": 21240, "loc": { "start": { "line": 578, @@ -38309,8 +38326,8 @@ }, "callee": { "type": "MemberExpression", - "start": 21059, - "end": 21145, + "start": 21068, + "end": 21154, "loc": { "start": { "line": 578, @@ -38323,8 +38340,8 @@ }, "object": { "type": "CallExpression", - "start": 21059, - "end": 21134, + "start": 21068, + "end": 21143, "loc": { "start": { "line": 578, @@ -38337,8 +38354,8 @@ }, "callee": { "type": "MemberExpression", - "start": 21059, - "end": 21090, + "start": 21068, + "end": 21099, "loc": { "start": { "line": 578, @@ -38351,8 +38368,8 @@ }, "object": { "type": "Identifier", - "start": 21059, - "end": 21078, + "start": 21068, + "end": 21087, "loc": { "start": { "line": 578, @@ -38368,8 +38385,8 @@ }, "property": { "type": "Identifier", - "start": 21079, - "end": 21090, + "start": 21088, + "end": 21099, "loc": { "start": { "line": 578, @@ -38388,8 +38405,8 @@ "arguments": [ { "type": "Identifier", - "start": 21091, - "end": 21111, + "start": 21100, + "end": 21120, "loc": { "start": { "line": 578, @@ -38405,8 +38422,8 @@ }, { "type": "Identifier", - "start": 21113, - "end": 21126, + "start": 21122, + "end": 21135, "loc": { "start": { "line": 578, @@ -38422,8 +38439,8 @@ }, { "type": "Identifier", - "start": 21128, - "end": 21133, + "start": 21137, + "end": 21142, "loc": { "start": { "line": 578, @@ -38441,8 +38458,8 @@ }, "property": { "type": "Identifier", - "start": 21140, - "end": 21145, + "start": 21149, + "end": 21154, "loc": { "start": { "line": 579, @@ -38461,8 +38478,8 @@ "arguments": [ { "type": "ArrowFunctionExpression", - "start": 21146, - "end": 21230, + "start": 21155, + "end": 21239, "loc": { "start": { "line": 579, @@ -38480,8 +38497,8 @@ "params": [ { "type": "Identifier", - "start": 21146, - "end": 21155, + "start": 21155, + "end": 21164, "loc": { "start": { "line": 579, @@ -38498,8 +38515,8 @@ ], "body": { "type": "CallExpression", - "start": 21159, - "end": 21230, + "start": 21168, + "end": 21239, "loc": { "start": { "line": 579, @@ -38512,8 +38529,8 @@ }, "callee": { "type": "MemberExpression", - "start": 21159, - "end": 21184, + "start": 21168, + "end": 21193, "loc": { "start": { "line": 579, @@ -38526,8 +38543,8 @@ }, "object": { "type": "Identifier", - "start": 21159, - "end": 21178, + "start": 21168, + "end": 21187, "loc": { "start": { "line": 579, @@ -38543,8 +38560,8 @@ }, "property": { "type": "Identifier", - "start": 21179, - "end": 21184, + "start": 21188, + "end": 21193, "loc": { "start": { "line": 579, @@ -38563,8 +38580,8 @@ "arguments": [ { "type": "Identifier", - "start": 21185, - "end": 21193, + "start": 21194, + "end": 21202, "loc": { "start": { "line": 579, @@ -38580,8 +38597,8 @@ }, { "type": "Identifier", - "start": 21195, - "end": 21212, + "start": 21204, + "end": 21221, "loc": { "start": { "line": 579, @@ -38597,8 +38614,8 @@ }, { "type": "Identifier", - "start": 21214, - "end": 21219, + "start": 21223, + "end": 21228, "loc": { "start": { "line": 579, @@ -38614,8 +38631,8 @@ }, { "type": "Identifier", - "start": 21221, - "end": 21229, + "start": 21230, + "end": 21238, "loc": { "start": { "line": 579, @@ -38642,8 +38659,8 @@ { "type": "CommentBlock", "value": "*\n * SetTheme action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Theme} theme Current theme\n * @param {RecognizerCallback} callback\n ", - "start": 20591, - "end": 20809, + "start": 20600, + "end": 20818, "loc": { "start": { "line": 566, @@ -38662,8 +38679,8 @@ { "type": "CommentBlock", "value": "*\n * SetTheme action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Theme} theme Current theme\n * @param {RecognizerCallback} callback\n ", - "start": 20591, - "end": 20809, + "start": 20600, + "end": 20818, "loc": { "start": { "line": 566, @@ -39051,7 +39068,7 @@ }, { "type": "CommentBlock", - "value": "*\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Element} element Current element\n * @param {RecognizerCallback} callback\n ", + "value": "*\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n * @param {Element} element Current element\n ", "start": 17787, "end": 18002, "loc": { @@ -39068,8 +39085,8 @@ { "type": "CommentBlock", "value": "*\n * Zoom action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Number} value=10 Zoom value\n * @param {RecognizerCallback} callback\n ", - "start": 18558, - "end": 18773, + "start": 18567, + "end": 18782, "loc": { "start": { "line": 518, @@ -39084,8 +39101,8 @@ { "type": "CommentBlock", "value": "*\n * SetPenStyle action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {PenStyle} penStyle Current penStyle\n * @param {RecognizerCallback} callback\n ", - "start": 19193, - "end": 19423, + "start": 19202, + "end": 19432, "loc": { "start": { "line": 534, @@ -39100,8 +39117,8 @@ { "type": "CommentBlock", "value": "*\n * setPenStyleClasses action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {String} penStyleClasses Current penStyleClasses\n * @param {RecognizerCallback} callback\n ", - "start": 19865, - "end": 20114, + "start": 19874, + "end": 20123, "loc": { "start": { "line": 550, @@ -39116,8 +39133,8 @@ { "type": "CommentBlock", "value": "*\n * SetTheme action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Theme} theme Current theme\n * @param {RecognizerCallback} callback\n ", - "start": 20591, - "end": 20809, + "start": 20600, + "end": 20818, "loc": { "start": { "line": 566, @@ -107644,7 +107661,7 @@ }, { "type": "CommentBlock", - "value": "*\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Element} element Current element\n * @param {RecognizerCallback} callback\n ", + "value": "*\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n * @param {Element} element Current element\n ", "start": 17787, "end": 18002, "loc": { @@ -107880,9 +107897,9 @@ "postfix": false, "binop": null }, - "value": "element", + "value": "callback", "start": 18052, - "end": 18059, + "end": 18060, "loc": { "start": { "line": 509, @@ -107890,7 +107907,7 @@ }, "end": { "line": 509, - "column": 56 + "column": 57 } } }, @@ -107907,16 +107924,16 @@ "binop": null, "updateContext": null }, - "start": 18059, - "end": 18060, + "start": 18060, + "end": 18061, "loc": { "start": { "line": 509, - "column": 56 + "column": 57 }, "end": { "line": 509, - "column": 57 + "column": 58 } } }, @@ -107932,13 +107949,13 @@ "postfix": false, "binop": null }, - "value": "callback", - "start": 18061, + "value": "element", + "start": 18062, "end": 18069, "loc": { "start": { "line": 509, - "column": 58 + "column": 59 }, "end": { "line": 509, @@ -110045,15 +110062,16 @@ }, { "type": { - "label": ")", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, "start": 18551, "end": 18552, @@ -110068,6 +110086,32 @@ } } }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "element", + "start": 18553, + "end": 18560, + "loc": { + "start": { + "line": 515, + "column": 94 + }, + "end": { + "line": 515, + "column": 101 + } + } + }, { "type": { "label": ")", @@ -110080,16 +110124,41 @@ "postfix": false, "binop": null }, - "start": 18552, - "end": 18553, + "start": 18560, + "end": 18561, "loc": { "start": { "line": 515, - "column": 93 + "column": 101 }, "end": { "line": 515, - "column": 94 + "column": 102 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18561, + "end": 18562, + "loc": { + "start": { + "line": 515, + "column": 102 + }, + "end": { + "line": 515, + "column": 103 } } }, @@ -110106,16 +110175,16 @@ "binop": null, "updateContext": null }, - "start": 18553, - "end": 18554, + "start": 18562, + "end": 18563, "loc": { "start": { "line": 515, - "column": 94 + "column": 103 }, "end": { "line": 515, - "column": 95 + "column": 104 } } }, @@ -110131,8 +110200,8 @@ "postfix": false, "binop": null }, - "start": 18555, - "end": 18556, + "start": 18564, + "end": 18565, "loc": { "start": { "line": 516, @@ -110147,8 +110216,8 @@ { "type": "CommentBlock", "value": "*\n * Zoom action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Number} value=10 Zoom value\n * @param {RecognizerCallback} callback\n ", - "start": 18558, - "end": 18773, + "start": 18567, + "end": 18782, "loc": { "start": { "line": 518, @@ -110175,8 +110244,8 @@ "updateContext": null }, "value": "export", - "start": 18774, - "end": 18780, + "start": 18783, + "end": 18789, "loc": { "start": { "line": 525, @@ -110202,8 +110271,8 @@ "binop": null }, "value": "function", - "start": 18781, - "end": 18789, + "start": 18790, + "end": 18798, "loc": { "start": { "line": 525, @@ -110228,8 +110297,8 @@ "binop": null }, "value": "zoom", - "start": 18790, - "end": 18794, + "start": 18799, + "end": 18803, "loc": { "start": { "line": 525, @@ -110253,8 +110322,8 @@ "postfix": false, "binop": null }, - "start": 18794, - "end": 18795, + "start": 18803, + "end": 18804, "loc": { "start": { "line": 525, @@ -110279,8 +110348,8 @@ "binop": null }, "value": "recognizerContext", - "start": 18795, - "end": 18812, + "start": 18804, + "end": 18821, "loc": { "start": { "line": 525, @@ -110305,8 +110374,8 @@ "binop": null, "updateContext": null }, - "start": 18812, - "end": 18813, + "start": 18821, + "end": 18822, "loc": { "start": { "line": 525, @@ -110331,8 +110400,8 @@ "binop": null }, "value": "model", - "start": 18814, - "end": 18819, + "start": 18823, + "end": 18828, "loc": { "start": { "line": 525, @@ -110357,8 +110426,8 @@ "binop": null, "updateContext": null }, - "start": 18819, - "end": 18820, + "start": 18828, + "end": 18829, "loc": { "start": { "line": 525, @@ -110383,8 +110452,8 @@ "binop": null }, "value": "value", - "start": 18821, - "end": 18826, + "start": 18830, + "end": 18835, "loc": { "start": { "line": 525, @@ -110410,8 +110479,8 @@ "updateContext": null }, "value": "=", - "start": 18827, - "end": 18828, + "start": 18836, + "end": 18837, "loc": { "start": { "line": 525, @@ -110437,8 +110506,8 @@ "updateContext": null }, "value": 10, - "start": 18829, - "end": 18831, + "start": 18838, + "end": 18840, "loc": { "start": { "line": 525, @@ -110463,8 +110532,8 @@ "binop": null, "updateContext": null }, - "start": 18831, - "end": 18832, + "start": 18840, + "end": 18841, "loc": { "start": { "line": 525, @@ -110489,8 +110558,8 @@ "binop": null }, "value": "callback", - "start": 18833, - "end": 18841, + "start": 18842, + "end": 18850, "loc": { "start": { "line": 525, @@ -110514,8 +110583,8 @@ "postfix": false, "binop": null }, - "start": 18841, - "end": 18842, + "start": 18850, + "end": 18851, "loc": { "start": { "line": 525, @@ -110539,8 +110608,8 @@ "postfix": false, "binop": null }, - "start": 18843, - "end": 18844, + "start": 18852, + "end": 18853, "loc": { "start": { "line": 525, @@ -110567,8 +110636,8 @@ "updateContext": null }, "value": "const", - "start": 18847, - "end": 18852, + "start": 18856, + "end": 18861, "loc": { "start": { "line": 526, @@ -110593,8 +110662,8 @@ "binop": null }, "value": "recognizerContextRef", - "start": 18853, - "end": 18873, + "start": 18862, + "end": 18882, "loc": { "start": { "line": 526, @@ -110620,8 +110689,8 @@ "updateContext": null }, "value": "=", - "start": 18874, - "end": 18875, + "start": 18883, + "end": 18884, "loc": { "start": { "line": 526, @@ -110646,8 +110715,8 @@ "binop": null }, "value": "RecognizerContext", - "start": 18876, - "end": 18893, + "start": 18885, + "end": 18902, "loc": { "start": { "line": 526, @@ -110672,8 +110741,8 @@ "binop": null, "updateContext": null }, - "start": 18893, - "end": 18894, + "start": 18902, + "end": 18903, "loc": { "start": { "line": 526, @@ -110698,8 +110767,8 @@ "binop": null }, "value": "setRecognitionContext", - "start": 18894, - "end": 18915, + "start": 18903, + "end": 18924, "loc": { "start": { "line": 526, @@ -110723,8 +110792,8 @@ "postfix": false, "binop": null }, - "start": 18915, - "end": 18916, + "start": 18924, + "end": 18925, "loc": { "start": { "line": 526, @@ -110749,8 +110818,8 @@ "binop": null }, "value": "recognizerContext", - "start": 18916, - "end": 18933, + "start": 18925, + "end": 18942, "loc": { "start": { "line": 526, @@ -110775,8 +110844,8 @@ "binop": null, "updateContext": null }, - "start": 18933, - "end": 18934, + "start": 18942, + "end": 18943, "loc": { "start": { "line": 526, @@ -110800,8 +110869,8 @@ "postfix": false, "binop": null }, - "start": 18935, - "end": 18936, + "start": 18944, + "end": 18945, "loc": { "start": { "line": 526, @@ -110826,8 +110895,8 @@ "binop": null }, "value": "model", - "start": 18941, - "end": 18946, + "start": 18950, + "end": 18955, "loc": { "start": { "line": 527, @@ -110852,8 +110921,8 @@ "binop": null, "updateContext": null }, - "start": 18946, - "end": 18947, + "start": 18955, + "end": 18956, "loc": { "start": { "line": 527, @@ -110878,8 +110947,8 @@ "binop": null }, "value": "callback", - "start": 18952, - "end": 18960, + "start": 18961, + "end": 18969, "loc": { "start": { "line": 528, @@ -110904,8 +110973,8 @@ "binop": null, "updateContext": null }, - "start": 18960, - "end": 18961, + "start": 18969, + "end": 18970, "loc": { "start": { "line": 528, @@ -110929,8 +110998,8 @@ "postfix": false, "binop": null }, - "start": 18962, - "end": 18963, + "start": 18971, + "end": 18972, "loc": { "start": { "line": 528, @@ -110955,8 +111024,8 @@ "binop": null }, "value": "err", - "start": 18963, - "end": 18966, + "start": 18972, + "end": 18975, "loc": { "start": { "line": 528, @@ -110981,8 +111050,8 @@ "binop": null, "updateContext": null }, - "start": 18966, - "end": 18967, + "start": 18975, + "end": 18976, "loc": { "start": { "line": 528, @@ -111007,8 +111076,8 @@ "binop": null }, "value": "res", - "start": 18968, - "end": 18971, + "start": 18977, + "end": 18980, "loc": { "start": { "line": 528, @@ -111032,8 +111101,8 @@ "postfix": false, "binop": null }, - "start": 18971, - "end": 18972, + "start": 18980, + "end": 18981, "loc": { "start": { "line": 528, @@ -111058,8 +111127,8 @@ "binop": null, "updateContext": null }, - "start": 18973, - "end": 18975, + "start": 18982, + "end": 18984, "loc": { "start": { "line": 528, @@ -111084,8 +111153,8 @@ "binop": null }, "value": "iinkCallback", - "start": 18976, - "end": 18988, + "start": 18985, + "end": 18997, "loc": { "start": { "line": 528, @@ -111109,8 +111178,8 @@ "postfix": false, "binop": null }, - "start": 18988, - "end": 18989, + "start": 18997, + "end": 18998, "loc": { "start": { "line": 528, @@ -111135,8 +111204,8 @@ "binop": null }, "value": "model", - "start": 18989, - "end": 18994, + "start": 18998, + "end": 19003, "loc": { "start": { "line": 528, @@ -111161,8 +111230,8 @@ "binop": null, "updateContext": null }, - "start": 18994, - "end": 18995, + "start": 19003, + "end": 19004, "loc": { "start": { "line": 528, @@ -111187,8 +111256,8 @@ "binop": null }, "value": "err", - "start": 18996, - "end": 18999, + "start": 19005, + "end": 19008, "loc": { "start": { "line": 528, @@ -111213,8 +111282,8 @@ "binop": null, "updateContext": null }, - "start": 18999, - "end": 19000, + "start": 19008, + "end": 19009, "loc": { "start": { "line": 528, @@ -111239,8 +111308,8 @@ "binop": null }, "value": "res", - "start": 19001, - "end": 19004, + "start": 19010, + "end": 19013, "loc": { "start": { "line": 528, @@ -111265,8 +111334,8 @@ "binop": null, "updateContext": null }, - "start": 19004, - "end": 19005, + "start": 19013, + "end": 19014, "loc": { "start": { "line": 528, @@ -111291,8 +111360,8 @@ "binop": null }, "value": "callback", - "start": 19006, - "end": 19014, + "start": 19015, + "end": 19023, "loc": { "start": { "line": 528, @@ -111316,8 +111385,8 @@ "postfix": false, "binop": null }, - "start": 19014, - "end": 19015, + "start": 19023, + "end": 19024, "loc": { "start": { "line": 528, @@ -111341,8 +111410,8 @@ "postfix": false, "binop": null }, - "start": 19018, - "end": 19019, + "start": 19027, + "end": 19028, "loc": { "start": { "line": 529, @@ -111366,8 +111435,8 @@ "postfix": false, "binop": null }, - "start": 19019, - "end": 19020, + "start": 19028, + "end": 19029, "loc": { "start": { "line": 529, @@ -111392,8 +111461,8 @@ "binop": null, "updateContext": null }, - "start": 19020, - "end": 19021, + "start": 19029, + "end": 19030, "loc": { "start": { "line": 529, @@ -111418,8 +111487,8 @@ "binop": null }, "value": "CdkWSRecognizerUtil", - "start": 19024, - "end": 19043, + "start": 19033, + "end": 19052, "loc": { "start": { "line": 530, @@ -111444,8 +111513,8 @@ "binop": null, "updateContext": null }, - "start": 19043, - "end": 19044, + "start": 19052, + "end": 19053, "loc": { "start": { "line": 530, @@ -111470,8 +111539,8 @@ "binop": null }, "value": "sendMessage", - "start": 19044, - "end": 19055, + "start": 19053, + "end": 19064, "loc": { "start": { "line": 530, @@ -111495,8 +111564,8 @@ "postfix": false, "binop": null }, - "start": 19055, - "end": 19056, + "start": 19064, + "end": 19065, "loc": { "start": { "line": 530, @@ -111521,8 +111590,8 @@ "binop": null }, "value": "recognizerContextRef", - "start": 19056, - "end": 19076, + "start": 19065, + "end": 19085, "loc": { "start": { "line": 530, @@ -111547,8 +111616,8 @@ "binop": null, "updateContext": null }, - "start": 19076, - "end": 19077, + "start": 19085, + "end": 19086, "loc": { "start": { "line": 530, @@ -111573,8 +111642,8 @@ "binop": null }, "value": "buildZoom", - "start": 19078, - "end": 19087, + "start": 19087, + "end": 19096, "loc": { "start": { "line": 530, @@ -111599,8 +111668,8 @@ "binop": null, "updateContext": null }, - "start": 19087, - "end": 19088, + "start": 19096, + "end": 19097, "loc": { "start": { "line": 530, @@ -111625,8 +111694,8 @@ "binop": null }, "value": "value", - "start": 19089, - "end": 19094, + "start": 19098, + "end": 19103, "loc": { "start": { "line": 530, @@ -111650,8 +111719,8 @@ "postfix": false, "binop": null }, - "start": 19094, - "end": 19095, + "start": 19103, + "end": 19104, "loc": { "start": { "line": 530, @@ -111676,8 +111745,8 @@ "binop": null, "updateContext": null }, - "start": 19100, - "end": 19101, + "start": 19109, + "end": 19110, "loc": { "start": { "line": 531, @@ -111704,8 +111773,8 @@ "updateContext": null }, "value": "catch", - "start": 19101, - "end": 19106, + "start": 19110, + "end": 19115, "loc": { "start": { "line": 531, @@ -111729,8 +111798,8 @@ "postfix": false, "binop": null }, - "start": 19106, - "end": 19107, + "start": 19115, + "end": 19116, "loc": { "start": { "line": 531, @@ -111755,8 +111824,8 @@ "binop": null }, "value": "exception", - "start": 19107, - "end": 19116, + "start": 19116, + "end": 19125, "loc": { "start": { "line": 531, @@ -111781,8 +111850,8 @@ "binop": null, "updateContext": null }, - "start": 19117, - "end": 19119, + "start": 19126, + "end": 19128, "loc": { "start": { "line": 531, @@ -111807,8 +111876,8 @@ "binop": null }, "value": "CdkWSRecognizerUtil", - "start": 19120, - "end": 19139, + "start": 19129, + "end": 19148, "loc": { "start": { "line": 531, @@ -111833,8 +111902,8 @@ "binop": null, "updateContext": null }, - "start": 19139, - "end": 19140, + "start": 19148, + "end": 19149, "loc": { "start": { "line": 531, @@ -111859,8 +111928,8 @@ "binop": null }, "value": "retry", - "start": 19140, - "end": 19145, + "start": 19149, + "end": 19154, "loc": { "start": { "line": 531, @@ -111884,8 +111953,8 @@ "postfix": false, "binop": null }, - "start": 19145, - "end": 19146, + "start": 19154, + "end": 19155, "loc": { "start": { "line": 531, @@ -111910,8 +111979,8 @@ "binop": null }, "value": "zoom", - "start": 19146, - "end": 19150, + "start": 19155, + "end": 19159, "loc": { "start": { "line": 531, @@ -111936,8 +112005,8 @@ "binop": null, "updateContext": null }, - "start": 19150, - "end": 19151, + "start": 19159, + "end": 19160, "loc": { "start": { "line": 531, @@ -111962,8 +112031,8 @@ "binop": null }, "value": "recognizerContext", - "start": 19152, - "end": 19169, + "start": 19161, + "end": 19178, "loc": { "start": { "line": 531, @@ -111988,8 +112057,8 @@ "binop": null, "updateContext": null }, - "start": 19169, - "end": 19170, + "start": 19178, + "end": 19179, "loc": { "start": { "line": 531, @@ -112014,8 +112083,8 @@ "binop": null }, "value": "model", - "start": 19171, - "end": 19176, + "start": 19180, + "end": 19185, "loc": { "start": { "line": 531, @@ -112040,8 +112109,8 @@ "binop": null, "updateContext": null }, - "start": 19176, - "end": 19177, + "start": 19185, + "end": 19186, "loc": { "start": { "line": 531, @@ -112066,8 +112135,8 @@ "binop": null }, "value": "callback", - "start": 19178, - "end": 19186, + "start": 19187, + "end": 19195, "loc": { "start": { "line": 531, @@ -112091,8 +112160,8 @@ "postfix": false, "binop": null }, - "start": 19186, - "end": 19187, + "start": 19195, + "end": 19196, "loc": { "start": { "line": 531, @@ -112116,8 +112185,8 @@ "postfix": false, "binop": null }, - "start": 19187, - "end": 19188, + "start": 19196, + "end": 19197, "loc": { "start": { "line": 531, @@ -112142,8 +112211,8 @@ "binop": null, "updateContext": null }, - "start": 19188, - "end": 19189, + "start": 19197, + "end": 19198, "loc": { "start": { "line": 531, @@ -112167,8 +112236,8 @@ "postfix": false, "binop": null }, - "start": 19190, - "end": 19191, + "start": 19199, + "end": 19200, "loc": { "start": { "line": 532, @@ -112183,8 +112252,8 @@ { "type": "CommentBlock", "value": "*\n * SetPenStyle action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {PenStyle} penStyle Current penStyle\n * @param {RecognizerCallback} callback\n ", - "start": 19193, - "end": 19423, + "start": 19202, + "end": 19432, "loc": { "start": { "line": 534, @@ -112211,8 +112280,8 @@ "updateContext": null }, "value": "export", - "start": 19424, - "end": 19430, + "start": 19433, + "end": 19439, "loc": { "start": { "line": 541, @@ -112238,8 +112307,8 @@ "binop": null }, "value": "function", - "start": 19431, - "end": 19439, + "start": 19440, + "end": 19448, "loc": { "start": { "line": 541, @@ -112264,8 +112333,8 @@ "binop": null }, "value": "setPenStyle", - "start": 19440, - "end": 19451, + "start": 19449, + "end": 19460, "loc": { "start": { "line": 541, @@ -112289,8 +112358,8 @@ "postfix": false, "binop": null }, - "start": 19451, - "end": 19452, + "start": 19460, + "end": 19461, "loc": { "start": { "line": 541, @@ -112315,8 +112384,8 @@ "binop": null }, "value": "recognizerContext", - "start": 19452, - "end": 19469, + "start": 19461, + "end": 19478, "loc": { "start": { "line": 541, @@ -112341,8 +112410,8 @@ "binop": null, "updateContext": null }, - "start": 19469, - "end": 19470, + "start": 19478, + "end": 19479, "loc": { "start": { "line": 541, @@ -112367,8 +112436,8 @@ "binop": null }, "value": "model", - "start": 19471, - "end": 19476, + "start": 19480, + "end": 19485, "loc": { "start": { "line": 541, @@ -112393,8 +112462,8 @@ "binop": null, "updateContext": null }, - "start": 19476, - "end": 19477, + "start": 19485, + "end": 19486, "loc": { "start": { "line": 541, @@ -112419,8 +112488,8 @@ "binop": null }, "value": "penStyle", - "start": 19478, - "end": 19486, + "start": 19487, + "end": 19495, "loc": { "start": { "line": 541, @@ -112445,8 +112514,8 @@ "binop": null, "updateContext": null }, - "start": 19486, - "end": 19487, + "start": 19495, + "end": 19496, "loc": { "start": { "line": 541, @@ -112471,8 +112540,8 @@ "binop": null }, "value": "callback", - "start": 19488, - "end": 19496, + "start": 19497, + "end": 19505, "loc": { "start": { "line": 541, @@ -112496,8 +112565,8 @@ "postfix": false, "binop": null }, - "start": 19496, - "end": 19497, + "start": 19505, + "end": 19506, "loc": { "start": { "line": 541, @@ -112521,8 +112590,8 @@ "postfix": false, "binop": null }, - "start": 19498, - "end": 19499, + "start": 19507, + "end": 19508, "loc": { "start": { "line": 541, @@ -112549,8 +112618,8 @@ "updateContext": null }, "value": "const", - "start": 19502, - "end": 19507, + "start": 19511, + "end": 19516, "loc": { "start": { "line": 542, @@ -112575,8 +112644,8 @@ "binop": null }, "value": "recognizerContextRef", - "start": 19508, - "end": 19528, + "start": 19517, + "end": 19537, "loc": { "start": { "line": 542, @@ -112602,8 +112671,8 @@ "updateContext": null }, "value": "=", - "start": 19529, - "end": 19530, + "start": 19538, + "end": 19539, "loc": { "start": { "line": 542, @@ -112628,8 +112697,8 @@ "binop": null }, "value": "RecognizerContext", - "start": 19531, - "end": 19548, + "start": 19540, + "end": 19557, "loc": { "start": { "line": 542, @@ -112654,8 +112723,8 @@ "binop": null, "updateContext": null }, - "start": 19548, - "end": 19549, + "start": 19557, + "end": 19558, "loc": { "start": { "line": 542, @@ -112680,8 +112749,8 @@ "binop": null }, "value": "setRecognitionContext", - "start": 19549, - "end": 19570, + "start": 19558, + "end": 19579, "loc": { "start": { "line": 542, @@ -112705,8 +112774,8 @@ "postfix": false, "binop": null }, - "start": 19570, - "end": 19571, + "start": 19579, + "end": 19580, "loc": { "start": { "line": 542, @@ -112731,8 +112800,8 @@ "binop": null }, "value": "recognizerContext", - "start": 19571, - "end": 19588, + "start": 19580, + "end": 19597, "loc": { "start": { "line": 542, @@ -112757,8 +112826,8 @@ "binop": null, "updateContext": null }, - "start": 19588, - "end": 19589, + "start": 19597, + "end": 19598, "loc": { "start": { "line": 542, @@ -112782,8 +112851,8 @@ "postfix": false, "binop": null }, - "start": 19590, - "end": 19591, + "start": 19599, + "end": 19600, "loc": { "start": { "line": 542, @@ -112808,8 +112877,8 @@ "binop": null }, "value": "model", - "start": 19596, - "end": 19601, + "start": 19605, + "end": 19610, "loc": { "start": { "line": 543, @@ -112834,8 +112903,8 @@ "binop": null, "updateContext": null }, - "start": 19601, - "end": 19602, + "start": 19610, + "end": 19611, "loc": { "start": { "line": 543, @@ -112860,8 +112929,8 @@ "binop": null }, "value": "callback", - "start": 19607, - "end": 19615, + "start": 19616, + "end": 19624, "loc": { "start": { "line": 544, @@ -112886,8 +112955,8 @@ "binop": null, "updateContext": null }, - "start": 19615, - "end": 19616, + "start": 19624, + "end": 19625, "loc": { "start": { "line": 544, @@ -112911,8 +112980,8 @@ "postfix": false, "binop": null }, - "start": 19617, - "end": 19618, + "start": 19626, + "end": 19627, "loc": { "start": { "line": 544, @@ -112937,8 +113006,8 @@ "binop": null }, "value": "err", - "start": 19618, - "end": 19621, + "start": 19627, + "end": 19630, "loc": { "start": { "line": 544, @@ -112963,8 +113032,8 @@ "binop": null, "updateContext": null }, - "start": 19621, - "end": 19622, + "start": 19630, + "end": 19631, "loc": { "start": { "line": 544, @@ -112989,8 +113058,8 @@ "binop": null }, "value": "res", - "start": 19623, - "end": 19626, + "start": 19632, + "end": 19635, "loc": { "start": { "line": 544, @@ -113014,8 +113083,8 @@ "postfix": false, "binop": null }, - "start": 19626, - "end": 19627, + "start": 19635, + "end": 19636, "loc": { "start": { "line": 544, @@ -113040,8 +113109,8 @@ "binop": null, "updateContext": null }, - "start": 19628, - "end": 19630, + "start": 19637, + "end": 19639, "loc": { "start": { "line": 544, @@ -113066,8 +113135,8 @@ "binop": null }, "value": "iinkCallback", - "start": 19631, - "end": 19643, + "start": 19640, + "end": 19652, "loc": { "start": { "line": 544, @@ -113091,8 +113160,8 @@ "postfix": false, "binop": null }, - "start": 19643, - "end": 19644, + "start": 19652, + "end": 19653, "loc": { "start": { "line": 544, @@ -113117,8 +113186,8 @@ "binop": null }, "value": "model", - "start": 19644, - "end": 19649, + "start": 19653, + "end": 19658, "loc": { "start": { "line": 544, @@ -113143,8 +113212,8 @@ "binop": null, "updateContext": null }, - "start": 19649, - "end": 19650, + "start": 19658, + "end": 19659, "loc": { "start": { "line": 544, @@ -113169,8 +113238,8 @@ "binop": null }, "value": "err", - "start": 19651, - "end": 19654, + "start": 19660, + "end": 19663, "loc": { "start": { "line": 544, @@ -113195,8 +113264,8 @@ "binop": null, "updateContext": null }, - "start": 19654, - "end": 19655, + "start": 19663, + "end": 19664, "loc": { "start": { "line": 544, @@ -113221,8 +113290,8 @@ "binop": null }, "value": "res", - "start": 19656, - "end": 19659, + "start": 19665, + "end": 19668, "loc": { "start": { "line": 544, @@ -113247,8 +113316,8 @@ "binop": null, "updateContext": null }, - "start": 19659, - "end": 19660, + "start": 19668, + "end": 19669, "loc": { "start": { "line": 544, @@ -113273,8 +113342,8 @@ "binop": null }, "value": "callback", - "start": 19661, - "end": 19669, + "start": 19670, + "end": 19678, "loc": { "start": { "line": 544, @@ -113298,8 +113367,8 @@ "postfix": false, "binop": null }, - "start": 19669, - "end": 19670, + "start": 19678, + "end": 19679, "loc": { "start": { "line": 544, @@ -113323,8 +113392,8 @@ "postfix": false, "binop": null }, - "start": 19673, - "end": 19674, + "start": 19682, + "end": 19683, "loc": { "start": { "line": 545, @@ -113348,8 +113417,8 @@ "postfix": false, "binop": null }, - "start": 19674, - "end": 19675, + "start": 19683, + "end": 19684, "loc": { "start": { "line": 545, @@ -113374,8 +113443,8 @@ "binop": null, "updateContext": null }, - "start": 19675, - "end": 19676, + "start": 19684, + "end": 19685, "loc": { "start": { "line": 545, @@ -113400,8 +113469,8 @@ "binop": null }, "value": "CdkWSRecognizerUtil", - "start": 19679, - "end": 19698, + "start": 19688, + "end": 19707, "loc": { "start": { "line": 546, @@ -113426,8 +113495,8 @@ "binop": null, "updateContext": null }, - "start": 19698, - "end": 19699, + "start": 19707, + "end": 19708, "loc": { "start": { "line": 546, @@ -113452,8 +113521,8 @@ "binop": null }, "value": "sendMessage", - "start": 19699, - "end": 19710, + "start": 19708, + "end": 19719, "loc": { "start": { "line": 546, @@ -113477,8 +113546,8 @@ "postfix": false, "binop": null }, - "start": 19710, - "end": 19711, + "start": 19719, + "end": 19720, "loc": { "start": { "line": 546, @@ -113503,8 +113572,8 @@ "binop": null }, "value": "recognizerContextRef", - "start": 19711, - "end": 19731, + "start": 19720, + "end": 19740, "loc": { "start": { "line": 546, @@ -113529,8 +113598,8 @@ "binop": null, "updateContext": null }, - "start": 19731, - "end": 19732, + "start": 19740, + "end": 19741, "loc": { "start": { "line": 546, @@ -113555,8 +113624,8 @@ "binop": null }, "value": "buildSetPenStyle", - "start": 19733, - "end": 19749, + "start": 19742, + "end": 19758, "loc": { "start": { "line": 546, @@ -113581,8 +113650,8 @@ "binop": null, "updateContext": null }, - "start": 19749, - "end": 19750, + "start": 19758, + "end": 19759, "loc": { "start": { "line": 546, @@ -113607,8 +113676,8 @@ "binop": null }, "value": "penStyle", - "start": 19751, - "end": 19759, + "start": 19760, + "end": 19768, "loc": { "start": { "line": 546, @@ -113632,8 +113701,8 @@ "postfix": false, "binop": null }, - "start": 19759, - "end": 19760, + "start": 19768, + "end": 19769, "loc": { "start": { "line": 546, @@ -113658,8 +113727,8 @@ "binop": null, "updateContext": null }, - "start": 19765, - "end": 19766, + "start": 19774, + "end": 19775, "loc": { "start": { "line": 547, @@ -113686,8 +113755,8 @@ "updateContext": null }, "value": "catch", - "start": 19766, - "end": 19771, + "start": 19775, + "end": 19780, "loc": { "start": { "line": 547, @@ -113711,8 +113780,8 @@ "postfix": false, "binop": null }, - "start": 19771, - "end": 19772, + "start": 19780, + "end": 19781, "loc": { "start": { "line": 547, @@ -113737,8 +113806,8 @@ "binop": null }, "value": "exception", - "start": 19772, - "end": 19781, + "start": 19781, + "end": 19790, "loc": { "start": { "line": 547, @@ -113763,8 +113832,8 @@ "binop": null, "updateContext": null }, - "start": 19782, - "end": 19784, + "start": 19791, + "end": 19793, "loc": { "start": { "line": 547, @@ -113789,8 +113858,8 @@ "binop": null }, "value": "CdkWSRecognizerUtil", - "start": 19785, - "end": 19804, + "start": 19794, + "end": 19813, "loc": { "start": { "line": 547, @@ -113815,8 +113884,8 @@ "binop": null, "updateContext": null }, - "start": 19804, - "end": 19805, + "start": 19813, + "end": 19814, "loc": { "start": { "line": 547, @@ -113841,8 +113910,8 @@ "binop": null }, "value": "retry", - "start": 19805, - "end": 19810, + "start": 19814, + "end": 19819, "loc": { "start": { "line": 547, @@ -113866,8 +113935,8 @@ "postfix": false, "binop": null }, - "start": 19810, - "end": 19811, + "start": 19819, + "end": 19820, "loc": { "start": { "line": 547, @@ -113892,8 +113961,8 @@ "binop": null }, "value": "setPenStyle", - "start": 19811, - "end": 19822, + "start": 19820, + "end": 19831, "loc": { "start": { "line": 547, @@ -113918,8 +113987,8 @@ "binop": null, "updateContext": null }, - "start": 19822, - "end": 19823, + "start": 19831, + "end": 19832, "loc": { "start": { "line": 547, @@ -113944,8 +114013,8 @@ "binop": null }, "value": "recognizerContext", - "start": 19824, - "end": 19841, + "start": 19833, + "end": 19850, "loc": { "start": { "line": 547, @@ -113970,8 +114039,8 @@ "binop": null, "updateContext": null }, - "start": 19841, - "end": 19842, + "start": 19850, + "end": 19851, "loc": { "start": { "line": 547, @@ -113996,8 +114065,8 @@ "binop": null }, "value": "model", - "start": 19843, - "end": 19848, + "start": 19852, + "end": 19857, "loc": { "start": { "line": 547, @@ -114022,8 +114091,8 @@ "binop": null, "updateContext": null }, - "start": 19848, - "end": 19849, + "start": 19857, + "end": 19858, "loc": { "start": { "line": 547, @@ -114048,8 +114117,8 @@ "binop": null }, "value": "callback", - "start": 19850, - "end": 19858, + "start": 19859, + "end": 19867, "loc": { "start": { "line": 547, @@ -114073,8 +114142,8 @@ "postfix": false, "binop": null }, - "start": 19858, - "end": 19859, + "start": 19867, + "end": 19868, "loc": { "start": { "line": 547, @@ -114098,8 +114167,8 @@ "postfix": false, "binop": null }, - "start": 19859, - "end": 19860, + "start": 19868, + "end": 19869, "loc": { "start": { "line": 547, @@ -114124,8 +114193,8 @@ "binop": null, "updateContext": null }, - "start": 19860, - "end": 19861, + "start": 19869, + "end": 19870, "loc": { "start": { "line": 547, @@ -114149,8 +114218,8 @@ "postfix": false, "binop": null }, - "start": 19862, - "end": 19863, + "start": 19871, + "end": 19872, "loc": { "start": { "line": 548, @@ -114165,8 +114234,8 @@ { "type": "CommentBlock", "value": "*\n * setPenStyleClasses action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {String} penStyleClasses Current penStyleClasses\n * @param {RecognizerCallback} callback\n ", - "start": 19865, - "end": 20114, + "start": 19874, + "end": 20123, "loc": { "start": { "line": 550, @@ -114193,8 +114262,8 @@ "updateContext": null }, "value": "export", - "start": 20115, - "end": 20121, + "start": 20124, + "end": 20130, "loc": { "start": { "line": 557, @@ -114220,8 +114289,8 @@ "binop": null }, "value": "function", - "start": 20122, - "end": 20130, + "start": 20131, + "end": 20139, "loc": { "start": { "line": 557, @@ -114246,8 +114315,8 @@ "binop": null }, "value": "setPenStyleClasses", - "start": 20131, - "end": 20149, + "start": 20140, + "end": 20158, "loc": { "start": { "line": 557, @@ -114271,8 +114340,8 @@ "postfix": false, "binop": null }, - "start": 20149, - "end": 20150, + "start": 20158, + "end": 20159, "loc": { "start": { "line": 557, @@ -114297,8 +114366,8 @@ "binop": null }, "value": "recognizerContext", - "start": 20150, - "end": 20167, + "start": 20159, + "end": 20176, "loc": { "start": { "line": 557, @@ -114323,8 +114392,8 @@ "binop": null, "updateContext": null }, - "start": 20167, - "end": 20168, + "start": 20176, + "end": 20177, "loc": { "start": { "line": 557, @@ -114349,8 +114418,8 @@ "binop": null }, "value": "model", - "start": 20169, - "end": 20174, + "start": 20178, + "end": 20183, "loc": { "start": { "line": 557, @@ -114375,8 +114444,8 @@ "binop": null, "updateContext": null }, - "start": 20174, - "end": 20175, + "start": 20183, + "end": 20184, "loc": { "start": { "line": 557, @@ -114401,8 +114470,8 @@ "binop": null }, "value": "penStyleClasses", - "start": 20176, - "end": 20191, + "start": 20185, + "end": 20200, "loc": { "start": { "line": 557, @@ -114427,8 +114496,8 @@ "binop": null, "updateContext": null }, - "start": 20191, - "end": 20192, + "start": 20200, + "end": 20201, "loc": { "start": { "line": 557, @@ -114453,8 +114522,8 @@ "binop": null }, "value": "callback", - "start": 20193, - "end": 20201, + "start": 20202, + "end": 20210, "loc": { "start": { "line": 557, @@ -114478,8 +114547,8 @@ "postfix": false, "binop": null }, - "start": 20201, - "end": 20202, + "start": 20210, + "end": 20211, "loc": { "start": { "line": 557, @@ -114503,8 +114572,8 @@ "postfix": false, "binop": null }, - "start": 20203, - "end": 20204, + "start": 20212, + "end": 20213, "loc": { "start": { "line": 557, @@ -114531,8 +114600,8 @@ "updateContext": null }, "value": "const", - "start": 20207, - "end": 20212, + "start": 20216, + "end": 20221, "loc": { "start": { "line": 558, @@ -114557,8 +114626,8 @@ "binop": null }, "value": "recognizerContextRef", - "start": 20213, - "end": 20233, + "start": 20222, + "end": 20242, "loc": { "start": { "line": 558, @@ -114584,8 +114653,8 @@ "updateContext": null }, "value": "=", - "start": 20234, - "end": 20235, + "start": 20243, + "end": 20244, "loc": { "start": { "line": 558, @@ -114610,8 +114679,8 @@ "binop": null }, "value": "RecognizerContext", - "start": 20236, - "end": 20253, + "start": 20245, + "end": 20262, "loc": { "start": { "line": 558, @@ -114636,8 +114705,8 @@ "binop": null, "updateContext": null }, - "start": 20253, - "end": 20254, + "start": 20262, + "end": 20263, "loc": { "start": { "line": 558, @@ -114662,8 +114731,8 @@ "binop": null }, "value": "setRecognitionContext", - "start": 20254, - "end": 20275, + "start": 20263, + "end": 20284, "loc": { "start": { "line": 558, @@ -114687,8 +114756,8 @@ "postfix": false, "binop": null }, - "start": 20275, - "end": 20276, + "start": 20284, + "end": 20285, "loc": { "start": { "line": 558, @@ -114713,8 +114782,8 @@ "binop": null }, "value": "recognizerContext", - "start": 20276, - "end": 20293, + "start": 20285, + "end": 20302, "loc": { "start": { "line": 558, @@ -114739,8 +114808,8 @@ "binop": null, "updateContext": null }, - "start": 20293, - "end": 20294, + "start": 20302, + "end": 20303, "loc": { "start": { "line": 558, @@ -114764,8 +114833,8 @@ "postfix": false, "binop": null }, - "start": 20295, - "end": 20296, + "start": 20304, + "end": 20305, "loc": { "start": { "line": 558, @@ -114790,8 +114859,8 @@ "binop": null }, "value": "model", - "start": 20301, - "end": 20306, + "start": 20310, + "end": 20315, "loc": { "start": { "line": 559, @@ -114816,8 +114885,8 @@ "binop": null, "updateContext": null }, - "start": 20306, - "end": 20307, + "start": 20315, + "end": 20316, "loc": { "start": { "line": 559, @@ -114842,8 +114911,8 @@ "binop": null }, "value": "callback", - "start": 20312, - "end": 20320, + "start": 20321, + "end": 20329, "loc": { "start": { "line": 560, @@ -114868,8 +114937,8 @@ "binop": null, "updateContext": null }, - "start": 20320, - "end": 20321, + "start": 20329, + "end": 20330, "loc": { "start": { "line": 560, @@ -114893,8 +114962,8 @@ "postfix": false, "binop": null }, - "start": 20322, - "end": 20323, + "start": 20331, + "end": 20332, "loc": { "start": { "line": 560, @@ -114919,8 +114988,8 @@ "binop": null }, "value": "err", - "start": 20323, - "end": 20326, + "start": 20332, + "end": 20335, "loc": { "start": { "line": 560, @@ -114945,8 +115014,8 @@ "binop": null, "updateContext": null }, - "start": 20326, - "end": 20327, + "start": 20335, + "end": 20336, "loc": { "start": { "line": 560, @@ -114971,8 +115040,8 @@ "binop": null }, "value": "res", - "start": 20328, - "end": 20331, + "start": 20337, + "end": 20340, "loc": { "start": { "line": 560, @@ -114996,8 +115065,8 @@ "postfix": false, "binop": null }, - "start": 20331, - "end": 20332, + "start": 20340, + "end": 20341, "loc": { "start": { "line": 560, @@ -115022,8 +115091,8 @@ "binop": null, "updateContext": null }, - "start": 20333, - "end": 20335, + "start": 20342, + "end": 20344, "loc": { "start": { "line": 560, @@ -115048,8 +115117,8 @@ "binop": null }, "value": "iinkCallback", - "start": 20336, - "end": 20348, + "start": 20345, + "end": 20357, "loc": { "start": { "line": 560, @@ -115073,8 +115142,8 @@ "postfix": false, "binop": null }, - "start": 20348, - "end": 20349, + "start": 20357, + "end": 20358, "loc": { "start": { "line": 560, @@ -115099,8 +115168,8 @@ "binop": null }, "value": "model", - "start": 20349, - "end": 20354, + "start": 20358, + "end": 20363, "loc": { "start": { "line": 560, @@ -115125,8 +115194,8 @@ "binop": null, "updateContext": null }, - "start": 20354, - "end": 20355, + "start": 20363, + "end": 20364, "loc": { "start": { "line": 560, @@ -115151,8 +115220,8 @@ "binop": null }, "value": "err", - "start": 20356, - "end": 20359, + "start": 20365, + "end": 20368, "loc": { "start": { "line": 560, @@ -115177,8 +115246,8 @@ "binop": null, "updateContext": null }, - "start": 20359, - "end": 20360, + "start": 20368, + "end": 20369, "loc": { "start": { "line": 560, @@ -115203,8 +115272,8 @@ "binop": null }, "value": "res", - "start": 20361, - "end": 20364, + "start": 20370, + "end": 20373, "loc": { "start": { "line": 560, @@ -115229,8 +115298,8 @@ "binop": null, "updateContext": null }, - "start": 20364, - "end": 20365, + "start": 20373, + "end": 20374, "loc": { "start": { "line": 560, @@ -115255,8 +115324,8 @@ "binop": null }, "value": "callback", - "start": 20366, - "end": 20374, + "start": 20375, + "end": 20383, "loc": { "start": { "line": 560, @@ -115280,8 +115349,8 @@ "postfix": false, "binop": null }, - "start": 20374, - "end": 20375, + "start": 20383, + "end": 20384, "loc": { "start": { "line": 560, @@ -115305,8 +115374,8 @@ "postfix": false, "binop": null }, - "start": 20378, - "end": 20379, + "start": 20387, + "end": 20388, "loc": { "start": { "line": 561, @@ -115330,8 +115399,8 @@ "postfix": false, "binop": null }, - "start": 20379, - "end": 20380, + "start": 20388, + "end": 20389, "loc": { "start": { "line": 561, @@ -115356,8 +115425,8 @@ "binop": null, "updateContext": null }, - "start": 20380, - "end": 20381, + "start": 20389, + "end": 20390, "loc": { "start": { "line": 561, @@ -115382,8 +115451,8 @@ "binop": null }, "value": "CdkWSRecognizerUtil", - "start": 20384, - "end": 20403, + "start": 20393, + "end": 20412, "loc": { "start": { "line": 562, @@ -115408,8 +115477,8 @@ "binop": null, "updateContext": null }, - "start": 20403, - "end": 20404, + "start": 20412, + "end": 20413, "loc": { "start": { "line": 562, @@ -115434,8 +115503,8 @@ "binop": null }, "value": "sendMessage", - "start": 20404, - "end": 20415, + "start": 20413, + "end": 20424, "loc": { "start": { "line": 562, @@ -115459,8 +115528,8 @@ "postfix": false, "binop": null }, - "start": 20415, - "end": 20416, + "start": 20424, + "end": 20425, "loc": { "start": { "line": 562, @@ -115485,8 +115554,8 @@ "binop": null }, "value": "recognizerContextRef", - "start": 20416, - "end": 20436, + "start": 20425, + "end": 20445, "loc": { "start": { "line": 562, @@ -115511,8 +115580,8 @@ "binop": null, "updateContext": null }, - "start": 20436, - "end": 20437, + "start": 20445, + "end": 20446, "loc": { "start": { "line": 562, @@ -115537,8 +115606,8 @@ "binop": null }, "value": "buildSetPenStyleClasses", - "start": 20438, - "end": 20461, + "start": 20447, + "end": 20470, "loc": { "start": { "line": 562, @@ -115563,8 +115632,8 @@ "binop": null, "updateContext": null }, - "start": 20461, - "end": 20462, + "start": 20470, + "end": 20471, "loc": { "start": { "line": 562, @@ -115589,8 +115658,8 @@ "binop": null }, "value": "penStyleClasses", - "start": 20463, - "end": 20478, + "start": 20472, + "end": 20487, "loc": { "start": { "line": 562, @@ -115614,8 +115683,8 @@ "postfix": false, "binop": null }, - "start": 20478, - "end": 20479, + "start": 20487, + "end": 20488, "loc": { "start": { "line": 562, @@ -115640,8 +115709,8 @@ "binop": null, "updateContext": null }, - "start": 20484, - "end": 20485, + "start": 20493, + "end": 20494, "loc": { "start": { "line": 563, @@ -115668,8 +115737,8 @@ "updateContext": null }, "value": "catch", - "start": 20485, - "end": 20490, + "start": 20494, + "end": 20499, "loc": { "start": { "line": 563, @@ -115693,8 +115762,8 @@ "postfix": false, "binop": null }, - "start": 20490, - "end": 20491, + "start": 20499, + "end": 20500, "loc": { "start": { "line": 563, @@ -115719,8 +115788,8 @@ "binop": null }, "value": "exception", - "start": 20491, - "end": 20500, + "start": 20500, + "end": 20509, "loc": { "start": { "line": 563, @@ -115745,8 +115814,8 @@ "binop": null, "updateContext": null }, - "start": 20501, - "end": 20503, + "start": 20510, + "end": 20512, "loc": { "start": { "line": 563, @@ -115771,8 +115840,8 @@ "binop": null }, "value": "CdkWSRecognizerUtil", - "start": 20504, - "end": 20523, + "start": 20513, + "end": 20532, "loc": { "start": { "line": 563, @@ -115797,8 +115866,8 @@ "binop": null, "updateContext": null }, - "start": 20523, - "end": 20524, + "start": 20532, + "end": 20533, "loc": { "start": { "line": 563, @@ -115823,8 +115892,8 @@ "binop": null }, "value": "retry", - "start": 20524, - "end": 20529, + "start": 20533, + "end": 20538, "loc": { "start": { "line": 563, @@ -115848,8 +115917,8 @@ "postfix": false, "binop": null }, - "start": 20529, - "end": 20530, + "start": 20538, + "end": 20539, "loc": { "start": { "line": 563, @@ -115874,8 +115943,8 @@ "binop": null }, "value": "setPenStyleClasses", - "start": 20530, - "end": 20548, + "start": 20539, + "end": 20557, "loc": { "start": { "line": 563, @@ -115900,8 +115969,8 @@ "binop": null, "updateContext": null }, - "start": 20548, - "end": 20549, + "start": 20557, + "end": 20558, "loc": { "start": { "line": 563, @@ -115926,8 +115995,8 @@ "binop": null }, "value": "recognizerContext", - "start": 20550, - "end": 20567, + "start": 20559, + "end": 20576, "loc": { "start": { "line": 563, @@ -115952,8 +116021,8 @@ "binop": null, "updateContext": null }, - "start": 20567, - "end": 20568, + "start": 20576, + "end": 20577, "loc": { "start": { "line": 563, @@ -115978,8 +116047,8 @@ "binop": null }, "value": "model", - "start": 20569, - "end": 20574, + "start": 20578, + "end": 20583, "loc": { "start": { "line": 563, @@ -116004,8 +116073,8 @@ "binop": null, "updateContext": null }, - "start": 20574, - "end": 20575, + "start": 20583, + "end": 20584, "loc": { "start": { "line": 563, @@ -116030,8 +116099,8 @@ "binop": null }, "value": "callback", - "start": 20576, - "end": 20584, + "start": 20585, + "end": 20593, "loc": { "start": { "line": 563, @@ -116055,8 +116124,8 @@ "postfix": false, "binop": null }, - "start": 20584, - "end": 20585, + "start": 20593, + "end": 20594, "loc": { "start": { "line": 563, @@ -116080,8 +116149,8 @@ "postfix": false, "binop": null }, - "start": 20585, - "end": 20586, + "start": 20594, + "end": 20595, "loc": { "start": { "line": 563, @@ -116106,8 +116175,8 @@ "binop": null, "updateContext": null }, - "start": 20586, - "end": 20587, + "start": 20595, + "end": 20596, "loc": { "start": { "line": 563, @@ -116131,8 +116200,8 @@ "postfix": false, "binop": null }, - "start": 20588, - "end": 20589, + "start": 20597, + "end": 20598, "loc": { "start": { "line": 564, @@ -116147,8 +116216,8 @@ { "type": "CommentBlock", "value": "*\n * SetTheme action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Theme} theme Current theme\n * @param {RecognizerCallback} callback\n ", - "start": 20591, - "end": 20809, + "start": 20600, + "end": 20818, "loc": { "start": { "line": 566, @@ -116175,8 +116244,8 @@ "updateContext": null }, "value": "export", - "start": 20810, - "end": 20816, + "start": 20819, + "end": 20825, "loc": { "start": { "line": 573, @@ -116202,8 +116271,8 @@ "binop": null }, "value": "function", - "start": 20817, - "end": 20825, + "start": 20826, + "end": 20834, "loc": { "start": { "line": 573, @@ -116228,8 +116297,8 @@ "binop": null }, "value": "setTheme", - "start": 20826, - "end": 20834, + "start": 20835, + "end": 20843, "loc": { "start": { "line": 573, @@ -116253,8 +116322,8 @@ "postfix": false, "binop": null }, - "start": 20834, - "end": 20835, + "start": 20843, + "end": 20844, "loc": { "start": { "line": 573, @@ -116279,8 +116348,8 @@ "binop": null }, "value": "recognizerContext", - "start": 20835, - "end": 20852, + "start": 20844, + "end": 20861, "loc": { "start": { "line": 573, @@ -116305,8 +116374,8 @@ "binop": null, "updateContext": null }, - "start": 20852, - "end": 20853, + "start": 20861, + "end": 20862, "loc": { "start": { "line": 573, @@ -116331,8 +116400,8 @@ "binop": null }, "value": "model", - "start": 20854, - "end": 20859, + "start": 20863, + "end": 20868, "loc": { "start": { "line": 573, @@ -116357,8 +116426,8 @@ "binop": null, "updateContext": null }, - "start": 20859, - "end": 20860, + "start": 20868, + "end": 20869, "loc": { "start": { "line": 573, @@ -116383,8 +116452,8 @@ "binop": null }, "value": "theme", - "start": 20861, - "end": 20866, + "start": 20870, + "end": 20875, "loc": { "start": { "line": 573, @@ -116409,8 +116478,8 @@ "binop": null, "updateContext": null }, - "start": 20866, - "end": 20867, + "start": 20875, + "end": 20876, "loc": { "start": { "line": 573, @@ -116435,8 +116504,8 @@ "binop": null }, "value": "callback", - "start": 20868, - "end": 20876, + "start": 20877, + "end": 20885, "loc": { "start": { "line": 573, @@ -116460,8 +116529,8 @@ "postfix": false, "binop": null }, - "start": 20876, - "end": 20877, + "start": 20885, + "end": 20886, "loc": { "start": { "line": 573, @@ -116485,8 +116554,8 @@ "postfix": false, "binop": null }, - "start": 20878, - "end": 20879, + "start": 20887, + "end": 20888, "loc": { "start": { "line": 573, @@ -116513,8 +116582,8 @@ "updateContext": null }, "value": "const", - "start": 20882, - "end": 20887, + "start": 20891, + "end": 20896, "loc": { "start": { "line": 574, @@ -116539,8 +116608,8 @@ "binop": null }, "value": "recognizerContextRef", - "start": 20888, - "end": 20908, + "start": 20897, + "end": 20917, "loc": { "start": { "line": 574, @@ -116566,8 +116635,8 @@ "updateContext": null }, "value": "=", - "start": 20909, - "end": 20910, + "start": 20918, + "end": 20919, "loc": { "start": { "line": 574, @@ -116592,8 +116661,8 @@ "binop": null }, "value": "RecognizerContext", - "start": 20911, - "end": 20928, + "start": 20920, + "end": 20937, "loc": { "start": { "line": 574, @@ -116618,8 +116687,8 @@ "binop": null, "updateContext": null }, - "start": 20928, - "end": 20929, + "start": 20937, + "end": 20938, "loc": { "start": { "line": 574, @@ -116644,8 +116713,8 @@ "binop": null }, "value": "setRecognitionContext", - "start": 20929, - "end": 20950, + "start": 20938, + "end": 20959, "loc": { "start": { "line": 574, @@ -116669,8 +116738,8 @@ "postfix": false, "binop": null }, - "start": 20950, - "end": 20951, + "start": 20959, + "end": 20960, "loc": { "start": { "line": 574, @@ -116695,8 +116764,8 @@ "binop": null }, "value": "recognizerContext", - "start": 20951, - "end": 20968, + "start": 20960, + "end": 20977, "loc": { "start": { "line": 574, @@ -116721,8 +116790,8 @@ "binop": null, "updateContext": null }, - "start": 20968, - "end": 20969, + "start": 20977, + "end": 20978, "loc": { "start": { "line": 574, @@ -116746,8 +116815,8 @@ "postfix": false, "binop": null }, - "start": 20970, - "end": 20971, + "start": 20979, + "end": 20980, "loc": { "start": { "line": 574, @@ -116772,8 +116841,8 @@ "binop": null }, "value": "model", - "start": 20976, - "end": 20981, + "start": 20985, + "end": 20990, "loc": { "start": { "line": 575, @@ -116798,8 +116867,8 @@ "binop": null, "updateContext": null }, - "start": 20981, - "end": 20982, + "start": 20990, + "end": 20991, "loc": { "start": { "line": 575, @@ -116824,8 +116893,8 @@ "binop": null }, "value": "callback", - "start": 20987, - "end": 20995, + "start": 20996, + "end": 21004, "loc": { "start": { "line": 576, @@ -116850,8 +116919,8 @@ "binop": null, "updateContext": null }, - "start": 20995, - "end": 20996, + "start": 21004, + "end": 21005, "loc": { "start": { "line": 576, @@ -116875,8 +116944,8 @@ "postfix": false, "binop": null }, - "start": 20997, - "end": 20998, + "start": 21006, + "end": 21007, "loc": { "start": { "line": 576, @@ -116901,8 +116970,8 @@ "binop": null }, "value": "err", - "start": 20998, - "end": 21001, + "start": 21007, + "end": 21010, "loc": { "start": { "line": 576, @@ -116927,8 +116996,8 @@ "binop": null, "updateContext": null }, - "start": 21001, - "end": 21002, + "start": 21010, + "end": 21011, "loc": { "start": { "line": 576, @@ -116953,8 +117022,8 @@ "binop": null }, "value": "res", - "start": 21003, - "end": 21006, + "start": 21012, + "end": 21015, "loc": { "start": { "line": 576, @@ -116978,8 +117047,8 @@ "postfix": false, "binop": null }, - "start": 21006, - "end": 21007, + "start": 21015, + "end": 21016, "loc": { "start": { "line": 576, @@ -117004,8 +117073,8 @@ "binop": null, "updateContext": null }, - "start": 21008, - "end": 21010, + "start": 21017, + "end": 21019, "loc": { "start": { "line": 576, @@ -117030,8 +117099,8 @@ "binop": null }, "value": "iinkCallback", - "start": 21011, - "end": 21023, + "start": 21020, + "end": 21032, "loc": { "start": { "line": 576, @@ -117055,8 +117124,8 @@ "postfix": false, "binop": null }, - "start": 21023, - "end": 21024, + "start": 21032, + "end": 21033, "loc": { "start": { "line": 576, @@ -117081,8 +117150,8 @@ "binop": null }, "value": "model", - "start": 21024, - "end": 21029, + "start": 21033, + "end": 21038, "loc": { "start": { "line": 576, @@ -117107,8 +117176,8 @@ "binop": null, "updateContext": null }, - "start": 21029, - "end": 21030, + "start": 21038, + "end": 21039, "loc": { "start": { "line": 576, @@ -117133,8 +117202,8 @@ "binop": null }, "value": "err", - "start": 21031, - "end": 21034, + "start": 21040, + "end": 21043, "loc": { "start": { "line": 576, @@ -117159,8 +117228,8 @@ "binop": null, "updateContext": null }, - "start": 21034, - "end": 21035, + "start": 21043, + "end": 21044, "loc": { "start": { "line": 576, @@ -117185,8 +117254,8 @@ "binop": null }, "value": "res", - "start": 21036, - "end": 21039, + "start": 21045, + "end": 21048, "loc": { "start": { "line": 576, @@ -117211,8 +117280,8 @@ "binop": null, "updateContext": null }, - "start": 21039, - "end": 21040, + "start": 21048, + "end": 21049, "loc": { "start": { "line": 576, @@ -117237,8 +117306,8 @@ "binop": null }, "value": "callback", - "start": 21041, - "end": 21049, + "start": 21050, + "end": 21058, "loc": { "start": { "line": 576, @@ -117262,8 +117331,8 @@ "postfix": false, "binop": null }, - "start": 21049, - "end": 21050, + "start": 21058, + "end": 21059, "loc": { "start": { "line": 576, @@ -117287,8 +117356,8 @@ "postfix": false, "binop": null }, - "start": 21053, - "end": 21054, + "start": 21062, + "end": 21063, "loc": { "start": { "line": 577, @@ -117312,8 +117381,8 @@ "postfix": false, "binop": null }, - "start": 21054, - "end": 21055, + "start": 21063, + "end": 21064, "loc": { "start": { "line": 577, @@ -117338,8 +117407,8 @@ "binop": null, "updateContext": null }, - "start": 21055, - "end": 21056, + "start": 21064, + "end": 21065, "loc": { "start": { "line": 577, @@ -117364,8 +117433,8 @@ "binop": null }, "value": "CdkWSRecognizerUtil", - "start": 21059, - "end": 21078, + "start": 21068, + "end": 21087, "loc": { "start": { "line": 578, @@ -117390,8 +117459,8 @@ "binop": null, "updateContext": null }, - "start": 21078, - "end": 21079, + "start": 21087, + "end": 21088, "loc": { "start": { "line": 578, @@ -117416,8 +117485,8 @@ "binop": null }, "value": "sendMessage", - "start": 21079, - "end": 21090, + "start": 21088, + "end": 21099, "loc": { "start": { "line": 578, @@ -117441,8 +117510,8 @@ "postfix": false, "binop": null }, - "start": 21090, - "end": 21091, + "start": 21099, + "end": 21100, "loc": { "start": { "line": 578, @@ -117467,8 +117536,8 @@ "binop": null }, "value": "recognizerContextRef", - "start": 21091, - "end": 21111, + "start": 21100, + "end": 21120, "loc": { "start": { "line": 578, @@ -117493,8 +117562,8 @@ "binop": null, "updateContext": null }, - "start": 21111, - "end": 21112, + "start": 21120, + "end": 21121, "loc": { "start": { "line": 578, @@ -117519,8 +117588,8 @@ "binop": null }, "value": "buildSetTheme", - "start": 21113, - "end": 21126, + "start": 21122, + "end": 21135, "loc": { "start": { "line": 578, @@ -117545,8 +117614,8 @@ "binop": null, "updateContext": null }, - "start": 21126, - "end": 21127, + "start": 21135, + "end": 21136, "loc": { "start": { "line": 578, @@ -117571,8 +117640,8 @@ "binop": null }, "value": "theme", - "start": 21128, - "end": 21133, + "start": 21137, + "end": 21142, "loc": { "start": { "line": 578, @@ -117596,8 +117665,8 @@ "postfix": false, "binop": null }, - "start": 21133, - "end": 21134, + "start": 21142, + "end": 21143, "loc": { "start": { "line": 578, @@ -117622,8 +117691,8 @@ "binop": null, "updateContext": null }, - "start": 21139, - "end": 21140, + "start": 21148, + "end": 21149, "loc": { "start": { "line": 579, @@ -117650,8 +117719,8 @@ "updateContext": null }, "value": "catch", - "start": 21140, - "end": 21145, + "start": 21149, + "end": 21154, "loc": { "start": { "line": 579, @@ -117675,8 +117744,8 @@ "postfix": false, "binop": null }, - "start": 21145, - "end": 21146, + "start": 21154, + "end": 21155, "loc": { "start": { "line": 579, @@ -117701,8 +117770,8 @@ "binop": null }, "value": "exception", - "start": 21146, - "end": 21155, + "start": 21155, + "end": 21164, "loc": { "start": { "line": 579, @@ -117727,8 +117796,8 @@ "binop": null, "updateContext": null }, - "start": 21156, - "end": 21158, + "start": 21165, + "end": 21167, "loc": { "start": { "line": 579, @@ -117753,8 +117822,8 @@ "binop": null }, "value": "CdkWSRecognizerUtil", - "start": 21159, - "end": 21178, + "start": 21168, + "end": 21187, "loc": { "start": { "line": 579, @@ -117779,8 +117848,8 @@ "binop": null, "updateContext": null }, - "start": 21178, - "end": 21179, + "start": 21187, + "end": 21188, "loc": { "start": { "line": 579, @@ -117805,8 +117874,8 @@ "binop": null }, "value": "retry", - "start": 21179, - "end": 21184, + "start": 21188, + "end": 21193, "loc": { "start": { "line": 579, @@ -117830,8 +117899,8 @@ "postfix": false, "binop": null }, - "start": 21184, - "end": 21185, + "start": 21193, + "end": 21194, "loc": { "start": { "line": 579, @@ -117856,8 +117925,8 @@ "binop": null }, "value": "setTheme", - "start": 21185, - "end": 21193, + "start": 21194, + "end": 21202, "loc": { "start": { "line": 579, @@ -117882,8 +117951,8 @@ "binop": null, "updateContext": null }, - "start": 21193, - "end": 21194, + "start": 21202, + "end": 21203, "loc": { "start": { "line": 579, @@ -117908,8 +117977,8 @@ "binop": null }, "value": "recognizerContext", - "start": 21195, - "end": 21212, + "start": 21204, + "end": 21221, "loc": { "start": { "line": 579, @@ -117934,8 +118003,8 @@ "binop": null, "updateContext": null }, - "start": 21212, - "end": 21213, + "start": 21221, + "end": 21222, "loc": { "start": { "line": 579, @@ -117960,8 +118029,8 @@ "binop": null }, "value": "model", - "start": 21214, - "end": 21219, + "start": 21223, + "end": 21228, "loc": { "start": { "line": 579, @@ -117986,8 +118055,8 @@ "binop": null, "updateContext": null }, - "start": 21219, - "end": 21220, + "start": 21228, + "end": 21229, "loc": { "start": { "line": 579, @@ -118012,8 +118081,8 @@ "binop": null }, "value": "callback", - "start": 21221, - "end": 21229, + "start": 21230, + "end": 21238, "loc": { "start": { "line": 579, @@ -118037,8 +118106,8 @@ "postfix": false, "binop": null }, - "start": 21229, - "end": 21230, + "start": 21238, + "end": 21239, "loc": { "start": { "line": 579, @@ -118062,8 +118131,8 @@ "postfix": false, "binop": null }, - "start": 21230, - "end": 21231, + "start": 21239, + "end": 21240, "loc": { "start": { "line": 579, @@ -118088,8 +118157,8 @@ "binop": null, "updateContext": null }, - "start": 21231, - "end": 21232, + "start": 21240, + "end": 21241, "loc": { "start": { "line": 579, @@ -118113,8 +118182,8 @@ "postfix": false, "binop": null }, - "start": 21233, - "end": 21234, + "start": 21242, + "end": 21243, "loc": { "start": { "line": 580, @@ -118139,8 +118208,8 @@ "binop": null, "updateContext": null }, - "start": 21235, - "end": 21235, + "start": 21244, + "end": 21244, "loc": { "start": { "line": 581, diff --git a/docs/class/src/Editor.js~Editor.html b/docs/class/src/Editor.js~Editor.html index 07397466..33d9fec2 100644 --- a/docs/class/src/Editor.js~Editor.html +++ b/docs/class/src/Editor.js~Editor.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • @@ -268,13 +269,13 @@
    -
    import {Editor} from 'myscript/src/Editor.js'
    +
    import {Editor} from 'myscript/src/Editor.js'
    public class - | source + | source
    @@ -682,7 +683,7 @@

    Editor

    - eastereggs: {inkImporter: inkImporter}: {"inkImporter": *} + eastereggs: *

    @@ -2034,6 +2035,35 @@

    Editor

    + + + +
    +

    + + + + forceChange() +

    +
    +
    + + +

    Trigger the change callbacks (and by default send a change event).

    +
    +
    + + + + + + + + + public + + + @@ -2438,6 +2468,35 @@

    Editor

    + + + +
    +

    + + + + unload() +

    +
    +
    + + +

    Detach event listeners from the DOM element created at editor creation.

    +
    +
    + + + + + + + + + public + + + @@ -2483,7 +2542,7 @@

    - source + source

    @@ -2574,7 +2633,7 @@

    - source + source

    @@ -2630,7 +2689,7 @@

    - source + source

    @@ -2686,7 +2745,7 @@

    - source + source

    @@ -2742,7 +2801,7 @@

    - source + source

    @@ -2798,7 +2857,7 @@

    - source + source

    @@ -2854,7 +2913,7 @@

    - source + source

    @@ -2910,7 +2969,7 @@

    - source + source

    @@ -2966,7 +3025,7 @@

    - source + source

    @@ -3022,7 +3081,7 @@

    - source + source

    @@ -3078,7 +3137,7 @@

    - source + source

    @@ -3123,7 +3182,7 @@

    - source + source

    @@ -3163,11 +3222,11 @@

    - eastereggs: {inkImporter: inkImporter}: {"inkImporter": *} + eastereggs: * - source + source

    @@ -3182,19 +3241,7 @@

    -
    -

    Return:

    - - - - - - - -
    {inkImporter: inkImporter}
    -
    -
    -
    + @@ -3223,7 +3270,7 @@

    - source + source

    @@ -3266,7 +3313,7 @@

    - source + source

    @@ -3310,7 +3357,7 @@

    - source + source

    @@ -3366,7 +3413,7 @@

    - source + source

    @@ -3422,7 +3469,7 @@

    - source + source

    @@ -3466,7 +3513,7 @@

    - source + source

    @@ -3522,7 +3569,7 @@

    - source + source

    @@ -3578,7 +3625,7 @@

    - source + source

    @@ -3634,7 +3681,7 @@

    - source + source

    @@ -3677,7 +3724,7 @@

    - source + source

    @@ -3720,7 +3767,7 @@

    - source + source

    @@ -3764,7 +3811,7 @@

    - source + source

    @@ -3808,7 +3855,7 @@

    - source + source

    @@ -3852,7 +3899,7 @@

    - source + source

    @@ -3896,7 +3943,7 @@

    - source + source

    @@ -3952,7 +3999,7 @@

    - source + source

    @@ -4008,7 +4055,7 @@

    - source + source

    @@ -4052,7 +4099,7 @@

    - source + source

    @@ -4108,7 +4155,7 @@

    - source + source

    @@ -4164,7 +4211,7 @@

    - source + source

    @@ -4220,7 +4267,7 @@

    - source + source

    @@ -4264,7 +4311,7 @@

    - source + source

    @@ -4320,7 +4367,7 @@

    - source + source

    @@ -4364,7 +4411,7 @@

    - source + source

    @@ -4408,7 +4455,7 @@

    - source + source

    @@ -4451,7 +4498,7 @@

    - source + source

    @@ -4507,7 +4554,7 @@

    - source + source

    @@ -4550,7 +4597,7 @@

    - source + source

    @@ -4606,7 +4653,7 @@

    - source + source

    @@ -4650,7 +4697,7 @@

    - source + source

    @@ -4693,7 +4740,7 @@

    - source + source

    @@ -4736,7 +4783,7 @@

    - source + source

    @@ -4794,7 +4841,7 @@

    - source + source

    @@ -4837,7 +4884,7 @@

    - source + source

    @@ -4880,7 +4927,7 @@

    - source + source

    @@ -4923,7 +4970,7 @@

    - source + source

    @@ -4966,7 +5013,7 @@

    - source + source

    @@ -5009,7 +5056,7 @@

    - source + source

    @@ -5052,7 +5099,7 @@

    - source + source

    @@ -5095,7 +5142,7 @@

    - source + source

    @@ -5138,7 +5185,7 @@

    - source + source

    @@ -5181,7 +5228,7 @@

    - source + source

    @@ -5225,7 +5272,7 @@

    - source + source

    @@ -5272,7 +5319,7 @@

    - source + source

    @@ -5316,7 +5363,7 @@

    - source + source

    @@ -5377,7 +5424,7 @@

    - source + source

    @@ -5425,6 +5472,50 @@

    Params:

    +
    +
    +

    + public + + + + + + forceChange() + + + + source + +

    + + + + +

    Trigger the change callbacks (and by default send a change event).

    +
    + + + +
    +
    + + + + + + + + + + + + + + + + +

    @@ -5438,7 +5529,7 @@

    - source + source

    @@ -5494,7 +5585,7 @@

    - source + source

    @@ -5538,7 +5629,7 @@

    - source + source

    @@ -5606,7 +5697,7 @@

    - source + source

    @@ -5682,7 +5773,7 @@

    - source + source

    @@ -5742,7 +5833,7 @@

    - source + source

    @@ -5803,7 +5894,7 @@

    - source + source

    @@ -5864,7 +5955,7 @@

    - source + source

    @@ -5929,7 +6020,7 @@

    - source + source

    @@ -5973,7 +6064,7 @@

    - source + source

    @@ -6032,7 +6123,7 @@

    - source + source

    @@ -6076,7 +6167,7 @@

    - source + source

    @@ -6136,7 +6227,7 @@

    - source + source

    @@ -6196,7 +6287,7 @@

    - source + source

    @@ -6227,6 +6318,50 @@

    +

    +
    +

    + public + + + + + + unload() + + + + source + +

    + + + + +

    Detach event listeners from the DOM element created at editor creation.

    +
    + + + +
    +
    + + + + + + + + + + + + + + + + +

    @@ -6240,7 +6375,7 @@

    - source + source

    diff --git a/docs/coverage.json b/docs/coverage.json index 3ff9549a..65cfd43d 100644 --- a/docs/coverage.json +++ b/docs/coverage.json @@ -1,23 +1,22 @@ { - "coverage": "71.68%", - "expectCount": 392, - "actualCount": 281, + "coverage": "71.89%", + "expectCount": 395, + "actualCount": 284, "files": { "src/Editor.js": { - "expectCount": 93, - "actualCount": 82, + "expectCount": 95, + "actualCount": 85, "undocumentLines": [ - 299, - 327, - 443, + 304, + 332, 448, - 477, - 527, - 628, - 629, - 810, - 830, - 1019 + 453, + 482, + 532, + 633, + 634, + 815, + 1029 ] }, "src/EditorFacade.js": { @@ -64,9 +63,11 @@ "undocumentLines": [] }, "src/eastereggs/InkImporter.js": { - "expectCount": 1, + "expectCount": 2, "actualCount": 1, - "undocumentLines": [] + "undocumentLines": [ + 80 + ] }, "src/grabber/PointerEventGrabber.js": { "expectCount": 4, @@ -74,7 +75,7 @@ "undocumentLines": [ 26, 39, - 188 + 196 ] }, "src/model/InkModel.js": { @@ -123,7 +124,7 @@ "expectCount": 1, "actualCount": 0, "undocumentLines": [ - 9 + 12 ] }, "src/recognizer/CryptoHelper.js": { @@ -208,13 +209,13 @@ "expectCount": 12, "actualCount": 5, "undocumentLines": [ - 61, - 69, - 77, - 85, - 95, - 140, - 171 + 62, + 70, + 78, + 86, + 96, + 146, + 152 ] }, "src/recognizer/websocket/CdkWSRecognizerUtil.js": { diff --git a/docs/dump.json b/docs/dump.json deleted file mode 100644 index 75fff8a2..00000000 --- a/docs/dump.json +++ /dev/null @@ -1,19177 +0,0 @@ -[ - { - "__docId__": 0, - "kind": "file", - "name": "src/Editor.js", - "content": "/* eslint-disable no-underscore-dangle */\nimport { editorLogger as logger } from './configuration/LoggerConfig';\nimport * as DefaultBehaviors from './configuration/DefaultBehaviors';\nimport * as DefaultConfiguration from './configuration/DefaultConfiguration';\nimport * as DefaultStyles from './configuration/DefaultPenStyle';\nimport * as DefaultTheme from './configuration/DefaultTheme';\nimport * as InkModel from './model/InkModel';\nimport * as UndoRedoContext from './model/UndoRedoContext';\nimport * as UndoRedoManager from './model/UndoRedoManager';\nimport * as ModelStats from './util/ModelStats';\nimport * as ImageRenderer from './renderer/canvas/ImageRenderer';\nimport * as RecognizerContext from './model/RecognizerContext';\nimport * as SmartGuide from './smartguide/SmartGuide';\nimport Constants from './configuration/Constants';\nimport { inkImporter } from './eastereggs/InkImporter';\n\n\n/**\n * Trigger callbacks\n * @param {Editor} editor\n * @param {Object} data\n * @param {...String} types\n * @return {Model}\n */\nfunction triggerCallbacks(editor, data, ...types) {\n const editorRef = editor;\n types.forEach((type) => {\n switch (type) {\n case Constants.EventType.RENDERED:\n break; // Internal use only\n case Constants.EventType.UNDO:\n case Constants.EventType.REDO:\n case Constants.EventType.CLEAR:\n case Constants.EventType.CONVERT:\n case Constants.EventType.EXPORT:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type));\n break;\n case Constants.EventType.LOADED:\n case Constants.EventType.CHANGED:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, {\n initialized: editor.initialized,\n canUndo: editor.canUndo,\n canRedo: editor.canRedo,\n canClear: editor.canClear,\n isEmpty: editor.isEmpty,\n possibleUndoCount: editor.possibleUndoCount,\n undoStackIndex: editor.undoStackIndex,\n canConvert: editor.canConvert,\n canExport: editor.canExport\n }));\n break;\n case Constants.EventType.EXPORTED:\n window.clearTimeout(editorRef.notifyTimer);\n editorRef.notifyTimer = window.setTimeout(() => {\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, {\n exports: editor.exports\n }));\n }, editorRef.configuration.processDelay);\n break;\n case Constants.EventType.SUPPORTED_IMPORT_MIMETYPES:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, {\n mimeTypes: editor.supportedImportMimeTypes\n }));\n break;\n case Constants.EventType.ERROR:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, data));\n break;\n case Constants.EventType.IDLE:\n editor.callbacks.forEach(callback => callback.call(editor.domElement, type, {\n idle: editor.idle\n }));\n break;\n default:\n logger.debug(`No valid trigger configured for ${type}`);\n break;\n }\n });\n}\n\n/**\n * Check if a clear is required, and does it if it is\n * @param {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} resetFunc\n * @param {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} func\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nfunction manageResetState(resetFunc, func, recognizerContext, model, callback, ...params) {\n // If strokes moved in the undo redo stack then a clear is mandatory before sending strokes.\n if (resetFunc && RecognizerContext.isResetRequired(recognizerContext, model)) {\n logger.debug('Reset is needed');\n resetFunc(recognizerContext, model, (err, resetedModel, ...types) => {\n if (err) {\n callback(err, resetedModel, ...types);\n } else {\n func(recognizerContext, resetedModel, callback, ...params);\n }\n });\n } else {\n func(recognizerContext, model, callback, ...params);\n }\n}\n\n/**\n * Check if the trigger in parameter is valid.\n * @param {Editor} editor\n * @param {String} type\n * @param {String} [trigger]\n * @return {Boolean}\n */\nfunction isTriggerValid(editor, type, trigger = editor.configuration.triggers[type]) {\n if (editor.recognizer &&\n editor.recognizer.getInfo().availableTriggers[type].includes(trigger)) {\n return true;\n }\n logger.error(`${trigger} is not a valid trigger for ${type}`);\n return false;\n}\n\n/**\n * Manage recognized model\n * @param {Editor} editor\n * @param {Model} model\n * @param {...String} types\n */\nfunction manageRecognizedModel(editor, model, ...types) {\n const editorRef = editor;\n const modelRef = model;\n logger.debug(`model changed callback on ${types} event(s)`, model);\n if (modelRef.creationTime === editor.model.creationTime) {\n // Merge recognized model if relevant and return current editor model\n if ((modelRef.rawStrokes.length === editor.model.rawStrokes.length) &&\n (modelRef.lastPositions.lastSentPosition >= editor.model.lastPositions.lastReceivedPosition)) {\n editorRef.model = InkModel.mergeModels(editorRef.model, modelRef);\n if (InkModel.needRedraw(editorRef.model) || types.includes(Constants.EventType.RENDERED)) {\n editor.renderer.drawModel(editor.rendererContext, editorRef.model, editor.stroker);\n }\n } else {\n editorRef.model = modelRef;\n editor.renderer.drawModel(editor.rendererContext, editorRef.model, editor.stroker);\n }\n triggerCallbacks(editor, undefined, ...types);\n }\n\n if (editor.configuration.recognitionParams.type === 'TEXT'\n && editor.configuration.recognitionParams.apiVersion === 'V4'\n && editor.configuration.recognitionParams.protocol !== 'REST'\n && editor.configuration.recognitionParams.v4.text.mimeTypes.includes(Constants.Exports.JIIX)\n && editor.configuration.recognitionParams.v4.text.smartGuide) {\n // eslint-disable-next-line no-use-before-define\n launchSmartGuide(editorRef, modelRef.exports);\n }\n\n if ((InkModel.extractPendingStrokes(model).length > 0) &&\n (!editor.recognizer.addStrokes) && // FIXME: Ugly hack to avoid double export (addStrokes + export)\n (editor.configuration.triggers.exportContent !== Constants.Trigger.DEMAND)) {\n /* eslint-disable no-use-before-define */\n launchExport(editor, model);\n /* eslint-enable no-use-before-define */\n }\n}\n\n/**\n * Recognizer callback\n * @param {Editor} editor\n * @param {Object} error\n * @param {Model} model\n * @param {...String} events\n */\nfunction recognizerCallback(editor, error, model, ...events) {\n const editorRef = editor;\n\n const handleResult = (err, res, ...types) => {\n if (err) {\n if (err.type !== 'close') {\n logger.error('Error while firing the recognition', err.stack || err); // Handle any error from all above steps\n }\n if ((err.message === 'Invalid application key.') || (err.message === 'Invalid HMAC') ||\n (err.error &&\n err.error.result &&\n err.error.result.error &&\n (err.error.result.error === 'InvalidApplicationKeyException' || err.error.result.error === 'InvalidHMACSignatureException')\n )) {\n editorRef.error.innerText = Constants.Error.WRONG_CREDENTIALS;\n } else if (err.message === 'Session is too old. Max Session Duration Reached') {\n editorRef.error.innerText = Constants.Error.TOO_OLD;\n } else if (err.message && editorRef.error.style.display === 'none') {\n editorRef.error.innerText = Constants.Error.NOT_REACHABLE;\n }\n if ((editorRef.error.innerText === Constants.Error.TOO_OLD || err.code === 1006 || err.reason === 'CLOSE_RECOGNIZER') && RecognizerContext.canReconnect(editor.recognizerContext)) {\n logger.info('Reconnection is available', err.stack || err);\n editorRef.error.style.display = 'none';\n } else {\n editorRef.error.style.display = 'initial';\n triggerCallbacks(editor, err, Constants.EventType.ERROR, ...types);\n }\n } else {\n manageRecognizedModel(editorRef, res, ...[...events, ...types].filter((el, i, a) => i === a.indexOf(el))); // Remove duplicate events\n }\n };\n\n logger.debug('recognition callback');\n if (editor.undoRedoManager.updateModel && !error) {\n editor.undoRedoManager.updateModel(editor.undoRedoContext, model, handleResult);\n } else {\n handleResult(error, model, ...events);\n }\n}\n\n/**\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [trigger]\n */\nfunction addStrokes(editor, model, trigger = editor.configuration.triggers.addStrokes) {\n if (editor.recognizer && editor.recognizer.addStrokes) {\n editor.recognizerContext.initPromise\n .then(() => {\n // Firing addStrokes only if recognizer is configure to do it\n if (isTriggerValid(editor, 'addStrokes', trigger)) {\n manageResetState(editor.recognizer.reset, editor.recognizer.addStrokes, editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n }\n });\n }\n}\n\n/**\n * Launch smartguide.\n * @param {Editor} editor\n * @param {Object} exports\n */\nfunction launchSmartGuide(editor, exports) {\n const editorRef = editor;\n editorRef.smartGuide = SmartGuide.launchSmartGuide(editor.smartGuide, exports);\n}\n\n/**\n * Launch ink import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {PointerEvents} events\n */\nfunction launchPointerEvents(editor, model, events) {\n if (editor.recognizer && editor.recognizer.pointerEvents) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.pointerEvents(editor.recognizerContext, model, events, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Launch the recognition with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} [requestedMimeTypes]\n * @param {String} [trigger]\n */\nfunction launchExport(editor, model, requestedMimeTypes, trigger = editor.configuration.triggers.exportContent) {\n if (editor.recognizer && editor.recognizer.export_) {\n editor.recognizerContext.initPromise\n .then(() => {\n // Firing export only if recognizer is configure to do it\n if (isTriggerValid(editor, 'exportContent', trigger)) {\n const editorRef = editor;\n window.clearTimeout(editor.exportTimer);\n editorRef.exportTimer = window.setTimeout(() => {\n manageResetState(editor.recognizer.reset, editor.recognizer.export_, editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n }, requestedMimeTypes);\n }, trigger === Constants.Trigger.QUIET_PERIOD ? editor.configuration.triggerDelay : 0);\n }\n });\n }\n}\n\n/**\n * Launch the import.\n * @param {Editor} editor\n * @param {Model} model\n * @param {Blob} data\n */\nfunction launchImport(editor, model, data) {\n if (editor.recognizer && editor.recognizer.import_) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.import_(editor.recognizerContext, model, data, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\nfunction launchGetSupportedImportMimeTypes(editor, model) {\n if (editor.recognizer && editor.recognizer.getSupportedImportMimeTypes) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.getSupportedImportMimeTypes(editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Launch the convert with all editor relative configuration and state.\n * @param {Editor} editor\n * @param {Model} model\n * @param {String} conversionState\n */\nfunction launchConvert(editor, model, conversionState) {\n if (editor.recognizer && editor.recognizer.convert) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.convert(editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n }, conversionState);\n });\n }\n}\n\nfunction launchConfig(editor, model) {\n if (editor.recognizer && editor.recognizer.sendConfiguration) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.sendConfiguration(editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Launch the resize.\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction launchResize(editor, model) {\n if (editor.recognizer && editor.recognizer.resize) {\n editor.recognizerContext.initPromise\n .then(() => {\n const editorRef = editor;\n window.clearTimeout(editor.resizeTimer);\n editorRef.resizeTimer = window.setTimeout(() => {\n editor.recognizer.resize(editor.recognizerContext, model, editor.domElement, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n }, editor.configuration.resizeTriggerDelay);\n });\n SmartGuide.resize(editor.smartGuide);\n }\n}\n\n/**\n * Launch wait for idle\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction launchWaitForIdle(editor, model) {\n if (editor.recognizer && editor.recognizer.waitForIdle) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.waitForIdle(editor.recognizerContext, model, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction setPenStyle(editor, model) {\n if (editor.recognizer && editor.recognizer.setPenStyle) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.setPenStyle(editor.recognizerContext, model, editor.penStyle, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Set pen style.\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction setPenStyleClasses(editor, model) {\n if (editor.recognizer && editor.recognizer.setPenStyleClasses) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.setPenStyleClasses(editor.recognizerContext, model, editor.penStyleClasses, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Set theme.\n * @param {Editor} editor\n * @param {Model} model\n */\nfunction setTheme(editor, model) {\n if (editor.recognizer && editor.recognizer.setTheme) {\n editor.recognizerContext.initPromise\n .then(() => {\n editor.recognizer.setTheme(editor.recognizerContext, model, editor.theme, (err, res, ...types) => {\n recognizerCallback(editor, err, res, ...types);\n });\n });\n }\n}\n\n/**\n * Editor\n */\nexport class Editor {\n /**\n * @param {Element} element DOM element to attach this editor\n * @param {Configuration} [configuration] Configuration to apply\n * @param {Theme} [theme] Custom theme to apply\n * @param {PenStyle} [penStyle] Custom style to apply\n * @param {Behaviors} [behaviors] Custom behaviors to apply\n */\n constructor(element, configuration, penStyle, theme, behaviors) {\n /**\n * Inner reference to the DOM Element\n * @type {Element}\n */\n this.domElement = element;\n this.domElement.classList.add('ms-editor');\n\n // eslint-disable-next-line no-undef\n this.loader = document.createElement('div');\n this.loader.classList.add('loader');\n this.loader = this.domElement.appendChild(this.loader);\n\n // eslint-disable-next-line no-undef\n this.error = document.createElement('div');\n this.error.classList.add('error-msg');\n this.error = this.domElement.appendChild(this.error);\n\n /**\n * Launch export timer\n * @type {Number}\n */\n this.exportTimer = undefined;\n\n /**\n * Launch resize timer\n * @type {Number}\n */\n this.resizeTimer = undefined;\n\n /**\n * Notify delay timer\n * @type {Number}\n */\n this.notifyTimer = undefined;\n\n\n /**\n * @private\n * @type {Behaviors}\n */\n this.innerBehaviors = DefaultBehaviors.overrideDefaultBehaviors(behaviors);\n this.configuration = configuration;\n this.smartGuide = SmartGuide.createSmartGuide(this);\n\n /**\n * Pen color used only for pending stroke\n * @type {string}\n */\n this.localTheme = '';\n\n this.theme = theme;\n this.penStyle = penStyle;\n this.penStyleClasses = '';\n\n this.domElement.editor = this;\n }\n\n /**\n * Set the recognition parameters\n * WARNING : Need to fire a clear if user have already input some strokes.\n * @param {Configuration} configuration\n */\n set configuration(configuration) {\n this.loader.style.display = 'initial';\n this.error.style.display = 'none';\n /**\n * @private\n * @type {Configuration}\n */\n this.innerConfiguration = DefaultConfiguration.overrideDefaultConfiguration(configuration);\n this.setThemeForFont(this.innerConfiguration.recognitionParams.v4.lang);\n this.behavior = this.behaviors.getBehaviorFromConfiguration(this.behaviors, this.innerConfiguration);\n }\n\n /**\n * Get the current recognition parameters\n * @return {Configuration}\n */\n get configuration() {\n return this.innerConfiguration;\n }\n\n /**\n * Set the pen style\n * @param {PenStyle} penStyle\n */\n set penStyle(penStyle) {\n /**\n * @private\n * @type {PenStyle}\n */\n this.innerPenStyle = DefaultStyles.overrideDefaultPenStyle(penStyle);\n this.localPenStyle = this.innerPenStyle;\n setPenStyle(this, this.model);\n }\n\n /**\n * Get the pen style\n * @return {PenStyle}\n */\n get penStyle() {\n return this.innerPenStyle;\n }\n\n /**\n * Set the pen style\n * @param {String} penStyleClasses\n */\n set penStyleClasses(penStyleClasses) {\n /**\n * @private\n * @type {String}\n */\n this.innerPenStyleClasses = penStyleClasses;\n this.localPenStyle = this.theme[`.${this.innerPenStyleClasses}`];\n setPenStyleClasses(this, this.model);\n }\n\n /**\n * Get the pen style\n * @return {String}\n */\n get penStyleClasses() {\n return this.innerPenStyleClasses;\n }\n\n /**\n * Set the theme\n * @param {Theme} theme\n */\n set theme(theme) {\n /**\n * @private\n * @type {Theme}\n */\n this.innerTheme = DefaultTheme.overrideDefaultTheme(theme);\n setTheme(this, this.model);\n }\n\n /**\n * Get the theme\n * @return {Theme}\n */\n get theme() {\n return this.innerTheme;\n }\n\n /**\n * Get behaviors\n * @return {Behaviors}\n */\n get behaviors() {\n return this.innerBehaviors;\n }\n\n /**\n * @private\n * @param {Behavior} behavior\n */\n set behavior(behavior) {\n if (behavior) {\n if (this.grabber) { // Remove event handlers to avoid multiplication (detach grabber)\n this.grabber.detach(this.domElement, this.grabberContext);\n }\n /**\n * @private\n * @type {Behavior}\n */\n this.innerBehavior = behavior;\n this.renderer = this.innerBehavior.renderer;\n this.recognizer = this.innerBehavior.recognizer;\n /**\n * Current grabber context\n * @type {GrabberContext}\n */\n this.grabberContext = this.grabber.attach(this.domElement, this);\n }\n }\n\n /**\n * Get current behavior\n * @return {Behavior}\n */\n get behavior() {\n return this.innerBehavior;\n }\n\n /**\n * Set the current recognizer\n * @private\n * @param {Recognizer} recognizer\n */\n set recognizer(recognizer) {\n this.undoRedoContext = UndoRedoContext.createUndoRedoContext(this.configuration);\n this.undoRedoManager = UndoRedoManager;\n\n const initialize = (model) => {\n /**\n * @private\n * @type {Recognizer}\n */\n this.innerRecognizer = recognizer;\n if (this.innerRecognizer) {\n /**\n * Current recognition context\n * @type {RecognizerContext}\n */\n this.recognizerContext = RecognizerContext.createEmptyRecognizerContext(this);\n // FIXME: merge undo/redo manager with default recognizer\n if (this.innerRecognizer.undo && this.innerRecognizer.redo && this.innerRecognizer.clear) {\n this.undoRedoContext = this.recognizerContext;\n this.undoRedoManager = this.innerRecognizer;\n }\n\n this.innerRecognizer.init(this.recognizerContext, model, (err, res, ...types) => {\n logger.debug('Recognizer initialized', res);\n this.loader.style.display = 'none';\n recognizerCallback(this, err, res, ...types);\n });\n }\n };\n\n if (recognizer) {\n if (this.innerRecognizer) {\n this.innerRecognizer.close(this.recognizerContext, this.model, (err, res, ...types) => {\n logger.info('Recognizer closed');\n recognizerCallback(this, err, res, ...types);\n initialize(InkModel.clearModel(res));\n });\n } else {\n /**\n * Current model\n * @type {Model}\n */\n this.model = InkModel.createModel(this.configuration);\n\n // INFO: Recognizer needs model to be initialized\n initialize(this.model);\n }\n }\n }\n\n /**\n * Get current recognizer\n * @return {Recognizer}\n */\n get recognizer() {\n return this.innerRecognizer;\n }\n\n /**\n * Set the current renderer\n * @private\n * @param {Renderer} renderer\n */\n set renderer(renderer) {\n if (renderer) {\n if (this.innerRenderer) {\n this.innerRenderer.detach(this.domElement, this.rendererContext);\n }\n\n /**\n * @private\n * @type {Renderer}\n */\n this.innerRenderer = renderer;\n if (this.innerRenderer) {\n /**\n * Current rendering context\n * @type {Object}\n */\n this.rendererContext = this.innerRenderer.attach(this.domElement, this.configuration.renderingParams.minHeight, this.configuration.renderingParams.minWidth);\n }\n }\n }\n\n /**\n * Get current renderer\n * @return {Renderer}\n */\n get renderer() {\n return this.innerRenderer;\n }\n\n /**\n * Get current grabber\n * @return {Grabber}\n */\n get grabber() {\n return this.behavior ? this.behavior.grabber : undefined;\n }\n\n /**\n * Get current stroker\n * @return {Stroker}\n */\n get stroker() {\n return this.behavior ? this.behavior.stroker : undefined;\n }\n\n /**\n * Get current callbacks\n * @return {Array}\n */\n get callbacks() {\n return this.behavior ? this.behavior.callbacks : undefined;\n }\n\n /**\n * Get a PNG image data url from the data model\n * @return {String}\n */\n get png() {\n return ImageRenderer.getImage(this.model, this.stroker);\n }\n\n /**\n * Get statistics to monitor what ink size is send to the server.\n * @return {Stats}\n */\n getStats() {\n return ModelStats.computeStats(this.model);\n }\n\n /**\n * True if initialized, false otherwise\n * @return {Boolean}\n */\n get initialized() {\n return this.recognizerContext ? this.recognizerContext.initialized : false;\n }\n\n /**\n * Handle a pointer down\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n * @param {String} [pointerType=mouse] Current pointer type\n * @param {String} [pointerId] Current pointer id\n */\n pointerDown(point, pointerType = 'pen', pointerId) {\n logger.trace('Pointer down', point);\n window.clearTimeout(this.notifyTimer);\n window.clearTimeout(this.exportTimer);\n this.model = InkModel.initPendingStroke(this.model, point, Object.assign({ pointerType, pointerId }, this.theme.ink, this.localPenStyle));\n this.renderer.drawCurrentStroke(this.rendererContext, this.model, this.stroker);\n // Currently no recognition on pointer down\n }\n\n /**\n * Handle a pointer move\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n */\n pointerMove(point) {\n logger.trace('Pointer move', point);\n this.model = InkModel.appendToPendingStroke(this.model, point);\n this.renderer.drawCurrentStroke(this.rendererContext, this.model, this.stroker);\n // Currently no recognition on pointer move\n }\n\n /**\n * Handle a pointer up\n * @param {{x: Number, y: Number, t: Number}} point Captured point coordinates\n */\n pointerUp(point) {\n logger.trace('Pointer up', point);\n this.model = InkModel.endPendingStroke(this.model, point, this.penStyle);\n this.renderer.drawModel(this.rendererContext, this.model, this.stroker);\n\n if (this.recognizer.addStrokes) {\n addStrokes(this, this.model);\n } else {\n // Push model in undo redo manager\n recognizerCallback(this, undefined, this.model);\n }\n }\n\n removeStroke(stroke) {\n this.model.strokeGroups.forEach((group) => {\n const stringStrokes = group.strokes.map(strokeFromGroup => JSON.stringify(strokeFromGroup));\n const strokeIndex = stringStrokes.indexOf(JSON.stringify(stroke));\n if (strokeIndex !== -1) {\n group.strokes.splice(strokeIndex, 1);\n }\n });\n const stringRawStrokes = this.model.rawStrokes.map(strokes => JSON.stringify(strokes));\n const strokeIndex = stringRawStrokes.indexOf(JSON.stringify(stroke));\n if (strokeIndex !== -1) {\n this.model.rawStrokes.splice(strokeIndex, 1);\n }\n this.renderer.drawModel(this.rendererContext, this.model, this.stroker);\n recognizerCallback(this, undefined, this.model);\n if (!(this.configuration.triggers.exportContent === 'DEMAND')) {\n launchExport(this, this.model);\n }\n }\n\n reDraw(rawStrokes, strokeGroups) {\n rawStrokes.forEach((stroke) => {\n InkModel.addStroke(this.model, stroke);\n });\n strokeGroups.forEach((group) => {\n group.strokes.forEach((strokeFromGroup) => {\n InkModel.addStrokeToGroup(this.model, strokeFromGroup, group.penStyle);\n });\n });\n this.renderer.drawModel(this.rendererContext, this.model, this.stroker);\n recognizerCallback(this, undefined, this.model);\n }\n\n /**\n * True if idle state\n * @return {Boolean}\n */\n get idle() {\n return this.recognizerContext.idle;\n }\n\n /**\n * Wait for idle state.\n */\n waitForIdle() {\n triggerCallbacks(this, undefined, Constants.EventType.IDLE);\n launchWaitForIdle(this, this.model);\n }\n\n /**\n * True if can undo, false otherwise.\n * @return {Boolean}\n */\n get canUndo() {\n return this.undoRedoContext.canUndo;\n }\n\n /**\n * Undo the last action.\n */\n undo() {\n logger.debug('Undo current model', this.model);\n triggerCallbacks(this, undefined, Constants.EventType.UNDO);\n this.undoRedoManager.undo(this.undoRedoContext, this.model, (err, res, ...types) => {\n manageRecognizedModel(this, res, ...types);\n });\n }\n\n /**\n * True if can redo, false otherwise.\n * @return {Boolean}\n */\n get canRedo() {\n return this.undoRedoContext.canRedo;\n }\n\n /**\n * Redo the last action.\n */\n redo() {\n logger.debug('Redo current model', this.model);\n triggerCallbacks(this, undefined, Constants.EventType.REDO);\n this.undoRedoManager.redo(this.undoRedoContext, this.model, (err, res, ...types) => {\n manageRecognizedModel(this, res, ...types);\n });\n }\n\n /**\n * True if empty, false otherwise\n * @returns {boolean}\n */\n get isEmpty() {\n return this.recognizerContext.isEmpty;\n }\n\n /**\n * True if can clear, false otherwise.\n * @return {Boolean}\n */\n get canClear() {\n return this.canUndo && this.model.rawStrokes.length > 0;\n }\n\n /**\n * Clear the output and the recognition result.\n */\n clear() {\n logger.debug('Clear current model', this.model);\n triggerCallbacks(this, undefined, Constants.EventType.CLEAR);\n this.recognizer.clear(this.recognizerContext, this.model, (err, res, ...types) => {\n recognizerCallback(this, err, res, ...types);\n });\n }\n\n /**\n * True if can convert, false otherwise.\n * @return {Boolean}\n */\n get canConvert() {\n return this.canUndo && this.canClear && this.recognizer && this.recognizer.convert;\n }\n\n /**\n * Convert the current content\n */\n convert(conversionState = 'DIGITAL_EDIT') {\n if (this.canConvert) {\n triggerCallbacks(this, undefined, Constants.EventType.CONVERT);\n launchConvert(this, this.model, conversionState);\n }\n }\n\n /**\n * Set the guides for text\n * @param {Boolean} [enable]\n */\n setGuides(enable = true) {\n this.configuration.recognitionParams.v4.text.guides.enable = enable;\n launchConfig(this, this.model);\n }\n\n /**\n * Return the position of the cursor identifying the current state in the internal iink undo/redo stack.\n * @returns {Number}\n */\n get possibleUndoCount() {\n return this.recognizerContext.possibleUndoCount;\n }\n\n /**\n * The number of operations that it is currently possible to undo.\n * @returns {Number}\n */\n get undoStackIndex() {\n return this.recognizerContext.undoStackIndex;\n }\n\n /**\n * True if can export, false otherwise.\n * @return {Boolean}\n */\n get canExport() {\n return this.canUndo && this.canClear && this.recognizer && this.recognizer.getInfo().availableTriggers.exportContent.includes(Constants.Trigger.DEMAND);\n }\n\n /**\n * Explicitly ask to perform an export. You have to listen to events to get the content as this function is non blocking and does not have a return type.\n * @param {Array} requestedMimeTypes Requested mime-types. Be sure to ask all the types required by the listeners of exported event.\n */\n export_(requestedMimeTypes) {\n if (this.canExport) {\n triggerCallbacks(this, undefined, Constants.EventType.EXPORT);\n launchExport(this, this.model, requestedMimeTypes, Constants.Trigger.DEMAND);\n }\n }\n\n /**\n * Import content.\n * @param {Blob|*} data Data to import\n * @param {String} [mimetype] Mimetype of the data, needed if data is not a Blob\n */\n import_(data, mimetype) {\n triggerCallbacks(this, undefined, Constants.EventType.IMPORT);\n launchImport(this, this.model, !(data instanceof Blob) ? new Blob([data], { type: mimetype }) : data);\n }\n\n /**\n * Get supported import mime types\n */\n getSupportedImportMimeTypes() {\n launchGetSupportedImportMimeTypes(this, this.model);\n }\n\n /**\n * pointer events\n * @param {PointerEvents} events\n */\n pointerEvents(events) {\n launchPointerEvents(this, this.model, events);\n }\n\n /**\n * Get current state exports\n * @return {Object}\n */\n get exports() {\n return this.model ? this.model.exports : undefined;\n }\n\n get supportedImportMimeTypes() {\n return this.recognizerContext.supportedImportMimeTypes;\n }\n\n /**\n * Function to call when the dom element link to the current ink paper has been resize.\n */\n resize() {\n logger.debug('Resizing editor');\n this.renderer.resize(this.rendererContext, this.model, this.stroker, this.configuration.renderingParams.minHeight, this.configuration.renderingParams.minWidth);\n launchResize(this, this.model);\n }\n\n /**\n * Set the theme (font family, font size and line height) depending on the language\n * @param lang\n */\n setThemeForFont(lang) {\n const defaultLang = !Object.keys(Constants.Languages).includes(lang);\n const armenian = lang === 'hy_AM';\n const fontFamily = defaultLang || armenian ? Constants.Languages.default : Constants.Languages[lang];\n const lineHeight = defaultLang || armenian ? '1.2' : '1.8';\n this.theme = {\n '.text': {\n 'font-family': fontFamily,\n 'line-height': lineHeight\n }\n };\n }\n\n /* eslint-disable class-methods-use-this */\n /**\n * Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice).\n * @returns {{inkImporter: inkImporter}}\n */\n get eastereggs() {\n return { inkImporter };\n }\n /* eslint-enable class-methods-use-this */\n}\n", - "static": true, - "longname": "src/Editor.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 1, - "kind": "function", - "name": "triggerCallbacks", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~triggerCallbacks", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Trigger callbacks", - "lineNumber": 25, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "" - }, - { - "nullable": null, - "types": [ - "...String" - ], - "spread": true, - "optional": false, - "name": "types", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 2, - "kind": "function", - "name": "manageResetState", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~manageResetState", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Check if a clear is required, and does it if it is", - "lineNumber": 88, - "params": [ - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": false, - "name": "resetFunc", - "description": "" - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": false, - "name": "func", - "description": "" - }, - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 3, - "kind": "function", - "name": "isTriggerValid", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~isTriggerValid", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Check if the trigger in parameter is valid.", - "lineNumber": 111, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": true, - "name": "trigger", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 4, - "kind": "function", - "name": "manageRecognizedModel", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~manageRecognizedModel", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Manage recognized model", - "lineNumber": 126, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - }, - { - "nullable": null, - "types": [ - "...String" - ], - "spread": true, - "optional": false, - "name": "types", - "description": "" - } - ] - }, - { - "__docId__": 5, - "kind": "function", - "name": "recognizerCallback", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~recognizerCallback", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Recognizer callback", - "lineNumber": 170, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "error", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - }, - { - "nullable": null, - "types": [ - "...String" - ], - "spread": true, - "optional": false, - "name": "events", - "description": "" - } - ] - }, - { - "__docId__": 6, - "kind": "function", - "name": "addStrokes", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~addStrokes", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Launch the recognition with all editor relative configuration and state.", - "lineNumber": 216, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": true, - "name": "trigger", - "description": "" - } - ] - }, - { - "__docId__": 7, - "kind": "function", - "name": "launchSmartGuide", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~launchSmartGuide", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Launch smartguide.", - "lineNumber": 235, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "exports", - "description": "" - } - ] - }, - { - "__docId__": 8, - "kind": "function", - "name": "launchPointerEvents", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~launchPointerEvents", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Launch ink import.", - "lineNumber": 246, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - }, - { - "nullable": null, - "types": [ - "PointerEvents" - ], - "spread": false, - "optional": false, - "name": "events", - "description": "" - } - ] - }, - { - "__docId__": 9, - "kind": "function", - "name": "launchExport", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~launchExport", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Launch the recognition with all editor relative configuration and state.", - "lineNumber": 264, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": true, - "name": "requestedMimeTypes", - "description": "" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": true, - "name": "trigger", - "description": "" - } - ] - }, - { - "__docId__": 10, - "kind": "function", - "name": "launchImport", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~launchImport", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Launch the import.", - "lineNumber": 288, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - }, - { - "nullable": null, - "types": [ - "Blob" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "" - } - ] - }, - { - "__docId__": 11, - "kind": "function", - "name": "launchGetSupportedImportMimeTypes", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~launchGetSupportedImportMimeTypes", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": null, - "lineNumber": 299, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "editor", - "types": [ - "*" - ] - }, - { - "name": "model", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 12, - "kind": "function", - "name": "launchConvert", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~launchConvert", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Launch the convert with all editor relative configuration and state.", - "lineNumber": 316, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "conversionState", - "description": "" - } - ] - }, - { - "__docId__": 13, - "kind": "function", - "name": "launchConfig", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~launchConfig", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": null, - "lineNumber": 327, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "editor", - "types": [ - "*" - ] - }, - { - "name": "model", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 14, - "kind": "function", - "name": "launchResize", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~launchResize", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Launch the resize.", - "lineNumber": 343, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - } - ] - }, - { - "__docId__": 15, - "kind": "function", - "name": "launchWaitForIdle", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~launchWaitForIdle", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Launch wait for idle", - "lineNumber": 364, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - } - ] - }, - { - "__docId__": 16, - "kind": "function", - "name": "setPenStyle", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~setPenStyle", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Set pen style.", - "lineNumber": 380, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - } - ] - }, - { - "__docId__": 17, - "kind": "function", - "name": "setPenStyleClasses", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~setPenStyleClasses", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Set pen style.", - "lineNumber": 396, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - } - ] - }, - { - "__docId__": 18, - "kind": "function", - "name": "setTheme", - "memberof": "src/Editor.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/Editor.js~setTheme", - "access": null, - "export": false, - "importPath": "myscript/src/Editor.js", - "importStyle": null, - "description": "Set theme.", - "lineNumber": 412, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - } - ] - }, - { - "__docId__": 19, - "kind": "class", - "name": "Editor", - "memberof": "src/Editor.js", - "static": true, - "longname": "src/Editor.js~Editor", - "access": null, - "export": true, - "importPath": "myscript/src/Editor.js", - "importStyle": "{Editor}", - "description": "Editor", - "lineNumber": 426, - "interface": false - }, - { - "__docId__": 20, - "kind": "constructor", - "name": "constructor", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#constructor", - "access": null, - "description": "", - "lineNumber": 434, - "params": [ - { - "nullable": null, - "types": [ - "Element" - ], - "spread": false, - "optional": false, - "name": "element", - "description": "DOM element to attach this editor" - }, - { - "nullable": null, - "types": [ - "Configuration" - ], - "spread": false, - "optional": true, - "name": "configuration", - "description": "Configuration to apply" - }, - { - "nullable": null, - "types": [ - "Theme" - ], - "spread": false, - "optional": true, - "name": "theme", - "description": "Custom theme to apply" - }, - { - "nullable": null, - "types": [ - "PenStyle" - ], - "spread": false, - "optional": true, - "name": "penStyle", - "description": "Custom style to apply" - }, - { - "nullable": null, - "types": [ - "Behaviors" - ], - "spread": false, - "optional": true, - "name": "behaviors", - "description": "Custom behaviors to apply" - } - ] - }, - { - "__docId__": 21, - "kind": "member", - "name": "domElement", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#domElement", - "access": null, - "description": "Inner reference to the DOM Element", - "lineNumber": 439, - "type": { - "nullable": null, - "types": [ - "Element" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 22, - "kind": "member", - "name": "loader", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#loader", - "access": null, - "description": null, - "lineNumber": 443, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 23, - "kind": "member", - "name": "loader", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#loader", - "access": null, - "description": null, - "lineNumber": 445, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 24, - "kind": "member", - "name": "error", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#error", - "access": null, - "description": null, - "lineNumber": 448, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 25, - "kind": "member", - "name": "error", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#error", - "access": null, - "description": null, - "lineNumber": 450, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 26, - "kind": "member", - "name": "exportTimer", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#exportTimer", - "access": null, - "description": "Launch export timer", - "lineNumber": 456, - "type": { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 27, - "kind": "member", - "name": "resizeTimer", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#resizeTimer", - "access": null, - "description": "Launch resize timer", - "lineNumber": 462, - "type": { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 28, - "kind": "member", - "name": "notifyTimer", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#notifyTimer", - "access": null, - "description": "Notify delay timer", - "lineNumber": 468, - "type": { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 29, - "kind": "member", - "name": "innerBehaviors", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#innerBehaviors", - "access": "private", - "description": "", - "lineNumber": 475, - "type": { - "nullable": null, - "types": [ - "Behaviors" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 30, - "kind": "member", - "name": "configuration", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#configuration", - "access": null, - "description": null, - "lineNumber": 476, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 31, - "kind": "member", - "name": "smartGuide", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#smartGuide", - "access": null, - "description": null, - "lineNumber": 477, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 32, - "kind": "member", - "name": "localTheme", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#localTheme", - "access": null, - "description": "Pen color used only for pending stroke", - "lineNumber": 483, - "type": { - "nullable": null, - "types": [ - "string" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 33, - "kind": "member", - "name": "theme", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#theme", - "access": null, - "description": null, - "lineNumber": 485, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 34, - "kind": "member", - "name": "penStyle", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#penStyle", - "access": null, - "description": null, - "lineNumber": 486, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 35, - "kind": "member", - "name": "penStyleClasses", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#penStyleClasses", - "access": null, - "description": null, - "lineNumber": 487, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "string" - ] - } - }, - { - "__docId__": 36, - "kind": "set", - "name": "configuration", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#configuration", - "access": null, - "description": "Set the recognition parameters\nWARNING : Need to fire a clear if user have already input some strokes.", - "lineNumber": 497, - "params": [ - { - "nullable": null, - "types": [ - "Configuration" - ], - "spread": false, - "optional": false, - "name": "configuration", - "description": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 37, - "kind": "member", - "name": "innerConfiguration", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#innerConfiguration", - "access": "private", - "description": "", - "lineNumber": 504, - "type": { - "nullable": null, - "types": [ - "Configuration" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 38, - "kind": "member", - "name": "behavior", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#behavior", - "access": null, - "description": null, - "lineNumber": 506, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 39, - "kind": "get", - "name": "configuration", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#configuration", - "access": null, - "description": "Get the current recognition parameters", - "lineNumber": 513, - "return": { - "nullable": null, - "types": [ - "Configuration" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 40, - "kind": "set", - "name": "penStyle", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#penStyle", - "access": null, - "description": "Set the pen style", - "lineNumber": 521, - "params": [ - { - "nullable": null, - "types": [ - "PenStyle" - ], - "spread": false, - "optional": false, - "name": "penStyle", - "description": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 41, - "kind": "member", - "name": "innerPenStyle", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#innerPenStyle", - "access": "private", - "description": "", - "lineNumber": 526, - "type": { - "nullable": null, - "types": [ - "PenStyle" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 42, - "kind": "member", - "name": "localPenStyle", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#localPenStyle", - "access": null, - "description": null, - "lineNumber": 527, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 43, - "kind": "get", - "name": "penStyle", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#penStyle", - "access": null, - "description": "Get the pen style", - "lineNumber": 535, - "return": { - "nullable": null, - "types": [ - "PenStyle" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 44, - "kind": "set", - "name": "penStyleClasses", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#penStyleClasses", - "access": null, - "description": "Set the pen style", - "lineNumber": 543, - "params": [ - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "penStyleClasses", - "description": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 45, - "kind": "member", - "name": "innerPenStyleClasses", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#innerPenStyleClasses", - "access": "private", - "description": "", - "lineNumber": 548, - "type": { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 46, - "kind": "member", - "name": "localPenStyle", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#localPenStyle", - "access": null, - "description": null, - "lineNumber": 549, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 47, - "kind": "get", - "name": "penStyleClasses", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#penStyleClasses", - "access": null, - "description": "Get the pen style", - "lineNumber": 557, - "return": { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 48, - "kind": "set", - "name": "theme", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#theme", - "access": null, - "description": "Set the theme", - "lineNumber": 565, - "params": [ - { - "nullable": null, - "types": [ - "Theme" - ], - "spread": false, - "optional": false, - "name": "theme", - "description": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 49, - "kind": "member", - "name": "innerTheme", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#innerTheme", - "access": "private", - "description": "", - "lineNumber": 570, - "type": { - "nullable": null, - "types": [ - "Theme" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 50, - "kind": "get", - "name": "theme", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#theme", - "access": null, - "description": "Get the theme", - "lineNumber": 578, - "return": { - "nullable": null, - "types": [ - "Theme" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 51, - "kind": "get", - "name": "behaviors", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#behaviors", - "access": null, - "description": "Get behaviors", - "lineNumber": 586, - "return": { - "nullable": null, - "types": [ - "Behaviors" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 52, - "kind": "set", - "name": "behavior", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#behavior", - "access": "private", - "description": "", - "lineNumber": 594, - "params": [ - { - "nullable": null, - "types": [ - "Behavior" - ], - "spread": false, - "optional": false, - "name": "behavior", - "description": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 53, - "kind": "member", - "name": "innerBehavior", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#innerBehavior", - "access": "private", - "description": "", - "lineNumber": 603, - "type": { - "nullable": null, - "types": [ - "Behavior" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 54, - "kind": "member", - "name": "renderer", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#renderer", - "access": null, - "description": null, - "lineNumber": 604, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 55, - "kind": "member", - "name": "recognizer", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#recognizer", - "access": null, - "description": null, - "lineNumber": 605, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 56, - "kind": "member", - "name": "grabberContext", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#grabberContext", - "access": null, - "description": "Current grabber context", - "lineNumber": 610, - "type": { - "nullable": null, - "types": [ - "GrabberContext" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 57, - "kind": "get", - "name": "behavior", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#behavior", - "access": null, - "description": "Get current behavior", - "lineNumber": 618, - "return": { - "nullable": null, - "types": [ - "Behavior" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 58, - "kind": "set", - "name": "recognizer", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#recognizer", - "access": "private", - "description": "Set the current recognizer", - "lineNumber": 627, - "params": [ - { - "nullable": null, - "types": [ - "Recognizer" - ], - "spread": false, - "optional": false, - "name": "recognizer", - "description": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 59, - "kind": "member", - "name": "undoRedoContext", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#undoRedoContext", - "access": null, - "description": null, - "lineNumber": 628, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 60, - "kind": "member", - "name": "undoRedoManager", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#undoRedoManager", - "access": null, - "description": null, - "lineNumber": 629, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 61, - "kind": "member", - "name": "innerRecognizer", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#innerRecognizer", - "access": "private", - "description": "", - "lineNumber": 636, - "type": { - "nullable": null, - "types": [ - "Recognizer" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 62, - "kind": "member", - "name": "recognizerContext", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#recognizerContext", - "access": null, - "description": "Current recognition context", - "lineNumber": 642, - "type": { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 63, - "kind": "member", - "name": "undoRedoContext", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#undoRedoContext", - "access": null, - "description": null, - "lineNumber": 645, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 64, - "kind": "member", - "name": "undoRedoManager", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#undoRedoManager", - "access": null, - "description": null, - "lineNumber": 646, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 65, - "kind": "member", - "name": "model", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#model", - "access": null, - "description": "Current model", - "lineNumber": 669, - "type": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 66, - "kind": "get", - "name": "recognizer", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#recognizer", - "access": null, - "description": "Get current recognizer", - "lineNumber": 681, - "return": { - "nullable": null, - "types": [ - "Recognizer" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 67, - "kind": "set", - "name": "renderer", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#renderer", - "access": "private", - "description": "Set the current renderer", - "lineNumber": 690, - "params": [ - { - "nullable": null, - "types": [ - "Renderer" - ], - "spread": false, - "optional": false, - "name": "renderer", - "description": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 68, - "kind": "member", - "name": "innerRenderer", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#innerRenderer", - "access": "private", - "description": "", - "lineNumber": 700, - "type": { - "nullable": null, - "types": [ - "Renderer" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 69, - "kind": "member", - "name": "rendererContext", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#rendererContext", - "access": null, - "description": "Current rendering context", - "lineNumber": 706, - "type": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 70, - "kind": "get", - "name": "renderer", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#renderer", - "access": null, - "description": "Get current renderer", - "lineNumber": 715, - "return": { - "nullable": null, - "types": [ - "Renderer" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 71, - "kind": "get", - "name": "grabber", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#grabber", - "access": null, - "description": "Get current grabber", - "lineNumber": 723, - "return": { - "nullable": null, - "types": [ - "Grabber" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 72, - "kind": "get", - "name": "stroker", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#stroker", - "access": null, - "description": "Get current stroker", - "lineNumber": 731, - "return": { - "nullable": null, - "types": [ - "Stroker" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 73, - "kind": "get", - "name": "callbacks", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#callbacks", - "access": null, - "description": "Get current callbacks", - "lineNumber": 739, - "return": { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 74, - "kind": "get", - "name": "png", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#png", - "access": null, - "description": "Get a PNG image data url from the data model", - "lineNumber": 747, - "return": { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 75, - "kind": "method", - "name": "getStats", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#getStats", - "access": null, - "description": "Get statistics to monitor what ink size is send to the server.", - "lineNumber": 755, - "params": [], - "return": { - "nullable": null, - "types": [ - "Stats" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 76, - "kind": "get", - "name": "initialized", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#initialized", - "access": null, - "description": "True if initialized, false otherwise", - "lineNumber": 763, - "return": { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 77, - "kind": "method", - "name": "pointerDown", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#pointerDown", - "access": null, - "description": "Handle a pointer down", - "lineNumber": 773, - "params": [ - { - "nullable": null, - "types": [ - "{x: Number, y: Number, t: Number}" - ], - "spread": false, - "optional": false, - "name": "point", - "description": "Captured point coordinates" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": true, - "defaultValue": "mouse", - "defaultRaw": "mouse", - "name": "pointerType", - "description": "Current pointer type" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": true, - "name": "pointerId", - "description": "Current pointer id" - } - ] - }, - { - "__docId__": 78, - "kind": "member", - "name": "model", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#model", - "access": null, - "description": null, - "lineNumber": 777, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 79, - "kind": "method", - "name": "pointerMove", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#pointerMove", - "access": null, - "description": "Handle a pointer move", - "lineNumber": 786, - "params": [ - { - "nullable": null, - "types": [ - "{x: Number, y: Number, t: Number}" - ], - "spread": false, - "optional": false, - "name": "point", - "description": "Captured point coordinates" - } - ] - }, - { - "__docId__": 80, - "kind": "member", - "name": "model", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#model", - "access": null, - "description": null, - "lineNumber": 788, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 81, - "kind": "method", - "name": "pointerUp", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#pointerUp", - "access": null, - "description": "Handle a pointer up", - "lineNumber": 797, - "params": [ - { - "nullable": null, - "types": [ - "{x: Number, y: Number, t: Number}" - ], - "spread": false, - "optional": false, - "name": "point", - "description": "Captured point coordinates" - } - ] - }, - { - "__docId__": 82, - "kind": "member", - "name": "model", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#model", - "access": null, - "description": null, - "lineNumber": 799, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 83, - "kind": "method", - "name": "removeStroke", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#removeStroke", - "access": null, - "description": null, - "lineNumber": 810, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "stroke", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 84, - "kind": "method", - "name": "reDraw", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#reDraw", - "access": null, - "description": null, - "lineNumber": 830, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "rawStrokes", - "types": [ - "*" - ] - }, - { - "name": "strokeGroups", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 85, - "kind": "get", - "name": "idle", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#idle", - "access": null, - "description": "True if idle state", - "lineNumber": 847, - "return": { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 86, - "kind": "method", - "name": "waitForIdle", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#waitForIdle", - "access": null, - "description": "Wait for idle state.", - "lineNumber": 854, - "params": [] - }, - { - "__docId__": 87, - "kind": "get", - "name": "canUndo", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#canUndo", - "access": null, - "description": "True if can undo, false otherwise.", - "lineNumber": 863, - "return": { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 88, - "kind": "method", - "name": "undo", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#undo", - "access": null, - "description": "Undo the last action.", - "lineNumber": 870, - "params": [] - }, - { - "__docId__": 89, - "kind": "get", - "name": "canRedo", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#canRedo", - "access": null, - "description": "True if can redo, false otherwise.", - "lineNumber": 882, - "return": { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 90, - "kind": "method", - "name": "redo", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#redo", - "access": null, - "description": "Redo the last action.", - "lineNumber": 889, - "params": [] - }, - { - "__docId__": 91, - "kind": "get", - "name": "isEmpty", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#isEmpty", - "access": null, - "description": "True if empty, false otherwise", - "lineNumber": 901, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{boolean}" - } - ], - "return": { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 92, - "kind": "get", - "name": "canClear", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#canClear", - "access": null, - "description": "True if can clear, false otherwise.", - "lineNumber": 909, - "return": { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 93, - "kind": "method", - "name": "clear", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#clear", - "access": null, - "description": "Clear the output and the recognition result.", - "lineNumber": 916, - "params": [] - }, - { - "__docId__": 94, - "kind": "get", - "name": "canConvert", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#canConvert", - "access": null, - "description": "True if can convert, false otherwise.", - "lineNumber": 928, - "return": { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 95, - "kind": "method", - "name": "convert", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#convert", - "access": null, - "description": "Convert the current content", - "lineNumber": 935, - "params": [ - { - "name": "conversionState", - "optional": true, - "types": [ - "string" - ], - "defaultRaw": "DIGITAL_EDIT", - "defaultValue": "DIGITAL_EDIT" - } - ] - }, - { - "__docId__": 96, - "kind": "method", - "name": "setGuides", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#setGuides", - "access": null, - "description": "Set the guides for text", - "lineNumber": 946, - "params": [ - { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "optional": true, - "name": "enable", - "description": "" - } - ] - }, - { - "__docId__": 97, - "kind": "get", - "name": "possibleUndoCount", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#possibleUndoCount", - "access": null, - "description": "Return the position of the cursor identifying the current state in the internal iink undo/redo stack.", - "lineNumber": 955, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{Number}" - } - ], - "return": { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 98, - "kind": "get", - "name": "undoStackIndex", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#undoStackIndex", - "access": null, - "description": "The number of operations that it is currently possible to undo.", - "lineNumber": 963, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{Number}" - } - ], - "return": { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 99, - "kind": "get", - "name": "canExport", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#canExport", - "access": null, - "description": "True if can export, false otherwise.", - "lineNumber": 971, - "return": { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 100, - "kind": "method", - "name": "export_", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#export_", - "access": null, - "description": "Explicitly ask to perform an export. You have to listen to events to get the content as this function is non blocking and does not have a return type.", - "lineNumber": 979, - "params": [ - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "requestedMimeTypes", - "description": "Requested mime-types. Be sure to ask all the types required by the listeners of exported event." - } - ] - }, - { - "__docId__": 101, - "kind": "method", - "name": "import_", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#import_", - "access": null, - "description": "Import content.", - "lineNumber": 991, - "params": [ - { - "nullable": null, - "types": [ - "Blob", - "*" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "Data to import" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": true, - "name": "mimetype", - "description": "Mimetype of the data, needed if data is not a Blob" - } - ] - }, - { - "__docId__": 102, - "kind": "method", - "name": "getSupportedImportMimeTypes", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#getSupportedImportMimeTypes", - "access": null, - "description": "Get supported import mime types", - "lineNumber": 999, - "params": [] - }, - { - "__docId__": 103, - "kind": "method", - "name": "pointerEvents", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#pointerEvents", - "access": null, - "description": "pointer events", - "lineNumber": 1007, - "params": [ - { - "nullable": null, - "types": [ - "PointerEvents" - ], - "spread": false, - "optional": false, - "name": "events", - "description": "" - } - ] - }, - { - "__docId__": 104, - "kind": "get", - "name": "exports", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#exports", - "access": null, - "description": "Get current state exports", - "lineNumber": 1015, - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 105, - "kind": "get", - "name": "supportedImportMimeTypes", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#supportedImportMimeTypes", - "access": null, - "description": null, - "lineNumber": 1019, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 106, - "kind": "method", - "name": "resize", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#resize", - "access": null, - "description": "Function to call when the dom element link to the current ink paper has been resize.", - "lineNumber": 1026, - "params": [] - }, - { - "__docId__": 107, - "kind": "method", - "name": "setThemeForFont", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#setThemeForFont", - "access": null, - "description": "Set the theme (font family, font size and line height) depending on the language", - "lineNumber": 1036, - "params": [ - { - "nullable": null, - "types": [ - "*" - ], - "spread": false, - "optional": false, - "name": "lang", - "description": "" - } - ] - }, - { - "__docId__": 108, - "kind": "member", - "name": "theme", - "memberof": "src/Editor.js~Editor", - "static": false, - "longname": "src/Editor.js~Editor#theme", - "access": null, - "description": null, - "lineNumber": 1041, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "{\".text\": *}" - ] - } - }, - { - "__docId__": 109, - "kind": "get", - "name": "eastereggs", - "memberof": "src/Editor.js~Editor", - "generator": false, - "async": false, - "static": false, - "longname": "src/Editor.js~Editor#eastereggs", - "access": null, - "description": "Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice).", - "lineNumber": 1054, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{{inkImporter: inkImporter}}" - } - ], - "return": { - "nullable": null, - "types": [ - "{inkImporter: inkImporter}" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "{\"inkImporter\": *}" - ] - } - }, - { - "__docId__": 110, - "kind": "file", - "name": "src/EditorFacade.js", - "content": "import * as languagesJson from './configuration/languages.json';\nimport * as languagesJsonV3 from './configuration/languagesV3.json';\nimport { editorLogger as logger } from './configuration/LoggerConfig';\nimport { Editor } from './Editor';\nimport * as DefaultConfiguration from './configuration/DefaultConfiguration';\n\n/**\n * Attach an Editor to a DOMElement\n * @param {Element} element DOM element to attach an editor\n * @param {Configuration} [configuration] Configuration to apply\n * @param {PenStyle} [penStyle] Pen style to apply\n * @param {Theme} [theme] Theme to apply\n * @param {Behaviors} [behaviors] Custom behaviors to apply\n * @return {Editor} New editor\n */\nexport function register(element, configuration, penStyle, theme, behaviors) {\n logger.debug('Registering a new editor');\n return new Editor(element, configuration, penStyle, theme, behaviors);\n}\n\n/**\n * Return the list of available recognition languages\n * @param {Configuration} [configuration] Configuration to get the languages\n * @return {JSON} A list of available languages\n */\nexport function getAvailableLanguageList(configuration) {\n const innerConfiguration = DefaultConfiguration.overrideDefaultConfiguration(configuration);\n return innerConfiguration.recognitionParams.apiVersion === 'V4' ? languagesJson : languagesJsonV3;\n}\n", - "static": true, - "longname": "src/EditorFacade.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 111, - "kind": "function", - "name": "register", - "memberof": "src/EditorFacade.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/EditorFacade.js~register", - "access": null, - "export": true, - "importPath": "myscript/src/EditorFacade.js", - "importStyle": "{register}", - "description": "Attach an Editor to a DOMElement", - "lineNumber": 16, - "params": [ - { - "nullable": null, - "types": [ - "Element" - ], - "spread": false, - "optional": false, - "name": "element", - "description": "DOM element to attach an editor" - }, - { - "nullable": null, - "types": [ - "Configuration" - ], - "spread": false, - "optional": true, - "name": "configuration", - "description": "Configuration to apply" - }, - { - "nullable": null, - "types": [ - "PenStyle" - ], - "spread": false, - "optional": true, - "name": "penStyle", - "description": "Pen style to apply" - }, - { - "nullable": null, - "types": [ - "Theme" - ], - "spread": false, - "optional": true, - "name": "theme", - "description": "Theme to apply" - }, - { - "nullable": null, - "types": [ - "Behaviors" - ], - "spread": false, - "optional": true, - "name": "behaviors", - "description": "Custom behaviors to apply" - } - ], - "return": { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "description": "New editor" - } - }, - { - "__docId__": 112, - "kind": "function", - "name": "getAvailableLanguageList", - "memberof": "src/EditorFacade.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/EditorFacade.js~getAvailableLanguageList", - "access": null, - "export": true, - "importPath": "myscript/src/EditorFacade.js", - "importStyle": "{getAvailableLanguageList}", - "description": "Return the list of available recognition languages", - "lineNumber": 26, - "params": [ - { - "nullable": null, - "types": [ - "Configuration" - ], - "spread": false, - "optional": true, - "name": "configuration", - "description": "Configuration to get the languages" - } - ], - "return": { - "nullable": null, - "types": [ - "JSON" - ], - "spread": false, - "description": "A list of available languages" - } - }, - { - "__docId__": 113, - "kind": "file", - "name": "src/callback/EventCallback.js", - "content": "import { callbackLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Emits an event when the editor state change\n * @param {String} type\n * @param {Object} data\n * @emits {Event}\n */\nexport default function eventCallback(type, data) {\n logger.info(`emitting ${type} event`, data);\n // We are making usage of a browser provided class\n // eslint-disable-next-line no-undef\n this.dispatchEvent(new CustomEvent(type, Object.assign({ bubbles: true, composed: true }, data ? { detail: data } : undefined)));\n}\n", - "static": true, - "longname": "src/callback/EventCallback.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 114, - "kind": "function", - "name": "eventCallback", - "memberof": "src/callback/EventCallback.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/callback/EventCallback.js~eventCallback", - "access": null, - "export": true, - "importPath": "myscript/src/callback/EventCallback.js", - "importStyle": "eventCallback", - "description": "Emits an event when the editor state change", - "lineNumber": 9, - "params": [ - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "" - } - ], - "emits": [ - { - "types": [ - "Event" - ], - "description": "" - } - ] - }, - { - "__docId__": 115, - "kind": "file", - "name": "src/configuration/Constants.js", - "content": "/**\n * @typedef {Object} Constants\n */\n\nconst Constants = {\n EventType: {\n IDLE: 'idle',\n CHANGED: 'changed',\n IMPORTED: 'imported',\n EXPORTED: 'exported',\n CONVERTED: 'converted',\n RENDERED: 'rendered', // Internal use only\n LOADED: 'loaded',\n UNDO: 'undo',\n REDO: 'redo',\n CLEAR: 'clear',\n IMPORT: 'import',\n SUPPORTED_IMPORT_MIMETYPES: 'supportedImportMimeTypes',\n EXPORT: 'export',\n CONVERT: 'convert',\n ERROR: 'error'\n },\n RecognitionType: {\n TEXT: 'TEXT',\n MATH: 'MATH',\n SHAPE: 'SHAPE',\n MUSIC: 'MUSIC',\n ANALYZER: 'ANALYZER',\n DIAGRAM: 'DIAGRAM',\n NEBO: 'NEBO',\n RAWCONTENT: 'Raw Content'\n },\n Protocol: {\n WEBSOCKET: 'WEBSOCKET',\n REST: 'REST'\n },\n ModelState: {\n INITIALIZING: 'INITIALIZING',\n INITIALIZED: 'INITIALIZED',\n EXPORTING: 'EXPORTING',\n EXPORTED: 'EXPORTED',\n PENDING: 'PENDING',\n MODIFIED: 'MODIFIED',\n ERROR: 'ERROR'\n },\n Trigger: {\n QUIET_PERIOD: 'QUIET_PERIOD',\n POINTER_UP: 'POINTER_UP',\n DEMAND: 'DEMAND'\n },\n Logger: {\n EDITOR: 'editor',\n MODEL: 'model',\n GRABBER: 'grabber',\n RENDERER: 'renderer',\n RECOGNIZER: 'recognizer',\n CALLBACK: 'callback',\n UTIL: 'util',\n SMARTGUIDE: 'smartguide'\n },\n LogLevel: {\n TRACE: 'TRACE',\n DEBUG: 'DEBUG',\n INFO: 'INFO',\n WARN: 'WARN',\n ERROR: 'ERROR'\n },\n Languages: {\n zh_CN: 'Noto Sans CJK tc',\n zh_HK: 'Noto Sans CJK tc',\n zh_TW: 'Noto Sans CJK tc',\n ko_KR: 'Noto Sans CJK kr',\n ja_JP: 'Noto Sans CJK jp',\n hy_AM: 'Noto Sans Armenian',\n default: 'Open Sans'\n },\n Error: {\n NOT_REACHABLE: 'MyScript recognition server is not reachable. Please reload once you are connected.',\n WRONG_CREDENTIALS: 'Application credentials are invalid. Please check or regenerate your application key and hmackey.',\n TOO_OLD: 'Session is too old. Max Session Duration Reached.'\n },\n Exports: {\n JIIX: 'application/vnd.myscript.jiix'\n }\n};\nexport default Constants;\n", - "static": true, - "longname": "src/configuration/Constants.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 116, - "kind": "typedef", - "name": "Constants", - "memberof": "src/configuration/Constants.js", - "static": true, - "longname": "src/configuration/Constants.js~Constants", - "access": null, - "description": "", - "lineNumber": 5, - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "Constants" - } - }, - { - "__docId__": 117, - "kind": "file", - "name": "src/configuration/DefaultBehaviors.js", - "content": "import { editorLogger as logger } from './LoggerConfig';\nimport * as PointerEventGrabber from '../grabber/PointerEventGrabber';\nimport * as CanvasRenderer from '../renderer/canvas/CanvasRenderer';\nimport * as QuadraticCanvasStroker from '../renderer/canvas/stroker/QuadraticCanvasStroker';\nimport * as SVGRenderer from '../renderer/svg/SVGRenderer';\nimport * as QuadraticSVGStroker from '../renderer/svg/stroker/QuadraticSVGStroker';\nimport * as Cdkv3RestTextRecognizer from '../recognizer/rest/v3/Cdkv3RestTextRecognizer';\nimport * as Cdkv3RestMathRecognizer from '../recognizer/rest/v3/Cdkv3RestMathRecognizer';\nimport * as Cdkv3RestAnalyzerRecognizer from '../recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer';\nimport * as Cdkv3RestShapeRecognizer from '../recognizer/rest/v3/Cdkv3RestShapeRecognizer';\nimport * as Cdkv3RestMusicRecognizer from '../recognizer/rest/v3/Cdkv3RestMusicRecognizer';\nimport * as iinkRestRecognizer from '../recognizer/rest/v4/iinkRestRecognizer';\nimport * as Cdkv3WSMathRecognizer from '../recognizer/websocket/v3/Cdkv3WSMathRecognizer';\nimport * as Cdkv3WSTextRecognizer from '../recognizer/websocket/v3/Cdkv3WSTextRecognizer';\nimport * as Cdkv4WSInteractiveRecognizer from '../recognizer/websocket/v4/Cdkv4WSIInkRecognizer';\nimport eventCallback from '../callback/EventCallback';\n\n/**\n * Current behavior\n * @typedef {Object} Behavior\n * @property {Grabber} grabber Grabber to capture strokes\n * @property {Stroker} stroker Stroker to draw stroke\n * @property {Renderer} renderer Renderer to draw on the editor\n * @property {Recognizer} recognizer Recognizer to call the recognition service\n * @property {Array} callbacks Functions to handle model changes\n */\n\n/**\n * Set of behaviors to be used by the {@link Editor}\n * @typedef {Object} Behaviors\n * @property {Grabber} grabber Grabber to capture strokes\n * @property {Array} strokerList List of stroker to draw stroke\n * @property {Array} rendererList List of renderer to draw on the editor\n * @property {Array} recognizerList Recognizers to call the recognition service\n * @property {function(behaviors: Behaviors, configuration: Configuration): Behavior} getBehaviorFromConfiguration Get the current behavior to use regarding the current configuration\n * @property {Array} callbacks Functions to handle model changes\n */\n\n/**\n * Default behaviors\n * @type {Behaviors}\n */\nexport const defaultBehaviors = {\n grabber: PointerEventGrabber,\n strokerList: [QuadraticCanvasStroker, QuadraticSVGStroker],\n rendererList: [CanvasRenderer, SVGRenderer],\n recognizerList: [Cdkv3RestTextRecognizer, Cdkv3RestMathRecognizer, Cdkv3RestAnalyzerRecognizer, Cdkv3RestShapeRecognizer, Cdkv3RestMusicRecognizer, iinkRestRecognizer, Cdkv3WSTextRecognizer, Cdkv3WSMathRecognizer, Cdkv4WSInteractiveRecognizer],\n callbacks: [eventCallback],\n getBehaviorFromConfiguration: (behaviors, configuration) => {\n const behavior = {};\n behavior.grabber = behaviors.grabber;\n if (configuration) {\n if (configuration.recognitionParams.apiVersion === 'V4' && configuration.recognitionParams.protocol === 'REST') {\n behavior.stroker = QuadraticCanvasStroker;\n } else {\n behavior.stroker = behaviors.strokerList.find(item =>\n (item.getInfo().apiVersion === configuration.recognitionParams.apiVersion) &&\n (item.getInfo().name === configuration.renderingParams.stroker));\n }\n if (configuration.recognitionParams.apiVersion === 'V4' && configuration.recognitionParams.protocol === 'REST') {\n behavior.renderer = CanvasRenderer;\n } else {\n behavior.renderer = behaviors.rendererList.find(item => item.getInfo().apiVersion === configuration.recognitionParams.apiVersion);\n }\n behavior.recognizer = behaviors.recognizerList.find(item =>\n (item.getInfo()\n .types\n .includes(configuration.recognitionParams.type)) &&\n (item.getInfo().protocol === configuration.recognitionParams.protocol) &&\n (item.getInfo().apiVersion === configuration.recognitionParams.apiVersion));\n }\n behavior.callbacks = behaviors.callbacks;\n return behavior;\n }\n};\n\n/**\n * Generate behaviors\n * @param {Behaviors} behaviors Behaviors to be used\n * @return {Behaviors} Overridden behaviors\n */\nexport function overrideDefaultBehaviors(behaviors) {\n if (behaviors) {\n const currentBehaviors = {\n grabber: behaviors.grabber || defaultBehaviors.grabber,\n rendererList: behaviors.rendererList || defaultBehaviors.rendererList,\n strokerList: behaviors.strokerList || defaultBehaviors.strokerList,\n recognizerList: behaviors.recognizerList || defaultBehaviors.recognizerList,\n callbacks: behaviors.callbacks || defaultBehaviors.callbacks,\n getBehaviorFromConfiguration: behaviors.getBehaviorFromConfiguration || defaultBehaviors.getBehaviorFromConfiguration\n };\n logger.debug('Override default behaviors', currentBehaviors);\n return currentBehaviors;\n }\n return defaultBehaviors;\n}\n", - "static": true, - "longname": "src/configuration/DefaultBehaviors.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 118, - "kind": "typedef", - "name": "Behavior", - "memberof": "src/configuration/DefaultBehaviors.js", - "static": true, - "longname": "src/configuration/DefaultBehaviors.js~Behavior", - "access": null, - "description": "Current behavior", - "properties": [ - { - "nullable": null, - "types": [ - "Grabber" - ], - "spread": false, - "optional": false, - "name": "grabber", - "description": "Grabber to capture strokes" - }, - { - "nullable": null, - "types": [ - "Stroker" - ], - "spread": false, - "optional": false, - "name": "stroker", - "description": "Stroker to draw stroke" - }, - { - "nullable": null, - "types": [ - "Renderer" - ], - "spread": false, - "optional": false, - "name": "renderer", - "description": "Renderer to draw on the editor" - }, - { - "nullable": null, - "types": [ - "Recognizer" - ], - "spread": false, - "optional": false, - "name": "recognizer", - "description": "Recognizer to call the recognition service" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "callbacks", - "description": "Functions to handle model changes" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "Behavior" - } - }, - { - "__docId__": 119, - "kind": "typedef", - "name": "Behaviors", - "memberof": "src/configuration/DefaultBehaviors.js", - "static": true, - "longname": "src/configuration/DefaultBehaviors.js~Behaviors", - "access": null, - "description": "Set of behaviors to be used by the {@link Editor}", - "properties": [ - { - "nullable": null, - "types": [ - "Grabber" - ], - "spread": false, - "optional": false, - "name": "grabber", - "description": "Grabber to capture strokes" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "strokerList", - "description": "List of stroker to draw stroke" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "rendererList", - "description": "List of renderer to draw on the editor" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "recognizerList", - "description": "Recognizers to call the recognition service" - }, - { - "nullable": null, - "types": [ - "function(behaviors: Behaviors, configuration: Configuration): Behavior" - ], - "spread": false, - "optional": false, - "name": "getBehaviorFromConfiguration", - "description": "Get the current behavior to use regarding the current configuration" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "callbacks", - "description": "Functions to handle model changes" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "Behaviors" - } - }, - { - "__docId__": 120, - "kind": "variable", - "name": "defaultBehaviors", - "memberof": "src/configuration/DefaultBehaviors.js", - "static": true, - "longname": "src/configuration/DefaultBehaviors.js~defaultBehaviors", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/DefaultBehaviors.js", - "importStyle": "{defaultBehaviors}", - "description": "Default behaviors", - "lineNumber": 43, - "type": { - "nullable": null, - "types": [ - "Behaviors" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 121, - "kind": "function", - "name": "overrideDefaultBehaviors", - "memberof": "src/configuration/DefaultBehaviors.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/configuration/DefaultBehaviors.js~overrideDefaultBehaviors", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/DefaultBehaviors.js", - "importStyle": "{overrideDefaultBehaviors}", - "description": "Generate behaviors", - "lineNumber": 82, - "params": [ - { - "nullable": null, - "types": [ - "Behaviors" - ], - "spread": false, - "optional": false, - "name": "behaviors", - "description": "Behaviors to be used" - } - ], - "return": { - "nullable": null, - "types": [ - "Behaviors" - ], - "spread": false, - "description": "Overridden behaviors" - } - }, - { - "__docId__": 122, - "kind": "file", - "name": "src/configuration/DefaultConfiguration.js", - "content": "import assign from 'assign-deep';\nimport { editorLogger as logger } from './LoggerConfig';\n\n\n/**\n * Default configuration\n * @type {Configuration}\n * See https://developer.myscript.com/docs/interactive-ink/latest/reference/web/configuration/ for a full documentation of parameters.\n */\nconst defaultConfiguration = {\n recognitionParams: {\n type: 'TEXT',\n protocol: 'WEBSOCKET',\n apiVersion: 'V4',\n server: {\n scheme: 'https',\n host: 'cloud.myscript.com',\n applicationKey: undefined,\n hmacKey: undefined,\n useWindowLocation: false,\n websocket: {\n pingEnabled: true,\n pingDelay: 30000,\n maxPingLostCount: 10,\n autoReconnect: true,\n maxRetryCount: 2,\n fileChunkSize: 300000\n }\n },\n v4: {\n alwaysConnected: false,\n lang: 'en_US',\n export: {\n 'image-resolution': 300,\n jiix: {\n 'bounding-box': false,\n strokes: false,\n text: {\n chars: false,\n words: true\n }\n }\n },\n renderer: {\n debug: {\n 'draw-text-boxes': false,\n 'draw-image-boxes': false\n }\n },\n math: {\n mimeTypes: ['application/x-latex', 'application/mathml+xml'],\n solver: {\n enable: true,\n 'fractional-part-digits': 3,\n 'decimal-separator': '.',\n 'rounding-mode': 'half up',\n 'angle-unit': 'deg'\n },\n margin: {\n bottom: 10,\n left: 15,\n right: 15,\n top: 10\n }\n },\n text: {\n guides: {\n enable: true\n },\n smartGuide: true,\n smartGuideFadeOut: {\n enable: false,\n duration: 10000\n },\n mimeTypes: ['text/plain', 'application/vnd.myscript.jiix'],\n margin: {\n top: 20,\n left: 10,\n right: 10\n }\n },\n diagram: {\n mimeTypes: ['application/vnd.myscript.jiix'],\n margin: {\n bottom: 10,\n left: 15,\n right: 15,\n top: 10\n }\n },\n 'raw-content': {\n recognition: {\n text: false,\n shape: false\n }\n }\n },\n v3: {\n mathParameter: {\n resultTypes: ['LATEX', 'MATHML'],\n columnarOperation: false,\n userResources: [],\n scratchOutDetectionSensitivity: 1,\n },\n textParameter: {\n language: 'en_US',\n textInputMode: 'CURSIVE',\n resultDetail: 'TEXT',\n contentTypes: [],\n subsetKnowledges: [],\n userLkWords: [],\n userResources: [],\n textProperties: {\n textCandidateListSize: 1,\n wordCandidateListSize: undefined,\n wordPredictionListSize: 0,\n wordCompletionListSize: 0,\n characterCandidateListSize: undefined,\n enableOutOfLexicon: false,\n discardCaseVariations: false,\n discardAccentuationVariations: false,\n glyphDistortion: undefined,\n enableTagger: false,\n spellingDistortion: undefined\n }\n },\n shapeParameter: {\n userResources: undefined,\n rejectDetectionSensitivity: 1,\n doBeautification: true\n },\n musicParameter: {\n divisions: 480,\n resultTypes: ['MUSICXML', 'SCORETREE'],\n userResources: [],\n staff: {\n top: 100,\n count: 5,\n gap: 20\n },\n clef: {\n symbol: 'G',\n octave: 0,\n line: 2\n },\n scratchOutDetectionSensitivity: 1\n },\n analyzerParameter: {\n textParameter: {\n textProperties: {},\n language: 'en_US',\n textInputMode: 'CURSIVE'\n },\n coordinateResolution: undefined\n }\n }\n },\n // @see generated documentation on top\n listenerOptions: {\n capture: false,\n passive: true\n },\n undoRedoMaxStackSize: 20,\n xyFloatPrecision: 0,\n timestampFloatPrecision: 0,\n triggerDelay: 2000,\n processDelay: 0,\n resizeTriggerDelay: 200,\n // Configure when the action is triggered.\n // POINTER_UP : Action is triggered on every PenUP. This is the recommended mode for CDK V3 WebSocket recognitions.\n // QUIET_PERIOD : Action is triggered after a quiet period in milli-seconds on every pointer up. I value is set to 2000 for example the recognition will be fired when user stop writing 2 seconds. This is the recommended mode for all REST recognitions.\n triggers: {\n exportContent: 'POINTER_UP',\n addStrokes: 'POINTER_UP'\n },\n restConversionState: '',\n renderingParams: {\n stroker: 'quadratic',\n minHeight: 100,\n minWidth: 100\n }\n};\n\n/**\n * Generate parameters\n * @param {Configuration} configuration Configuration to be used\n * @return {Configuration} Overridden configuration\n */\nexport function overrideDefaultConfiguration(configuration) {\n const confRef = configuration;\n let currentConfiguration;\n if (confRef && confRef.recognitionParams.server && confRef.recognitionParams.server.useWindowLocation) {\n confRef.recognitionParams.server.scheme = window.location.protocol.slice(0, -1);\n confRef.recognitionParams.server.host = window.location.host;\n currentConfiguration = assign({}, defaultConfiguration, confRef === undefined ? {} : confRef);\n } else {\n currentConfiguration = assign({}, defaultConfiguration, configuration === undefined ? {} : configuration);\n }\n logger.debug('Override default configuration', currentConfiguration);\n return currentConfiguration;\n}\n\nexport default defaultConfiguration;\n", - "static": true, - "longname": "src/configuration/DefaultConfiguration.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 123, - "kind": "function", - "name": "overrideDefaultConfiguration", - "memberof": "src/configuration/DefaultConfiguration.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/configuration/DefaultConfiguration.js~overrideDefaultConfiguration", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/DefaultConfiguration.js", - "importStyle": "{overrideDefaultConfiguration}", - "description": "Generate parameters", - "lineNumber": 189, - "params": [ - { - "nullable": null, - "types": [ - "Configuration" - ], - "spread": false, - "optional": false, - "name": "configuration", - "description": "Configuration to be used" - } - ], - "return": { - "nullable": null, - "types": [ - "Configuration" - ], - "spread": false, - "description": "Overridden configuration" - } - }, - { - "__docId__": 124, - "kind": "variable", - "name": "defaultConfiguration", - "memberof": "src/configuration/DefaultConfiguration.js", - "static": true, - "longname": "src/configuration/DefaultConfiguration.js~defaultConfiguration", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/DefaultConfiguration.js", - "importStyle": "defaultConfiguration", - "description": "Default configuration", - "lineNumber": 10, - "type": { - "nullable": null, - "types": [ - "Configuration" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 125, - "kind": "file", - "name": "src/configuration/DefaultPenStyle.js", - "content": "import JsonCSS from 'json-css';\nimport assign from 'assign-deep';\nimport { editorLogger as logger } from './LoggerConfig';\n\n/**\n * @typedef {Object} PenStyle\n * @property {String} color=#000000 Color (supported formats rgb() rgba() hsl() hsla() #rgb #rgba #rrggbb #rrggbbaa)\n * @property {String} -myscript-pen-width=1 Width of strokes and primitives in mm (no other unit is supported yet)\n * @property {String} -myscript-pen-fill-style=none\n * @property {String} -myscript-pen-fill-color=#FFFFFF00 Color filled inside the area delimited by strokes and primitives\n */\n\n/**\n * Default style\n * @type {PenStyle}\n */\nconst defaultPenStyle = undefined;\nconst parser = new JsonCSS();\n\n/**\n * Generate style\n * @param {PenStyle} style Custom style to be applied\n * @return {PenStyle} Overridden style\n */\nexport function overrideDefaultPenStyle(style) {\n const currentStyle = assign({}, defaultPenStyle, style === undefined ? {} : style);\n logger.debug('Override default pen style', currentStyle);\n return currentStyle;\n}\n\nexport function toCSS(penStyle) { // FIXME Ugly hack to parse JSON to CSS inline\n const css = parser.toCSS({ css: penStyle });\n return css.substring(6, css.length - 3);\n}\n\nexport function toJSON(penStyle) { // FIXME Ugly hack to parse CSS inline to JSON\n return parser.toJSON(`css {${penStyle}}`).css;\n}\n\nexport default defaultPenStyle;\n", - "static": true, - "longname": "src/configuration/DefaultPenStyle.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 126, - "kind": "variable", - "name": "parser", - "memberof": "src/configuration/DefaultPenStyle.js", - "static": true, - "longname": "src/configuration/DefaultPenStyle.js~parser", - "access": null, - "export": false, - "importPath": "myscript/src/configuration/DefaultPenStyle.js", - "importStyle": null, - "description": null, - "lineNumber": 18, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "json-css~JsonCSS" - ] - } - }, - { - "__docId__": 127, - "kind": "function", - "name": "overrideDefaultPenStyle", - "memberof": "src/configuration/DefaultPenStyle.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/configuration/DefaultPenStyle.js~overrideDefaultPenStyle", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/DefaultPenStyle.js", - "importStyle": "{overrideDefaultPenStyle}", - "description": "Generate style", - "lineNumber": 25, - "params": [ - { - "nullable": null, - "types": [ - "PenStyle" - ], - "spread": false, - "optional": false, - "name": "style", - "description": "Custom style to be applied" - } - ], - "return": { - "nullable": null, - "types": [ - "PenStyle" - ], - "spread": false, - "description": "Overridden style" - } - }, - { - "__docId__": 128, - "kind": "function", - "name": "toCSS", - "memberof": "src/configuration/DefaultPenStyle.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/configuration/DefaultPenStyle.js~toCSS", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/DefaultPenStyle.js", - "importStyle": "{toCSS}", - "description": null, - "lineNumber": 31, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "penStyle", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 129, - "kind": "function", - "name": "toJSON", - "memberof": "src/configuration/DefaultPenStyle.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/configuration/DefaultPenStyle.js~toJSON", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/DefaultPenStyle.js", - "importStyle": "{toJSON}", - "description": null, - "lineNumber": 36, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "penStyle", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 130, - "kind": "typedef", - "name": "PenStyle", - "memberof": "src/configuration/DefaultPenStyle.js", - "static": true, - "longname": "src/configuration/DefaultPenStyle.js~PenStyle", - "access": null, - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "#000000", - "defaultRaw": "#000000", - "name": "color", - "description": "Color (supported formats rgb() rgba() hsl() hsla() #rgb #rgba #rrggbb #rrggbbaa)" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "1", - "defaultRaw": 1, - "name": "-myscript-pen-width", - "description": "Width of strokes and primitives in mm (no other unit is supported yet)" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "none", - "defaultRaw": "none", - "name": "-myscript-pen-fill-style", - "description": "" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "#FFFFFF00", - "defaultRaw": "#FFFFFF00", - "name": "-myscript-pen-fill-color", - "description": "Color filled inside the area delimited by strokes and primitives" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "PenStyle" - } - }, - { - "__docId__": 131, - "kind": "variable", - "name": "defaultPenStyle", - "memberof": "src/configuration/DefaultPenStyle.js", - "static": true, - "longname": "src/configuration/DefaultPenStyle.js~defaultPenStyle", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/DefaultPenStyle.js", - "importStyle": "defaultPenStyle", - "description": "Default style", - "lineNumber": 17, - "type": { - "nullable": null, - "types": [ - "PenStyle" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 132, - "kind": "file", - "name": "src/configuration/DefaultTheme.js", - "content": "import JsonCSS from 'json-css';\nimport assign from 'assign-deep';\nimport { editorLogger as logger } from './LoggerConfig';\n\n/**\n * @typedef {PenStyle} InkTheme\n */\n/**\n * @typedef {Object} MathTheme\n * @property {String} font-family=STIXGeneral Font-family to be used\n */\n/**\n * @typedef {Object} GeneratedTheme\n * @property {String} font-family=STIXGeneral Font-family to be used\n * @property {String} color=#A8A8A8FF Color to be used\n */\n/**\n * @typedef {Object} TextTheme\n * @property {String} font-family=OpenSans Font-family to be used\n * @property {Number} font-size=10 Font-size to be used\n */\n/**\n * @typedef {Object} Theme\n * @property {InkTheme} ink General settings\n * @property {MathTheme} .math Math theme\n * @property {GeneratedTheme} .math-solver Theme to be used for generated items\n * @property {TextTheme} .text Text theme\n */\n\n/**\n * Default theme\n * @type {Theme}\n */\nconst defaultTheme = {\n ink: {\n color: '#000000',\n '-myscript-pen-width': 1,\n '-myscript-pen-fill-style': 'none',\n '-myscript-pen-fill-color': '#FFFFFF00'\n },\n '.math': {\n 'font-family': 'STIXGeneral'\n },\n '.math-solved': {\n 'font-family': 'STIXGeneral',\n color: '#A8A8A8FF'\n },\n '.text': {\n 'font-family': 'Open Sans',\n 'font-size': 10\n }\n};\nconst parser = new JsonCSS();\n\n/**\n * Generate theme\n * @param {Theme} theme Custom theme to be applied\n * @return {Theme} Overridden theme\n */\nexport function overrideDefaultTheme(theme) {\n const currentTheme = assign({}, defaultTheme, theme === undefined ? {} : theme);\n logger.debug('Override default theme', currentTheme);\n return currentTheme;\n}\n\nexport function toCSS(theme) {\n return parser.toCSS(theme);\n}\n\nexport function toJSON(theme) {\n return parser.toJSON(theme);\n}\n\nexport default defaultTheme;\n", - "static": true, - "longname": "src/configuration/DefaultTheme.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 133, - "kind": "variable", - "name": "parser", - "memberof": "src/configuration/DefaultTheme.js", - "static": true, - "longname": "src/configuration/DefaultTheme.js~parser", - "access": null, - "export": false, - "importPath": "myscript/src/configuration/DefaultTheme.js", - "importStyle": null, - "description": null, - "lineNumber": 53, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "json-css~JsonCSS" - ] - } - }, - { - "__docId__": 134, - "kind": "function", - "name": "overrideDefaultTheme", - "memberof": "src/configuration/DefaultTheme.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/configuration/DefaultTheme.js~overrideDefaultTheme", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/DefaultTheme.js", - "importStyle": "{overrideDefaultTheme}", - "description": "Generate theme", - "lineNumber": 60, - "params": [ - { - "nullable": null, - "types": [ - "Theme" - ], - "spread": false, - "optional": false, - "name": "theme", - "description": "Custom theme to be applied" - } - ], - "return": { - "nullable": null, - "types": [ - "Theme" - ], - "spread": false, - "description": "Overridden theme" - } - }, - { - "__docId__": 135, - "kind": "function", - "name": "toCSS", - "memberof": "src/configuration/DefaultTheme.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/configuration/DefaultTheme.js~toCSS", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/DefaultTheme.js", - "importStyle": "{toCSS}", - "description": null, - "lineNumber": 66, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "theme", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 136, - "kind": "function", - "name": "toJSON", - "memberof": "src/configuration/DefaultTheme.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/configuration/DefaultTheme.js~toJSON", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/DefaultTheme.js", - "importStyle": "{toJSON}", - "description": null, - "lineNumber": 70, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "theme", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 137, - "kind": "typedef", - "name": "InkTheme", - "memberof": "src/configuration/DefaultTheme.js", - "static": true, - "longname": "src/configuration/DefaultTheme.js~InkTheme", - "access": null, - "description": "", - "type": { - "types": [ - "PenStyle" - ], - "optional": false, - "name": "InkTheme" - } - }, - { - "__docId__": 138, - "kind": "typedef", - "name": "MathTheme", - "memberof": "src/configuration/DefaultTheme.js", - "static": true, - "longname": "src/configuration/DefaultTheme.js~MathTheme", - "access": null, - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "STIXGeneral", - "defaultRaw": "STIXGeneral", - "name": "font-family", - "description": "Font-family to be used" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "MathTheme" - } - }, - { - "__docId__": 139, - "kind": "typedef", - "name": "GeneratedTheme", - "memberof": "src/configuration/DefaultTheme.js", - "static": true, - "longname": "src/configuration/DefaultTheme.js~GeneratedTheme", - "access": null, - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "STIXGeneral", - "defaultRaw": "STIXGeneral", - "name": "font-family", - "description": "Font-family to be used" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "#A8A8A8FF", - "defaultRaw": "#A8A8A8FF", - "name": "color", - "description": "Color to be used" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "GeneratedTheme" - } - }, - { - "__docId__": 140, - "kind": "typedef", - "name": "TextTheme", - "memberof": "src/configuration/DefaultTheme.js", - "static": true, - "longname": "src/configuration/DefaultTheme.js~TextTheme", - "access": null, - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "OpenSans", - "defaultRaw": "OpenSans", - "name": "font-family", - "description": "Font-family to be used" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "defaultValue": "10", - "defaultRaw": 10, - "name": "font-size", - "description": "Font-size to be used" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "TextTheme" - } - }, - { - "__docId__": 141, - "kind": "typedef", - "name": "Theme", - "memberof": "src/configuration/DefaultTheme.js", - "static": true, - "longname": "src/configuration/DefaultTheme.js~Theme", - "access": null, - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "InkTheme" - ], - "spread": false, - "optional": false, - "name": "ink", - "description": "General settings" - }, - { - "nullable": null, - "types": [ - "MathTheme" - ], - "spread": false, - "optional": false, - "name": ".math", - "description": "Math theme" - }, - { - "nullable": null, - "types": [ - "GeneratedTheme" - ], - "spread": false, - "optional": false, - "name": ".math-solver", - "description": "Theme to be used for generated items" - }, - { - "nullable": null, - "types": [ - "TextTheme" - ], - "spread": false, - "optional": false, - "name": ".text", - "description": "Text theme" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "Theme" - } - }, - { - "__docId__": 142, - "kind": "variable", - "name": "defaultTheme", - "memberof": "src/configuration/DefaultTheme.js", - "static": true, - "longname": "src/configuration/DefaultTheme.js~defaultTheme", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/DefaultTheme.js", - "importStyle": "defaultTheme", - "description": "Default theme", - "lineNumber": 34, - "type": { - "nullable": null, - "types": [ - "Theme" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 143, - "kind": "file", - "name": "src/configuration/LoggerConfig.js", - "content": "import * as loglevel from 'loglevel';\nimport Constants from './Constants';\n\n/**\n * Main log instance\n * @type {Object}\n */\nconst log = loglevel.noConflict();\nexport default log;\n\n/**\n * Log editor events\n * @type {Object}\n */\nexport const editorLogger = log.getLogger(Constants.Logger.EDITOR);\neditorLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log editor events\n * @type {Object}\n */\nexport const smartGuideLogger = log.getLogger(Constants.Logger.SMARTGUIDE);\neditorLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log model events\n * @type {Object}\n */\nexport const modelLogger = log.getLogger(Constants.Logger.MODEL);\nmodelLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log grabber events\n * @type {Object}\n */\nexport const grabberLogger = log.getLogger(Constants.Logger.GRABBER);\ngrabberLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log grabber events\n * @type {Object}\n */\nexport const rendererLogger = log.getLogger(Constants.Logger.RENDERER);\nrendererLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log recognizer events\n * @type {Object}\n */\nexport const recognizerLogger = log.getLogger(Constants.Logger.RECOGNIZER);\nrecognizerLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log callback events\n * @type {Object}\n */\nexport const callbackLogger = log.getLogger(Constants.Logger.CALLBACK);\ncallbackLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log util events\n * @type {Object}\n */\nexport const utilLogger = log.getLogger(Constants.Logger.UTIL);\nutilLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n\n/**\n * Log tests events\n * @type {Object}\n */\nexport const testLogger = log.getLogger('test');\ntestLogger.setDefaultLevel(Constants.LogLevel.ERROR);\n", - "static": true, - "longname": "src/configuration/LoggerConfig.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 144, - "kind": "variable", - "name": "editorLogger", - "memberof": "src/configuration/LoggerConfig.js", - "static": true, - "longname": "src/configuration/LoggerConfig.js~editorLogger", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/LoggerConfig.js", - "importStyle": "{editorLogger}", - "description": "Log editor events", - "lineNumber": 15, - "type": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 145, - "kind": "variable", - "name": "smartGuideLogger", - "memberof": "src/configuration/LoggerConfig.js", - "static": true, - "longname": "src/configuration/LoggerConfig.js~smartGuideLogger", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/LoggerConfig.js", - "importStyle": "{smartGuideLogger}", - "description": "Log editor events", - "lineNumber": 22, - "type": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 146, - "kind": "variable", - "name": "modelLogger", - "memberof": "src/configuration/LoggerConfig.js", - "static": true, - "longname": "src/configuration/LoggerConfig.js~modelLogger", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/LoggerConfig.js", - "importStyle": "{modelLogger}", - "description": "Log model events", - "lineNumber": 29, - "type": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 147, - "kind": "variable", - "name": "grabberLogger", - "memberof": "src/configuration/LoggerConfig.js", - "static": true, - "longname": "src/configuration/LoggerConfig.js~grabberLogger", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/LoggerConfig.js", - "importStyle": "{grabberLogger}", - "description": "Log grabber events", - "lineNumber": 36, - "type": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 148, - "kind": "variable", - "name": "rendererLogger", - "memberof": "src/configuration/LoggerConfig.js", - "static": true, - "longname": "src/configuration/LoggerConfig.js~rendererLogger", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/LoggerConfig.js", - "importStyle": "{rendererLogger}", - "description": "Log grabber events", - "lineNumber": 43, - "type": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 149, - "kind": "variable", - "name": "recognizerLogger", - "memberof": "src/configuration/LoggerConfig.js", - "static": true, - "longname": "src/configuration/LoggerConfig.js~recognizerLogger", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/LoggerConfig.js", - "importStyle": "{recognizerLogger}", - "description": "Log recognizer events", - "lineNumber": 50, - "type": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 150, - "kind": "variable", - "name": "callbackLogger", - "memberof": "src/configuration/LoggerConfig.js", - "static": true, - "longname": "src/configuration/LoggerConfig.js~callbackLogger", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/LoggerConfig.js", - "importStyle": "{callbackLogger}", - "description": "Log callback events", - "lineNumber": 57, - "type": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 151, - "kind": "variable", - "name": "utilLogger", - "memberof": "src/configuration/LoggerConfig.js", - "static": true, - "longname": "src/configuration/LoggerConfig.js~utilLogger", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/LoggerConfig.js", - "importStyle": "{utilLogger}", - "description": "Log util events", - "lineNumber": 64, - "type": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 152, - "kind": "variable", - "name": "testLogger", - "memberof": "src/configuration/LoggerConfig.js", - "static": true, - "longname": "src/configuration/LoggerConfig.js~testLogger", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/LoggerConfig.js", - "importStyle": "{testLogger}", - "description": "Log tests events", - "lineNumber": 71, - "type": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 153, - "kind": "variable", - "name": "log", - "memberof": "src/configuration/LoggerConfig.js", - "static": true, - "longname": "src/configuration/LoggerConfig.js~log", - "access": null, - "export": true, - "importPath": "myscript/src/configuration/LoggerConfig.js", - "importStyle": "log", - "description": "Main log instance", - "lineNumber": 8, - "type": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 154, - "kind": "file", - "name": "src/eastereggs/InkImporter.js", - "content": "/* eslint-disable no-undef */\nimport { editorLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Function to copy past to inject ink during tutorial.\n * @param editorParam\n * @param strokes\n * @param delayBetweenStrokes\n * @param lastOneDelay\n */\nexport function inkImporter(editorParam, strokes, delayBetweenStrokes, lastOneDelay) {\n const editor = editorParam;\n logger.debug('inkImporter start importing =>', strokes);\n const origGrabber = Object.assign({}, editor.behavior.grabber);\n origGrabber.detach = editor.behavior.grabber.detach;\n editor.behavior.grabber = {};\n const actions = [];\n strokes.forEach((stroke) => {\n if (stroke.convert) {\n actions.push({ action: 'convert', value: true });\n } else if (stroke.setDelay) {\n actions.push({ action: 'setDelay', value: stroke.setDelay });\n } else {\n if (stroke.color) {\n actions.push({ action: 'setColor', value: stroke.color });\n }\n stroke.X.forEach((x, idx) => {\n let action = 'move';\n if (idx === 0) {\n action = 'down';\n } else if (idx === (stroke.X.length - 1)) {\n action = 'up';\n }\n actions.push({ action, point: { x: stroke.X[idx], y: stroke.Y[idx] } });\n });\n }\n });\n logger.debug('Array of actions =>', actions);\n const play = (actionsArray, position, delay) => {\n if (position < actionsArray.length) {\n const currentAction = actionsArray[position];\n let nextDelay = delay;\n if (currentAction.action === 'convert') {\n editor.convert();\n } else if (currentAction.action === 'setDelay') {\n nextDelay = currentAction.value;\n } else if (currentAction.action === 'setColor') {\n editor.penStyle = {\n color: currentAction.value,\n };\n } else {\n currentAction.point.t = new Date().getTime();\n if (currentAction.action === 'down') {\n editor.pointerDown(currentAction.point);\n } else if (currentAction.action === 'up') {\n editor.pointerUp(currentAction.point);\n } else if (currentAction.action === 'move') {\n editor.pointerMove(currentAction.point);\n }\n } if (lastOneDelay && position === actionsArray.map(x => x.action).lastIndexOf('down') - 1) {\n setTimeout(() => {\n play(actionsArray, position + 1, nextDelay);\n }, lastOneDelay);\n } else if (position === actionsArray.length - 1) {\n const event = new Event('drawEnded');\n document.dispatchEvent(event);\n editor.behavior.grabber = origGrabber;\n } else {\n setTimeout(() => {\n play(actionsArray, position + 1, nextDelay);\n }, nextDelay);\n }\n }\n };\n play(actions, 0, delayBetweenStrokes);\n}\n", - "static": true, - "longname": "src/eastereggs/InkImporter.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 155, - "kind": "function", - "name": "inkImporter", - "memberof": "src/eastereggs/InkImporter.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/eastereggs/InkImporter.js~inkImporter", - "access": null, - "export": true, - "importPath": "myscript/src/eastereggs/InkImporter.js", - "importStyle": "{inkImporter}", - "description": "Function to copy past to inject ink during tutorial.", - "lineNumber": 11, - "params": [ - { - "nullable": null, - "types": [ - "*" - ], - "spread": false, - "optional": false, - "name": "editorParam", - "description": "" - }, - { - "nullable": null, - "types": [ - "*" - ], - "spread": false, - "optional": false, - "name": "strokes", - "description": "" - }, - { - "nullable": null, - "types": [ - "*" - ], - "spread": false, - "optional": false, - "name": "delayBetweenStrokes", - "description": "" - }, - { - "nullable": null, - "types": [ - "*" - ], - "spread": false, - "optional": false, - "name": "lastOneDelay", - "description": "" - } - ] - }, - { - "__docId__": 156, - "kind": "file", - "name": "src/grabber/PointerEventGrabber.js", - "content": "import { grabberLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Grab pointerDown, pointerMove and pointerUp events\n * @typedef {Object} Grabber\n * @property {function(element: Element, editor: Editor): GrabberContext} attach Attach events and decide when to call editor pointerDown/Move/Up methods\n * @property {function(element: Element, context: GrabberContext)} detach Detach the grabber\n */\n\n/**\n * Grabber listener\n * @typedef {Object} GrabberListener\n * @property {Array} types Event types to listen\n * @property {function(event: Event)} listener Event listener for these events\n */\n\n/**\n * Grabber context\n * @typedef {Object} GrabberContext\n * @property {Boolean|Object} options Options object that specifies characteristics about the event listener. (@see addEventListener.options for detail)\n * @property {Array} listeners Registered listeners\n */\n\nconst floatPrecisionArray = [1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000];\n\nfunction roundFloat(oneFloat, requestedFloatPrecision) {\n if (requestedFloatPrecision || requestedFloatPrecision === 0) {\n let floatPrecision;\n if (requestedFloatPrecision > 10) {\n floatPrecision = floatPrecisionArray[10];\n } else {\n floatPrecision = floatPrecisionArray[requestedFloatPrecision];\n }\n return Math.round(oneFloat * floatPrecision) / floatPrecision;\n }\n return oneFloat;\n}\n\nfunction extractPoint(event, domElement, configuration, offsetTop = 0, offsetLeft = 0) {\n let eventRef = event;\n if (eventRef.changedTouches) {\n eventRef = eventRef.changedTouches[0];\n }\n const rect = domElement.getBoundingClientRect();\n return {\n x: roundFloat(eventRef.clientX - rect.left - domElement.clientLeft - offsetLeft, configuration.xyFloatPrecision),\n y: roundFloat(eventRef.clientY - rect.top - domElement.clientTop - offsetTop, configuration.xyFloatPrecision),\n t: roundFloat(Date.now(), configuration.timestampFloatPrecision)\n };\n}\n\n/**\n * Listen for the desired events\n * @param {Element} element DOM element to attach events listeners\n * @param {Editor} editor Editor to received down/move/up events\n * @param {Number} [offsetTop=0]\n * @param {Number} [offsetLeft=0]\n * @return {GrabberContext} Grabber context\n * @listens {Event} pointermove: a pointer moves, similar to touchmove or mousemove.\n * @listens {Event} pointerdown: a pointer is activated, or a device button held.\n * @listens {Event} pointerup: a pointer is deactivated, or a device button released.\n * @listens {Event} pointerover: a pointer has moved onto an element.\n * @listens {Event} pointerout: a pointer is no longer on an element it once was.\n * @listens {Event} pointerenter: a pointer enters the bounding box of an element.\n * @listens {Event} pointerleave: a pointer leaves the bounding box of an element.\n * @listens {Event} pointercancel: a pointer will no longer generate events.\n */\nexport function attach(element, editor, offsetTop = 0, offsetLeft = 0) {\n let mMaxDiffX = 0;\n\n function unfocus() {\n if (window.getSelection().type !== 'None') {\n window.getSelection().removeAllRanges();\n }\n }\n\n function hideMenu(evt) {\n const moreMenuInDocument = document.querySelector('.more-menu');\n if (!evt.target.classList.contains('ellipsis') && !evt.target.classList.contains('more-menu') && !evt.target.classList.contains('options-label-button') && moreMenuInDocument && moreMenuInDocument.style.display !== 'none') {\n moreMenuInDocument.style.display = 'none';\n return true;\n }\n return false;\n }\n\n function hideCandidates(evt) {\n const candidatesInDocument = document.querySelector('.candidates');\n if (!evt.target.classList.contains('candidates') && !(evt.target.tagName === 'SPAN') && candidatesInDocument && candidatesInDocument.style.display !== 'none') {\n candidatesInDocument.style.display = 'none';\n return true;\n }\n return false;\n }\n\n function pointerDownHandler(evt) { // Trigger a pointerDown\n const pointerDownOnEditor = evt.target.id === editor.domElement.id || evt.target.classList.contains('ms-canvas');\n if (this.activePointerId !== undefined) {\n if (this.activePointerId === evt.pointerId) {\n logger.trace(`${evt.type} event with the same id without any pointer up`, evt.pointerId);\n }\n } else if ((evt.button !== 2) && (evt.buttons !== 2) && pointerDownOnEditor) { // Ignore right click\n if (!hideMenu(evt) && !hideCandidates(evt)) {\n this.activePointerId = evt.pointerId;\n // Hack for iOS 9 Safari : pointerId has to be int so -1 if > max value\n const pointerId = evt.pointerId > 2147483647 ? -1 : evt.pointerId;\n unfocus();\n evt.stopPropagation();\n editor.pointerDown(extractPoint(evt, element, editor.configuration, offsetTop, offsetLeft), evt.pointerType, pointerId);\n }\n } else if (evt.target.classList.contains('ellipsis') || evt.target.classList.contains('tag-icon')) {\n hideMenu(evt);\n hideCandidates(evt);\n } else { // FIXME add more complete verification to pointer down on smartguide\n hideMenu(evt);\n hideCandidates(evt);\n this.smartGuidePointerDown = true;\n this.downSmartGuidePoint = extractPoint(evt, element, editor.configuration);\n }\n }\n\n function pointerMoveHandler(evt) { // Trigger a pointerMove\n // Only considering the active pointer\n if (this.activePointerId !== undefined && this.activePointerId === evt.pointerId) {\n unfocus();\n editor.pointerMove(extractPoint(evt, element, editor.configuration, offsetTop, offsetLeft));\n } else if (this.smartGuidePointerDown) {\n const point = extractPoint(evt, element, editor.configuration, offsetTop, offsetLeft);\n const diffX = Math.abs(this.downSmartGuidePoint.x - point.x);\n const diffY = Math.abs(this.downSmartGuidePoint.y - point.y);\n mMaxDiffX = Math.max(diffX, mMaxDiffX);\n const cond1 = diffX < 5 && diffY > 5 && mMaxDiffX < 15;\n const cond2 = diffX > 5 && diffY > 5 && mMaxDiffX < 15;\n if (cond1 || cond2) {\n this.activePointerId = evt.pointerId;\n // Hack for iOS 9 Safari : pointerId has to be int so -1 if > max value\n const pointerId = evt.pointerId > 2147483647 ? -1 : evt.pointerId;\n unfocus();\n editor.pointerDown(this.downSmartGuidePoint, evt.pointerType, pointerId);\n }\n } else {\n logger.trace(`${evt.type} event from another pointerid (${evt.pointerId})`, this.activePointerId);\n }\n }\n\n function pointerUpHandler(evt) { // Trigger a pointerUp\n mMaxDiffX = 0;\n this.smartGuidePointerDown = false;\n const smartGuideIds = ['smartguide', 'prompter-text-container', 'prompter-text', 'tag-icon', 'ellipsis'];\n const scrollbarClasses = ['ps__rail-x', 'ps__thumb-x'];\n // Check if pointer entered into any smartguide elements or scrollbar\n const pointerEnteredSmartGuide = evt.relatedTarget && (smartGuideIds.includes(evt.relatedTarget.className) || scrollbarClasses.includes(evt.relatedTarget.className));\n // Check if pointer didn't stay in the smartguide and pointer exited the smartguide or scrollbar\n const pointerExitedSmartGuide = evt.relatedTarget && evt.target && (smartGuideIds.includes(evt.target.className) || scrollbarClasses.includes(evt.target.className));\n // Check if pointer moved between words in smartguide\n const pointerMovedWords = evt.relatedTarget && evt.target && (evt.target.tagName === 'SPAN' || evt.relatedTarget.tagName === 'SPAN');\n if (pointerEnteredSmartGuide || pointerExitedSmartGuide || pointerMovedWords) {\n evt.stopPropagation();\n } else if (this.activePointerId !== undefined && this.activePointerId === evt.pointerId) { // Only considering the active pointer\n this.activePointerId = undefined; // Managing the active pointer\n evt.stopPropagation();\n editor.pointerUp(extractPoint(evt, element, editor.configuration, offsetTop, offsetLeft));\n } else {\n logger.trace(`${evt.type} event from another pointerid (${evt.pointerId})`, this.activePointerId);\n }\n }\n\n const context = {\n options: editor.configuration.listenerOptions,\n listeners: [{\n types: ['pointerdown'],\n listener: pointerDownHandler\n }, {\n types: ['pointermove'],\n listener: pointerMoveHandler\n }, {\n types: ['pointerup', 'pointerout', 'pointerleave', 'pointercancel'],\n listener: pointerUpHandler\n }]\n };\n\n logger.debug('attaching listeners', context);\n context.listeners.forEach((item) => {\n item.types.forEach(type => element.addEventListener(type, item.listener, context.options));\n });\n return context;\n}\n\nexport function detach(element, context) {\n logger.debug('detaching listeners', context);\n context.listeners.forEach((item) => {\n item.types.forEach(type => element.removeEventListener(type, item.listener, context.options));\n });\n}\n", - "static": true, - "longname": "src/grabber/PointerEventGrabber.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 157, - "kind": "typedef", - "name": "Grabber", - "memberof": "src/grabber/PointerEventGrabber.js", - "static": true, - "longname": "src/grabber/PointerEventGrabber.js~Grabber", - "access": null, - "description": "Grab pointerDown, pointerMove and pointerUp events", - "properties": [ - { - "nullable": null, - "types": [ - "function(element: Element, editor: Editor): GrabberContext" - ], - "spread": false, - "optional": false, - "name": "attach", - "description": "Attach events and decide when to call editor pointerDown/Move/Up methods" - }, - { - "nullable": null, - "types": [ - "function(element: Element, context: GrabberContext)" - ], - "spread": false, - "optional": false, - "name": "detach", - "description": "Detach the grabber" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "Grabber" - } - }, - { - "__docId__": 158, - "kind": "typedef", - "name": "GrabberListener", - "memberof": "src/grabber/PointerEventGrabber.js", - "static": true, - "longname": "src/grabber/PointerEventGrabber.js~GrabberListener", - "access": null, - "description": "Grabber listener", - "properties": [ - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "types", - "description": "Event types to listen" - }, - { - "nullable": null, - "types": [ - "function(event: Event)" - ], - "spread": false, - "optional": false, - "name": "listener", - "description": "Event listener for these events" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "GrabberListener" - } - }, - { - "__docId__": 159, - "kind": "typedef", - "name": "GrabberContext", - "memberof": "src/grabber/PointerEventGrabber.js", - "static": true, - "longname": "src/grabber/PointerEventGrabber.js~GrabberContext", - "access": null, - "description": "Grabber context", - "lineNumber": 24, - "properties": [ - { - "nullable": null, - "types": [ - "Boolean", - "Object" - ], - "spread": false, - "optional": false, - "name": "options", - "description": "Options object that specifies characteristics about the event listener. (@see addEventListener.options for detail)" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "listeners", - "description": "Registered listeners" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "GrabberContext" - } - }, - { - "__docId__": 160, - "kind": "function", - "name": "roundFloat", - "memberof": "src/grabber/PointerEventGrabber.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/grabber/PointerEventGrabber.js~roundFloat", - "access": null, - "export": false, - "importPath": "myscript/src/grabber/PointerEventGrabber.js", - "importStyle": null, - "description": null, - "lineNumber": 26, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "oneFloat", - "types": [ - "*" - ] - }, - { - "name": "requestedFloatPrecision", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 161, - "kind": "function", - "name": "extractPoint", - "memberof": "src/grabber/PointerEventGrabber.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/grabber/PointerEventGrabber.js~extractPoint", - "access": null, - "export": false, - "importPath": "myscript/src/grabber/PointerEventGrabber.js", - "importStyle": null, - "description": null, - "lineNumber": 39, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "event", - "types": [ - "*" - ] - }, - { - "name": "domElement", - "types": [ - "*" - ] - }, - { - "name": "configuration", - "types": [ - "*" - ] - }, - { - "name": "offsetTop", - "optional": true, - "types": [ - "number" - ], - "defaultRaw": 0, - "defaultValue": "0" - }, - { - "name": "offsetLeft", - "optional": true, - "types": [ - "number" - ], - "defaultRaw": 0, - "defaultValue": "0" - } - ], - "return": { - "types": [ - "{\"x\": *, \"y\": *, \"t\": *}" - ] - } - }, - { - "__docId__": 162, - "kind": "function", - "name": "attach", - "memberof": "src/grabber/PointerEventGrabber.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/grabber/PointerEventGrabber.js~attach", - "access": null, - "export": true, - "importPath": "myscript/src/grabber/PointerEventGrabber.js", - "importStyle": "{attach}", - "description": "Listen for the desired events", - "lineNumber": 68, - "params": [ - { - "nullable": null, - "types": [ - "Element" - ], - "spread": false, - "optional": false, - "name": "element", - "description": "DOM element to attach events listeners" - }, - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "Editor to received down/move/up events" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "defaultValue": "0", - "defaultRaw": 0, - "name": "offsetTop", - "description": "" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "defaultValue": "0", - "defaultRaw": 0, - "name": "offsetLeft", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "GrabberContext" - ], - "spread": false, - "description": "Grabber context" - }, - "listens": [ - { - "types": [ - "Event" - ], - "description": "pointermove: a pointer moves, similar to touchmove or mousemove." - }, - { - "types": [ - "Event" - ], - "description": "pointerdown: a pointer is activated, or a device button held." - }, - { - "types": [ - "Event" - ], - "description": "pointerup: a pointer is deactivated, or a device button released." - }, - { - "types": [ - "Event" - ], - "description": "pointerover: a pointer has moved onto an element." - }, - { - "types": [ - "Event" - ], - "description": "pointerout: a pointer is no longer on an element it once was." - }, - { - "types": [ - "Event" - ], - "description": "pointerenter: a pointer enters the bounding box of an element." - }, - { - "types": [ - "Event" - ], - "description": "pointerleave: a pointer leaves the bounding box of an element." - }, - { - "types": [ - "Event" - ], - "description": "pointercancel: a pointer will no longer generate events." - } - ] - }, - { - "__docId__": 163, - "kind": "function", - "name": "detach", - "memberof": "src/grabber/PointerEventGrabber.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/grabber/PointerEventGrabber.js~detach", - "access": null, - "export": true, - "importPath": "myscript/src/grabber/PointerEventGrabber.js", - "importStyle": "{detach}", - "description": null, - "lineNumber": 188, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "element", - "types": [ - "*" - ] - }, - { - "name": "context", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 164, - "kind": "file", - "name": "src/model/InkModel.js", - "content": "import { modelLogger as logger } from '../configuration/LoggerConfig';\nimport * as StrokeComponent from './StrokeComponent';\nimport { getSymbolsBounds, getDefaultSymbols } from './Symbol';\n\n/**\n * Recognition positions\n * @typedef {Object} RecognitionPositions\n * @property {Number} [lastSentPosition=-1] Index of the last sent stroke.\n * @property {Number} [lastReceivedPosition=-1] Index of the last received stroke.\n * @property {Number} [lastRenderedPosition=-1] Last rendered recognized symbol position\n */\n\n/**\n * Raw results\n * @typedef {Object} RawResults\n * @property {Object} convert=undefined The convert result\n * @property {Object} exports=undefined The exports output as return by the recognition service.\n */\n\n/**\n * Editor model\n * @typedef {Object} Model\n * @property {Stroke} currentStroke=undefined Stroke in building process.\n * @property {Array} rawStrokes=[] List of captured strokes.\n * @property {Array} strokeGroups=[] Group of strokes with same pen style.\n * @property {RecognitionPositions} lastPositions Last recognition sent/received stroke indexes.\n * @property {Array} defaultSymbols=[] Default symbols, relative to the current recognition type.\n * @property {Array} recognizedSymbols=undefined Symbols to render (e.g. stroke, shape primitives, string, characters...).\n * @property {Object} exports=undefined Result of the export (e.g. mathml, latex, text...).\n * @property {RawResults} rawResults The recognition output as return by the recognition service.\n * @property {Number} creationTime Date of creation timestamp.\n * @property {Number} modificationTime=undefined Date of lastModification.\n */\n\n/**\n * Bounding box\n * @typedef {Object} Bounds\n * @property {Number} minX Minimal x coordinate\n * @property {Number} maxX Maximal x coordinate\n * @property {Number} minY Minimal y coordinate\n * @property {Number} maxY Maximal y coordinate\n */\n\n/**\n * Create a new model\n * @param {Configuration} [configuration] Parameters to use to populate default recognition symbols\n * @return {Model} New model\n */\nexport function createModel(configuration) {\n // see @typedef documentation on top\n return {\n currentStroke: undefined,\n rawStrokes: [],\n strokeGroups: [],\n lastPositions: {\n lastSentPosition: -1,\n lastReceivedPosition: -1,\n lastRenderedPosition: -1\n },\n defaultSymbols: configuration ? getDefaultSymbols(configuration) : [],\n recognizedSymbols: undefined,\n exports: undefined,\n rawResults: {\n convert: undefined,\n exports: undefined\n },\n creationTime: new Date().getTime(),\n modificationTime: undefined\n };\n}\n\n/**\n * Clear the model.\n * @param {Model} model Current model\n * @return {Model} Cleared model\n */\nexport function clearModel(model) {\n const modelReference = model;\n modelReference.currentStroke = undefined;\n modelReference.rawStrokes = [];\n modelReference.strokeGroups = [];\n modelReference.lastPositions.lastSentPosition = -1;\n modelReference.lastPositions.lastReceivedPosition = -1;\n modelReference.lastPositions.lastRenderedPosition = -1;\n modelReference.recognizedSymbols = undefined;\n modelReference.exports = undefined;\n modelReference.rawResults.convert = undefined;\n modelReference.rawResults.exports = undefined;\n return modelReference;\n}\n\n/**\n * Check if the model needs to be redrawn.\n * @param {Model} model Current model\n * @return {Boolean} True if the model needs to be redrawn, false otherwise\n */\nexport function needRedraw(model) {\n return model.recognizedSymbols ? (model.rawStrokes.length !== model.recognizedSymbols.filter(symbol => symbol.type === 'stroke').length) : false;\n}\n\n/**\n * Mutate the model given in parameter by adding the new strokeToAdd.\n * @param {Model} model Current model\n * @param {Stroke} stroke Stroke to be added to pending ones\n * @return {Model} Updated model\n */\nexport function addStroke(model, stroke) {\n // We use a reference to the model. The purpose here is to update the pending stroke only.\n const modelReference = model;\n logger.debug('addStroke', stroke);\n modelReference.rawStrokes.push(stroke);\n return modelReference;\n}\n\n/**\n * Mutate the model given in parameter by adding the new strokeToAdd and the penstyle. Used for iink REST.\n * @param {Model} model Current model\n * @param {Stroke} stroke Stroke to be added to pending ones\n * @param {PenStyle} strokePenStyle\n * @return {Model} Updated model\n */\nexport function addStrokeToGroup(model, stroke, strokePenStyle) {\n // We use a reference to the model. The purpose here is to update the pending stroke only.\n const modelReference = model;\n logger.debug('addStroke', stroke);\n const lastGroup = modelReference.strokeGroups.length - 1;\n if (modelReference.strokeGroups[lastGroup] && modelReference.strokeGroups[lastGroup].penStyle === strokePenStyle) {\n modelReference.strokeGroups[lastGroup].strokes.push(stroke);\n } else {\n const newStrokeGroup = {\n penStyle: strokePenStyle,\n strokes: []\n };\n const strokeCopy = {};\n Object.assign(strokeCopy, stroke);\n newStrokeGroup.strokes.push(strokeCopy);\n modelReference.strokeGroups.push(newStrokeGroup);\n }\n return modelReference;\n}\n\n/**\n * Get the strokes that needs to be recognized\n * @param {Model} model Current model\n * @param {Number} [position=lastReceived] Index from where to extract strokes\n * @return {Array} Pending strokes\n */\nexport function extractPendingStrokes(model, position = model.lastPositions.lastReceivedPosition + 1) {\n return model.rawStrokes.slice(position);\n}\n\n/**\n * Mutate the model by adding a point and close the current stroke.\n * @param {Model} model Current model\n * @param {{x: Number, y: Number, t: Number}} point Captured point to create current stroke\n * @param {Object} properties Properties to be applied to the current stroke\n * @param {Number} [dpi=96] The screen dpi resolution\n * @return {Model} Updated model\n */\nexport function initPendingStroke(model, point, properties, dpi = 96) {\n if (properties && properties['-myscript-pen-width']) {\n const pxWidth = (properties['-myscript-pen-width'] * dpi) / 25.4;\n Object.assign(properties, { width: pxWidth / 2 }); // FIXME hack to get better render\n }\n const modelReference = model;\n logger.trace('initPendingStroke', point);\n // Setting the current stroke to an empty one\n modelReference.currentStroke = StrokeComponent.createStrokeComponent(properties);\n modelReference.currentStroke = StrokeComponent.addPoint(modelReference.currentStroke, point);\n return modelReference;\n}\n\n/**\n * Mutate the model by adding a point to the current pending stroke.\n * @param {Model} model Current model\n * @param {{x: Number, y: Number, t: Number}} point Captured point to be append to the current stroke\n * @return {Model} Updated model\n */\nexport function appendToPendingStroke(model, point) {\n const modelReference = model;\n if (modelReference.currentStroke) {\n logger.trace('appendToPendingStroke', point);\n modelReference.currentStroke = StrokeComponent.addPoint(modelReference.currentStroke, point);\n }\n return modelReference;\n}\n\n/**\n * Mutate the model by adding the new point on a initPendingStroke.\n * @param {Model} model Current model\n * @param {{x: Number, y: Number, t: Number}} point Captured point to be append to the current stroke\n * @param {PenStyle} penStyle\n * @return {Model} Updated model\n */\nexport function endPendingStroke(model, point, penStyle) {\n const modelReference = model;\n if (modelReference.currentStroke) {\n logger.trace('endPendingStroke', point);\n const currentStroke = StrokeComponent.addPoint(modelReference.currentStroke, point);\n // Mutating pending strokes\n addStroke(modelReference, currentStroke);\n addStrokeToGroup(modelReference, currentStroke, penStyle);\n // Resetting the current stroke to an undefined one\n delete modelReference.currentStroke;\n }\n return modelReference;\n}\n\n/**\n * Get the bounds of the current model.\n * @param {Model} model Current model\n * @return {Bounds} Bounding box enclosing the current drawn model\n */\nexport function getBorderCoordinates(model) {\n let modelBounds = { minX: Number.MAX_VALUE, maxX: Number.MIN_VALUE, minY: Number.MAX_VALUE, maxY: Number.MIN_VALUE };\n\n // Default symbols\n if (model.defaultSymbols && model.defaultSymbols.length > 0) {\n modelBounds = getSymbolsBounds(model.defaultSymbols, modelBounds);\n }\n // Recognized symbols\n if (model.recognizedSymbols && model.recognizedSymbols.length > 0) {\n modelBounds = getSymbolsBounds(model.recognizedSymbols, modelBounds);\n // Pending strokes\n modelBounds = getSymbolsBounds(extractPendingStrokes(model), modelBounds);\n } else {\n modelBounds = getSymbolsBounds(model.rawStrokes, modelBounds);\n }\n return modelBounds;\n}\n\n/**\n * Extract strokes from an ink range\n * @param {Model} model Current model\n * @param {Number} firstStroke First stroke index to extract\n * @param {Number} lastStroke Last stroke index to extract\n * @param {Number} firstPoint First point index to extract\n * @param {Number} lastPoint Last point index to extract\n * @return {Array} The extracted strokes\n */\nexport function extractStrokesFromInkRange(model, firstStroke, lastStroke, firstPoint, lastPoint) {\n return model.rawStrokes.slice(firstStroke, lastStroke + 1).map((stroke, index, slicedStrokes) => {\n if (slicedStrokes.length < 2) {\n return StrokeComponent.slice(stroke, firstPoint, lastPoint + 1);\n }\n if (index === 0) {\n return StrokeComponent.slice(stroke, firstPoint);\n }\n if (index === (slicedStrokes.length - 1)) {\n return StrokeComponent.slice(stroke, 0, lastPoint + 1);\n }\n return stroke;\n });\n}\n\n/**\n * Update model lastSentPosition\n * @param {Model} model\n * @param {Number} [position]\n * @return {Model}\n */\nexport function updateModelSentPosition(model, position = model.rawStrokes.length - 1) {\n const modelReference = model;\n modelReference.lastPositions.lastSentPosition = position;\n return modelReference;\n}\n\n/**\n * Update model lastReceivedPosition regarding to lastSentPosition\n * @param {Model} model\n * @return {Model}\n */\nexport function updateModelReceivedPosition(model) {\n const modelReference = model;\n modelReference.lastPositions.lastReceivedPosition = modelReference.lastPositions.lastSentPosition;\n return modelReference;\n}\n\n/**\n * Reset model lastReceivedPosition and lastSentPosition\n * @param {Model} model\n * @return {Model}\n */\nexport function resetModelPositions(model) {\n const modelReference = model;\n modelReference.lastPositions.lastSentPosition = -1;\n modelReference.lastPositions.lastReceivedPosition = -1;\n return modelReference;\n}\n\n/**\n * Reset model lastRenderedPosition\n * @param {Model} model\n * @return {Model}\n */\nexport function resetModelRendererPosition(model) {\n const modelReference = model;\n modelReference.lastPositions.lastRenderedPosition = -1;\n return modelReference;\n}\n\n/**\n * Update model lastRenderedPosition\n * @param {Model} model\n * @param {Number} [position]\n * @return {Model}\n */\nexport function updateModelRenderedPosition(model, position = model.recognizedSymbols ? model.recognizedSymbols.length - 1 : -1) {\n const modelReference = model;\n modelReference.lastPositions.lastRenderedPosition = position;\n return modelReference;\n}\n\n/**\n * Get the symbols that needs to be rendered\n * @param {Model} model Current model\n * @param {Number} [position=lastRendered] Index from where to extract symbols\n * @return {Array}\n */\nexport function extractPendingRecognizedSymbols(model, position = model.lastPositions.lastRenderedPosition + 1) {\n return model.recognizedSymbols ? model.recognizedSymbols.slice(position) : [];\n}\n\n/**\n * Clone model\n * @param {Model} model Current model\n * @return {Model} Clone of the current model\n */\nexport function cloneModel(model) {\n const clonedModel = Object.assign({}, model);\n // We clone the properties that need to be. Take care of arrays.\n clonedModel.defaultSymbols = [...model.defaultSymbols];\n clonedModel.currentStroke = model.currentStroke ? Object.assign({}, model.currentStroke) : undefined;\n clonedModel.rawStrokes = [...model.rawStrokes];\n clonedModel.strokeGroups = JSON.parse(JSON.stringify(model.strokeGroups));\n clonedModel.lastPositions = Object.assign({}, model.lastPositions);\n clonedModel.exports = model.exports ? Object.assign({}, model.exports) : undefined;\n clonedModel.rawResults = Object.assign({}, model.rawResults);\n clonedModel.recognizedSymbols = model.recognizedSymbols ? [...model.recognizedSymbols] : undefined;\n return clonedModel;\n}\n\n/**\n * Merge models\n * @param {...Model} models Models to merge (ordered)\n * @return {Model} Updated model\n */\nexport function mergeModels(...models) {\n return models.reduce((a, b) => {\n const modelRef = a;\n modelRef.recognizedSymbols = b.recognizedSymbols;\n modelRef.lastPositions.lastSentPosition = b.lastPositions.lastSentPosition;\n modelRef.lastPositions.lastReceivedPosition = b.lastPositions.lastReceivedPosition;\n modelRef.lastPositions.lastRenderedPosition = b.lastPositions.lastRenderedPosition;\n modelRef.rawResults = b.rawResults;\n modelRef.exports = b.exports;\n return modelRef;\n });\n}\n", - "static": true, - "longname": "src/model/InkModel.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 165, - "kind": "typedef", - "name": "RecognitionPositions", - "memberof": "src/model/InkModel.js", - "static": true, - "longname": "src/model/InkModel.js~RecognitionPositions", - "access": null, - "description": "Recognition positions", - "properties": [ - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "defaultValue": "-1", - "defaultRaw": -1, - "name": "lastSentPosition", - "description": "Index of the last sent stroke." - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "defaultValue": "-1", - "defaultRaw": -1, - "name": "lastReceivedPosition", - "description": "Index of the last received stroke." - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "defaultValue": "-1", - "defaultRaw": -1, - "name": "lastRenderedPosition", - "description": "Last rendered recognized symbol position" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "RecognitionPositions" - } - }, - { - "__docId__": 166, - "kind": "typedef", - "name": "RawResults", - "memberof": "src/model/InkModel.js", - "static": true, - "longname": "src/model/InkModel.js~RawResults", - "access": null, - "description": "Raw results", - "properties": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "convert", - "description": "The convert result" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "exports", - "description": "The exports output as return by the recognition service." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "RawResults" - } - }, - { - "__docId__": 167, - "kind": "typedef", - "name": "Model", - "memberof": "src/model/InkModel.js", - "static": true, - "longname": "src/model/InkModel.js~Model", - "access": null, - "description": "Editor model", - "properties": [ - { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "currentStroke", - "description": "Stroke in building process." - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "defaultValue": "[]", - "defaultRaw": [], - "name": "rawStrokes", - "description": "List of captured strokes." - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "defaultValue": "[]", - "defaultRaw": [], - "name": "strokeGroups", - "description": "Group of strokes with same pen style." - }, - { - "nullable": null, - "types": [ - "RecognitionPositions" - ], - "spread": false, - "optional": false, - "name": "lastPositions", - "description": "Last recognition sent/received stroke indexes." - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "defaultValue": "[]", - "defaultRaw": [], - "name": "defaultSymbols", - "description": "Default symbols, relative to the current recognition type." - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "recognizedSymbols", - "description": "Symbols to render (e.g. stroke, shape primitives, string, characters...)." - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "exports", - "description": "Result of the export (e.g. mathml, latex, text...)." - }, - { - "nullable": null, - "types": [ - "RawResults" - ], - "spread": false, - "optional": false, - "name": "rawResults", - "description": "The recognition output as return by the recognition service." - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "creationTime", - "description": "Date of creation timestamp." - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "modificationTime", - "description": "Date of lastModification." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "Model" - } - }, - { - "__docId__": 168, - "kind": "typedef", - "name": "Bounds", - "memberof": "src/model/InkModel.js", - "static": true, - "longname": "src/model/InkModel.js~Bounds", - "access": null, - "description": "Bounding box", - "properties": [ - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "minX", - "description": "Minimal x coordinate" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "maxX", - "description": "Maximal x coordinate" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "minY", - "description": "Minimal y coordinate" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "maxY", - "description": "Maximal y coordinate" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "Bounds" - } - }, - { - "__docId__": 169, - "kind": "function", - "name": "createModel", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~createModel", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{createModel}", - "description": "Create a new model", - "lineNumber": 49, - "params": [ - { - "nullable": null, - "types": [ - "Configuration" - ], - "spread": false, - "optional": true, - "name": "configuration", - "description": "Parameters to use to populate default recognition symbols" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "New model" - } - }, - { - "__docId__": 170, - "kind": "function", - "name": "clearModel", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~clearModel", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{clearModel}", - "description": "Clear the model.", - "lineNumber": 77, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "Cleared model" - } - }, - { - "__docId__": 171, - "kind": "function", - "name": "needRedraw", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~needRedraw", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{needRedraw}", - "description": "Check if the model needs to be redrawn.", - "lineNumber": 97, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - } - ], - "return": { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "description": "True if the model needs to be redrawn, false otherwise" - } - }, - { - "__docId__": 172, - "kind": "function", - "name": "addStroke", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~addStroke", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{addStroke}", - "description": "Mutate the model given in parameter by adding the new strokeToAdd.", - "lineNumber": 107, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "optional": false, - "name": "stroke", - "description": "Stroke to be added to pending ones" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "Updated model" - } - }, - { - "__docId__": 173, - "kind": "function", - "name": "addStrokeToGroup", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~addStrokeToGroup", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{addStrokeToGroup}", - "description": "Mutate the model given in parameter by adding the new strokeToAdd and the penstyle. Used for iink REST.", - "lineNumber": 122, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "optional": false, - "name": "stroke", - "description": "Stroke to be added to pending ones" - }, - { - "nullable": null, - "types": [ - "PenStyle" - ], - "spread": false, - "optional": false, - "name": "strokePenStyle", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "Updated model" - } - }, - { - "__docId__": 174, - "kind": "function", - "name": "extractPendingStrokes", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~extractPendingStrokes", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{extractPendingStrokes}", - "description": "Get the strokes that needs to be recognized", - "lineNumber": 148, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "defaultValue": "lastReceived", - "defaultRaw": "lastReceived", - "name": "position", - "description": "Index from where to extract strokes" - } - ], - "return": { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "description": "Pending strokes" - } - }, - { - "__docId__": 175, - "kind": "function", - "name": "initPendingStroke", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~initPendingStroke", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{initPendingStroke}", - "description": "Mutate the model by adding a point and close the current stroke.", - "lineNumber": 160, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "{x: Number, y: Number, t: Number}" - ], - "spread": false, - "optional": false, - "name": "point", - "description": "Captured point to create current stroke" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "properties", - "description": "Properties to be applied to the current stroke" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "defaultValue": "96", - "defaultRaw": 96, - "name": "dpi", - "description": "The screen dpi resolution" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "Updated model" - } - }, - { - "__docId__": 176, - "kind": "function", - "name": "appendToPendingStroke", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~appendToPendingStroke", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{appendToPendingStroke}", - "description": "Mutate the model by adding a point to the current pending stroke.", - "lineNumber": 179, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "{x: Number, y: Number, t: Number}" - ], - "spread": false, - "optional": false, - "name": "point", - "description": "Captured point to be append to the current stroke" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "Updated model" - } - }, - { - "__docId__": 177, - "kind": "function", - "name": "endPendingStroke", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~endPendingStroke", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{endPendingStroke}", - "description": "Mutate the model by adding the new point on a initPendingStroke.", - "lineNumber": 195, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "{x: Number, y: Number, t: Number}" - ], - "spread": false, - "optional": false, - "name": "point", - "description": "Captured point to be append to the current stroke" - }, - { - "nullable": null, - "types": [ - "PenStyle" - ], - "spread": false, - "optional": false, - "name": "penStyle", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "Updated model" - } - }, - { - "__docId__": 178, - "kind": "function", - "name": "getBorderCoordinates", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~getBorderCoordinates", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{getBorderCoordinates}", - "description": "Get the bounds of the current model.", - "lineNumber": 214, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - } - ], - "return": { - "nullable": null, - "types": [ - "Bounds" - ], - "spread": false, - "description": "Bounding box enclosing the current drawn model" - } - }, - { - "__docId__": 179, - "kind": "function", - "name": "extractStrokesFromInkRange", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~extractStrokesFromInkRange", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{extractStrokesFromInkRange}", - "description": "Extract strokes from an ink range", - "lineNumber": 241, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "firstStroke", - "description": "First stroke index to extract" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "lastStroke", - "description": "Last stroke index to extract" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "firstPoint", - "description": "First point index to extract" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "lastPoint", - "description": "Last point index to extract" - } - ], - "return": { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "description": "The extracted strokes" - } - }, - { - "__docId__": 180, - "kind": "function", - "name": "updateModelSentPosition", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~updateModelSentPosition", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{updateModelSentPosition}", - "description": "Update model lastSentPosition", - "lineNumber": 262, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "name": "position", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 181, - "kind": "function", - "name": "updateModelReceivedPosition", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~updateModelReceivedPosition", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{updateModelReceivedPosition}", - "description": "Update model lastReceivedPosition regarding to lastSentPosition", - "lineNumber": 273, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 182, - "kind": "function", - "name": "resetModelPositions", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~resetModelPositions", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{resetModelPositions}", - "description": "Reset model lastReceivedPosition and lastSentPosition", - "lineNumber": 284, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 183, - "kind": "function", - "name": "resetModelRendererPosition", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~resetModelRendererPosition", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{resetModelRendererPosition}", - "description": "Reset model lastRenderedPosition", - "lineNumber": 296, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 184, - "kind": "function", - "name": "updateModelRenderedPosition", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~updateModelRenderedPosition", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{updateModelRenderedPosition}", - "description": "Update model lastRenderedPosition", - "lineNumber": 308, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "name": "position", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 185, - "kind": "function", - "name": "extractPendingRecognizedSymbols", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~extractPendingRecognizedSymbols", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{extractPendingRecognizedSymbols}", - "description": "Get the symbols that needs to be rendered", - "lineNumber": 320, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "defaultValue": "lastRendered", - "defaultRaw": "lastRendered", - "name": "position", - "description": "Index from where to extract symbols" - } - ], - "return": { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 186, - "kind": "function", - "name": "cloneModel", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~cloneModel", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{cloneModel}", - "description": "Clone model", - "lineNumber": 329, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "Clone of the current model" - } - }, - { - "__docId__": 187, - "kind": "function", - "name": "mergeModels", - "memberof": "src/model/InkModel.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/InkModel.js~mergeModels", - "access": null, - "export": true, - "importPath": "myscript/src/model/InkModel.js", - "importStyle": "{mergeModels}", - "description": "Merge models", - "lineNumber": 348, - "params": [ - { - "nullable": null, - "types": [ - "...Model" - ], - "spread": true, - "optional": false, - "name": "models", - "description": "Models to merge (ordered)" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "Updated model" - } - }, - { - "__docId__": 188, - "kind": "file", - "name": "src/model/RecognizerContext.js", - "content": "import { recognizerLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Recognition context\n * @typedef {Object} RecognitionContext\n * @property {Model} model\n * @property {Callback} callback\n */\n\n/**\n * Recognizer context\n * @typedef {Object} RecognizerContext\n * @property {Editor} editor Get a reference to the current editor\n * @property {Array} recognitionContexts=[]\n * @property {Promise} initPromise=undefined\n * @property {RecognitionPositions} lastPositions Last recognition sent/received stroke indexes.\n * @property {String} url=undefined\n * @property {WebSocket} websocket=undefined\n * @property {function} websocketCallback=undefined\n * @property {function} reconnect=undefined\n * @property {Number} currentReconnectionCount=0\n * @property {String} sessionId=undefined\n * @property {Number} contentPartCount=0\n * @property {String} currentPartId=undefined\n * @property {String} instanceId=undefined\n * @property {Boolean} canUndo=false\n * @property {Boolean} canRedo=false\n * @property {Boolean} isEmpty=false\n * @property {Array} supportedImportMimeTypes=[]\n * @property {Number} undoStackIndex=0\n * @property {Number} possibleUndoCount=0\n * @property {Boolean} idle=true\n * @property {Boolean} initialized=false\n */\n/**\n * Create a new recognizer context\n * @param {Editor} editor\n * @return {RecognizerContext} An object that contains all recognizer context\n */\nexport function createEmptyRecognizerContext(editor) {\n const id = Date.now();\n logger.info('Create empty recognizer context with ID: ' + id);\n return {\n id,\n editor,\n // websocket\n recognitionContexts: [],\n initPromise: undefined,\n lastPositions: {\n lastSentPosition: -1,\n lastReceivedPosition: -1\n },\n url: undefined,\n websocket: undefined,\n websocketCallback: undefined,\n reconnect: undefined,\n currentReconnectionCount: 0,\n sessionId: undefined,\n contentPartCount: 0,\n currentPartId: undefined,\n instanceId: undefined,\n canUndo: false,\n canRedo: false,\n isEmpty: undefined,\n supportedImportMimeTypes: [],\n undoStackIndex: 0,\n possibleUndoCount: 0,\n idle: true,\n initialized: false\n };\n}\n\n/**\n * Return true if a reset is required, false otherwise\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Boolean}\n */\nexport function isResetRequired(recognizerContext, model) {\n if (recognizerContext.lastPositions) {\n return recognizerContext.lastPositions.lastSentPosition >= model.rawStrokes.length - 1;\n }\n return false;\n}\n\n/**\n * Update the recognition context positions\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {RecognitionPositions} positions Current recognition positions\n * @return {RecognizerContext}\n */\nexport function updateRecognitionPositions(recognizerContext, positions) {\n const recognizerContextRef = recognizerContext;\n if (positions) {\n recognizerContextRef.lastPositions.lastSentPosition = positions.lastSentPosition;\n recognizerContextRef.lastPositions.lastReceivedPosition = positions.lastReceivedPosition;\n }\n if (recognizerContextRef.lastPositions.lastSentPosition === recognizerContextRef.lastPositions.lastReceivedPosition === -1) {\n delete recognizerContextRef.instanceId;\n }\n return recognizerContextRef;\n}\n\n/**\n * Set the recognition context\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {RecognitionContext} recognitionContext\n * @return {RecognizerContext}\n */\nexport function setRecognitionContext(recognizerContext, recognitionContext) {\n const recognizerContextRef = recognizerContext;\n recognizerContextRef.recognitionContexts[0] = recognitionContext;\n return recognizerContextRef;\n}\n\n\n/**\n * Test if it is possible to reconnect\n * @param {RecognizerContext} recognizerContext\n * @return {Boolean} True if possible, false otherwise\n */\nexport function canReconnect(recognizerContext) {\n return recognizerContext.websocket.autoReconnect === true && recognizerContext.currentReconnectionCount <= recognizerContext.websocket.maxRetryCount;\n}\n\n/**\n * Test if it should attempt immediate reconnect\n * @param {RecognizerContext} recognizerContext\n * @return {Boolean} True if should attempt reconnect, false otherwise\n */\nexport function shouldAttemptImmediateReconnect(recognizerContext) {\n const recognizerContextRef = recognizerContext;\n return recognizerContextRef.websocket.autoReconnect === true && recognizerContextRef.currentReconnectionCount++ <= recognizerContextRef.websocket.maxRetryCount;\n}\n\n/**\n * Lost connection message\n * @type {{type: string}}\n */\nexport const LOST_CONNEXION_MESSAGE = { type: 'LOST_CONNECTION' };\n\n/**\n * Explicit close message\n * @type {String}\n */\nexport const CLOSE_RECOGNIZER_MESSAGE = 'CLOSE_RECOGNIZER';\n\n", - "static": true, - "longname": "src/model/RecognizerContext.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 189, - "kind": "typedef", - "name": "RecognitionContext", - "memberof": "src/model/RecognizerContext.js", - "static": true, - "longname": "src/model/RecognizerContext.js~RecognitionContext", - "access": null, - "description": "Recognition context", - "properties": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - }, - { - "nullable": null, - "types": [ - "Callback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "RecognitionContext" - } - }, - { - "__docId__": 190, - "kind": "typedef", - "name": "RecognizerContext", - "memberof": "src/model/RecognizerContext.js", - "static": true, - "longname": "src/model/RecognizerContext.js~RecognizerContext", - "access": null, - "description": "Recognizer context", - "properties": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "Get a reference to the current editor" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "defaultValue": "[]", - "defaultRaw": [], - "name": "recognitionContexts", - "description": "" - }, - { - "nullable": null, - "types": [ - "Promise" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "initPromise", - "description": "" - }, - { - "nullable": null, - "types": [ - "RecognitionPositions" - ], - "spread": false, - "optional": false, - "name": "lastPositions", - "description": "Last recognition sent/received stroke indexes." - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "url", - "description": "" - }, - { - "nullable": null, - "types": [ - "WebSocket" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "websocket", - "description": "" - }, - { - "nullable": null, - "types": [ - "function" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "websocketCallback", - "description": "" - }, - { - "nullable": null, - "types": [ - "function" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "reconnect", - "description": "" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "defaultValue": "0", - "defaultRaw": 0, - "name": "currentReconnectionCount", - "description": "" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "sessionId", - "description": "" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "defaultValue": "0", - "defaultRaw": 0, - "name": "contentPartCount", - "description": "" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "currentPartId", - "description": "" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "instanceId", - "description": "" - }, - { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "optional": false, - "defaultValue": "false", - "defaultRaw": false, - "name": "canUndo", - "description": "" - }, - { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "optional": false, - "defaultValue": "false", - "defaultRaw": false, - "name": "canRedo", - "description": "" - }, - { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "optional": false, - "defaultValue": "false", - "defaultRaw": false, - "name": "isEmpty", - "description": "" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "defaultValue": "[]", - "defaultRaw": [], - "name": "supportedImportMimeTypes", - "description": "" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "defaultValue": "0", - "defaultRaw": 0, - "name": "undoStackIndex", - "description": "" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "defaultValue": "0", - "defaultRaw": 0, - "name": "possibleUndoCount", - "description": "" - }, - { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "optional": false, - "defaultValue": "true", - "defaultRaw": true, - "name": "idle", - "description": "" - }, - { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "optional": false, - "defaultValue": "false", - "defaultRaw": false, - "name": "initialized", - "description": "" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "RecognizerContext" - } - }, - { - "__docId__": 191, - "kind": "function", - "name": "createEmptyRecognizerContext", - "memberof": "src/model/RecognizerContext.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/RecognizerContext.js~createEmptyRecognizerContext", - "access": null, - "export": true, - "importPath": "myscript/src/model/RecognizerContext.js", - "importStyle": "{createEmptyRecognizerContext}", - "description": "Create a new recognizer context", - "lineNumber": 40, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "description": "An object that contains all recognizer context" - } - }, - { - "__docId__": 192, - "kind": "function", - "name": "isResetRequired", - "memberof": "src/model/RecognizerContext.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/RecognizerContext.js~isResetRequired", - "access": null, - "export": true, - "importPath": "myscript/src/model/RecognizerContext.js", - "importStyle": "{isResetRequired}", - "description": "Return true if a reset is required, false otherwise", - "lineNumber": 79, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 193, - "kind": "function", - "name": "updateRecognitionPositions", - "memberof": "src/model/RecognizerContext.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/RecognizerContext.js~updateRecognitionPositions", - "access": null, - "export": true, - "importPath": "myscript/src/model/RecognizerContext.js", - "importStyle": "{updateRecognitionPositions}", - "description": "Update the recognition context positions", - "lineNumber": 92, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "RecognitionPositions" - ], - "spread": false, - "optional": false, - "name": "positions", - "description": "Current recognition positions" - } - ], - "return": { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 194, - "kind": "function", - "name": "setRecognitionContext", - "memberof": "src/model/RecognizerContext.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/RecognizerContext.js~setRecognitionContext", - "access": null, - "export": true, - "importPath": "myscript/src/model/RecognizerContext.js", - "importStyle": "{setRecognitionContext}", - "description": "Set the recognition context", - "lineNumber": 110, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "RecognitionContext" - ], - "spread": false, - "optional": false, - "name": "recognitionContext", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 195, - "kind": "function", - "name": "canReconnect", - "memberof": "src/model/RecognizerContext.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/RecognizerContext.js~canReconnect", - "access": null, - "export": true, - "importPath": "myscript/src/model/RecognizerContext.js", - "importStyle": "{canReconnect}", - "description": "Test if it is possible to reconnect", - "lineNumber": 122, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "description": "True if possible, false otherwise" - } - }, - { - "__docId__": 196, - "kind": "function", - "name": "shouldAttemptImmediateReconnect", - "memberof": "src/model/RecognizerContext.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/RecognizerContext.js~shouldAttemptImmediateReconnect", - "access": null, - "export": true, - "importPath": "myscript/src/model/RecognizerContext.js", - "importStyle": "{shouldAttemptImmediateReconnect}", - "description": "Test if it should attempt immediate reconnect", - "lineNumber": 131, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "description": "True if should attempt reconnect, false otherwise" - } - }, - { - "__docId__": 197, - "kind": "variable", - "name": "LOST_CONNEXION_MESSAGE", - "memberof": "src/model/RecognizerContext.js", - "static": true, - "longname": "src/model/RecognizerContext.js~LOST_CONNEXION_MESSAGE", - "access": null, - "export": true, - "importPath": "myscript/src/model/RecognizerContext.js", - "importStyle": "{LOST_CONNEXION_MESSAGE}", - "description": "Lost connection message", - "lineNumber": 140, - "type": { - "nullable": null, - "types": [ - "{type: string}" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 198, - "kind": "variable", - "name": "CLOSE_RECOGNIZER_MESSAGE", - "memberof": "src/model/RecognizerContext.js", - "static": true, - "longname": "src/model/RecognizerContext.js~CLOSE_RECOGNIZER_MESSAGE", - "access": null, - "export": true, - "importPath": "myscript/src/model/RecognizerContext.js", - "importStyle": "{CLOSE_RECOGNIZER_MESSAGE}", - "description": "Explicit close message", - "lineNumber": 146, - "type": { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 199, - "kind": "file", - "name": "src/model/StrokeComponent.js", - "content": "import { modelLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Stroke symbol\n * @typedef {Object} Stroke\n * @property {String} type=stroke Symbol type, 'stroke' for stroke\n * @property {String} pointerType=undefined Pointer type\n * @property {Number} pointerId=undefined Pointer id\n * @property {Array} x=[] X coordinates\n * @property {Array} y=[] Y coordinates\n * @property {Array} t=[] Timestamps matching x,y coordinates\n * @property {Array} p=[] Pressure\n * @property {Array} l=[] Length from origin\n * @property {Number} width=0 (for rendering) Pen/brush width\n * @property {String} color=undefined (for rendering) Pen/brush color\n */\n\n/**\n * pointerEvents symbol\n * @typedef {Object} pointerEvents\n * @property {String} type=pointerEvents Symbol type, 'pointerEvents' for pointerEvents\n * @property {Boolean} processGestures=False indicates if the gestures have to be processed\n * @property {Array} events=[] the events to process\n */\n\nfunction computeDistance(x, y, xArray, yArray, lastIndexPoint) {\n const distance = Math.sqrt(Math.pow((y - yArray[lastIndexPoint - 1]), 2) + Math.pow((x - xArray[lastIndexPoint - 1]), 2));\n return isNaN(distance) ? 0 : distance;\n}\n\nfunction computeLength(x, y, xArray, yArray, lArray, lastIndexPoint) {\n const length = lArray[lastIndexPoint - 1] + computeDistance(x, y, xArray, yArray, lastIndexPoint);\n return isNaN(length) ? 0 : length;\n}\n\nfunction computePressure(x, y, xArray, yArray, lArray, lastIndexPoint) {\n let ratio = 1.0;\n const distance = computeDistance(x, y, xArray, yArray, lastIndexPoint);\n const length = computeLength(x, y, xArray, yArray, lArray, lastIndexPoint);\n\n if (length === 0) {\n ratio = 0.5;\n } else if (distance === length) {\n ratio = 1.0;\n } else if (distance < 10) {\n ratio = 0.2 + Math.pow(0.1 * distance, 0.4);\n } else if (distance > length - 10) {\n ratio = 0.2 + Math.pow(0.1 * (length - distance), 0.4);\n }\n const pressure = ratio * Math.max(0.1, 1.0 - (0.1 * Math.sqrt(distance)));\n return isNaN(parseFloat(pressure)) ? 0.5 : pressure;\n}\n\nfunction filterPointByAcquisitionDelta(x, y, xArray, yArray, width) {\n const delta = (2 + (width / 4));\n let ret = false;\n if (xArray.length === 0 || yArray.length === 0 || Math.abs(xArray[xArray.length - 1] - x) >= delta || Math.abs(yArray[yArray.length - 1] - y) >= delta) {\n ret = true;\n }\n return ret;\n}\n\n/**\n * Create a new stroke\n * @param {Object} properties Properties to be applied to the stroke.\n * @return {Stroke} New stroke with properties for quadratics draw\n */\nexport function createStrokeComponent(properties) {\n const defaultStroke = {\n type: 'stroke',\n x: [],\n y: [],\n t: [],\n p: [],\n l: [],\n width: 0\n };\n return Object.assign({}, defaultStroke, properties);\n}\n\n/**\n * Get a JSON copy of a stroke by filtering its properties\n * @param {Stroke} stroke Current stroke\n * @return {{type: String, x: Array, y: Array, t: Array}} Simplified stroke object\n */\nexport function toJSON(stroke) {\n return { type: stroke.type, x: stroke.x, y: stroke.y, t: stroke.t };\n}\n\n/**\n * Get a JSON copy of a stroke by filtering its properties\n * @param {Stroke} stroke Current stroke\n * @return {{x: Array, y: Array, t: Array}} Simplified stroke object\n */\nexport function toJSONV4(stroke) {\n return { x: stroke.x, y: stroke.y, t: stroke.t };\n}\n\n/**\n * Mutate a stroke by adding a point to it.\n * @param {Stroke} stroke Current stroke\n * @param {{x: Number, y: Number, t: Number}} point Point to add\n * @return {Stroke} Updated stroke\n */\nexport function addPoint(stroke, point) {\n const strokeReference = stroke;\n if (filterPointByAcquisitionDelta(point.x, point.y, strokeReference.x, strokeReference.y, strokeReference.width)) {\n strokeReference.x.push(point.x);\n strokeReference.y.push(point.y);\n strokeReference.t.push(point.t);\n strokeReference.p.push(computePressure(point.x, point.y, strokeReference.x, strokeReference.y, strokeReference.l, strokeReference.x.length - 1));\n strokeReference.l.push(computeLength(point.x, point.y, strokeReference.x, strokeReference.y, strokeReference.l, strokeReference.x.length - 1));\n } else {\n logger.trace('ignore filtered point', point);\n }\n return strokeReference;\n}\n\n/**\n * Slice a stroke and return the sliced part of it\n * @param {Stroke} stroke Current stroke\n * @param {Number} [start=0] Zero-based index at which to begin extraction\n * @param {Number} [end=length] Zero-based index at which to end extraction\n * @return {Stroke} Sliced stroke\n */\nexport function slice(stroke, start = 0, end = stroke.x.length) {\n const slicedStroke = createStrokeComponent({ color: stroke.color, width: stroke.width });\n for (let i = start; i < end; i++) {\n addPoint(slicedStroke, {\n x: stroke.x[i],\n y: stroke.y[i],\n t: stroke.t[i]\n });\n }\n return slicedStroke;\n}\n\n/**\n * Extract point by index\n * @param {Stroke} stroke Current stroke\n * @param {Number} index Zero-based index\n * @return {{x: Number, y: Number, t: Number, p: Number, l: Number}} Point with properties for quadratics draw\n */\nexport function getPointByIndex(stroke, index) {\n let point;\n if (index !== undefined && index >= 0 && index < stroke.x.length) {\n point = {\n x: stroke.x[index],\n y: stroke.y[index],\n t: stroke.t[index],\n p: stroke.p[index],\n l: stroke.l[index]\n };\n }\n return point;\n}\n", - "static": true, - "longname": "src/model/StrokeComponent.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 200, - "kind": "typedef", - "name": "Stroke", - "memberof": "src/model/StrokeComponent.js", - "static": true, - "longname": "src/model/StrokeComponent.js~Stroke", - "access": null, - "description": "Stroke symbol", - "properties": [ - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "stroke", - "defaultRaw": "stroke", - "name": "type", - "description": "Symbol type, 'stroke' for stroke" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "pointerType", - "description": "Pointer type" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "pointerId", - "description": "Pointer id" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "defaultValue": "[]", - "defaultRaw": [], - "name": "x", - "description": "X coordinates" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "defaultValue": "[]", - "defaultRaw": [], - "name": "y", - "description": "Y coordinates" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "defaultValue": "[]", - "defaultRaw": [], - "name": "t", - "description": "Timestamps matching x,y coordinates" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "defaultValue": "[]", - "defaultRaw": [], - "name": "p", - "description": "Pressure" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "defaultValue": "[]", - "defaultRaw": [], - "name": "l", - "description": "Length from origin" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "defaultValue": "0", - "defaultRaw": 0, - "name": "width", - "description": "(for rendering) Pen/brush width" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "undefined", - "defaultRaw": "undefined", - "name": "color", - "description": "(for rendering) Pen/brush color" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "Stroke" - } - }, - { - "__docId__": 201, - "kind": "typedef", - "name": "pointerEvents", - "memberof": "src/model/StrokeComponent.js", - "static": true, - "longname": "src/model/StrokeComponent.js~pointerEvents", - "access": null, - "description": "pointerEvents symbol", - "lineNumber": 26, - "properties": [ - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "pointerEvents", - "defaultRaw": "pointerEvents", - "name": "type", - "description": "Symbol type, 'pointerEvents' for pointerEvents" - }, - { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "optional": false, - "defaultValue": "False", - "defaultRaw": "False", - "name": "processGestures", - "description": "indicates if the gestures have to be processed" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "defaultValue": "[]", - "defaultRaw": [], - "name": "events", - "description": "the events to process" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "pointerEvents" - } - }, - { - "__docId__": 202, - "kind": "function", - "name": "computeLength", - "memberof": "src/model/StrokeComponent.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/StrokeComponent.js~computeLength", - "access": null, - "export": false, - "importPath": "myscript/src/model/StrokeComponent.js", - "importStyle": null, - "description": null, - "lineNumber": 31, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "x", - "types": [ - "*" - ] - }, - { - "name": "y", - "types": [ - "*" - ] - }, - { - "name": "xArray", - "types": [ - "*" - ] - }, - { - "name": "yArray", - "types": [ - "*" - ] - }, - { - "name": "lArray", - "types": [ - "*" - ] - }, - { - "name": "lastIndexPoint", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 203, - "kind": "function", - "name": "computePressure", - "memberof": "src/model/StrokeComponent.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/StrokeComponent.js~computePressure", - "access": null, - "export": false, - "importPath": "myscript/src/model/StrokeComponent.js", - "importStyle": null, - "description": null, - "lineNumber": 36, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "x", - "types": [ - "*" - ] - }, - { - "name": "y", - "types": [ - "*" - ] - }, - { - "name": "xArray", - "types": [ - "*" - ] - }, - { - "name": "yArray", - "types": [ - "*" - ] - }, - { - "name": "lArray", - "types": [ - "*" - ] - }, - { - "name": "lastIndexPoint", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 204, - "kind": "function", - "name": "filterPointByAcquisitionDelta", - "memberof": "src/model/StrokeComponent.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/StrokeComponent.js~filterPointByAcquisitionDelta", - "access": null, - "export": false, - "importPath": "myscript/src/model/StrokeComponent.js", - "importStyle": null, - "description": null, - "lineNumber": 54, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "x", - "types": [ - "*" - ] - }, - { - "name": "y", - "types": [ - "*" - ] - }, - { - "name": "xArray", - "types": [ - "*" - ] - }, - { - "name": "yArray", - "types": [ - "*" - ] - }, - { - "name": "width", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 205, - "kind": "function", - "name": "createStrokeComponent", - "memberof": "src/model/StrokeComponent.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/StrokeComponent.js~createStrokeComponent", - "access": null, - "export": true, - "importPath": "myscript/src/model/StrokeComponent.js", - "importStyle": "{createStrokeComponent}", - "description": "Create a new stroke", - "lineNumber": 68, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "properties", - "description": "Properties to be applied to the stroke." - } - ], - "return": { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "description": "New stroke with properties for quadratics draw" - } - }, - { - "__docId__": 206, - "kind": "function", - "name": "toJSON", - "memberof": "src/model/StrokeComponent.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/StrokeComponent.js~toJSON", - "access": null, - "export": true, - "importPath": "myscript/src/model/StrokeComponent.js", - "importStyle": "{toJSON}", - "description": "Get a JSON copy of a stroke by filtering its properties", - "lineNumber": 86, - "params": [ - { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "optional": false, - "name": "stroke", - "description": "Current stroke" - } - ], - "return": { - "nullable": null, - "types": [ - "{type: String, x: Array, y: Array, t: Array}" - ], - "spread": false, - "description": "Simplified stroke object" - } - }, - { - "__docId__": 207, - "kind": "function", - "name": "toJSONV4", - "memberof": "src/model/StrokeComponent.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/StrokeComponent.js~toJSONV4", - "access": null, - "export": true, - "importPath": "myscript/src/model/StrokeComponent.js", - "importStyle": "{toJSONV4}", - "description": "Get a JSON copy of a stroke by filtering its properties", - "lineNumber": 95, - "params": [ - { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "optional": false, - "name": "stroke", - "description": "Current stroke" - } - ], - "return": { - "nullable": null, - "types": [ - "{x: Array, y: Array, t: Array}" - ], - "spread": false, - "description": "Simplified stroke object" - } - }, - { - "__docId__": 208, - "kind": "function", - "name": "addPoint", - "memberof": "src/model/StrokeComponent.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/StrokeComponent.js~addPoint", - "access": null, - "export": true, - "importPath": "myscript/src/model/StrokeComponent.js", - "importStyle": "{addPoint}", - "description": "Mutate a stroke by adding a point to it.", - "lineNumber": 105, - "params": [ - { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "optional": false, - "name": "stroke", - "description": "Current stroke" - }, - { - "nullable": null, - "types": [ - "{x: Number, y: Number, t: Number}" - ], - "spread": false, - "optional": false, - "name": "point", - "description": "Point to add" - } - ], - "return": { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "description": "Updated stroke" - } - }, - { - "__docId__": 209, - "kind": "function", - "name": "slice", - "memberof": "src/model/StrokeComponent.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/StrokeComponent.js~slice", - "access": null, - "export": true, - "importPath": "myscript/src/model/StrokeComponent.js", - "importStyle": "{slice}", - "description": "Slice a stroke and return the sliced part of it", - "lineNumber": 126, - "params": [ - { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "optional": false, - "name": "stroke", - "description": "Current stroke" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "defaultValue": "0", - "defaultRaw": 0, - "name": "start", - "description": "Zero-based index at which to begin extraction" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "defaultValue": "length", - "defaultRaw": "length", - "name": "end", - "description": "Zero-based index at which to end extraction" - } - ], - "return": { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "description": "Sliced stroke" - } - }, - { - "__docId__": 210, - "kind": "function", - "name": "getPointByIndex", - "memberof": "src/model/StrokeComponent.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/StrokeComponent.js~getPointByIndex", - "access": null, - "export": true, - "importPath": "myscript/src/model/StrokeComponent.js", - "importStyle": "{getPointByIndex}", - "description": "Extract point by index", - "lineNumber": 144, - "params": [ - { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "optional": false, - "name": "stroke", - "description": "Current stroke" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "index", - "description": "Zero-based index" - } - ], - "return": { - "nullable": null, - "types": [ - "{x: Number, y: Number, t: Number, p: Number, l: Number}" - ], - "spread": false, - "description": "Point with properties for quadratics draw" - } - }, - { - "__docId__": 211, - "kind": "file", - "name": "src/model/Symbol.js", - "content": "import { MusicClefs } from '../renderer/canvas/symbols/MusicSymbolCanvasRenderer';\nimport Constants from '../configuration/Constants';\n\nfunction mergeBounds(boundsA, boundsB) {\n return {\n minX: Math.min(boundsA.minX, boundsB.minX),\n maxX: Math.max(boundsA.maxX, boundsB.maxX),\n minY: Math.min(boundsA.minY, boundsB.minY),\n maxY: Math.max(boundsA.maxY, boundsB.maxY)\n };\n}\n\nfunction getLineBounds(line) {\n return {\n minX: Math.min(line.firstPoint.x, line.lastPoint.x),\n maxX: Math.max(line.firstPoint.x, line.lastPoint.x),\n minY: Math.min(line.firstPoint.y, line.lastPoint.y),\n maxY: Math.max(line.firstPoint.y, line.lastPoint.y)\n };\n}\n\nfunction getEllipseBounds(ellipse) {\n const angleStep = 0.02; // angle delta between interpolated points on the arc, in radian\n\n let z1 = Math.cos(ellipse.orientation);\n let z3 = Math.sin(ellipse.orientation);\n let z2 = z1;\n let z4 = z3;\n z1 *= ellipse.maxRadius;\n z2 *= ellipse.minRadius;\n z3 *= ellipse.maxRadius;\n z4 *= ellipse.minRadius;\n\n const n = Math.abs(ellipse.sweepAngle) / angleStep;\n\n const x = [];\n const y = [];\n\n for (let i = 0; i <= n; i++) {\n const angle = ellipse.startAngle + ((i / n) * ellipse.sweepAngle);\n const alpha = Math.atan2(Math.sin(angle) / ellipse.minRadius, Math.cos(angle) / ellipse.maxRadius);\n\n const cosAlpha = Math.cos(alpha);\n const sinAlpha = Math.sin(alpha);\n\n x.push(ellipse.center.x + ((z1 * cosAlpha) - (z4 * sinAlpha)));\n y.push(ellipse.center.y + ((z2 * sinAlpha) + (z3 * cosAlpha)));\n }\n\n return {\n minX: Math.min(...x),\n maxX: Math.max(...x),\n minY: Math.min(...y),\n maxY: Math.max(...y)\n };\n}\n\nfunction getTextLineBounds(textLine) {\n return {\n minX: textLine.data.topLeftPoint.x,\n maxX: textLine.data.topLeftPoint.x + textLine.data.width,\n minY: textLine.data.topLeftPoint.y,\n maxY: textLine.data.topLeftPoint.y + textLine.data.height\n };\n}\n\nfunction getClefBounds(clef) {\n return {\n minX: clef.boundingBox.x,\n maxX: clef.boundingBox.x + clef.boundingBox.width,\n minY: clef.boundingBox.y,\n maxY: clef.boundingBox.y + clef.boundingBox.height\n };\n}\n\nfunction getStrokeBounds(stroke) {\n return {\n minX: Math.min(...stroke.x),\n maxX: Math.max(...stroke.x),\n minY: Math.min(...stroke.y),\n maxY: Math.max(...stroke.y)\n };\n}\n\n/**\n * Get the box enclosing the given symbols\n * @param {Array} symbols Symbols to extract bounds from\n * @param {Bounds} [bounds] Starting bounds for recursion\n * @return {Bounds} Bounding box enclosing symbols\n */\nexport function getSymbolsBounds(symbols, bounds = { minX: Number.MAX_VALUE, maxX: Number.MIN_VALUE, minY: Number.MAX_VALUE, maxY: Number.MIN_VALUE }) {\n let boundsRef = bounds;\n boundsRef = symbols\n .filter(symbol => symbol.type === 'stroke')\n .map(getStrokeBounds)\n .reduce(mergeBounds, boundsRef);\n boundsRef = symbols\n .filter(symbol => symbol.type === 'clef')\n .map(getClefBounds)\n .reduce(mergeBounds, boundsRef);\n boundsRef = symbols\n .filter(symbol => symbol.type === 'line')\n .map(getLineBounds)\n .reduce(mergeBounds, boundsRef);\n boundsRef = symbols\n .filter(symbol => symbol.type === 'ellipse')\n .map(getEllipseBounds)\n .reduce(mergeBounds, boundsRef);\n boundsRef = symbols\n .filter(symbol => symbol.type === 'textLine')\n .map(getTextLineBounds)\n .reduce(mergeBounds, boundsRef);\n return boundsRef;\n}\n\nfunction getDefaultMusicSymbols(configuration) {\n const defaultStaff = Object.assign({}, { type: 'staff' }, configuration.recognitionParams.v3.musicParameter.staff);\n const defaultClef = {\n type: 'clef',\n value: Object.assign({}, configuration.recognitionParams.v3.musicParameter.clef)\n };\n defaultClef.value.yAnchor = defaultStaff.top + (defaultStaff.gap * (defaultStaff.count - defaultClef.value.line));\n delete defaultClef.value.line;\n defaultClef.boundingBox = MusicClefs[defaultClef.value.symbol].getBoundingBox(defaultStaff.gap, 0, defaultClef.value.yAnchor);\n return [defaultStaff, defaultClef];\n}\n\n/**\n * Get the default symbols for the current recognition type\n * @param {Configuration} configuration Current recognition parameters from which extract default symbols\n * @return {Array} Symbols matching configuration\n */\nexport function getDefaultSymbols(configuration) {\n switch (configuration.recognitionParams.type) {\n case Constants.RecognitionType.MUSIC:\n return getDefaultMusicSymbols(configuration);\n default:\n return [];\n }\n}\n", - "static": true, - "longname": "src/model/Symbol.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 212, - "kind": "function", - "name": "mergeBounds", - "memberof": "src/model/Symbol.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/Symbol.js~mergeBounds", - "access": null, - "export": false, - "importPath": "myscript/src/model/Symbol.js", - "importStyle": null, - "description": null, - "lineNumber": 4, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "boundsA", - "types": [ - "*" - ] - }, - { - "name": "boundsB", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"minX\": *, \"maxX\": *, \"minY\": *, \"maxY\": *}" - ] - } - }, - { - "__docId__": 213, - "kind": "function", - "name": "getLineBounds", - "memberof": "src/model/Symbol.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/Symbol.js~getLineBounds", - "access": null, - "export": false, - "importPath": "myscript/src/model/Symbol.js", - "importStyle": null, - "description": null, - "lineNumber": 13, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "line", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"minX\": *, \"maxX\": *, \"minY\": *, \"maxY\": *}" - ] - } - }, - { - "__docId__": 214, - "kind": "function", - "name": "getEllipseBounds", - "memberof": "src/model/Symbol.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/Symbol.js~getEllipseBounds", - "access": null, - "export": false, - "importPath": "myscript/src/model/Symbol.js", - "importStyle": null, - "description": null, - "lineNumber": 22, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "ellipse", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"minX\": *, \"maxX\": *, \"minY\": *, \"maxY\": *}" - ] - } - }, - { - "__docId__": 215, - "kind": "function", - "name": "getTextLineBounds", - "memberof": "src/model/Symbol.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/Symbol.js~getTextLineBounds", - "access": null, - "export": false, - "importPath": "myscript/src/model/Symbol.js", - "importStyle": null, - "description": null, - "lineNumber": 58, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "textLine", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"minX\": *, \"maxX\": *, \"minY\": *, \"maxY\": *}" - ] - } - }, - { - "__docId__": 216, - "kind": "function", - "name": "getClefBounds", - "memberof": "src/model/Symbol.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/Symbol.js~getClefBounds", - "access": null, - "export": false, - "importPath": "myscript/src/model/Symbol.js", - "importStyle": null, - "description": null, - "lineNumber": 67, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "clef", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"minX\": *, \"maxX\": *, \"minY\": *, \"maxY\": *}" - ] - } - }, - { - "__docId__": 217, - "kind": "function", - "name": "getStrokeBounds", - "memberof": "src/model/Symbol.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/Symbol.js~getStrokeBounds", - "access": null, - "export": false, - "importPath": "myscript/src/model/Symbol.js", - "importStyle": null, - "description": null, - "lineNumber": 76, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "stroke", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"minX\": *, \"maxX\": *, \"minY\": *, \"maxY\": *}" - ] - } - }, - { - "__docId__": 218, - "kind": "function", - "name": "getSymbolsBounds", - "memberof": "src/model/Symbol.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/Symbol.js~getSymbolsBounds", - "access": null, - "export": true, - "importPath": "myscript/src/model/Symbol.js", - "importStyle": "{getSymbolsBounds}", - "description": "Get the box enclosing the given symbols", - "lineNumber": 91, - "params": [ - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "symbols", - "description": "Symbols to extract bounds from" - }, - { - "nullable": null, - "types": [ - "Bounds" - ], - "spread": false, - "optional": true, - "name": "bounds", - "description": "Starting bounds for recursion" - } - ], - "return": { - "nullable": null, - "types": [ - "Bounds" - ], - "spread": false, - "description": "Bounding box enclosing symbols" - } - }, - { - "__docId__": 219, - "kind": "function", - "name": "getDefaultMusicSymbols", - "memberof": "src/model/Symbol.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/Symbol.js~getDefaultMusicSymbols", - "access": null, - "export": false, - "importPath": "myscript/src/model/Symbol.js", - "importStyle": null, - "description": null, - "lineNumber": 116, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "undefined[]" - ] - } - }, - { - "__docId__": 220, - "kind": "function", - "name": "getDefaultSymbols", - "memberof": "src/model/Symbol.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/Symbol.js~getDefaultSymbols", - "access": null, - "export": true, - "importPath": "myscript/src/model/Symbol.js", - "importStyle": "{getDefaultSymbols}", - "description": "Get the default symbols for the current recognition type", - "lineNumber": 133, - "params": [ - { - "nullable": null, - "types": [ - "Configuration" - ], - "spread": false, - "optional": false, - "name": "configuration", - "description": "Current recognition parameters from which extract default symbols" - } - ], - "return": { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "description": "Symbols matching configuration" - } - }, - { - "__docId__": 221, - "kind": "file", - "name": "src/model/UndoRedoContext.js", - "content": "import { modelLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Undo/redo context\n * @typedef {Object} UndoRedoContext\n * @property {Array} stack=[] List of processed models.\n * @property {Number} currentPosition=-1 Current model index into the stack.\n * @property {Number} maxSize Max size of the stack.\n * @property {Boolean} canUndo=false\n * @property {Boolean} canRedo=false\n */\n\n/**\n * Create a new undo/redo context\n * @param {Configuration} configuration Current configuration\n * @return {UndoRedoContext} New undo/redo context\n */\nexport function createUndoRedoContext(configuration) {\n return {\n stack: [],\n currentPosition: -1,\n maxSize: configuration.undoRedoMaxStackSize,\n canUndo: false,\n canRedo: false\n };\n}\n\n/**\n * Update the undo/redo state\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context\n * @return {UndoRedoContext} Updated undo/redo context\n */\nexport function updateUndoRedoState(undoRedoContext) {\n const undoRedoContextRef = undoRedoContext;\n undoRedoContextRef.canUndo = undoRedoContext.currentPosition > 0;\n undoRedoContextRef.canRedo = undoRedoContext.currentPosition < (undoRedoContext.stack.length - 1);\n return undoRedoContextRef;\n}\n", - "static": true, - "longname": "src/model/UndoRedoContext.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 222, - "kind": "typedef", - "name": "UndoRedoContext", - "memberof": "src/model/UndoRedoContext.js", - "static": true, - "longname": "src/model/UndoRedoContext.js~UndoRedoContext", - "access": null, - "description": "Undo/redo context", - "properties": [ - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "defaultValue": "[]", - "defaultRaw": [], - "name": "stack", - "description": "List of processed models." - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "defaultValue": "-1", - "defaultRaw": -1, - "name": "currentPosition", - "description": "Current model index into the stack." - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "maxSize", - "description": "Max size of the stack." - }, - { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "optional": false, - "defaultValue": "false", - "defaultRaw": false, - "name": "canUndo", - "description": "" - }, - { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "optional": false, - "defaultValue": "false", - "defaultRaw": false, - "name": "canRedo", - "description": "" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "UndoRedoContext" - } - }, - { - "__docId__": 223, - "kind": "function", - "name": "createUndoRedoContext", - "memberof": "src/model/UndoRedoContext.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/UndoRedoContext.js~createUndoRedoContext", - "access": null, - "export": true, - "importPath": "myscript/src/model/UndoRedoContext.js", - "importStyle": "{createUndoRedoContext}", - "description": "Create a new undo/redo context", - "lineNumber": 18, - "params": [ - { - "nullable": null, - "types": [ - "Configuration" - ], - "spread": false, - "optional": false, - "name": "configuration", - "description": "Current configuration" - } - ], - "return": { - "nullable": null, - "types": [ - "UndoRedoContext" - ], - "spread": false, - "description": "New undo/redo context" - } - }, - { - "__docId__": 224, - "kind": "function", - "name": "updateUndoRedoState", - "memberof": "src/model/UndoRedoContext.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/UndoRedoContext.js~updateUndoRedoState", - "access": null, - "export": true, - "importPath": "myscript/src/model/UndoRedoContext.js", - "importStyle": "{updateUndoRedoState}", - "description": "Update the undo/redo state", - "lineNumber": 33, - "params": [ - { - "nullable": null, - "types": [ - "UndoRedoContext" - ], - "spread": false, - "optional": false, - "name": "undoRedoContext", - "description": "Current undo/redo context" - } - ], - "return": { - "nullable": null, - "types": [ - "UndoRedoContext" - ], - "spread": false, - "description": "Updated undo/redo context" - } - }, - { - "__docId__": 225, - "kind": "file", - "name": "src/model/UndoRedoManager.js", - "content": "import * as InkModel from '../model/InkModel';\nimport * as UndoRedoContext from '../model/UndoRedoContext';\nimport { modelLogger as logger } from '../configuration/LoggerConfig';\nimport Constants from '../configuration/Constants';\n\n/**\n * Undo/redo manager\n * @typedef {Object} UndoRedoManager\n * @property {function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)} updateModel Push the current model into the undo/redo context.\n * @property {function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)} undo Undo.\n * @property {function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)} redo Redo.\n * @property {function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)} clear Clear.\n */\n\n/**\n * Get current model in stack\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context\n * @param {function(err: Object, res: Model, types: ...String)} callback\n * @param {Boolean} [clone=true] Whether or not to clone the model\n * @param {...String} types\n */\nexport function getModel(undoRedoContext, callback, clone = true, ...types) {\n const model = undoRedoContext.stack[undoRedoContext.currentPosition];\n callback(undefined, clone ? InkModel.cloneModel(model) : model, ...types);\n}\n\n/**\n * Mutate the undoRedo stack by adding a new model to it.\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context.\n * @param {Model} model Current model.\n * @param {function(err: Object, res: Model, types: ...String)} callback\n */\nexport function updateModel(undoRedoContext, model, callback) {\n // Used to update the model with the recognition result if relevant\n const modelIndex = undoRedoContext.stack.findIndex(item => (item.modificationTime === model.modificationTime) && (item.rawStrokes.length === model.rawStrokes.length));\n\n const modelReference = model;\n modelReference.modificationTime = new Date().getTime();\n\n const types = [];\n if (modelIndex > -1) {\n undoRedoContext.stack.splice(modelIndex, 1, InkModel.cloneModel(modelReference));\n logger.debug('model updated', modelReference);\n } else {\n const undoRedoContextReference = undoRedoContext;\n undoRedoContextReference.currentPosition += 1;\n undoRedoContextReference.stack = undoRedoContextReference.stack.slice(0, undoRedoContextReference.currentPosition);\n undoRedoContextReference.stack.push(InkModel.cloneModel(modelReference));\n if (undoRedoContextReference.stack.length > undoRedoContextReference.maxSize) {\n undoRedoContextReference.stack.shift();\n undoRedoContextReference.currentPosition--;\n }\n logger.debug('model pushed', modelReference);\n types.push(Constants.EventType.CHANGED);\n }\n UndoRedoContext.updateUndoRedoState(undoRedoContext);\n logger.debug('undo/redo stack updated', undoRedoContext);\n getModel(undoRedoContext, callback, false, ...types);\n}\n\n/**\n * Undo\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context.\n * @param {Model} model Current model.\n * @param {function(err: Object, res: Model, types: ...String)} callback\n */\nexport function undo(undoRedoContext, model, callback) {\n const undoRedoContextReference = undoRedoContext;\n if (undoRedoContextReference.currentPosition > 0) {\n undoRedoContextReference.currentPosition -= 1;\n UndoRedoContext.updateUndoRedoState(undoRedoContext);\n logger.debug('undo index', undoRedoContextReference.currentPosition);\n }\n getModel(undoRedoContext, callback, true, Constants.EventType.CHANGED, Constants.EventType.EXPORTED);\n}\n\n/**\n * Redo\n * @param {UndoRedoContext} undoRedoContext Current undo/redo context.\n * @param {Model} model Current model.\n * @param {function(err: Object, res: Model, types: ...String)} callback\n */\nexport function redo(undoRedoContext, model, callback) {\n const undoRedoContextReference = undoRedoContext;\n if (undoRedoContextReference.currentPosition < undoRedoContextReference.stack.length - 1) {\n undoRedoContextReference.currentPosition += 1;\n UndoRedoContext.updateUndoRedoState(undoRedoContext);\n logger.debug('redo index', undoRedoContextReference.currentPosition);\n }\n getModel(undoRedoContext, callback, true, Constants.EventType.CHANGED, Constants.EventType.EXPORTED);\n}\n", - "static": true, - "longname": "src/model/UndoRedoManager.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 226, - "kind": "typedef", - "name": "UndoRedoManager", - "memberof": "src/model/UndoRedoManager.js", - "static": true, - "longname": "src/model/UndoRedoManager.js~UndoRedoManager", - "access": null, - "description": "Undo/redo manager", - "properties": [ - { - "nullable": null, - "types": [ - "function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": false, - "name": "updateModel", - "description": "Push the current model into the undo/redo context." - }, - { - "nullable": null, - "types": [ - "function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": false, - "name": "undo", - "description": "Undo." - }, - { - "nullable": null, - "types": [ - "function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": false, - "name": "redo", - "description": "Redo." - }, - { - "nullable": null, - "types": [ - "function(undoRedoContext: UndoRedoContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": false, - "name": "clear", - "description": "Clear." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "UndoRedoManager" - } - }, - { - "__docId__": 227, - "kind": "function", - "name": "getModel", - "memberof": "src/model/UndoRedoManager.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/UndoRedoManager.js~getModel", - "access": null, - "export": true, - "importPath": "myscript/src/model/UndoRedoManager.js", - "importStyle": "{getModel}", - "description": "Get current model in stack", - "lineNumber": 22, - "params": [ - { - "nullable": null, - "types": [ - "UndoRedoContext" - ], - "spread": false, - "optional": false, - "name": "undoRedoContext", - "description": "Current undo/redo context" - }, - { - "nullable": null, - "types": [ - "function(err: Object, res: Model, types: ...String)" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - }, - { - "nullable": null, - "types": [ - "Boolean" - ], - "spread": false, - "optional": true, - "defaultValue": "true", - "defaultRaw": true, - "name": "clone", - "description": "Whether or not to clone the model" - }, - { - "nullable": null, - "types": [ - "...String" - ], - "spread": true, - "optional": false, - "name": "types", - "description": "" - } - ] - }, - { - "__docId__": 228, - "kind": "function", - "name": "updateModel", - "memberof": "src/model/UndoRedoManager.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/UndoRedoManager.js~updateModel", - "access": null, - "export": true, - "importPath": "myscript/src/model/UndoRedoManager.js", - "importStyle": "{updateModel}", - "description": "Mutate the undoRedo stack by adding a new model to it.", - "lineNumber": 33, - "params": [ - { - "nullable": null, - "types": [ - "UndoRedoContext" - ], - "spread": false, - "optional": false, - "name": "undoRedoContext", - "description": "Current undo/redo context." - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model." - }, - { - "nullable": null, - "types": [ - "function(err: Object, res: Model, types: ...String)" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 229, - "kind": "function", - "name": "undo", - "memberof": "src/model/UndoRedoManager.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/UndoRedoManager.js~undo", - "access": null, - "export": true, - "importPath": "myscript/src/model/UndoRedoManager.js", - "importStyle": "{undo}", - "description": "Undo", - "lineNumber": 67, - "params": [ - { - "nullable": null, - "types": [ - "UndoRedoContext" - ], - "spread": false, - "optional": false, - "name": "undoRedoContext", - "description": "Current undo/redo context." - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model." - }, - { - "nullable": null, - "types": [ - "function(err: Object, res: Model, types: ...String)" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 230, - "kind": "function", - "name": "redo", - "memberof": "src/model/UndoRedoManager.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/model/UndoRedoManager.js~redo", - "access": null, - "export": true, - "importPath": "myscript/src/model/UndoRedoManager.js", - "importStyle": "{redo}", - "description": "Redo", - "lineNumber": 83, - "params": [ - { - "nullable": null, - "types": [ - "UndoRedoContext" - ], - "spread": false, - "optional": false, - "name": "undoRedoContext", - "description": "Current undo/redo context." - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model." - }, - { - "nullable": null, - "types": [ - "function(err: Object, res: Model, types: ...String)" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 231, - "kind": "file", - "name": "src/myscript.js", - "content": "import Constants from './configuration/Constants';\nimport LoggerConfig from './configuration/LoggerConfig';\nimport DefaultConfiguration from './configuration/DefaultConfiguration';\nimport DefaultPenStyle from './configuration/DefaultPenStyle';\nimport DefaultTheme from './configuration/DefaultTheme';\nimport { Editor } from './Editor';\nimport { register, getAvailableLanguageList } from './EditorFacade';\n\nconst MyScript = {\n Constants,\n LoggerConfig,\n Editor,\n DefaultConfiguration,\n DefaultPenStyle,\n DefaultTheme,\n register,\n getAvailableLanguageList\n};\n\nexport {\n MyScript as default,\n Constants,\n LoggerConfig,\n Editor,\n DefaultConfiguration,\n DefaultPenStyle,\n DefaultTheme,\n register,\n getAvailableLanguageList\n};\n\n", - "static": true, - "longname": "src/myscript.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 232, - "kind": "variable", - "name": "MyScript", - "memberof": "src/myscript.js", - "static": true, - "longname": "src/myscript.js~MyScript", - "access": null, - "export": false, - "importPath": "myscript/src/myscript.js", - "importStyle": null, - "description": null, - "lineNumber": 9, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "type": { - "types": [ - "{\"Constants\": *, \"LoggerConfig\": *, \"Editor\": *, \"DefaultConfiguration\": *, \"DefaultPenStyle\": *, \"DefaultTheme\": *, \"register\": *, \"getAvailableLanguageList\": *}" - ] - } - }, - { - "__docId__": 233, - "kind": "file", - "name": "src/recognizer/CryptoHelper.js", - "content": "import Hex from 'crypto-js/enc-hex';\nimport HmacSHA512 from 'crypto-js/hmac-sha512';\nimport { recognizerLogger as logger } from '../configuration/LoggerConfig';\n\n/**\n * Compute HMAC signature for server authentication\n *\n * @param {Object} input Input data to compute HMAC\n * @param {String} applicationKey Current applicationKey\n * @param {String} hmacKey Current hmacKey\n * @return {String} Signature\n */\nexport function computeHmac(input, applicationKey, hmacKey) {\n const jsonInput = (typeof input === 'object') ? JSON.stringify(input) : input;\n logger.debug('The HmacSHA512 function is loaded', HmacSHA512);\n return new HmacSHA512(jsonInput, applicationKey + hmacKey).toString(Hex);\n}\n", - "static": true, - "longname": "src/recognizer/CryptoHelper.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 234, - "kind": "function", - "name": "computeHmac", - "memberof": "src/recognizer/CryptoHelper.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/CryptoHelper.js~computeHmac", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/CryptoHelper.js", - "importStyle": "{computeHmac}", - "description": "Compute HMAC signature for server authentication", - "lineNumber": 13, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "input", - "description": "Input data to compute HMAC" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "applicationKey", - "description": "Current applicationKey" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "hmacKey", - "description": "Current hmacKey" - } - ], - "return": { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "description": "Signature" - } - }, - { - "__docId__": 235, - "kind": "file", - "name": "src/recognizer/DefaultRecognizer.js", - "content": "import { recognizerLogger as logger } from '../configuration/LoggerConfig';\nimport * as InkModel from '../model/InkModel';\nimport * as RecognizerContext from '../model/RecognizerContext';\nimport Constants from '../configuration/Constants';\n\n/**\n * Triggers\n * @typedef {Object} Triggers\n * @property {Array} exportContent Supported triggers for exporting content.\n * @property {Array} [addStrokes] Supported triggers for adding strokes.\n */\n\n/**\n * Recognizer info\n * @typedef {Object} RecognizerInfo\n * @property {Array} types Supported recognition types (TEXT, MATH, SHAPE, MUSIC, ANALYZER).\n * @property {String} protocol Supported protocol (REST, WEBSOCKET).\n * @property {String} apiVersion Supported API version.\n * @property {Triggers} availableTriggers Supported triggers for this recognizer.\n */\n\n/**\n * Recognizer callback\n * @typedef {function} RecognizerCallback\n * @param {Object} [err] Error\n * @param {Model} [model] Result\n * @param {...String} [types] Result types\n */\n\n/**\n * Simple callback\n * @typedef {function} Callback\n * @param {Object} [err] Error\n * @param {Object} [res] Result\n */\n\n/**\n * Recognition service entry point\n * @typedef {Object} Recognizer\n * @property {function(): RecognizerInfo} getInfo Get information about the supported configuration (protocol, type, apiVersion, ...).\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} init Initialize recognition.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} clear Clear server context. Currently nothing to do there.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action.\n * @property {function(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback)} [resize] Resize.\n * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)} [pointerEvents] Pointer Events.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback)} [import_] Import content.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)} [convert] Convert.\n * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [waitForIdle] Wait for idle.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback)} [setPenStyle] Set pen style.\n * @property {function(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback)} [setPenStyleClasses] Set pen style classes.\n * @property {function(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback)} [setTheme] Set theme.\n */\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const modelRef = InkModel.resetModelPositions(model);\n logger.debug('Updated model', modelRef);\n const recognizerContextRef = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n recognizerContextRef.initPromise = Promise.resolve(modelRef);\n recognizerContextRef.initPromise\n .then((res) => {\n recognizerContextRef.initialized = true;\n logger.debug('Updated recognizer context', recognizerContextRef);\n callback(undefined, res, Constants.EventType.LOADED);\n });\n}\n\n/**\n * Reset server context. Currently nothing to do there.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function reset(recognizerContext, model, callback) {\n const modelRef = InkModel.resetModelPositions(model);\n logger.debug('Updated model', modelRef);\n const recognizerContextRef = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n delete recognizerContextRef.instanceId;\n logger.debug('Updated recognizer context', recognizerContextRef);\n callback(undefined, modelRef);\n}\n\n/**\n * Clear server context. Currently nothing to do there.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n const modelRef = InkModel.clearModel(model);\n logger.debug('Updated model', modelRef);\n const recognizerContextRef = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n delete recognizerContextRef.instanceId;\n logger.debug('Updated recognizer context', recognizerContextRef);\n callback(undefined, modelRef, Constants.EventType.CHANGED, Constants.EventType.EXPORTED, Constants.EventType.RENDERED);\n}\n\n/**\n * Close and free all resources that will no longer be used by the recognizer.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function close(recognizerContext, model, callback) {\n const recognizerContextRef = recognizerContext;\n recognizerContextRef.initialized = false;\n delete recognizerContextRef.instanceId;\n callback(undefined, model);\n}\n", - "static": true, - "longname": "src/recognizer/DefaultRecognizer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 236, - "kind": "typedef", - "name": "Triggers", - "memberof": "src/recognizer/DefaultRecognizer.js", - "static": true, - "longname": "src/recognizer/DefaultRecognizer.js~Triggers", - "access": null, - "description": "Triggers", - "properties": [ - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "exportContent", - "description": "Supported triggers for exporting content." - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": true, - "name": "addStrokes", - "description": "Supported triggers for adding strokes." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "Triggers" - } - }, - { - "__docId__": 237, - "kind": "typedef", - "name": "RecognizerInfo", - "memberof": "src/recognizer/DefaultRecognizer.js", - "static": true, - "longname": "src/recognizer/DefaultRecognizer.js~RecognizerInfo", - "access": null, - "description": "Recognizer info", - "properties": [ - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "types", - "description": "Supported recognition types (TEXT, MATH, SHAPE, MUSIC, ANALYZER)." - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "protocol", - "description": "Supported protocol (REST, WEBSOCKET)." - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "apiVersion", - "description": "Supported API version." - }, - { - "nullable": null, - "types": [ - "Triggers" - ], - "spread": false, - "optional": false, - "name": "availableTriggers", - "description": "Supported triggers for this recognizer." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "RecognizerInfo" - } - }, - { - "__docId__": 238, - "kind": "typedef", - "name": "RecognizerCallback", - "memberof": "src/recognizer/DefaultRecognizer.js", - "static": true, - "longname": "src/recognizer/DefaultRecognizer.js~RecognizerCallback", - "access": null, - "description": "Recognizer callback", - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": true, - "name": "err", - "description": "Error" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": true, - "name": "model", - "description": "Result" - }, - { - "nullable": null, - "types": [ - "...String" - ], - "spread": true, - "optional": true, - "name": "types", - "description": "Result types" - } - ], - "type": { - "types": [ - "function" - ], - "optional": false, - "name": "RecognizerCallback" - } - }, - { - "__docId__": 239, - "kind": "typedef", - "name": "Callback", - "memberof": "src/recognizer/DefaultRecognizer.js", - "static": true, - "longname": "src/recognizer/DefaultRecognizer.js~Callback", - "access": null, - "description": "Simple callback", - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": true, - "name": "err", - "description": "Error" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": true, - "name": "res", - "description": "Result" - } - ], - "type": { - "types": [ - "function" - ], - "optional": false, - "name": "Callback" - } - }, - { - "__docId__": 240, - "kind": "typedef", - "name": "Recognizer", - "memberof": "src/recognizer/DefaultRecognizer.js", - "static": true, - "longname": "src/recognizer/DefaultRecognizer.js~Recognizer", - "access": null, - "description": "Recognition service entry point", - "properties": [ - { - "nullable": null, - "types": [ - "function(): RecognizerInfo" - ], - "spread": false, - "optional": false, - "name": "getInfo", - "description": "Get information about the supported configuration (protocol, type, apiVersion, ...)." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": false, - "name": "init", - "description": "Initialize recognition." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": false, - "name": "clear", - "description": "Clear server context. Currently nothing to do there." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": false, - "name": "close", - "description": "Close and free all resources that will no longer be used by the recognizer." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": true, - "name": "undo", - "description": "Undo Undo the last done action." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": true, - "name": "redo", - "description": "Redo Redo the previously undone action." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback)" - ], - "spread": false, - "optional": true, - "name": "resize", - "description": "Resize." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, strokes: Array, callback: RecognizerCallback)" - ], - "spread": false, - "optional": true, - "name": "pointerEvents", - "description": "Pointer Events." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": true, - "name": "addStrokes", - "description": "Add strokes." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": true, - "name": "export_", - "description": "Export content." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback)" - ], - "spread": false, - "optional": true, - "name": "import_", - "description": "Import content." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)" - ], - "spread": false, - "optional": true, - "name": "convert", - "description": "Convert." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": true, - "name": "waitForIdle", - "description": "Wait for idle." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback)" - ], - "spread": false, - "optional": true, - "name": "setPenStyle", - "description": "Set pen style." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback)" - ], - "spread": false, - "optional": true, - "name": "setPenStyleClasses", - "description": "Set pen style classes." - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback)" - ], - "spread": false, - "optional": true, - "name": "setTheme", - "description": "Set theme." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "Recognizer" - } - }, - { - "__docId__": 241, - "kind": "function", - "name": "init", - "memberof": "src/recognizer/DefaultRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/DefaultRecognizer.js~init", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/DefaultRecognizer.js", - "importStyle": "{init}", - "description": "Initialize recognition", - "lineNumber": 64, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 242, - "kind": "function", - "name": "reset", - "memberof": "src/recognizer/DefaultRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/DefaultRecognizer.js~reset", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/DefaultRecognizer.js", - "importStyle": "{reset}", - "description": "Reset server context. Currently nothing to do there.", - "lineNumber": 83, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 243, - "kind": "function", - "name": "clear", - "memberof": "src/recognizer/DefaultRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/DefaultRecognizer.js~clear", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/DefaultRecognizer.js", - "importStyle": "{clear}", - "description": "Clear server context. Currently nothing to do there.", - "lineNumber": 98, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 244, - "kind": "function", - "name": "close", - "memberof": "src/recognizer/DefaultRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/DefaultRecognizer.js~close", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/DefaultRecognizer.js", - "importStyle": "{close}", - "description": "Close and free all resources that will no longer be used by the recognizer.", - "lineNumber": 113, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 245, - "kind": "file", - "name": "src/recognizer/common/CdkCommonUtil.js", - "content": "import { recognizerLogger as logger } from '../../configuration/LoggerConfig';\n\n/**\n * Extract the exports\n * @param {Model} model Current model\n * @return {Object} Recognition result\n */\nexport function extractExports(model) {\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.results &&\n model.rawResults.exports.result.results.length > 0) {\n return model.rawResults.exports.result.results\n .map((item) => {\n const res = {};\n if (Object.keys(item).includes('root')) {\n res[`${item.type}`] = item.root;\n } else {\n res[`${item.type}`] = item.value;\n }\n return res;\n })\n .reduce((a, b) => Object.assign(a, b), {});\n }\n return {};\n}\n", - "static": true, - "longname": "src/recognizer/common/CdkCommonUtil.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 246, - "kind": "function", - "name": "extractExports", - "memberof": "src/recognizer/common/CdkCommonUtil.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/common/CdkCommonUtil.js~extractExports", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/common/CdkCommonUtil.js", - "importStyle": "{extractExports}", - "description": "Extract the exports", - "lineNumber": 8, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "Recognition result" - } - }, - { - "__docId__": 247, - "kind": "file", - "name": "src/recognizer/common/v3/Cdkv3CommonMathRecognizer.js", - "content": "import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\n\n/**\n * Extract the recognized symbols\n * @param {Model} model Current model\n * @return {Array} Recognized symbols\n */\nexport function extractRecognizedSymbols(model) {\n // We recopy the recognized strokes to flag them as toBeRemove if they are scratched out or map with a symbol\n const strokeList = [...model.rawStrokes];\n\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.scratchOutResults &&\n (model.rawResults.exports.result.scratchOutResults.length > 0)) {\n const inkRanges = model.rawResults.exports.result.scratchOutResults\n .map(scratchOutResult => scratchOutResult.erasedInkRanges.concat(scratchOutResult.inkRanges))\n .reduce((a, b) => a.concat(b));\n return strokeList.filter((stroke, index) => !inkRanges.find(inkRange => inkRange.component === index));\n }\n return strokeList;\n}\n", - "static": true, - "longname": "src/recognizer/common/v3/Cdkv3CommonMathRecognizer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 248, - "kind": "function", - "name": "extractRecognizedSymbols", - "memberof": "src/recognizer/common/v3/Cdkv3CommonMathRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/common/v3/Cdkv3CommonMathRecognizer.js~extractRecognizedSymbols", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/common/v3/Cdkv3CommonMathRecognizer.js", - "importStyle": "{extractRecognizedSymbols}", - "description": "Extract the recognized symbols", - "lineNumber": 8, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - } - ], - "return": { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "description": "Recognized symbols" - } - }, - { - "__docId__": 249, - "kind": "file", - "name": "src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js", - "content": "import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as InkModel from '../../../model/InkModel';\n\n/**\n * Get style for the strokes matching the ink ranges\n * @param {Model} model\n * @param {Array} inkRanges\n * @return {{color: String, width: Number}} Style to apply\n */\nexport function getStyleFromInkRanges(model, inkRanges) {\n let strokes = model.rawStrokes;\n if (inkRanges && (inkRanges.length > 0)) {\n strokes = inkRanges\n .map(inkRange => InkModel.extractStrokesFromInkRange(model, inkRange.stroke ? inkRange.stroke : inkRange.firstStroke, inkRange.stroke ? inkRange.stroke : inkRange.lastStroke, inkRange.firstPoint, inkRange.lastPoint))\n .reduce((a, b) => a.concat(b));\n }\n // FIXME hack to apply the rendering param of the first element' stroke\n return {\n color: strokes[0].color,\n width: strokes[0].width\n };\n}\n\n/**\n * Extract recognized symbols from recognition output\n * @param {Model} model Current model\n * @param {Object} segment Shape recognition output\n * @return {Array} Recognized symbols\n */\nexport function extractShapeSymbols(model, segment) {\n if (segment.candidates && segment.candidates.length > 0) {\n const selectedCandidate = segment.candidates[segment.selectedCandidateIndex];\n switch (selectedCandidate.type) {\n case 'notRecognized':\n if (segment.inkRanges && segment.inkRanges.length > 0) {\n return segment.inkRanges\n .map(inkRange => InkModel.extractStrokesFromInkRange(model, inkRange.firstStroke, inkRange.lastStroke, inkRange.firstPoint, inkRange.lastPoint))\n .reduce((a, b) => a.concat(b));\n }\n return [];\n case 'recognizedShape':\n return selectedCandidate.primitives;\n default:\n return [];\n }\n }\n return [];\n}\n\n/**\n * Extract the recognized symbols\n * @param {Model} model Current model\n * @return {Array} Recognized symbols\n */\nexport function extractRecognizedSymbols(model) {\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.segments) {\n return model.rawResults.exports.result.segments\n .map((segment) => {\n const style = getStyleFromInkRanges(model, segment.inkRanges);\n return extractShapeSymbols(model, segment).map(primitive => Object.assign(primitive, style));\n })\n .reduce((a, b) => a.concat(b));\n }\n return [];\n}\n\n/**\n * Extract the exports\n * @param {Model} model Current model\n * @return {Object} exports\n */\nexport function extractExports(model) {\n // We recopy the recognized strokes to flag them as toBeRemove if they are scratched out or map with a symbol\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.segments) {\n return {\n SEGMENTS: model.rawResults.exports.result.segments\n };\n }\n return {};\n}\n", - "static": true, - "longname": "src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 250, - "kind": "function", - "name": "getStyleFromInkRanges", - "memberof": "src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js~getStyleFromInkRanges", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js", - "importStyle": "{getStyleFromInkRanges}", - "description": "Get style for the strokes matching the ink ranges", - "lineNumber": 10, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - }, - { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "optional": false, - "name": "inkRanges", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "{color: String, width: Number}" - ], - "spread": false, - "description": "Style to apply" - } - }, - { - "__docId__": 251, - "kind": "function", - "name": "extractShapeSymbols", - "memberof": "src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js~extractShapeSymbols", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js", - "importStyle": "{extractShapeSymbols}", - "description": "Extract recognized symbols from recognition output", - "lineNumber": 30, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "segment", - "description": "Shape recognition output" - } - ], - "return": { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "description": "Recognized symbols" - } - }, - { - "__docId__": 252, - "kind": "function", - "name": "extractRecognizedSymbols", - "memberof": "src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js~extractRecognizedSymbols", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js", - "importStyle": "{extractRecognizedSymbols}", - "description": "Extract the recognized symbols", - "lineNumber": 55, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - } - ], - "return": { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "description": "Recognized symbols" - } - }, - { - "__docId__": 253, - "kind": "function", - "name": "extractExports", - "memberof": "src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js~extractExports", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js", - "importStyle": "{extractExports}", - "description": "Extract the exports", - "lineNumber": 75, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "exports" - } - }, - { - "__docId__": 254, - "kind": "file", - "name": "src/recognizer/common/v3/Cdkv3CommonTextRecognizer.js", - "content": "/**\n * Extract the exports\n * @param {Model} model Current model\n * @return {Object} exports\n */\nexport function extractExports(model) {\n // We recopy the recognized strokes to flag them as toBeRemove if they are scratched out or map with a symbol\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result &&\n model.rawResults.exports.result.textSegmentResult &&\n model.rawResults.exports.result.textSegmentResult.candidates) {\n return {\n CANDIDATES: model.rawResults.exports.result,\n TEXT: model.rawResults.exports.result.textSegmentResult.candidates[model.rawResults.exports.result.textSegmentResult.selectedCandidateIdx].label\n };\n }\n return {};\n}\n", - "static": true, - "longname": "src/recognizer/common/v3/Cdkv3CommonTextRecognizer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 255, - "kind": "function", - "name": "extractExports", - "memberof": "src/recognizer/common/v3/Cdkv3CommonTextRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/common/v3/Cdkv3CommonTextRecognizer.js~extractExports", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/common/v3/Cdkv3CommonTextRecognizer.js", - "importStyle": "{extractExports}", - "description": "Extract the exports", - "lineNumber": 6, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "exports" - } - }, - { - "__docId__": 256, - "kind": "file", - "name": "src/recognizer/rest/networkInterface.js", - "content": "/* eslint-disable no-unused-expressions */\nimport * as CryptoHelper from '../CryptoHelper';\n\n/**\n * Parse JSON String to Object\n * @param {Object} req JSON string result to be parsed\n * @return {Object} Parsed response\n */\nfunction parse(req) {\n let result;\n try {\n result = JSON.parse(req.responseText);\n } catch (e) {\n result = req.responseText;\n }\n return result;\n}\n\n/**\n * Transform object data request to a list of parameters\n * @param {Object} obj Query properties\n * @return {String} URI encoded string\n */\nfunction transformRequest(obj) {\n const str = [];\n Object.keys(obj).forEach((p) => {\n if ((typeof obj[p] !== 'undefined') &&\n (typeof obj[p] !== 'function')) {\n str.push(`${encodeURIComponent(p)}=${encodeURIComponent(obj[p])}`);\n }\n });\n return str.join('&');\n}\n\n/**\n * Send request to the network and return a promise\n * @param {String} type Request type (GET/POST)\n * @param {String} url URL\n * @param {Object} data Data to be sent\n * @param {RecognizerContext} [recognizerContext] Recognizer context\n * @param {String} apiVersion api version\n * @param {String} mimeType MimeType to be used\n * @return {Promise}\n */\nfunction xhr(type, url, data, recognizerContext = {}, apiVersion, mimeType) {\n const pptxMimeType = 'application/vnd.openxmlformats-officedocument.presentationml.presentation';\n const configuration = recognizerContext.editor.configuration;\n const recognizerContextRef = recognizerContext;\n return new Promise((resolve, reject) => {\n // We are writing some browser module here so the no import found should be ignored\n // eslint-disable-next-line no-undef\n const request = new XMLHttpRequest();\n request.open(type, url, true);\n request.withCredentials = true;\n if (apiVersion === 'V3') {\n request.setRequestHeader('Accept', 'application/json');\n request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;charset=UTF-8');\n } else if (apiVersion === 'V4') {\n switch (configuration.recognitionParams.type) {\n case 'TEXT':\n request.setRequestHeader('Accept', 'application/json,' + mimeType);\n break;\n case 'MATH':\n request.setRequestHeader('Accept', 'application/json,' + mimeType);\n break;\n case 'DIAGRAM':\n request.setRequestHeader('Accept', 'application/json,' + mimeType);\n break;\n case 'Raw Content':\n request.setRequestHeader('Accept', 'application/json,' + mimeType);\n break;\n default:\n break;\n }\n request.setRequestHeader('applicationKey', configuration.recognitionParams.server.applicationKey);\n request.setRequestHeader('hmac', CryptoHelper.computeHmac(JSON.stringify(data), configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey));\n request.setRequestHeader('Content-Type', 'application/json');\n }\n\n if (mimeType === pptxMimeType) {\n request.responseType = 'blob';\n }\n\n request.onerror = () => {\n reject({ msg: `Could not connect to ${url} connection error`, recoverable: false });\n };\n\n request.onload = () => {\n if (request.status >= 200 && request.status < 300) {\n mimeType === pptxMimeType ? resolve(request.response) : resolve(parse(request));\n } else {\n reject(new Error(request.responseText));\n }\n };\n\n request.onreadystatechange = () => {\n if (request.readyState === 4) {\n if (request.status >= 200 && request.status < 300) {\n mimeType === pptxMimeType ? resolve(request.response) : resolve(parse(request));\n }\n }\n };\n\n if (recognizerContextRef) {\n recognizerContextRef.idle = false;\n }\n if (apiVersion === 'V4') {\n request.send(JSON.stringify(data));\n } else {\n request.send(data ? transformRequest(data) : undefined);\n }\n }).then((res) => {\n if (recognizerContextRef) {\n recognizerContextRef.idle = true;\n }\n return res;\n });\n}\n\n/**\n * Get request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} params Query properties\n * @return {Promise}\n */\nexport function get(recognizerContext, url, params) {\n let queryUrl = url;\n if (params) {\n queryUrl += `?${transformRequest(params)}`;\n }\n return xhr('GET', queryUrl, undefined, recognizerContext);\n}\n\n/**\n * Post request\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @param {String} url URL\n * @param {Object} data Data to be sent\n * @param {String} apiVersion api version\n * @param {String} mimeType MimeType to be used\n * @return {Promise}\n */\nexport function post(recognizerContext, url, data, apiVersion, mimeType) {\n return xhr('POST', url, data, recognizerContext, apiVersion, mimeType);\n}\n", - "static": true, - "longname": "src/recognizer/rest/networkInterface.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 257, - "kind": "function", - "name": "parse", - "memberof": "src/recognizer/rest/networkInterface.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/networkInterface.js~parse", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/networkInterface.js", - "importStyle": null, - "description": "Parse JSON String to Object", - "lineNumber": 9, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "req", - "description": "JSON string result to be parsed" - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "Parsed response" - } - }, - { - "__docId__": 258, - "kind": "function", - "name": "transformRequest", - "memberof": "src/recognizer/rest/networkInterface.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/networkInterface.js~transformRequest", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/networkInterface.js", - "importStyle": null, - "description": "Transform object data request to a list of parameters", - "lineNumber": 24, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "obj", - "description": "Query properties" - } - ], - "return": { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "description": "URI encoded string" - } - }, - { - "__docId__": 259, - "kind": "function", - "name": "xhr", - "memberof": "src/recognizer/rest/networkInterface.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/networkInterface.js~xhr", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/networkInterface.js", - "importStyle": null, - "description": "Send request to the network and return a promise", - "lineNumber": 45, - "params": [ - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "Request type (GET/POST)" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "url", - "description": "URL" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "Data to be sent" - }, - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": true, - "name": "recognizerContext", - "description": "Recognizer context" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "apiVersion", - "description": "api version" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "mimeType", - "description": "MimeType to be used" - } - ], - "return": { - "nullable": null, - "types": [ - "Promise" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 260, - "kind": "function", - "name": "get", - "memberof": "src/recognizer/rest/networkInterface.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/networkInterface.js~get", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/networkInterface.js", - "importStyle": "{get}", - "description": "Get request", - "lineNumber": 127, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Recognizer context" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "url", - "description": "URL" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "params", - "description": "Query properties" - } - ], - "return": { - "nullable": null, - "types": [ - "Promise" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 261, - "kind": "function", - "name": "post", - "memberof": "src/recognizer/rest/networkInterface.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/networkInterface.js~post", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/networkInterface.js", - "importStyle": "{post}", - "description": "Post request", - "lineNumber": 144, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Recognizer context" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "url", - "description": "URL" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "Data to be sent" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "apiVersion", - "description": "api version" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "mimeType", - "description": "MimeType to be used" - } - ], - "return": { - "nullable": null, - "types": [ - "Promise" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 262, - "kind": "file", - "name": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "content": "/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\nimport {\n extractShapeSymbols,\n getStyleFromInkRanges\n} from '../../common/v3/Cdkv3CommonShapeRecognizer';\n\nexport { init, close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const analyzerRestV3Configuration = {\n types: [Constants.RecognitionType.ANALYZER],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return analyzerRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nfunction buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n // Incremental\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n };\n Object.assign(input, { parameter: configuration.recognitionParams.v3.analyzerParameter }); // Building the input with the suitable parameters\n\n logger.debug(`input.components size is ${input.components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n analyzerInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.analyzerInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction extractSymbols(model, element) {\n const style = getStyleFromInkRanges(model, element.inkRanges);\n switch (element.elementType) {\n case 'table':\n return element.lines.map(line => Object.assign(line, style));\n case 'textLine':\n return [element].map(textLine => Object.assign(textLine, textLine.result.textSegmentResult.candidates[textLine.result.textSegmentResult.selectedCandidateIdx], style));\n case 'shape':\n return extractShapeSymbols(model, element).map(primitive => Object.assign(primitive, style));\n default:\n return [];\n }\n}\n\nfunction extractRecognizedSymbolsFromAnalyzerResult(model) {\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result) {\n return [...model.rawResults.exports.result.shapes, ...model.rawResults.exports.result.tables, ...model.rawResults.exports.result.textLines]\n .map(element => extractSymbols(model, element))\n .reduce((a, b) => a.concat(b));\n }\n return [];\n}\n\n/**\n * Extract the exports\n * @param {Model} model Current model\n * @return {Object} exports\n */\nfunction extractExports(model) {\n if (model.rawResults &&\n model.rawResults.exports &&\n model.rawResults.exports.result) {\n return {\n ANALYSIS: model.rawResults.exports.result\n };\n }\n return {};\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestAnalyzerRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.recognizedSymbols = extractRecognizedSymbolsFromAnalyzerResult(model);\n modelReference.exports = extractExports(model);\n logger.debug('Cdkv3RestAnalyzerRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.CONVERTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n return Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/analyzer/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n", - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 263, - "kind": "variable", - "name": "analyzerRestV3Configuration", - "memberof": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js~analyzerRestV3Configuration", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "importStyle": "{analyzerRestV3Configuration}", - "description": "Recognizer configuration", - "lineNumber": 19, - "type": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 264, - "kind": "function", - "name": "getInfo", - "memberof": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js~getInfo", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "importStyle": "{getInfo}", - "description": "Get the configuration supported by this recognizer", - "lineNumber": 35, - "params": [], - "return": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 265, - "kind": "function", - "name": "buildInput", - "memberof": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js~buildInput", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "importStyle": null, - "description": "Internal function to build the payload to ask for a recognition.", - "lineNumber": 45, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 266, - "kind": "function", - "name": "extractSymbols", - "memberof": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js~extractSymbols", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 68, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "element", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*[]" - ] - } - }, - { - "__docId__": 267, - "kind": "function", - "name": "extractRecognizedSymbolsFromAnalyzerResult", - "memberof": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js~extractRecognizedSymbolsFromAnalyzerResult", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 82, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "model", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*[]" - ] - } - }, - { - "__docId__": 268, - "kind": "function", - "name": "extractExports", - "memberof": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js~extractExports", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "importStyle": null, - "description": "Extract the exports", - "lineNumber": 98, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "exports" - } - }, - { - "__docId__": 269, - "kind": "function", - "name": "resultCallback", - "memberof": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js~resultCallback", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 109, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "res", - "types": [ - "*" - ] - }, - { - "name": "callback", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 270, - "kind": "function", - "name": "export_", - "memberof": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js~export_", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js", - "importStyle": "{export_}", - "description": "Export content", - "lineNumber": 125, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 271, - "kind": "file", - "name": "src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js", - "content": "/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as CdkCommonUtil from '../../common/CdkCommonUtil';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\nimport * as Cdkv3CommonMathRecognizer from '../../common/v3/Cdkv3CommonMathRecognizer';\n\nexport { init, close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const mathRestV3Configuration = {\n types: [Constants.RecognitionType.MATH],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return mathRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nfunction buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n // As Rest MATH recognition is non incremental we add the already recognized strokes\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n };\n Object.assign(input, configuration.recognitionParams.v3.mathParameter); // Building the input with the suitable parameters\n\n logger.debug(`input.components size is ${input.components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n mathInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.mathInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestMathRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.recognizedSymbols = Cdkv3CommonMathRecognizer.extractRecognizedSymbols(model);\n modelReference.exports = CdkCommonUtil.extractExports(model);\n logger.debug('Cdkv3RestMathRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n return Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/math/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n", - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 272, - "kind": "variable", - "name": "mathRestV3Configuration", - "memberof": "src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js", - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js~mathRestV3Configuration", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js", - "importStyle": "{mathRestV3Configuration}", - "description": "Recognizer configuration", - "lineNumber": 17, - "type": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 273, - "kind": "function", - "name": "getInfo", - "memberof": "src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js~getInfo", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js", - "importStyle": "{getInfo}", - "description": "Get the configuration supported by this recognizer", - "lineNumber": 33, - "params": [], - "return": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 274, - "kind": "function", - "name": "buildInput", - "memberof": "src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js~buildInput", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js", - "importStyle": null, - "description": "Internal function to build the payload to ask for a recognition.", - "lineNumber": 43, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 275, - "kind": "function", - "name": "resultCallback", - "memberof": "src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js~resultCallback", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 66, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "res", - "types": [ - "*" - ] - }, - { - "name": "callback", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 276, - "kind": "function", - "name": "export_", - "memberof": "src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js~export_", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js", - "importStyle": "{export_}", - "description": "Export content", - "lineNumber": 82, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 277, - "kind": "file", - "name": "src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js", - "content": "/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as CdkCommonUtil from '../../common/CdkCommonUtil';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\n\nexport { close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const musicRestV3Configuration = {\n types: [Constants.RecognitionType.MUSIC],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return musicRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nfunction buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n // As Rest MUSIC recognition is non incremental wa add the already recognized strokes\n components: []\n .concat(model.defaultSymbols, model.rawStrokes)\n .filter(symbol => symbol.type !== 'staff')\n .map((symbol) => {\n if (symbol.type === 'stroke') {\n return StrokeComponent.toJSON(symbol);\n }\n return symbol;\n })\n };\n const musicParameter = Object.assign({}, configuration.recognitionParams.v3.musicParameter);\n delete musicParameter.clef; // FIXME find a way to avoid this ugly hack\n Object.assign(input, musicParameter); // Building the input with the suitable parameters\n\n logger.debug(`input.components size is ${input.components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n musicInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.musicInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestMusicRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.exports = CdkCommonUtil.extractExports(model);\n logger.debug('Cdkv3RestMusicRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n}\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const modelRef = InkModel.resetModelPositions(model);\n logger.debug('Updated model', modelRef);\n const recognizerContextRef = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n recognizerContextRef.initPromise = Promise.resolve(modelRef);\n recognizerContextRef.initPromise\n .then((res) => {\n recognizerContextRef.initialized = true;\n logger.debug('Updated recognizer context', recognizerContextRef);\n callback(undefined, res, Constants.EventType.LOADED, Constants.EventType.RENDERED);\n });\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/music/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n", - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 278, - "kind": "variable", - "name": "musicRestV3Configuration", - "memberof": "src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js", - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js~musicRestV3Configuration", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js", - "importStyle": "{musicRestV3Configuration}", - "description": "Recognizer configuration", - "lineNumber": 17, - "type": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 279, - "kind": "function", - "name": "getInfo", - "memberof": "src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js~getInfo", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js", - "importStyle": "{getInfo}", - "description": "Get the configuration supported by this recognizer", - "lineNumber": 33, - "params": [], - "return": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 280, - "kind": "function", - "name": "buildInput", - "memberof": "src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js~buildInput", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js", - "importStyle": null, - "description": "Internal function to build the payload to ask for a recognition.", - "lineNumber": 43, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 281, - "kind": "function", - "name": "resultCallback", - "memberof": "src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js~resultCallback", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 76, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "res", - "types": [ - "*" - ] - }, - { - "name": "callback", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 282, - "kind": "function", - "name": "init", - "memberof": "src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js~init", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js", - "importStyle": "{init}", - "description": "Initialize recognition", - "lineNumber": 91, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 283, - "kind": "function", - "name": "export_", - "memberof": "src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js~export_", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js", - "importStyle": "{export_}", - "description": "Export content", - "lineNumber": 110, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 284, - "kind": "file", - "name": "src/recognizer/rest/v3/Cdkv3RestRecognizerUtil.js", - "content": "import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as NetworkInterface from '../networkInterface';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\n\n/**\n * @param {String} suffixUrl\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @param {function(recognizerContext: RecognizerContext, model: Model): Object} buildMessage\n * @return {Promise.} Promise that return an updated model as a result\n */\nexport function postMessage(suffixUrl, recognizerContext, model, buildMessage) {\n const configuration = recognizerContext.editor.configuration;\n return NetworkInterface.post(recognizerContext, `${configuration.recognitionParams.server.scheme}://${configuration.recognitionParams.server.host}${suffixUrl}`, buildMessage(recognizerContext, model), 'V3')\n .then(\n (response) => {\n logger.debug('Cdkv3RestRecognizer success', response);\n const positions = recognizerContext.lastPositions;\n positions.lastReceivedPosition = positions.lastSentPosition;\n const recognizerContextReference = RecognizerContext.updateRecognitionPositions(recognizerContext, positions);\n if (response.instanceId) {\n recognizerContextReference.instanceId = response.instanceId;\n }\n return response;\n }\n );\n}\n", - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestRecognizerUtil.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 285, - "kind": "function", - "name": "postMessage", - "memberof": "src/recognizer/rest/v3/Cdkv3RestRecognizerUtil.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestRecognizerUtil.js~postMessage", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestRecognizerUtil.js", - "importStyle": "{postMessage}", - "description": "", - "lineNumber": 13, - "params": [ - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "suffixUrl", - "description": "" - }, - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model): Object" - ], - "spread": false, - "optional": false, - "name": "buildMessage", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Promise." - ], - "spread": false, - "description": "Promise that return an updated model as a result" - } - }, - { - "__docId__": 286, - "kind": "file", - "name": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "content": "/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\nimport * as Cdkv3CommonShapeRecognizer from '../../common/v3/Cdkv3CommonShapeRecognizer';\n\nexport { init, close } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const shapeRestV3Configuration = {\n types: [Constants.RecognitionType.SHAPE],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return shapeRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nfunction buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n components: InkModel.extractPendingStrokes(model).map(stroke => StrokeComponent.toJSON(stroke))\n };\n Object.assign(input, configuration.recognitionParams.v3.shapeParameter); // Building the input with the suitable parameters\n\n logger.debug(`input.components size is ${input.components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n shapeInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.shapeInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction buildReset(recognizerContext, model) {\n return {\n instanceSessionId: recognizerContext ? recognizerContext.instanceId : undefined\n };\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestShapeRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.recognizedSymbols = Cdkv3CommonShapeRecognizer.extractRecognizedSymbols(model);\n modelReference.exports = Cdkv3CommonShapeRecognizer.extractExports(model);\n logger.debug('Cdkv3RestShapeRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.CONVERTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/shape/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n\n/**\n * Reset server context.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function reset(recognizerContext, model, callback) {\n const modelRef = InkModel.resetModelPositions(model);\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/shape/clearSessionId.json', recognizerContext, modelRef, buildReset)\n .then(res => callback(undefined, modelRef, Constants.EventType.IDLE))\n .catch(err => callback(err, modelRef));\n}\n\n/**\n * Do what is needed to clean the server context.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n const modelRef = InkModel.clearModel(InkModel.cloneModel(model));\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/shape/clearSessionId.json', recognizerContext, modelRef, buildReset)\n .then(res => callback(undefined, modelRef, Constants.EventType.CHANGED, Constants.EventType.EXPORTED, Constants.EventType.CONVERTED, Constants.EventType.IDLE))\n .catch(err => callback(err, modelRef));\n}\n", - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 287, - "kind": "variable", - "name": "shapeRestV3Configuration", - "memberof": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js~shapeRestV3Configuration", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "importStyle": "{shapeRestV3Configuration}", - "description": "Recognizer configuration", - "lineNumber": 17, - "type": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 288, - "kind": "function", - "name": "getInfo", - "memberof": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js~getInfo", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "importStyle": "{getInfo}", - "description": "Get the configuration supported by this recognizer", - "lineNumber": 33, - "params": [], - "return": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 289, - "kind": "function", - "name": "buildInput", - "memberof": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js~buildInput", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "importStyle": null, - "description": "Internal function to build the payload to ask for a recognition.", - "lineNumber": 43, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 290, - "kind": "function", - "name": "buildReset", - "memberof": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js~buildReset", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 65, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "recognizerContext", - "types": [ - "*" - ] - }, - { - "name": "model", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"instanceSessionId\": *}" - ] - } - }, - { - "__docId__": 291, - "kind": "function", - "name": "resultCallback", - "memberof": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js~resultCallback", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 71, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "res", - "types": [ - "*" - ] - }, - { - "name": "callback", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 292, - "kind": "function", - "name": "export_", - "memberof": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js~export_", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "importStyle": "{export_}", - "description": "Export content", - "lineNumber": 87, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 293, - "kind": "function", - "name": "reset", - "memberof": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js~reset", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "importStyle": "{reset}", - "description": "Reset server context.", - "lineNumber": 99, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 294, - "kind": "function", - "name": "clear", - "memberof": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js~clear", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js", - "importStyle": "{clear}", - "description": "Do what is needed to clean the server context.", - "lineNumber": 112, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 295, - "kind": "file", - "name": "src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js", - "content": "/* eslint-disable no-underscore-dangle */\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as Cdkv3RestRecognizerUtil from './Cdkv3RestRecognizerUtil';\nimport * as Cdkv3CommonTextRecognizer from '../../common/v3/Cdkv3CommonTextRecognizer';\n\nexport { init, close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const textRestV3Configuration = {\n types: [Constants.RecognitionType.TEXT],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return textRestV3Configuration;\n}\n\n/**\n * Internal function to build the payload to ask for a recognition.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @return {Object}\n */\nexport function buildInput(recognizerContext, model) {\n const configuration = recognizerContext.editor.configuration;\n const input = {\n inputUnits: [{\n textInputType: 'MULTI_LINE_TEXT',\n // As Rest TEXT recognition is non incremental wa add the already recognized strokes\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n }]\n };\n Object.assign(input, { textParameter: configuration.recognitionParams.v3.textParameter }); // Building the input with the suitable parameters\n\n logger.debug(`input.inputUnits[0].components size is ${input.inputUnits[0].components.length}`);\n\n const data = {\n instanceId: recognizerContext ? recognizerContext.instanceId : undefined,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n textInput: JSON.stringify(input)\n };\n\n if (configuration.recognitionParams.server.hmacKey) {\n data.hmac = CryptoHelper.computeHmac(data.textInput, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey);\n }\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction resultCallback(model, res, callback) {\n logger.debug('Cdkv3RestTextRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.exports = Cdkv3CommonTextRecognizer.extractExports(model);\n logger.debug('Cdkv3RestTextRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n Cdkv3RestRecognizerUtil.postMessage('/api/v3.0/recognition/rest/text/doSimpleRecognition.json', recognizerContext, model, buildInput)\n .then(res => resultCallback(model, res, callback))\n .catch(err => callback(err, model));\n}\n", - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 296, - "kind": "variable", - "name": "textRestV3Configuration", - "memberof": "src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js", - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js~textRestV3Configuration", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js", - "importStyle": "{textRestV3Configuration}", - "description": "Recognizer configuration", - "lineNumber": 16, - "type": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 297, - "kind": "function", - "name": "getInfo", - "memberof": "src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js~getInfo", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js", - "importStyle": "{getInfo}", - "description": "Get the configuration supported by this recognizer", - "lineNumber": 32, - "params": [], - "return": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 298, - "kind": "function", - "name": "buildInput", - "memberof": "src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js~buildInput", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js", - "importStyle": "{buildInput}", - "description": "Internal function to build the payload to ask for a recognition.", - "lineNumber": 42, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 299, - "kind": "function", - "name": "resultCallback", - "memberof": "src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js~resultCallback", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 68, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "res", - "types": [ - "*" - ] - }, - { - "name": "callback", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 300, - "kind": "function", - "name": "export_", - "memberof": "src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js~export_", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js", - "importStyle": "{export_}", - "description": "Export content", - "lineNumber": 83, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 301, - "kind": "file", - "name": "src/recognizer/rest/v4/iinkRestRecognizer.js", - "content": "/* eslint-disable no-underscore-dangle */\nimport * as NetworkInterface from '../networkInterface';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as DefaultTheme from '../../../configuration/DefaultTheme';\nimport * as DefaultPenStyle from '../../../configuration/DefaultPenStyle';\n\nexport { init, close, clear, reset } from '../../DefaultRecognizer';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const iinkRestConfiguration = {\n types: [Constants.RecognitionType.TEXT, Constants.RecognitionType.DIAGRAM, Constants.RecognitionType.MATH, Constants.RecognitionType.RAWCONTENT],\n protocol: Constants.Protocol.REST,\n apiVersion: 'V4',\n availableTriggers: {\n exportContent: [\n Constants.Trigger.QUIET_PERIOD,\n Constants.Trigger.DEMAND\n ]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return iinkRestConfiguration;\n}\n\n\n/**\n * @param {String} suffixUrl\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @param {function(recognizerContext: RecognizerContext, model: Model, conversionState: String): Object} buildMessage\n * @param {String} conversionState\n * @param {String} mimeType\n * @return {Promise.} Promise that return an updated model as a result\n */\nexport function postMessage(suffixUrl, recognizerContext, model, buildMessage, conversionState = '', mimeType) {\n const configuration = recognizerContext.editor.configuration;\n return NetworkInterface.post(recognizerContext, `${configuration.recognitionParams.server.scheme}://${configuration.recognitionParams.server.host}${suffixUrl}`, buildMessage(recognizerContext, model, conversionState), 'V4', mimeType).then((response) => {\n logger.debug('iinkRestRecognizer success', response);\n const positions = recognizerContext.lastPositions;\n positions.lastReceivedPosition = positions.lastSentPosition;\n const recognizerContextReference = RecognizerContext.updateRecognitionPositions(recognizerContext, positions);\n if (response.instanceId) {\n recognizerContextReference.instanceId = response.instanceId;\n }\n return response;\n });\n}\n\nfunction buildTextConf(configuration) {\n return {\n text: configuration.recognitionParams.v4.text,\n lang: configuration.recognitionParams.v4.lang,\n export: configuration.recognitionParams.v4.export\n };\n}\n\nfunction buildMathConf(configuration) {\n return {\n math: configuration.recognitionParams.v4.math,\n lang: configuration.recognitionParams.v4.lang,\n export: configuration.recognitionParams.v4.export\n };\n}\n\nfunction buildDiagramConf(configuration) {\n return {\n diagram: configuration.recognitionParams.v4.diagram,\n lang: configuration.recognitionParams.v4.lang,\n export: configuration.recognitionParams.v4.export\n };\n}\n\nfunction buildRawContentConf(configuration) {\n return {\n 'raw-content': {\n recognition: configuration.recognitionParams.v4['raw-content'].recognition\n },\n lang: configuration.recognitionParams.v4.lang,\n export: configuration.recognitionParams.v4.export\n };\n}\n\nfunction buildData(recognizerContext, model, conversionState) {\n const configuration = recognizerContext.editor.configuration;\n let dataConf;\n\n if (configuration.recognitionParams.type === 'TEXT') {\n dataConf = buildTextConf(configuration);\n } else if (configuration.recognitionParams.type === 'MATH') {\n dataConf = buildMathConf(configuration);\n } else if (configuration.recognitionParams.type === 'DIAGRAM') {\n dataConf = buildDiagramConf(configuration);\n } else if (configuration.recognitionParams.type === 'Raw Content') {\n dataConf = buildRawContentConf(configuration);\n }\n\n const newStrokes = [];\n model.strokeGroups.forEach((group) => {\n const newPenStyle = JSON.stringify(group.penStyle) === '{}' ? null : DefaultPenStyle.toCSS(group.penStyle);\n const newGroup = {\n penStyle: newPenStyle,\n strokes: group.strokes.map(stroke => StrokeComponent.toJSONV4(stroke))\n };\n newStrokes.push(newGroup);\n });\n\n const contentType = configuration.recognitionParams.type === 'Raw Content' ? 'Raw Content' : configuration.recognitionParams.type.charAt(0).toUpperCase() + configuration.recognitionParams.type.slice(1).toLowerCase();\n\n const data = {\n configuration: dataConf,\n xDPI: 96,\n yDPI: 96,\n contentType,\n height: recognizerContext.editor.domElement.clientHeight,\n width: recognizerContext.editor.domElement.clientWidth,\n theme: DefaultTheme.toCSS(recognizerContext.editor.theme),\n strokeGroups: newStrokes\n };\n\n if (conversionState) {\n data.conversionState = 'DIGITAL_EDIT';\n }\n\n InkModel.updateModelSentPosition(model);\n return data;\n}\n\nfunction extractExports(configuration, mimeType, res) {\n const exports = {};\n if (mimeType === 'application/vnd.myscript.jiix') {\n exports['application/vnd.myscript.jiix'] = res;\n }\n if (configuration.recognitionParams.type === 'TEXT' && mimeType === 'text/plain') {\n exports['text/plain'] = res;\n } else if (configuration.recognitionParams.type === 'DIAGRAM') {\n if (mimeType === 'image/svg+xml') {\n exports['image/svg+xml'] = res;\n }\n if (mimeType === 'application/vnd.openxmlformats-officedocument.presentationml.presentation') {\n exports['application/vnd.openxmlformats-officedocument.presentationml.presentation'] = res;\n }\n if (mimeType === 'application/vnd.microsoft.art-gvml-clipformat') {\n exports['application/vnd.microsoft.art-gvml-clipformat'] = res;\n }\n } else if (configuration.recognitionParams.type === 'MATH') {\n if (mimeType === 'application/x-latex') {\n exports['application/x-latex'] = res;\n }\n if (mimeType === 'application/mathml+xml') {\n exports['application/mathml+xml'] = res;\n }\n if (mimeType === 'application/mathofficeXML') {\n exports['application/mathofficeXML'] = res;\n }\n }\n return exports;\n}\n\nfunction resultCallback(model, configuration, res, mimeType, callback) {\n logger.debug('iinkRestRecognizer result callback', model);\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n if (modelReference.exports) {\n Object.assign(modelReference.exports, extractExports(configuration, mimeType, res));\n } else {\n modelReference.exports = extractExports(configuration, mimeType, res);\n }\n logger.debug('iinkRestRecognizer model updated', modelReference);\n callback(undefined, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function export_(recognizerContext, model, callback) {\n const configuration = recognizerContext.editor.configuration;\n\n function callPostMessage(mimeType) {\n postMessage('/api/v4.0/iink/batch', recognizerContext, model, buildData, configuration.restConversionState, mimeType)\n .then(res => resultCallback(model, configuration, res, mimeType, callback))\n .catch(err => callback(err, model));\n }\n\n if (configuration.recognitionParams.type === 'TEXT') {\n configuration.recognitionParams.v4.text.mimeTypes.forEach((mimeType) => {\n callPostMessage(mimeType);\n });\n } else if (configuration.recognitionParams.type === 'DIAGRAM') {\n configuration.recognitionParams.v4.diagram.mimeTypes.forEach((mimeType) => {\n callPostMessage(mimeType);\n });\n } else if (configuration.recognitionParams.type === 'MATH') {\n configuration.recognitionParams.v4.math.mimeTypes.forEach((mimeType) => {\n callPostMessage(mimeType);\n });\n } else if (configuration.recognitionParams.type === 'Raw Content') {\n configuration.recognitionParams.v4['raw-content'].mimeTypes.forEach((mimeType) => {\n callPostMessage(mimeType);\n });\n }\n}\n\n/**\n * Ask for conversion using DIGITAL_EDIT\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function convert(recognizerContext, model, callback) {\n const configuration = recognizerContext.editor.configuration;\n postMessage('/api/v4.0/iink/batch', recognizerContext, model, buildData, 'DIGITAL_EDIT')\n .then(res => resultCallback(model, configuration, res, callback))\n .catch(err => callback(err, model));\n}\n", - "static": true, - "longname": "src/recognizer/rest/v4/iinkRestRecognizer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 302, - "kind": "variable", - "name": "iinkRestConfiguration", - "memberof": "src/recognizer/rest/v4/iinkRestRecognizer.js", - "static": true, - "longname": "src/recognizer/rest/v4/iinkRestRecognizer.js~iinkRestConfiguration", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v4/iinkRestRecognizer.js", - "importStyle": "{iinkRestConfiguration}", - "description": "Recognizer configuration", - "lineNumber": 17, - "type": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 303, - "kind": "function", - "name": "getInfo", - "memberof": "src/recognizer/rest/v4/iinkRestRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v4/iinkRestRecognizer.js~getInfo", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v4/iinkRestRecognizer.js", - "importStyle": "{getInfo}", - "description": "Get the configuration supported by this recognizer", - "lineNumber": 33, - "params": [], - "return": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 304, - "kind": "function", - "name": "postMessage", - "memberof": "src/recognizer/rest/v4/iinkRestRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v4/iinkRestRecognizer.js~postMessage", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v4/iinkRestRecognizer.js", - "importStyle": "{postMessage}", - "description": "", - "lineNumber": 47, - "params": [ - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "suffixUrl", - "description": "" - }, - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, conversionState: String): Object" - ], - "spread": false, - "optional": false, - "name": "buildMessage", - "description": "" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "conversionState", - "description": "" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "mimeType", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Promise." - ], - "spread": false, - "description": "Promise that return an updated model as a result" - } - }, - { - "__docId__": 305, - "kind": "function", - "name": "buildTextConf", - "memberof": "src/recognizer/rest/v4/iinkRestRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v4/iinkRestRecognizer.js~buildTextConf", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v4/iinkRestRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 61, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"text\": *, \"lang\": *, \"export\": *}" - ] - } - }, - { - "__docId__": 306, - "kind": "function", - "name": "buildMathConf", - "memberof": "src/recognizer/rest/v4/iinkRestRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v4/iinkRestRecognizer.js~buildMathConf", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v4/iinkRestRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 69, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"math\": *, \"lang\": *, \"export\": *}" - ] - } - }, - { - "__docId__": 307, - "kind": "function", - "name": "buildDiagramConf", - "memberof": "src/recognizer/rest/v4/iinkRestRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v4/iinkRestRecognizer.js~buildDiagramConf", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v4/iinkRestRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 77, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"diagram\": *, \"lang\": *, \"export\": *}" - ] - } - }, - { - "__docId__": 308, - "kind": "function", - "name": "buildRawContentConf", - "memberof": "src/recognizer/rest/v4/iinkRestRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v4/iinkRestRecognizer.js~buildRawContentConf", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v4/iinkRestRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 85, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"raw-content\": *, \"lang\": *, \"export\": *}" - ] - } - }, - { - "__docId__": 309, - "kind": "function", - "name": "buildData", - "memberof": "src/recognizer/rest/v4/iinkRestRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v4/iinkRestRecognizer.js~buildData", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v4/iinkRestRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 95, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "recognizerContext", - "types": [ - "*" - ] - }, - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "conversionState", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 310, - "kind": "function", - "name": "extractExports", - "memberof": "src/recognizer/rest/v4/iinkRestRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v4/iinkRestRecognizer.js~extractExports", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v4/iinkRestRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 140, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - }, - { - "name": "mimeType", - "types": [ - "*" - ] - }, - { - "name": "res", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 311, - "kind": "function", - "name": "resultCallback", - "memberof": "src/recognizer/rest/v4/iinkRestRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v4/iinkRestRecognizer.js~resultCallback", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/rest/v4/iinkRestRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 171, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "configuration", - "types": [ - "*" - ] - }, - { - "name": "res", - "types": [ - "*" - ] - }, - { - "name": "mimeType", - "types": [ - "*" - ] - }, - { - "name": "callback", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 312, - "kind": "function", - "name": "export_", - "memberof": "src/recognizer/rest/v4/iinkRestRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v4/iinkRestRecognizer.js~export_", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v4/iinkRestRecognizer.js", - "importStyle": "{export_}", - "description": "Export content", - "lineNumber": 190, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 313, - "kind": "function", - "name": "convert", - "memberof": "src/recognizer/rest/v4/iinkRestRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/rest/v4/iinkRestRecognizer.js~convert", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/rest/v4/iinkRestRecognizer.js", - "importStyle": "{convert}", - "description": "Ask for conversion using DIGITAL_EDIT", - "lineNumber": 224, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 314, - "kind": "file", - "name": "src/recognizer/websocket/CdkWSRecognizerUtil.js", - "content": "import { recognizerLogger as logger } from '../../configuration/LoggerConfig';\nimport Constants from '../../configuration/Constants';\nimport * as NetworkWSInterface from './networkWSInterface';\nimport * as PromiseHelper from '../../util/PromiseHelper';\nimport * as InkModel from '../../model/InkModel';\nimport * as RecognizerContext from '../../model/RecognizerContext';\n\nfunction buildUrl(configuration, suffixUrl) {\n const scheme = (configuration.recognitionParams.server.scheme === 'https') ? 'wss' : 'ws';\n return `${scheme}://${configuration.recognitionParams.server.host}${suffixUrl}`;\n}\n\nconst commonCallback = (model, err, res, callback) => {\n if (res && res.type === 'close') {\n return callback(err, model, Constants.EventType.CHANGED);\n }\n return callback(err, model);\n};\n\n/**\n * Build websocket function\n * @typedef {function} BuildWebSocketFunction\n * @param {DestructuredPromise} destructuredPromise\n * @param {RecognizerContext} recognizerContext\n * @return {Callback}\n */\n\n/**\n * Init the websocket recognizer.\n * Open the connexion and proceed to the hmac challenge.\n * @param {String} suffixUrl\n * @param {RecognizerContext} recognizerContext\n * @param {BuildWebSocketFunction} buildWebSocketCallback\n * @param {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} reconnect\n * @return {Promise} Fulfilled when the init phase is over.\n */\nexport function init(suffixUrl, recognizerContext, buildWebSocketCallback, reconnect) {\n const recognitionContext = recognizerContext.recognitionContexts[0];\n const recognizerContextReference = RecognizerContext.updateRecognitionPositions(recognizerContext, recognitionContext.model.lastPositions);\n recognizerContextReference.url = buildUrl(recognizerContext.editor.configuration, suffixUrl);\n recognizerContextReference.reconnect = reconnect;\n\n const destructuredInitPromise = PromiseHelper.destructurePromise();\n recognizerContextReference.initPromise = destructuredInitPromise.promise;\n\n logger.debug('Opening the websocket for context ', recognizerContext);\n recognizerContextReference.websocketCallback = buildWebSocketCallback(destructuredInitPromise, recognizerContextReference);\n recognizerContextReference.websocket = NetworkWSInterface.openWebSocket(recognizerContextReference);\n return recognizerContextReference.initPromise.then((res) => {\n logger.debug('Init over', res);\n return res;\n });\n}\n\nexport function retry(func, recognizerContext, model, callback, ...params) {\n if (RecognizerContext.shouldAttemptImmediateReconnect(recognizerContext) && recognizerContext.reconnect) {\n logger.info('Attempting a retry', recognizerContext.currentReconnectionCount);\n recognizerContext.reconnect(recognizerContext, model, (err, res) => {\n if (!err) {\n func(recognizerContext, res, callback, ...params);\n } else {\n logger.error('Failed retry', err);\n retry(func, recognizerContext, model, callback, ...params);\n }\n });\n } else {\n callback('Unable to reconnect', model);\n }\n}\n\n/**\n * @param {RecognizerContext} recognizerContext\n * @param {function(params: ...Object): Object} buildMessage\n * @param {...Object} params\n * @return {Promise}\n */\nexport function sendMessage(recognizerContext, buildMessage, ...params) {\n return recognizerContext.initPromise\n .then(() => {\n logger.trace('Init was done. Sending message');\n const message = buildMessage(...params);\n if (message) {\n NetworkWSInterface.send(recognizerContext, message);\n const positions = recognizerContext.recognitionContexts[0].model.lastPositions;\n if (positions) {\n RecognizerContext.updateRecognitionPositions(recognizerContext, positions);\n }\n } else {\n logger.warn('empty message');\n }\n });\n}\n\n/**\n * Do what is needed to clean the server context.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n const modelRef = InkModel.clearModel(model);\n const recognizerContextReference = RecognizerContext.updateRecognitionPositions(recognizerContext, modelRef.lastPositions);\n if (recognizerContextReference && recognizerContextReference.websocket) {\n // We have to send again all strokes after a clear.\n delete recognizerContextReference.instanceId;\n try {\n NetworkWSInterface.send(recognizerContextReference, { type: 'reset' });\n } catch (sendFailedException) {\n // To force failure without breaking the flow\n // FIXME not working at all\n recognizerContextReference.websocketCallback(PromiseHelper.destructurePromise(), recognizerContextReference, model);\n }\n }\n // We do not keep track of the success of clear.\n callback(undefined, modelRef);\n}\n\n/**\n * Close and free all resources that will no longer be used by the recognizer.\n * @param {RecognizerContext} recognizerContext\n * @param {Model} model\n * @param {RecognizerCallback} callback\n */\nexport function close(recognizerContext, model, callback) {\n const recognitionContext = {\n model,\n callback: (err, res) => commonCallback(model, err, res, callback)\n };\n const recognizerContextRef = recognizerContext;\n\n recognizerContext.initPromise\n .then(() => {\n recognizerContextRef.recognitionContexts[0] = recognitionContext;\n return recognizerContextRef;\n })\n .then(context => NetworkWSInterface.close(context, 1000, RecognizerContext.CLOSE_RECOGNIZER_MESSAGE));\n}\n", - "static": true, - "longname": "src/recognizer/websocket/CdkWSRecognizerUtil.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 315, - "kind": "function", - "name": "buildUrl", - "memberof": "src/recognizer/websocket/CdkWSRecognizerUtil.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/CdkWSRecognizerUtil.js~buildUrl", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/CdkWSRecognizerUtil.js", - "importStyle": null, - "description": null, - "lineNumber": 8, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - }, - { - "name": "suffixUrl", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "string" - ] - } - }, - { - "__docId__": 316, - "kind": "function", - "name": "commonCallback", - "memberof": "src/recognizer/websocket/CdkWSRecognizerUtil.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/CdkWSRecognizerUtil.js~commonCallback", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/CdkWSRecognizerUtil.js", - "importStyle": null, - "description": null, - "lineNumber": 13, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "err", - "types": [ - "*" - ] - }, - { - "name": "res", - "types": [ - "*" - ] - }, - { - "name": "callback", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 317, - "kind": "typedef", - "name": "BuildWebSocketFunction", - "memberof": "src/recognizer/websocket/CdkWSRecognizerUtil.js", - "static": true, - "longname": "src/recognizer/websocket/CdkWSRecognizerUtil.js~BuildWebSocketFunction", - "access": null, - "description": "Build websocket function", - "params": [ - { - "nullable": null, - "types": [ - "DestructuredPromise" - ], - "spread": false, - "optional": false, - "name": "destructuredPromise", - "description": "" - }, - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Callback" - ], - "spread": false, - "description": "" - }, - "type": { - "types": [ - "function" - ], - "optional": false, - "name": "BuildWebSocketFunction" - } - }, - { - "__docId__": 318, - "kind": "function", - "name": "init", - "memberof": "src/recognizer/websocket/CdkWSRecognizerUtil.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/CdkWSRecognizerUtil.js~init", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/CdkWSRecognizerUtil.js", - "importStyle": "{init}", - "description": "Init the websocket recognizer.\nOpen the connexion and proceed to the hmac challenge.", - "lineNumber": 37, - "params": [ - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "suffixUrl", - "description": "" - }, - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - }, - { - "nullable": null, - "types": [ - "BuildWebSocketFunction" - ], - "spread": false, - "optional": false, - "name": "buildWebSocketCallback", - "description": "" - }, - { - "nullable": null, - "types": [ - "function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)" - ], - "spread": false, - "optional": false, - "name": "reconnect", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Promise" - ], - "spread": false, - "description": "Fulfilled when the init phase is over." - } - }, - { - "__docId__": 319, - "kind": "function", - "name": "retry", - "memberof": "src/recognizer/websocket/CdkWSRecognizerUtil.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/CdkWSRecognizerUtil.js~retry", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/CdkWSRecognizerUtil.js", - "importStyle": "{retry}", - "description": null, - "lineNumber": 55, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "func", - "types": [ - "*" - ] - }, - { - "name": "recognizerContext", - "types": [ - "*" - ] - }, - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "callback", - "types": [ - "*" - ] - }, - { - "name": "params", - "types": [ - "...*" - ], - "spread": true - } - ] - }, - { - "__docId__": 320, - "kind": "function", - "name": "sendMessage", - "memberof": "src/recognizer/websocket/CdkWSRecognizerUtil.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/CdkWSRecognizerUtil.js~sendMessage", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/CdkWSRecognizerUtil.js", - "importStyle": "{sendMessage}", - "description": "", - "lineNumber": 77, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - }, - { - "nullable": null, - "types": [ - "function(params: ...Object): Object" - ], - "spread": false, - "optional": false, - "name": "buildMessage", - "description": "" - }, - { - "nullable": null, - "types": [ - "...Object" - ], - "spread": true, - "optional": false, - "name": "params", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Promise" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 321, - "kind": "function", - "name": "clear", - "memberof": "src/recognizer/websocket/CdkWSRecognizerUtil.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/CdkWSRecognizerUtil.js~clear", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/CdkWSRecognizerUtil.js", - "importStyle": "{clear}", - "description": "Do what is needed to clean the server context.", - "lineNumber": 100, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 322, - "kind": "function", - "name": "close", - "memberof": "src/recognizer/websocket/CdkWSRecognizerUtil.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/CdkWSRecognizerUtil.js~close", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/CdkWSRecognizerUtil.js", - "importStyle": "{close}", - "description": "Close and free all resources that will no longer be used by the recognizer.", - "lineNumber": 124, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 323, - "kind": "file", - "name": "src/recognizer/websocket/networkWSInterface.js", - "content": "import { recognizerLogger as logger } from '../../configuration/LoggerConfig';\nimport * as RecognizerContext from '../../model/RecognizerContext';\n\nfunction infinitePing(websocket) {\n const websocketRef = websocket;\n websocketRef.pingLostCount++;\n if (websocketRef.pingLostCount > websocketRef.maxPingLost) {\n websocket.close(1000, 'PING_LOST');\n } else if (websocketRef.readyState <= 1) {\n setTimeout(() => {\n if (websocketRef.readyState <= 1) {\n websocketRef.send(JSON.stringify({ type: 'ping' }));\n infinitePing(websocketRef);\n }\n }, websocketRef.pingDelay);\n }\n}\n\n/**\n * Attach all socket attributes helping managing server connexion\n * @param {WebSocket} websocket Current WebSocket\n * @param {RecognizerContext} recognizerContext\n */\nfunction addWebsocketAttributes(websocket, recognizerContext) {\n const websocketConfiguration = recognizerContext.editor.configuration.recognitionParams.server.websocket;\n const socket = websocket;\n socket.start = new Date();\n socket.autoReconnect = websocketConfiguration.autoReconnect;\n socket.maxRetryCount = websocketConfiguration.maxRetryCount;\n socket.pingEnabled = websocketConfiguration.pingEnabled;\n socket.pingDelay = websocketConfiguration.pingDelay;\n socket.maxPingLost = websocketConfiguration.maxPingLostCount;\n socket.pingLostCount = 0;\n socket.recognizerContext = recognizerContext;\n}\n\n/**\n * @param {RecognizerContext} recognizerContext Recognizer context\n * @return {WebSocket} Opened WebSocket\n */\nexport function openWebSocket(recognizerContext) {\n let socket;\n try {\n // eslint-disable-next-line no-undef\n socket = new WebSocket(recognizerContext.url);\n } catch (error) {\n logger.error('Unable to open websocket, Check the host and your connectivity');\n }\n addWebsocketAttributes(socket, recognizerContext);\n if (socket.pingEnabled) {\n infinitePing(socket);\n }\n\n socket.onopen = (e) => {\n logger.trace('onOpen');\n recognizerContext.websocketCallback(e);\n };\n\n socket.onclose = (e) => {\n logger.trace('onClose', new Date() - socket.start);\n recognizerContext.websocketCallback(e);\n };\n\n socket.onerror = (e) => {\n logger.trace('onError');\n recognizerContext.websocketCallback(e);\n };\n\n socket.onmessage = (e) => {\n logger.trace('onMessage');\n socket.pingLostCount = 0;\n const parsedMessage = JSON.parse(e.data);\n if (parsedMessage.type !== 'pong') {\n const callBackParam = {\n type: e.type,\n data: JSON.parse(e.data)\n };\n recognizerContext.websocketCallback(callBackParam);\n }\n };\n\n return socket;\n}\n\n/**\n * Send data message\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Object} message Data message\n */\nexport function send(recognizerContext, message) {\n const recognizerContextRef = recognizerContext;\n recognizerContextRef.idle = false;\n\n const websocket = recognizerContextRef.websocket;\n if (websocket.readyState <= 1) {\n websocket.send(JSON.stringify(message));\n logger.debug(`${message.type} message sent`, message);\n } else {\n throw RecognizerContext.LOST_CONNEXION_MESSAGE;\n }\n}\n\n/**\n * Close the websocket\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Number} code Exit code\n * @param {String} reason Exit reason\n */\nexport function close(recognizerContext, code, reason) {\n const websocket = recognizerContext.websocket;\n if (websocket && websocket.readyState < 2) {\n websocket.close(code, reason);\n }\n}\n", - "static": true, - "longname": "src/recognizer/websocket/networkWSInterface.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 324, - "kind": "function", - "name": "infinitePing", - "memberof": "src/recognizer/websocket/networkWSInterface.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/networkWSInterface.js~infinitePing", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/networkWSInterface.js", - "importStyle": null, - "description": null, - "lineNumber": 4, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "websocket", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 325, - "kind": "function", - "name": "addWebsocketAttributes", - "memberof": "src/recognizer/websocket/networkWSInterface.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/networkWSInterface.js~addWebsocketAttributes", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/networkWSInterface.js", - "importStyle": null, - "description": "Attach all socket attributes helping managing server connexion", - "lineNumber": 24, - "params": [ - { - "nullable": null, - "types": [ - "WebSocket" - ], - "spread": false, - "optional": false, - "name": "websocket", - "description": "Current WebSocket" - }, - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "" - } - ] - }, - { - "__docId__": 326, - "kind": "function", - "name": "openWebSocket", - "memberof": "src/recognizer/websocket/networkWSInterface.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/networkWSInterface.js~openWebSocket", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/networkWSInterface.js", - "importStyle": "{openWebSocket}", - "description": "", - "lineNumber": 41, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Recognizer context" - } - ], - "return": { - "nullable": null, - "types": [ - "WebSocket" - ], - "spread": false, - "description": "Opened WebSocket" - } - }, - { - "__docId__": 327, - "kind": "function", - "name": "send", - "memberof": "src/recognizer/websocket/networkWSInterface.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/networkWSInterface.js~send", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/networkWSInterface.js", - "importStyle": "{send}", - "description": "Send data message", - "lineNumber": 90, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "message", - "description": "Data message" - } - ] - }, - { - "__docId__": 328, - "kind": "function", - "name": "close", - "memberof": "src/recognizer/websocket/networkWSInterface.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/networkWSInterface.js~close", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/networkWSInterface.js", - "importStyle": "{close}", - "description": "Close the websocket", - "lineNumber": 109, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "code", - "description": "Exit code" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "reason", - "description": "Exit reason" - } - ] - }, - { - "__docId__": 329, - "kind": "file", - "name": "src/recognizer/websocket/v3/Cdkv3WSBuilder.js", - "content": "import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as NetworkWSInterface from '../networkWSInterface';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport Constants from '../../../configuration/Constants';\n\n/**\n * A CDK v3 websocket dialog have this sequence :\n * ---------- Client ------------------------------------- Server ----------------------------------\n * init (send the applicationKey) ================>\n * <=========== hmacChallenge\n * answerToHmacChallenge (send the hmac) =========>\n * <=========== init\n * start (send the parameters and first strokes ) ===============>\n * <=========== recognition with instance id\n * continue (send the other strokes ) ============>\n * <=========== recognition\n */\n\nfunction buildHmacMessage(configuration, message) {\n return {\n type: 'hmac',\n applicationKey: configuration.recognitionParams.server.applicationKey,\n challenge: message.data.challenge,\n hmac: CryptoHelper.computeHmac(message.data.challenge, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey)\n };\n}\n\nfunction buildInitMessage(configuration) {\n return {\n type: 'applicationKey',\n applicationKey: configuration.recognitionParams.server.applicationKey\n };\n}\n\n/**\n * This function bind the right behaviour when a message is receive by the websocket.\n * @param {DestructuredPromise} destructuredPromise\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @return {function} Callback to handle WebSocket results\n */\nexport function buildWebSocketCallback(destructuredPromise, recognizerContext) {\n return (message) => {\n const recognizerContextRef = recognizerContext;\n // Handle websocket messages\n logger.trace(`${message.type} websocket callback`, message);\n const recognitionContext = recognizerContext.recognitionContexts[recognizerContext.recognitionContexts.length - 1];\n logger.debug('Current recognition context', recognitionContext);\n\n switch (message.type) {\n case 'open' :\n NetworkWSInterface.send(recognizerContext, buildInitMessage(recognizerContext.editor.configuration));\n break;\n case 'message' :\n logger.trace('Receiving message', message.data.type);\n switch (message.data.type) {\n case 'hmacChallenge' :\n NetworkWSInterface.send(recognizerContext, buildHmacMessage(recognizerContext.editor.configuration, message));\n break;\n case 'init' :\n recognizerContextRef.currentReconnectionCount = 0;\n recognizerContextRef.idle = true;\n recognizerContextRef.initialized = true;\n recognitionContext.callback(undefined, message.data);\n destructuredPromise.resolve(recognitionContext);\n break;\n case 'reset' :\n recognizerContextRef.idle = true;\n recognitionContext.callback(undefined, message.data);\n break;\n case 'mathResult' :\n case 'textResult' :\n recognizerContextRef.idle = true;\n if (message.data.instanceId) {\n if (recognizerContext.instanceId && recognizerContext.instanceId !== message.data.instanceId) {\n logger.debug(`Instance id switch from ${recognizerContext.instanceId} to ${message.data.instanceId} this is suspicious`);\n }\n recognizerContextRef.instanceId = message.data.instanceId;\n logger.debug('Memorizing instance id', message.data.instanceId);\n }\n recognitionContext.callback(undefined, message.data);\n break;\n case 'error' :\n logger.debug('Error detected stopping all recognition', message);\n if (recognitionContext) {\n recognitionContext.callback(message.data);\n } else {\n destructuredPromise.reject(Object.assign({}, message.data, { recoverable: false }));\n }\n break;\n default :\n logger.warn('This is something unexpected in current recognizer. Not the type of message we should have here.', message);\n }\n break;\n case 'error' :\n logger.debug('Error detected stopping all recognition', message);\n if (recognitionContext) {\n recognitionContext.callback(Object.assign({}, message, { recoverable: false }));\n } else {\n destructuredPromise.reject(Object.assign({}, message, { recoverable: false }));\n }\n break;\n case 'close' :\n logger.debug('Close detected stopping all recognition', message);\n recognizerContextRef.initialized = false;\n if (recognitionContext) {\n recognitionContext.callback(undefined, message);\n } else {\n destructuredPromise.reject(message);\n }\n break;\n default :\n logger.warn('This is something unexpected in current recognizer. Not the type of message we should have here.', message);\n }\n };\n}\n", - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSBuilder.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 330, - "kind": "function", - "name": "buildHmacMessage", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSBuilder.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSBuilder.js~buildHmacMessage", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSBuilder.js", - "importStyle": null, - "description": "A CDK v3 websocket dialog have this sequence :\n---------- Client ------------------------------------- Server ----------------------------------\ninit (send the applicationKey) ================>\n <=========== hmacChallenge\nanswerToHmacChallenge (send the hmac) =========>\n <=========== init\nstart (send the parameters and first strokes ) ===============>\n <=========== recognition with instance id\ncontinue (send the other strokes ) ============>\n <=========== recognition", - "lineNumber": 20, - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - }, - { - "name": "message", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"applicationKey\": *, \"challenge\": *, \"hmac\": *}" - ] - } - }, - { - "__docId__": 331, - "kind": "function", - "name": "buildInitMessage", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSBuilder.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSBuilder.js~buildInitMessage", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSBuilder.js", - "importStyle": null, - "description": null, - "lineNumber": 29, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"applicationKey\": *}" - ] - } - }, - { - "__docId__": 332, - "kind": "function", - "name": "buildWebSocketCallback", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSBuilder.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSBuilder.js~buildWebSocketCallback", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSBuilder.js", - "importStyle": "{buildWebSocketCallback}", - "description": "This function bind the right behaviour when a message is receive by the websocket.", - "lineNumber": 42, - "params": [ - { - "nullable": null, - "types": [ - "DestructuredPromise" - ], - "spread": false, - "optional": false, - "name": "destructuredPromise", - "description": "" - }, - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - } - ], - "return": { - "nullable": null, - "types": [ - "function" - ], - "spread": false, - "description": "Callback to handle WebSocket results" - } - }, - { - "__docId__": 333, - "kind": "file", - "name": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "content": "import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as Cdkv3WSWebsocketBuilder from './Cdkv3WSBuilder';\nimport * as CdkWSRecognizerUtil from '../CdkWSRecognizerUtil';\nimport * as DefaultRecognizer from '../../DefaultRecognizer';\nimport * as CdkCommonUtil from '../../common/CdkCommonUtil';\nimport * as Cdkv3CommonMathRecognizer from '../../common/v3/Cdkv3CommonMathRecognizer';\n\nexport { close } from '../CdkWSRecognizerUtil';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const mathWebSocketV3Configuration = {\n types: [Constants.RecognitionType.MATH],\n protocol: Constants.Protocol.WEBSOCKET,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [Constants.Trigger.POINTER_UP]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return mathWebSocketV3Configuration;\n}\n\nfunction buildMathInput(recognizerContext, model) {\n InkModel.updateModelSentPosition(model);\n if (recognizerContext.lastPositions.lastSentPosition < 0) {\n const configuration = recognizerContext.editor.configuration;\n return {\n type: 'start',\n parameters: configuration.recognitionParams.v3.mathParameter,\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n };\n }\n\n return {\n type: 'continue',\n components: InkModel.extractPendingStrokes(model, -1).map(stroke => StrokeComponent.toJSON(stroke))\n };\n}\n\nfunction buildResetMessage(model) {\n InkModel.resetModelPositions(model);\n return {\n type: 'reset'\n };\n}\n\nconst mathCallback = (model, err, res, callback) => {\n if (res) {\n if (res.type === 'init') {\n return callback(err, model, Constants.EventType.LOADED, Constants.EventType.IDLE);\n }\n if (res.type === 'close') {\n return callback(err, model, Constants.EventType.CHANGED);\n }\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.exports = CdkCommonUtil.extractExports(modelReference);\n modelReference.recognizedSymbols = Cdkv3CommonMathRecognizer.extractRecognizedSymbols(modelReference);\n return callback(err, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n }\n return callback(err, model);\n};\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model: InkModel.resetModelPositions(model),\n callback: (err, res) => mathCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.init('/api/v3.0/recognition/ws/math', recognizerContextRef, Cdkv3WSWebsocketBuilder.buildWebSocketCallback, init)\n .catch((err) => {\n if (RecognizerContext.shouldAttemptImmediateReconnect(recognizerContext) && recognizerContext.reconnect) {\n logger.info('Attempting a reconnect', recognizerContext.currentReconnectionCount);\n recognizerContext.reconnect(recognizerContext, model, callback);\n } else {\n logger.error('Unable to init', err);\n callback(err, model);\n }\n });\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\n// eslint-disable-next-line no-underscore-dangle\nexport function export_(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => mathCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildMathInput, recognizerContext, model)\n .catch(exception => CdkWSRecognizerUtil.retry(export_, recognizerContext, model, callback));\n}\n\n/**\n * Reset the recognition context\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function reset(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => mathCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildResetMessage, model)\n .catch(exception => CdkWSRecognizerUtil.retry(reset, recognizerContext, model, callback));\n}\n\n/**\n * Clear server context. Currently nothing to do there.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n DefaultRecognizer.clear(recognizerContext, model, (err, res, ...types) => {\n reset(recognizerContext, res, (err1, res1) => logger.trace('Session reset'));\n callback(err, res, ...types);\n });\n}\n", - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 334, - "kind": "variable", - "name": "mathWebSocketV3Configuration", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js~mathWebSocketV3Configuration", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "importStyle": "{mathWebSocketV3Configuration}", - "description": "Recognizer configuration", - "lineNumber": 18, - "type": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 335, - "kind": "function", - "name": "getInfo", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js~getInfo", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "importStyle": "{getInfo}", - "description": "Get the configuration supported by this recognizer", - "lineNumber": 31, - "params": [], - "return": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 336, - "kind": "function", - "name": "buildMathInput", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js~buildMathInput", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 35, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "recognizerContext", - "types": [ - "*" - ] - }, - { - "name": "model", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"components\": *}" - ] - } - }, - { - "__docId__": 337, - "kind": "function", - "name": "buildResetMessage", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js~buildResetMessage", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 52, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "model", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string}" - ] - } - }, - { - "__docId__": 338, - "kind": "function", - "name": "mathCallback", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js~mathCallback", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 59, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "err", - "types": [ - "*" - ] - }, - { - "name": "res", - "types": [ - "*" - ] - }, - { - "name": "callback", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 339, - "kind": "function", - "name": "init", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js~init", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "importStyle": "{init}", - "description": "Initialize recognition", - "lineNumber": 82, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 340, - "kind": "function", - "name": "export_", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js~export_", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "importStyle": "{export_}", - "description": "Export content", - "lineNumber": 106, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 341, - "kind": "function", - "name": "reset", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js~reset", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "importStyle": "{reset}", - "description": "Reset the recognition context", - "lineNumber": 121, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 342, - "kind": "function", - "name": "clear", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js~clear", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js", - "importStyle": "{clear}", - "description": "Clear server context. Currently nothing to do there.", - "lineNumber": 136, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 343, - "kind": "file", - "name": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "content": "import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport Constants from '../../../configuration/Constants';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as StrokeComponent from '../../../model/StrokeComponent';\nimport * as Cdkv3WSWebsocketBuilder from './Cdkv3WSBuilder';\nimport * as CdkWSRecognizerUtil from '../CdkWSRecognizerUtil';\nimport * as DefaultRecognizer from '../../DefaultRecognizer';\nimport * as Cdkv3CommonTextRecognizer from '../../common/v3/Cdkv3CommonTextRecognizer';\n\nexport { close } from '../CdkWSRecognizerUtil';\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const textWebSocketV3Configuration = {\n types: [Constants.RecognitionType.TEXT],\n protocol: Constants.Protocol.WEBSOCKET,\n apiVersion: 'V3',\n availableTriggers: {\n exportContent: [Constants.Trigger.POINTER_UP]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return textWebSocketV3Configuration;\n}\n\nfunction buildTextInput(recognizerContext, model) {\n InkModel.updateModelSentPosition(model);\n if (recognizerContext.lastPositions.lastSentPosition < 0) {\n const configuration = recognizerContext.editor.configuration;\n return {\n type: 'start',\n textParameter: configuration.recognitionParams.v3.textParameter,\n inputUnits: [{\n textInputType: 'MULTI_LINE_TEXT',\n components: model.rawStrokes.map(stroke => StrokeComponent.toJSON(stroke))\n }]\n };\n }\n\n return {\n type: 'continue',\n inputUnits: [{\n textInputType: 'MULTI_LINE_TEXT',\n components: InkModel.extractPendingStrokes(model, -1).map(stroke => StrokeComponent.toJSON(stroke))\n }]\n };\n}\n\nfunction buildResetMessage(model) {\n InkModel.resetModelPositions(model);\n return {\n type: 'reset'\n };\n}\n\nconst textCallback = (model, err, res, callback) => {\n if (res) {\n if (res.type === 'init') {\n return callback(err, model, Constants.EventType.LOADED, Constants.EventType.IDLE);\n }\n if (res.type === 'close') {\n return callback(err, model, Constants.EventType.CHANGED);\n }\n const modelReference = InkModel.updateModelReceivedPosition(model);\n modelReference.rawResults.exports = res;\n modelReference.exports = Cdkv3CommonTextRecognizer.extractExports(model);\n return callback(err, modelReference, Constants.EventType.EXPORTED, Constants.EventType.IDLE);\n }\n return callback(err, model);\n};\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model: InkModel.resetModelPositions(model),\n callback: (err, res) => textCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.init('/api/v3.0/recognition/ws/text', recognizerContextRef, Cdkv3WSWebsocketBuilder.buildWebSocketCallback, init)\n .catch((err) => {\n if (RecognizerContext.shouldAttemptImmediateReconnect(recognizerContext) && recognizerContext.reconnect) {\n logger.info('Attempting a reconnect', recognizerContext.currentReconnectionCount);\n recognizerContext.reconnect(recognizerContext, model, callback);\n } else {\n logger.error('Unable to init', err);\n callback(err, model);\n }\n });\n}\n\n/**\n * Export content\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\n// eslint-disable-next-line no-underscore-dangle\nexport function export_(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => textCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildTextInput, recognizerContext, model)\n .catch(exception => CdkWSRecognizerUtil.retry(export_, recognizerContext, model, callback));\n}\n\n/**\n * Reset the recognition context\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function reset(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => textCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildResetMessage, model)\n .catch(exception => CdkWSRecognizerUtil.retry(reset, recognizerContext, model, callback));\n}\n\n/**\n * Clear server context. Currently nothing to do there.\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n DefaultRecognizer.clear(recognizerContext, model, (err, res, ...types) => {\n reset(recognizerContext, res, (err1, res1) => logger.trace('Session reset'));\n callback(err, res, ...types);\n });\n}\n", - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 344, - "kind": "variable", - "name": "textWebSocketV3Configuration", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js~textWebSocketV3Configuration", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "importStyle": "{textWebSocketV3Configuration}", - "description": "Recognizer configuration", - "lineNumber": 18, - "type": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 345, - "kind": "function", - "name": "getInfo", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js~getInfo", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "importStyle": "{getInfo}", - "description": "Get the configuration supported by this recognizer", - "lineNumber": 31, - "params": [], - "return": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 346, - "kind": "function", - "name": "buildTextInput", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js~buildTextInput", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 35, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "recognizerContext", - "types": [ - "*" - ] - }, - { - "name": "model", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"inputUnits\": *}" - ] - } - }, - { - "__docId__": 347, - "kind": "function", - "name": "buildResetMessage", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js~buildResetMessage", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 58, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "model", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string}" - ] - } - }, - { - "__docId__": 348, - "kind": "function", - "name": "textCallback", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js~textCallback", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 65, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "err", - "types": [ - "*" - ] - }, - { - "name": "res", - "types": [ - "*" - ] - }, - { - "name": "callback", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 349, - "kind": "function", - "name": "init", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js~init", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "importStyle": "{init}", - "description": "Initialize recognition", - "lineNumber": 87, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 350, - "kind": "function", - "name": "export_", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js~export_", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "importStyle": "{export_}", - "description": "Export content", - "lineNumber": 111, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 351, - "kind": "function", - "name": "reset", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js~reset", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "importStyle": "{reset}", - "description": "Reset the recognition context", - "lineNumber": 126, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 352, - "kind": "function", - "name": "clear", - "memberof": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js~clear", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js", - "importStyle": "{clear}", - "description": "Clear server context. Currently nothing to do there.", - "lineNumber": 141, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 353, - "kind": "file", - "name": "src/recognizer/websocket/v4/Cdkv4WSBuilder.js", - "content": "import { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport * as CryptoHelper from '../../CryptoHelper';\nimport * as NetworkWSInterface from '../networkWSInterface';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\n\nimport {\n buildNewContentPackageInput,\n buildRestoreIInkSessionInput,\n buildNewContentPart,\n buildOpenContentPart,\n buildConfiguration,\n buildSetTheme,\n buildSetPenStyle,\n buildSetPenStyleClasses\n} from './Cdkv4WSIInkRecognizer';\n\n/**\n * A CDK v4 websocket dialog have this sequence :\n * ---------- Client ------------------------------------- Server ----------------------------------\n * init (send the new content package) ================>\n * <=========== hmacChallenge\n * answerToHmacChallenge (send the hmac) =========>\n * newPart (send the parameters ) ===============>\n * <=========== update\n * addStrokes (send the strokes ) ============>\n * <=========== update\n */\n\nfunction buildHmacMessage(configuration, message) {\n return {\n type: 'hmac',\n hmac: CryptoHelper.computeHmac(message.data.hmacChallenge, configuration.recognitionParams.server.applicationKey, configuration.recognitionParams.server.hmacKey)\n };\n}\n\n/**\n * This function bind the right behaviour when a message is receive by the websocket.\n * @param {DestructuredPromise} destructuredPromise\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @return {function} Callback to handle WebSocket results\n */\nexport function buildWebSocketCallback(destructuredPromise, recognizerContext) {\n return (message) => {\n const recognizerContextRef = recognizerContext;\n // Handle websocket messages\n logger.trace(`${message.type} websocket callback`, message);\n const recognitionContext = recognizerContext.recognitionContexts[recognizerContext.recognitionContexts.length - 1];\n logger.debug('Current recognition context', recognitionContext);\n\n switch (message.type) {\n case 'open':\n if (recognizerContext.sessionId) {\n NetworkWSInterface.send(recognizerContext, buildRestoreIInkSessionInput(recognizerContext.editor.configuration, recognizerContext.editor.domElement, recognizerContext.sessionId));\n } else {\n NetworkWSInterface.send(recognizerContext, buildNewContentPackageInput(recognizerContext.editor.configuration, recognizerContext.editor.domElement));\n }\n break;\n case 'message':\n logger.debug(`Receiving ${message.data.type} message`, message);\n switch (message.data.type) {\n case 'ack':\n if (message.data.hmacChallenge) {\n NetworkWSInterface.send(recognizerContext, buildHmacMessage(recognizerContext.editor.configuration, message));\n }\n if (message.data.iinkSessionId) {\n recognizerContextRef.sessionId = message.data.iinkSessionId;\n }\n break;\n case 'newPart':\n break;\n case 'contentPackageDescription':\n recognizerContextRef.currentReconnectionCount = 0;\n recognizerContextRef.contentPartCount = message.data.contentPartCount;\n NetworkWSInterface.send(recognizerContext, buildConfiguration(recognizerContext.editor.configuration));\n if (recognizerContextRef.currentPartId) { // FIXME: Ugly hack to resolve init promise after opening part\n NetworkWSInterface.send(recognizerContext, buildOpenContentPart(recognizerContext.editor.configuration, recognizerContext.currentPartId));\n } else {\n NetworkWSInterface.send(recognizerContext, buildNewContentPart(recognizerContext.editor.configuration));\n }\n break;\n case 'partChanged':\n if (message.data.partId) {\n recognizerContextRef.currentPartId = message.data.partId;\n }\n recognizerContextRef.initialized = true;\n NetworkWSInterface.send(recognizerContext, buildSetTheme(recognizerContext.editor.theme));\n NetworkWSInterface.send(recognizerContext, buildSetPenStyle(recognizerContext.editor.penStyle));\n NetworkWSInterface.send(recognizerContext, buildSetPenStyleClasses(recognizerContext.editor.penStyleClasses));\n recognitionContext.callback(undefined, message.data);\n destructuredPromise.resolve(recognitionContext);\n break;\n case 'contentChanged':\n if (message.data.canUndo !== undefined) {\n recognizerContextRef.canUndo = message.data.canUndo;\n }\n if (message.data.canRedo !== undefined) {\n recognizerContextRef.canRedo = message.data.canRedo;\n }\n if (message.data.empty !== undefined) {\n recognizerContextRef.isEmpty = message.data.empty;\n }\n if (message.data.possibleUndoCount !== undefined) {\n recognizerContextRef.possibleUndoCount = message.data.possibleUndoCount;\n }\n if (message.data.undoStackIndex !== undefined) {\n recognizerContextRef.undoStackIndex = message.data.undoStackIndex;\n }\n recognitionContext.callback(undefined, message.data);\n break;\n case 'exported':\n recognitionContext.callback(undefined, message.data);\n break;\n case 'svgPatch':\n recognitionContext.callback(undefined, message.data);\n break;\n case 'supportedImportMimeTypes':\n recognizerContextRef.supportedImportMimeTypes = message.data.mimeTypes;\n recognitionContext.callback(undefined, message.data);\n break;\n case 'fileChunkAck':\n recognitionContext.callback(undefined, message.data);\n break;\n case 'idle':\n recognizerContextRef.idle = true;\n recognitionContext.callback(undefined, message.data);\n break;\n case 'error':\n logger.debug('Error detected stopping all recognition', message);\n if (recognitionContext) {\n recognitionContext.callback(message.data);\n } else {\n destructuredPromise.reject(Object.assign({}, message.data, { recoverable: false }));\n }\n break;\n default :\n logger.warn('This is something unexpected in current recognizer. Not the type of message we should have here.', message);\n }\n break;\n case 'error':\n logger.debug('Error detected stopping all recognition', message);\n if (recognitionContext) {\n recognitionContext.callback(Object.assign({}, message, { recoverable: false }));\n } else {\n destructuredPromise.reject(Object.assign({}, message, { recoverable: false }));\n }\n break;\n case 'close':\n logger.debug('Close detected stopping all recognition', message);\n recognizerContextRef.initialized = false;\n recognizerContextRef.canRedo = false;\n recognizerContextRef.canUndo = false;\n if (recognitionContext) {\n recognitionContext.callback(message);\n } else {\n destructuredPromise.reject(message);\n }\n break;\n default :\n logger.warn('This is something unexpected in current recognizer. Not the type of message we should have here.', message);\n }\n };\n}\n", - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSBuilder.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 354, - "kind": "function", - "name": "buildHmacMessage", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSBuilder.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSBuilder.js~buildHmacMessage", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSBuilder.js", - "importStyle": null, - "description": "A CDK v4 websocket dialog have this sequence :\n---------- Client ------------------------------------- Server ----------------------------------\ninit (send the new content package) ================>\n <=========== hmacChallenge\nanswerToHmacChallenge (send the hmac) =========>\nnewPart (send the parameters ) ===============>\n <=========== update\naddStrokes (send the strokes ) ============>\n <=========== update", - "lineNumber": 29, - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - }, - { - "name": "message", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"hmac\": *}" - ] - } - }, - { - "__docId__": 355, - "kind": "function", - "name": "buildWebSocketCallback", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSBuilder.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSBuilder.js~buildWebSocketCallback", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSBuilder.js", - "importStyle": "{buildWebSocketCallback}", - "description": "This function bind the right behaviour when a message is receive by the websocket.", - "lineNumber": 42, - "params": [ - { - "nullable": null, - "types": [ - "DestructuredPromise" - ], - "spread": false, - "optional": false, - "name": "destructuredPromise", - "description": "" - }, - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - } - ], - "return": { - "nullable": null, - "types": [ - "function" - ], - "spread": false, - "description": "Callback to handle WebSocket results" - } - }, - { - "__docId__": 356, - "kind": "file", - "name": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "content": "import uuid from 'uuid-js';\nimport { recognizerLogger as logger } from '../../../configuration/LoggerConfig';\nimport Constants from '../../../configuration/Constants';\nimport * as DefaultTheme from '../../../configuration/DefaultTheme';\nimport * as DefaultPenStyle from '../../../configuration/DefaultPenStyle';\nimport * as InkModel from '../../../model/InkModel';\nimport * as RecognizerContext from '../../../model/RecognizerContext';\nimport * as DefaultRecognizer from '../../DefaultRecognizer';\nimport * as Cdkv4WSWebsocketBuilder from './Cdkv4WSBuilder';\nimport * as CdkWSRecognizerUtil from '../CdkWSRecognizerUtil';\n\nexport { close } from '../CdkWSRecognizerUtil';\n\nfunction readBlob(blob) {\n const fileReader = new FileReader();\n return new Promise((resolve, reject) => {\n fileReader.onload = event => resolve(event.target.result);\n fileReader.onerror = () => reject(this);\n fileReader.readAsText(blob);\n });\n}\n\n\nfunction getDPI(element) {\n // const startDpi = 56;\n // for (let dpi = startDpi; dpi < 2000; dpi++) {\n // if (window.matchMedia(`(max-resolution: ${dpi}dpi)`).matches === true) {\n // return dpi;\n // }\n // }\n // return startDpi;\n return 96;\n}\n\n/**\n * Recognizer configuration\n * @type {RecognizerInfo}\n */\nexport const IInkWebSocketV4Configuration = {\n types: [Constants.RecognitionType.MATH, Constants.RecognitionType.TEXT, Constants.RecognitionType.DIAGRAM, Constants.RecognitionType.NEBO],\n protocol: Constants.Protocol.WEBSOCKET,\n apiVersion: 'V4',\n availableTriggers: {\n exportContent: [Constants.Trigger.POINTER_UP, Constants.Trigger.DEMAND],\n addStrokes: [Constants.Trigger.POINTER_UP]\n }\n};\n\n/**\n * Get the configuration supported by this recognizer\n * @return {RecognizerInfo}\n */\nexport function getInfo() {\n return IInkWebSocketV4Configuration;\n}\n\nexport function buildNewContentPackageInput(configuration, element) {\n return {\n type: 'newContentPackage',\n applicationKey: configuration.recognitionParams.server.applicationKey,\n xDpi: getDPI(element),\n yDpi: getDPI(element),\n viewSizeHeight: element.clientHeight < configuration.renderingParams.minHeight ? configuration.renderingParams.minHeight : element.clientHeight,\n viewSizeWidth: element.clientWidth < configuration.renderingParams.minWidth ? configuration.renderingParams.minWidth : element.clientWidth\n };\n}\n\nexport function buildRestoreIInkSessionInput(configuration, element, sessionId) {\n return {\n type: 'restoreIInkSession',\n iinkSessionId: sessionId,\n applicationKey: configuration.recognitionParams.server.applicationKey,\n xDpi: getDPI(element),\n yDpi: getDPI(element),\n viewSizeHeight: element.clientHeight < configuration.renderingParams.minHeight ? configuration.renderingParams.minHeight : element.clientHeight,\n viewSizeWidth: element.clientWidth < configuration.renderingParams.minWidth ? configuration.renderingParams.minWidth : element.clientWidth\n };\n}\n\nexport function buildNewContentPart(configuration) {\n return {\n type: 'newContentPart',\n contentType: configuration.recognitionParams.type,\n mimeTypes: (configuration.triggers.exportContent !== Constants.Trigger.DEMAND) ?\n configuration.recognitionParams.v4[`${configuration.recognitionParams.type.toLowerCase()}`].mimeTypes : undefined\n };\n}\n\nexport function buildOpenContentPart(configuration, partId) {\n return {\n type: 'openContentPart',\n id: partId,\n mimeTypes: (configuration.triggers.exportContent !== Constants.Trigger.DEMAND) ?\n configuration.recognitionParams.v4[`${configuration.recognitionParams.type.toLowerCase()}`].mimeTypes : undefined\n };\n}\n\nexport function buildConfiguration(configuration) {\n return Object.assign({ type: 'configuration' }, configuration.recognitionParams.v4);\n}\n\nfunction buildAddStrokes(recognizerContext, model) {\n const strokes = InkModel.extractPendingStrokes(model, recognizerContext.lastPositions.lastSentPosition + 1);\n if (strokes.length > 0) {\n InkModel.updateModelSentPosition(model);\n return {\n type: 'addStrokes',\n strokes: strokes.map(stroke => Object.assign({}, {\n id: stroke.id,\n pointerType: stroke.pointerType,\n pointerId: stroke.pointerId,\n x: stroke.x,\n y: stroke.y,\n t: stroke.t,\n p: stroke.p\n }))\n };\n }\n return undefined;\n}\n\nfunction buildUndo() {\n return {\n type: 'undo'\n };\n}\n\nfunction buildRedo() {\n return {\n type: 'redo'\n };\n}\n\nfunction buildClear() {\n return {\n type: 'clear'\n };\n}\n\nfunction buildConvert(state) {\n return {\n type: 'convert',\n conversionState: state\n };\n}\n\nfunction buildZoom(value) {\n return {\n type: 'zoom',\n zoom: value\n };\n}\n\nfunction buildResize(element, minHeight = 0, minWidth = 0) {\n return {\n type: 'changeViewSize',\n height: element.clientHeight < minHeight ? minHeight : element.clientHeight,\n width: element.clientWidth < minWidth ? minWidth : element.clientWidth\n };\n}\n\nfunction buildExport(configuration, partId, requestedMimeType) {\n let usedMimeType;\n if (requestedMimeType && Object.keys(requestedMimeType).length !== 0) {\n usedMimeType = requestedMimeType;\n } else {\n usedMimeType = configuration.recognitionParams.v4[`${configuration.recognitionParams.type.toLowerCase()}`].mimeTypes;\n }\n\n return {\n type: 'export',\n partId,\n mimeTypes: usedMimeType\n };\n}\n\nfunction buildImportFile(id, mimetype) {\n return {\n type: 'importFile',\n importFileId: id,\n mimeType: mimetype\n };\n}\n\nfunction buildImportChunk(id, data, lastChunk) {\n return {\n type: 'fileChunk',\n importFileId: id,\n data,\n lastChunk\n };\n}\n\nfunction buildPointerEvents(events) {\n return Object.assign({ type: 'pointerEvents' }, events);\n}\n\nfunction buildWaitForIdle() {\n return {\n type: 'waitForIdle'\n };\n}\n\nfunction buildGetSupportedImportMimeTypes() {\n return {\n type: 'getSupportedImportMimeTypes'\n };\n}\n\nexport function buildSetPenStyle(penStyle) {\n return {\n type: 'setPenStyle',\n style: penStyle ? DefaultPenStyle.toCSS(penStyle) : ''\n };\n}\n\nexport function buildSetPenStyleClasses(penStyleClasses) {\n return {\n type: 'setPenStyleClasses',\n styleClasses: penStyleClasses\n };\n}\n\nexport function buildSetTheme(theme) {\n return {\n type: 'setTheme',\n theme: DefaultTheme.toCSS(theme)\n };\n}\n\nconst iinkCallback = (model, err, res, callback) => {\n const modelReference = InkModel.updateModelReceivedPosition(model);\n if (res) {\n if (res.updates !== undefined) {\n if (modelReference.recognizedSymbols) {\n modelReference.recognizedSymbols.push(res);\n } else {\n modelReference.recognizedSymbols = [res];\n }\n return callback(err, modelReference, Constants.EventType.RENDERED);\n }\n if (res.exports !== undefined) {\n modelReference.rawResults.exports = res;\n modelReference.exports = res.exports;\n return callback(err, modelReference, Constants.EventType.EXPORTED);\n }\n\n if ((res.canUndo !== undefined) || (res.canRedo !== undefined)) {\n return callback(err, modelReference, Constants.EventType.CHANGED);\n }\n\n if (res.type === 'supportedImportMimeTypes') {\n return callback(err, modelReference, Constants.EventType.SUPPORTED_IMPORT_MIMETYPES);\n }\n\n if (res.type === 'partChanged') {\n return callback(err, modelReference, Constants.EventType.LOADED);\n }\n\n if (res.type === 'idle') {\n return callback(err, modelReference, Constants.EventType.IDLE);\n }\n\n if (res.type === 'close') {\n return callback(err, modelReference, Constants.EventType.CHANGED);\n }\n }\n return callback(err, modelReference);\n};\n\n/**\n * Initialize recognition\n * @param {RecognizerContext} recognizerContext Current recognizer context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function init(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model: InkModel.updateModelSentPosition(model, model.lastPositions.lastReceivedPosition),\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.init('/api/v4.0/iink/document', recognizerContextRef, Cdkv4WSWebsocketBuilder.buildWebSocketCallback, init)\n .catch((err) => {\n if (RecognizerContext.shouldAttemptImmediateReconnect(recognizerContext) && recognizerContext.reconnect) {\n logger.info('Attempting a reconnect', recognizerContext.currentReconnectionCount);\n recognizerContext.reconnect(recognizerContext, model, callback);\n } else {\n logger.error('Unable to reconnect', err);\n iinkCallback(model, err, undefined, callback);\n }\n });\n}\n\n/**\n * Create a new content part\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function newContentPart(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildNewContentPart, recognizerContext.editor.configuration)\n .catch(exception => CdkWSRecognizerUtil.retry(newContentPart, recognizerContext, model, callback));\n}\n\n/**\n * Open the recognizer context content part\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function openContentPart(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildOpenContentPart, recognizerContext.editor.configuration, recognizerContext.currentPartId)\n .catch(exception => CdkWSRecognizerUtil.retry(openContentPart, recognizerContext, model, callback));\n}\n\nexport function sendConfiguration(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildConfiguration, recognizerContext.editor.configuration)\n .catch(exception => CdkWSRecognizerUtil.retry(sendConfiguration, recognizerContext, model, callback));\n}\n\n/**\n * Pointer Events\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {PointerEvents} events to be imported\n * @param {RecognizerCallback} callback\n */\nexport function pointerEvents(recognizerContext, model, events, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildPointerEvents, events)\n .catch(exception => CdkWSRecognizerUtil.retry(pointerEvents, recognizerContext, model, events, callback));\n}\n\n/**\n * Add strokes to the model\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function addStrokes(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildAddStrokes, recognizerContext, model)\n .catch(exception => CdkWSRecognizerUtil.retry(addStrokes, recognizerContext, model, callback));\n}\n\n/**\n * Undo last action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function undo(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildUndo)\n .catch(exception => CdkWSRecognizerUtil.retry(undo, recognizerContext, model, callback));\n}\n\n/**\n * Redo last action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function redo(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildRedo)\n .catch(exception => CdkWSRecognizerUtil.retry(redo, recognizerContext, model, callback));\n}\n\n/**\n * Clear action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function clear(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => {\n DefaultRecognizer.clear(recognizerContext, model, (noerr, newModel, ...attrs) => {\n logger.debug('The model after clear is :', newModel);\n iinkCallback(newModel, err, res, callback);\n });\n }\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildClear)\n .catch(exception => CdkWSRecognizerUtil.retry(clear, recognizerContext, model, callback));\n}\n\n/**\n * Convert action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n * @param {String} conversionState Conversion State, by default DigitalEdit\n */\nexport function convert(recognizerContext, model, callback, conversionState) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildConvert, conversionState)\n .catch(exception => CdkWSRecognizerUtil.retry(convert, recognizerContext, model, callback, conversionState));\n}\n\n/**\n * Export action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n * @param {Array[String]} requestedMimeTypes\n */\n// eslint-disable-next-line no-underscore-dangle\nexport function export_(recognizerContext, model, callback, requestedMimeTypes) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildExport, recognizerContext.editor.configuration, recognizerContext.currentPartId, requestedMimeTypes)\n .catch(exception => CdkWSRecognizerUtil.retry(export_, recognizerContext, model, callback, requestedMimeTypes));\n}\n\n/**\n * Import action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Blob} data Import data\n * @param {RecognizerCallback} callback\n */\n// eslint-disable-next-line no-underscore-dangle\nexport function import_(recognizerContext, model, data, callback) {\n const recognitionContext = {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback),\n importFileId: uuid.create(4).toString()\n };\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, recognitionContext);\n\n const chunkSize = recognizerContext.editor.configuration.recognitionParams.server.websocket.fileChunkSize;\n\n for (let i = 0; i < data.size; i += chunkSize) {\n if (i === 0) {\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildImportFile, recognitionContext.importFileId, data.type)\n .catch(exception => CdkWSRecognizerUtil.retry(import_, recognizerContext, model, data, callback));\n }\n const blobPart = data.slice(i, chunkSize, data.type);\n readBlob(blobPart).then((res) => {\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildImportChunk, recognitionContext.importFileId, res, i + chunkSize > data.size)\n .catch(exception => CdkWSRecognizerUtil.retry(import_, recognizerContext, model, data, callback));\n });\n }\n}\n\nexport function getSupportedImportMimeTypes(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildGetSupportedImportMimeTypes)\n .catch(exception => CdkWSRecognizerUtil.retry(getSupportedImportMimeTypes, recognizerContext, model, callback));\n}\n\n/**\n * WaitForIdle action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {RecognizerCallback} callback\n */\nexport function waitForIdle(recognizerContext, model, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildWaitForIdle)\n .catch(exception => CdkWSRecognizerUtil.retry(waitForIdle, recognizerContext, model, callback));\n}\n\n/**\n * Resize\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Element} element Current element\n * @param {RecognizerCallback} callback\n */\nexport function resize(recognizerContext, model, element, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildResize, element, recognizerContext.editor.configuration.renderingParams.minHeight, recognizerContext.editor.configuration.renderingParams.minWidth)\n .catch(exception => CdkWSRecognizerUtil.retry(resize, recognizerContext, model, callback));\n}\n\n/**\n * Zoom action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Number} value=10 Zoom value\n * @param {RecognizerCallback} callback\n */\nexport function zoom(recognizerContext, model, value = 10, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildZoom, value)\n .catch(exception => CdkWSRecognizerUtil.retry(zoom, recognizerContext, model, callback));\n}\n\n/**\n * SetPenStyle action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {PenStyle} penStyle Current penStyle\n * @param {RecognizerCallback} callback\n */\nexport function setPenStyle(recognizerContext, model, penStyle, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildSetPenStyle, penStyle)\n .catch(exception => CdkWSRecognizerUtil.retry(setPenStyle, recognizerContext, model, callback));\n}\n\n/**\n * setPenStyleClasses action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {String} penStyleClasses Current penStyleClasses\n * @param {RecognizerCallback} callback\n */\nexport function setPenStyleClasses(recognizerContext, model, penStyleClasses, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildSetPenStyleClasses, penStyleClasses)\n .catch(exception => CdkWSRecognizerUtil.retry(setPenStyleClasses, recognizerContext, model, callback));\n}\n\n/**\n * SetTheme action\n * @param {RecognizerContext} recognizerContext Current recognition context\n * @param {Model} model Current model\n * @param {Theme} theme Current theme\n * @param {RecognizerCallback} callback\n */\nexport function setTheme(recognizerContext, model, theme, callback) {\n const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, {\n model,\n callback: (err, res) => iinkCallback(model, err, res, callback)\n });\n CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildSetTheme, theme)\n .catch(exception => CdkWSRecognizerUtil.retry(setTheme, recognizerContext, model, callback));\n}\n", - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 357, - "kind": "function", - "name": "readBlob", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~readBlob", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 14, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "blob", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 358, - "kind": "function", - "name": "getDPI", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~getDPI", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 24, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "element", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "number" - ] - } - }, - { - "__docId__": 359, - "kind": "variable", - "name": "IInkWebSocketV4Configuration", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~IInkWebSocketV4Configuration", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{IInkWebSocketV4Configuration}", - "description": "Recognizer configuration", - "lineNumber": 39, - "type": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 360, - "kind": "function", - "name": "getInfo", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~getInfo", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{getInfo}", - "description": "Get the configuration supported by this recognizer", - "lineNumber": 53, - "params": [], - "return": { - "nullable": null, - "types": [ - "RecognizerInfo" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 361, - "kind": "function", - "name": "buildNewContentPackageInput", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildNewContentPackageInput", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{buildNewContentPackageInput}", - "description": null, - "lineNumber": 57, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - }, - { - "name": "element", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"applicationKey\": *, \"xDpi\": *, \"yDpi\": *, \"viewSizeHeight\": *, \"viewSizeWidth\": *}" - ] - } - }, - { - "__docId__": 362, - "kind": "function", - "name": "buildRestoreIInkSessionInput", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildRestoreIInkSessionInput", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{buildRestoreIInkSessionInput}", - "description": null, - "lineNumber": 68, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - }, - { - "name": "element", - "types": [ - "*" - ] - }, - { - "name": "sessionId", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"iinkSessionId\": *, \"applicationKey\": *, \"xDpi\": *, \"yDpi\": *, \"viewSizeHeight\": *, \"viewSizeWidth\": *}" - ] - } - }, - { - "__docId__": 363, - "kind": "function", - "name": "buildNewContentPart", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildNewContentPart", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{buildNewContentPart}", - "description": null, - "lineNumber": 80, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"contentType\": *, \"mimeTypes\": *}" - ] - } - }, - { - "__docId__": 364, - "kind": "function", - "name": "buildOpenContentPart", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildOpenContentPart", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{buildOpenContentPart}", - "description": null, - "lineNumber": 89, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - }, - { - "name": "partId", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"id\": *, \"mimeTypes\": *}" - ] - } - }, - { - "__docId__": 365, - "kind": "function", - "name": "buildConfiguration", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildConfiguration", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{buildConfiguration}", - "description": null, - "lineNumber": 98, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 366, - "kind": "function", - "name": "buildAddStrokes", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildAddStrokes", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 102, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "recognizerContext", - "types": [ - "*" - ] - }, - { - "name": "model", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 367, - "kind": "function", - "name": "buildUndo", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildUndo", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 122, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [], - "return": { - "types": [ - "{\"type\": string}" - ] - } - }, - { - "__docId__": 368, - "kind": "function", - "name": "buildRedo", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildRedo", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 128, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [], - "return": { - "types": [ - "{\"type\": string}" - ] - } - }, - { - "__docId__": 369, - "kind": "function", - "name": "buildClear", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildClear", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 134, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [], - "return": { - "types": [ - "{\"type\": string}" - ] - } - }, - { - "__docId__": 370, - "kind": "function", - "name": "buildConvert", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildConvert", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 140, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "state", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"conversionState\": *}" - ] - } - }, - { - "__docId__": 371, - "kind": "function", - "name": "buildZoom", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildZoom", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 147, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "value", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"zoom\": *}" - ] - } - }, - { - "__docId__": 372, - "kind": "function", - "name": "buildResize", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildResize", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 154, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "element", - "types": [ - "*" - ] - }, - { - "name": "minHeight", - "optional": true, - "types": [ - "number" - ], - "defaultRaw": 0, - "defaultValue": "0" - }, - { - "name": "minWidth", - "optional": true, - "types": [ - "number" - ], - "defaultRaw": 0, - "defaultValue": "0" - } - ], - "return": { - "types": [ - "{\"type\": string, \"height\": *, \"width\": *}" - ] - } - }, - { - "__docId__": 373, - "kind": "function", - "name": "buildExport", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildExport", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 162, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "configuration", - "types": [ - "*" - ] - }, - { - "name": "partId", - "types": [ - "*" - ] - }, - { - "name": "requestedMimeType", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"partId\": *, \"mimeTypes\": *}" - ] - } - }, - { - "__docId__": 374, - "kind": "function", - "name": "buildImportFile", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildImportFile", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 177, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "id", - "types": [ - "*" - ] - }, - { - "name": "mimetype", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"importFileId\": *, \"mimeType\": *}" - ] - } - }, - { - "__docId__": 375, - "kind": "function", - "name": "buildImportChunk", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildImportChunk", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 185, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "id", - "types": [ - "*" - ] - }, - { - "name": "data", - "types": [ - "*" - ] - }, - { - "name": "lastChunk", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"importFileId\": *, \"data\": *, \"lastChunk\": *}" - ] - } - }, - { - "__docId__": 376, - "kind": "function", - "name": "buildPointerEvents", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildPointerEvents", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 194, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "events", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 377, - "kind": "function", - "name": "buildWaitForIdle", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildWaitForIdle", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 198, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [], - "return": { - "types": [ - "{\"type\": string}" - ] - } - }, - { - "__docId__": 378, - "kind": "function", - "name": "buildGetSupportedImportMimeTypes", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildGetSupportedImportMimeTypes", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 204, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [], - "return": { - "types": [ - "{\"type\": string}" - ] - } - }, - { - "__docId__": 379, - "kind": "function", - "name": "buildSetPenStyle", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildSetPenStyle", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{buildSetPenStyle}", - "description": null, - "lineNumber": 210, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "penStyle", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"style\": *}" - ] - } - }, - { - "__docId__": 380, - "kind": "function", - "name": "buildSetPenStyleClasses", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildSetPenStyleClasses", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{buildSetPenStyleClasses}", - "description": null, - "lineNumber": 217, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "penStyleClasses", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"styleClasses\": *}" - ] - } - }, - { - "__docId__": 381, - "kind": "function", - "name": "buildSetTheme", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~buildSetTheme", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{buildSetTheme}", - "description": null, - "lineNumber": 224, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "theme", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"type\": string, \"theme\": *}" - ] - } - }, - { - "__docId__": 382, - "kind": "function", - "name": "iinkCallback", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~iinkCallback", - "access": null, - "export": false, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": null, - "description": null, - "lineNumber": 231, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "err", - "types": [ - "*" - ] - }, - { - "name": "res", - "types": [ - "*" - ] - }, - { - "name": "callback", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 383, - "kind": "function", - "name": "init", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~init", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{init}", - "description": "Initialize recognition", - "lineNumber": 277, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognizer context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 384, - "kind": "function", - "name": "newContentPart", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~newContentPart", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{newContentPart}", - "description": "Create a new content part", - "lineNumber": 300, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 385, - "kind": "function", - "name": "openContentPart", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~openContentPart", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{openContentPart}", - "description": "Open the recognizer context content part", - "lineNumber": 315, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 386, - "kind": "function", - "name": "sendConfiguration", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~sendConfiguration", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{sendConfiguration}", - "description": null, - "lineNumber": 324, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "recognizerContext", - "types": [ - "*" - ] - }, - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "callback", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 387, - "kind": "function", - "name": "pointerEvents", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~pointerEvents", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{pointerEvents}", - "description": "Pointer Events", - "lineNumber": 340, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "PointerEvents" - ], - "spread": false, - "optional": false, - "name": "events", - "description": "to be imported" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 388, - "kind": "function", - "name": "addStrokes", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~addStrokes", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{addStrokes}", - "description": "Add strokes to the model", - "lineNumber": 355, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 389, - "kind": "function", - "name": "undo", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~undo", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{undo}", - "description": "Undo last action", - "lineNumber": 370, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 390, - "kind": "function", - "name": "redo", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~redo", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{redo}", - "description": "Redo last action", - "lineNumber": 385, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 391, - "kind": "function", - "name": "clear", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~clear", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{clear}", - "description": "Clear action", - "lineNumber": 400, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 392, - "kind": "function", - "name": "convert", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~convert", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{convert}", - "description": "Convert action", - "lineNumber": 421, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "conversionState", - "description": "Conversion State, by default DigitalEdit" - } - ] - }, - { - "__docId__": 393, - "kind": "function", - "name": "export_", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~export_", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{export_}", - "description": "Export action", - "lineNumber": 438, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - }, - { - "nullable": null, - "types": [ - "Array[String]" - ], - "spread": false, - "optional": false, - "name": "requestedMimeTypes", - "description": "" - } - ] - }, - { - "__docId__": 394, - "kind": "function", - "name": "import_", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~import_", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{import_}", - "description": "Import action", - "lineNumber": 455, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Blob" - ], - "spread": false, - "optional": false, - "name": "data", - "description": "Import data" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 395, - "kind": "function", - "name": "getSupportedImportMimeTypes", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~getSupportedImportMimeTypes", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{getSupportedImportMimeTypes}", - "description": null, - "lineNumber": 478, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "recognizerContext", - "types": [ - "*" - ] - }, - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "callback", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 396, - "kind": "function", - "name": "waitForIdle", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~waitForIdle", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{waitForIdle}", - "description": "WaitForIdle action", - "lineNumber": 493, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 397, - "kind": "function", - "name": "resize", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~resize", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{resize}", - "description": "Resize", - "lineNumber": 509, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Element" - ], - "spread": false, - "optional": false, - "name": "element", - "description": "Current element" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 398, - "kind": "function", - "name": "zoom", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~zoom", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{zoom}", - "description": "Zoom action", - "lineNumber": 525, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "defaultValue": "10", - "defaultRaw": 10, - "name": "value", - "description": "Zoom value" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 399, - "kind": "function", - "name": "setPenStyle", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~setPenStyle", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{setPenStyle}", - "description": "SetPenStyle action", - "lineNumber": 541, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "PenStyle" - ], - "spread": false, - "optional": false, - "name": "penStyle", - "description": "Current penStyle" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 400, - "kind": "function", - "name": "setPenStyleClasses", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~setPenStyleClasses", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{setPenStyleClasses}", - "description": "setPenStyleClasses action", - "lineNumber": 557, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "penStyleClasses", - "description": "Current penStyleClasses" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 401, - "kind": "function", - "name": "setTheme", - "memberof": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js~setTheme", - "access": null, - "export": true, - "importPath": "myscript/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js", - "importStyle": "{setTheme}", - "description": "SetTheme action", - "lineNumber": 573, - "params": [ - { - "nullable": null, - "types": [ - "RecognizerContext" - ], - "spread": false, - "optional": false, - "name": "recognizerContext", - "description": "Current recognition context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Theme" - ], - "spread": false, - "optional": false, - "name": "theme", - "description": "Current theme" - }, - { - "nullable": null, - "types": [ - "RecognizerCallback" - ], - "spread": false, - "optional": false, - "name": "callback", - "description": "" - } - ] - }, - { - "__docId__": 402, - "kind": "file", - "name": "src/renderer/QuadraticUtils.js", - "content": "/** ===============================================================================================\n * Compute quadratics control points\n * ============================================================================================= */\n\n/**\n *\n * @param {{x: Number, y: Number, p: Number}} point\n * @param angle\n * @param width\n * @return {[{x: Number, y: Number},{x: Number, y: Number}]}\n */\nexport function computeLinksPoints(point, angle, width) {\n const radius = point.p * width;\n return [{\n x: (point.x - (Math.sin(angle) * radius)),\n y: (point.y + (Math.cos(angle) * radius))\n }, {\n x: (point.x + (Math.sin(angle) * radius)),\n y: (point.y - (Math.cos(angle) * radius))\n }];\n}\n\n/**\n *\n * @param {{x: Number, y: Number, p: Number}} point1\n * @param {{x: Number, y: Number, p: Number}} point2\n * @return {{x: Number, y: Number, p: Number}}\n */\nexport function computeMiddlePoint(point1, point2) {\n return {\n x: ((point2.x + point1.x) / 2),\n y: ((point2.y + point1.y) / 2),\n p: ((point2.p + point1.p) / 2)\n };\n}\n\n/**\n *\n * @param {{x: Number, y: Number}} begin\n * @param {{x: Number, y: Number}} end\n * @return {Number}\n */\nexport function computeAxeAngle(begin, end) {\n return Math.atan2(end.y - begin.y, end.x - begin.x);\n}\n", - "static": true, - "longname": "src/renderer/QuadraticUtils.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 403, - "kind": "function", - "name": "computeLinksPoints", - "memberof": "src/renderer/QuadraticUtils.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/QuadraticUtils.js~computeLinksPoints", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/QuadraticUtils.js", - "importStyle": "{computeLinksPoints}", - "description": "", - "lineNumber": 12, - "params": [ - { - "nullable": null, - "types": [ - "{x: Number, y: Number, p: Number}" - ], - "spread": false, - "optional": false, - "name": "point", - "description": "" - }, - { - "nullable": null, - "types": [ - "*" - ], - "spread": false, - "optional": false, - "name": "angle", - "description": "" - }, - { - "nullable": null, - "types": [ - "*" - ], - "spread": false, - "optional": false, - "name": "width", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "[{x: Number, y: Number},{x: Number, y: Number}]" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 404, - "kind": "function", - "name": "computeMiddlePoint", - "memberof": "src/renderer/QuadraticUtils.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/QuadraticUtils.js~computeMiddlePoint", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/QuadraticUtils.js", - "importStyle": "{computeMiddlePoint}", - "description": "", - "lineNumber": 29, - "params": [ - { - "nullable": null, - "types": [ - "{x: Number, y: Number, p: Number}" - ], - "spread": false, - "optional": false, - "name": "point1", - "description": "" - }, - { - "nullable": null, - "types": [ - "{x: Number, y: Number, p: Number}" - ], - "spread": false, - "optional": false, - "name": "point2", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "{x: Number, y: Number, p: Number}" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 405, - "kind": "function", - "name": "computeAxeAngle", - "memberof": "src/renderer/QuadraticUtils.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/QuadraticUtils.js~computeAxeAngle", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/QuadraticUtils.js", - "importStyle": "{computeAxeAngle}", - "description": "", - "lineNumber": 43, - "params": [ - { - "nullable": null, - "types": [ - "{x: Number, y: Number}" - ], - "spread": false, - "optional": false, - "name": "begin", - "description": "" - }, - { - "nullable": null, - "types": [ - "{x: Number, y: Number}" - ], - "spread": false, - "optional": false, - "name": "end", - "description": "" - } - ], - "return": { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 406, - "kind": "file", - "name": "src/renderer/canvas/CanvasRenderer.js", - "content": "import { rendererLogger as logger } from '../../configuration/LoggerConfig';\nimport { drawStroke } from './symbols/StrokeSymbolCanvasRenderer';\nimport { drawTextSymbol, TextSymbols } from './symbols/TextSymbolCanvasRenderer';\nimport { drawShapeSymbol, ShapeSymbols } from './symbols/ShapeSymbolCanvasRenderer';\nimport {\n drawMusicSymbol,\n getMusicClefElements,\n MusicSymbols\n} from './symbols/MusicSymbolCanvasRenderer';\nimport * as InkModel from '../../model/InkModel';\n\n/**\n * Renderer info\n * @typedef {Object} RendererInfo\n * @property {String} type Renderer type.\n * @property {String} apiVersion Supported api version.\n */\n\n/**\n * Default renderer\n * @typedef {Object} Renderer\n * @property {function(): RendererInfo} getInfo Get some information about this renderer\n * @property {function(element: Element, minHeight: Number, minWidth: Number): Object} attach Populate the DOM element to create rendering area.\n * @property {function(element: Element, context: Object)} detach Remove rendering area from the DOM element.\n * @property {function(context: Object, model: Model, stroker: Stroker)} resize Explicitly resize the rendering area.\n * @property {function(context: Object, model: Model, stroker: Stroker): Model} drawCurrentStroke Draw the model currentStroke.\n * @property {function(context: Object, model: Model, stroker: Stroker): Model} drawModel Draw the model defaultSymbols and recognizedSymbols.\n */\n\n/**\n * Get info\n * @return {RendererInfo} Information about this renderer\n */\nexport function getInfo() {\n return {\n type: 'canvas',\n apiVersion: 'V3'\n };\n}\n\nfunction getPixelRatio(canvas) {\n if (canvas) {\n const context = canvas.getContext('2d');\n // we are using a browser object\n // eslint-disable-next-line no-undef\n const devicePixelRatio = window.devicePixelRatio || 1;\n const backingStoreRatio = context.webkitBackingStorePixelRatio ||\n context.mozBackingStorePixelRatio ||\n context.msBackingStorePixelRatio ||\n context.oBackingStorePixelRatio ||\n context.backingStorePixelRatio || 1;\n return devicePixelRatio / backingStoreRatio;\n }\n return 1;\n}\n\nfunction detectPixelRatio(element) {\n // we are using a browser object\n // eslint-disable-next-line no-undef\n const tempCanvas = document.createElement('canvas');\n const canvasRatio = getPixelRatio(tempCanvas);\n // document.removeChild(tempCanvas);\n return canvasRatio;\n}\n\nfunction createCanvas(element, type) {\n // eslint-disable-next-line no-undef\n const browserDocument = document;\n const canvas = browserDocument.createElement('canvas');\n canvas.classList.add(type);\n canvas.classList.add('ms-canvas');\n element.appendChild(canvas);\n logger.debug('canvas created', canvas);\n return canvas;\n}\n\nfunction resizeContent(context) {\n const elements = [context.renderingCanvas, context.capturingCanvas];\n elements.forEach((canvas) => {\n const domElement = canvas.parentNode;\n const width = domElement.clientWidth < context.minWidth ? context.minWidth : domElement.clientWidth;\n const height = domElement.clientHeight < context.minHeight ? context.minHeight : domElement.clientHeight;\n /* eslint-disable no-param-reassign */\n canvas.width = width * context.pixelRatio;\n canvas.height = height * context.pixelRatio;\n canvas.style.width = `${width}px`;\n canvas.style.height = `${height}px`;\n /* eslint-enable no-param-reassign */\n canvas.getContext('2d').scale(context.pixelRatio, context.pixelRatio);\n logger.debug('canvas size changed', canvas);\n });\n return context;\n}\n\n/**\n * Attach the renderer to the DOM element\n * @param {Element} element DOM element to attach the rendering elements\n * @param {Number} [minHeight=0] Minimal height of the editor\n * @param {Number} [minWidth=0] Minimal width of the editor\n * @return {Object} The renderer context to give as parameter when a draw model will be call\n */\nexport function attach(element, minHeight = 0, minWidth = 0) {\n logger.debug('attach renderer', element);\n const pixelRatio = detectPixelRatio(element);\n const resources = getMusicClefElements();\n resources.forEach(clef => element.appendChild(clef));\n\n const renderingCanvas = createCanvas(element, 'ms-rendering-canvas');\n const capturingCanvas = createCanvas(element, 'ms-capture-canvas');\n\n const context = {\n pixelRatio,\n minHeight,\n minWidth,\n renderingCanvas,\n renderingCanvasContext: renderingCanvas.getContext('2d'),\n capturingCanvas,\n capturingCanvasContext: capturingCanvas.getContext('2d'),\n resources\n };\n\n return resizeContent(context);\n}\n\n/**\n * Detach the renderer from the DOM element\n * @param {Element} element DOM element to attach the rendering elements\n * @param {Object} context Current rendering context\n */\nexport function detach(element, context) {\n logger.debug('detach renderer', element);\n context.resources.forEach(res => element.removeChild(res));\n element.removeChild(context.renderingCanvas);\n element.removeChild(context.capturingCanvas);\n}\n\n/**\n * Update the rendering context size\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function resize(context, model, stroker) {\n return this.drawModel(resizeContent(context), model, stroker);\n}\n\nfunction drawSymbol(context, symbol, stroker) {\n const type = symbol.elementType ? symbol.elementType : symbol.type;\n logger.trace(`attempting to draw ${type} symbol`);\n if (type === 'stroke') {\n drawStroke(context, symbol, stroker);\n } else if (TextSymbols[type]) {\n drawTextSymbol(context, symbol);\n } else if (ShapeSymbols[type]) {\n drawShapeSymbol(context, symbol);\n } else if (MusicSymbols[type]) {\n drawMusicSymbol(context, symbol);\n } else {\n logger.warn(`impossible to draw ${type} symbol`);\n }\n}\n\n/**\n * Draw the current stroke from the model\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function drawCurrentStroke(context, model, stroker) {\n // Render the current stroke\n context.capturingCanvasContext.clearRect(0, 0, context.capturingCanvas.width, context.capturingCanvas.height);\n logger.trace('drawing current stroke ', model.currentStroke);\n drawStroke(context.capturingCanvasContext, model.currentStroke, stroker);\n return model;\n}\n\n/**\n * Draw all symbols contained into the model\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function drawModel(context, model, stroker) {\n context.renderingCanvasContext.clearRect(0, 0, context.renderingCanvas.width, context.renderingCanvas.height);\n // Displaying the default symbols and pending strokes\n const symbols = [...model.defaultSymbols];\n // Displaying the recognition symbols or raw strokes\n if (model.recognizedSymbols) {\n symbols.push(...model.recognizedSymbols);\n symbols.push(...InkModel.extractPendingStrokes(model));\n } else {\n symbols.push(...model.rawStrokes);\n }\n symbols.forEach(symbol => drawSymbol(context.renderingCanvasContext, symbol, stroker));\n context.capturingCanvasContext.clearRect(0, 0, context.capturingCanvas.width, context.capturingCanvas.height);\n return model;\n}\n", - "static": true, - "longname": "src/renderer/canvas/CanvasRenderer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 407, - "kind": "typedef", - "name": "RendererInfo", - "memberof": "src/renderer/canvas/CanvasRenderer.js", - "static": true, - "longname": "src/renderer/canvas/CanvasRenderer.js~RendererInfo", - "access": null, - "description": "Renderer info", - "properties": [ - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "Renderer type." - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "apiVersion", - "description": "Supported api version." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "RendererInfo" - } - }, - { - "__docId__": 408, - "kind": "typedef", - "name": "Renderer", - "memberof": "src/renderer/canvas/CanvasRenderer.js", - "static": true, - "longname": "src/renderer/canvas/CanvasRenderer.js~Renderer", - "access": null, - "description": "Default renderer", - "properties": [ - { - "nullable": null, - "types": [ - "function(): RendererInfo" - ], - "spread": false, - "optional": false, - "name": "getInfo", - "description": "Get some information about this renderer" - }, - { - "nullable": null, - "types": [ - "function(element: Element, minHeight: Number, minWidth: Number): Object" - ], - "spread": false, - "optional": false, - "name": "attach", - "description": "Populate the DOM element to create rendering area." - }, - { - "nullable": null, - "types": [ - "function(element: Element, context: Object)" - ], - "spread": false, - "optional": false, - "name": "detach", - "description": "Remove rendering area from the DOM element." - }, - { - "nullable": null, - "types": [ - "function(context: Object, model: Model, stroker: Stroker)" - ], - "spread": false, - "optional": false, - "name": "resize", - "description": "Explicitly resize the rendering area." - }, - { - "nullable": null, - "types": [ - "function(context: Object, model: Model, stroker: Stroker): Model" - ], - "spread": false, - "optional": false, - "name": "drawCurrentStroke", - "description": "Draw the model currentStroke." - }, - { - "nullable": null, - "types": [ - "function(context: Object, model: Model, stroker: Stroker): Model" - ], - "spread": false, - "optional": false, - "name": "drawModel", - "description": "Draw the model defaultSymbols and recognizedSymbols." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "Renderer" - } - }, - { - "__docId__": 409, - "kind": "function", - "name": "getInfo", - "memberof": "src/renderer/canvas/CanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/CanvasRenderer.js~getInfo", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/CanvasRenderer.js", - "importStyle": "{getInfo}", - "description": "Get info", - "lineNumber": 34, - "params": [], - "return": { - "nullable": null, - "types": [ - "RendererInfo" - ], - "spread": false, - "description": "Information about this renderer" - } - }, - { - "__docId__": 410, - "kind": "function", - "name": "getPixelRatio", - "memberof": "src/renderer/canvas/CanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/CanvasRenderer.js~getPixelRatio", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/CanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 41, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "canvas", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "number" - ] - } - }, - { - "__docId__": 411, - "kind": "function", - "name": "detectPixelRatio", - "memberof": "src/renderer/canvas/CanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/CanvasRenderer.js~detectPixelRatio", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/CanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 57, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "element", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 412, - "kind": "function", - "name": "createCanvas", - "memberof": "src/renderer/canvas/CanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/CanvasRenderer.js~createCanvas", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/CanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 66, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "element", - "types": [ - "*" - ] - }, - { - "name": "type", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 413, - "kind": "function", - "name": "resizeContent", - "memberof": "src/renderer/canvas/CanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/CanvasRenderer.js~resizeContent", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/CanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 77, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 414, - "kind": "function", - "name": "attach", - "memberof": "src/renderer/canvas/CanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/CanvasRenderer.js~attach", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/CanvasRenderer.js", - "importStyle": "{attach}", - "description": "Attach the renderer to the DOM element", - "lineNumber": 102, - "params": [ - { - "nullable": null, - "types": [ - "Element" - ], - "spread": false, - "optional": false, - "name": "element", - "description": "DOM element to attach the rendering elements" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "defaultValue": "0", - "defaultRaw": 0, - "name": "minHeight", - "description": "Minimal height of the editor" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "defaultValue": "0", - "defaultRaw": 0, - "name": "minWidth", - "description": "Minimal width of the editor" - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "The renderer context to give as parameter when a draw model will be call" - } - }, - { - "__docId__": 415, - "kind": "function", - "name": "detach", - "memberof": "src/renderer/canvas/CanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/CanvasRenderer.js~detach", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/CanvasRenderer.js", - "importStyle": "{detach}", - "description": "Detach the renderer from the DOM element", - "lineNumber": 130, - "params": [ - { - "nullable": null, - "types": [ - "Element" - ], - "spread": false, - "optional": false, - "name": "element", - "description": "DOM element to attach the rendering elements" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - } - ] - }, - { - "__docId__": 416, - "kind": "function", - "name": "resize", - "memberof": "src/renderer/canvas/CanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/CanvasRenderer.js~resize", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/CanvasRenderer.js", - "importStyle": "{resize}", - "description": "Update the rendering context size", - "lineNumber": 144, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Stroker" - ], - "spread": false, - "optional": false, - "name": "stroker", - "description": "Current stroker" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 417, - "kind": "function", - "name": "drawSymbol", - "memberof": "src/renderer/canvas/CanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/CanvasRenderer.js~drawSymbol", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/CanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 148, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "symbol", - "types": [ - "*" - ] - }, - { - "name": "stroker", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 418, - "kind": "function", - "name": "drawCurrentStroke", - "memberof": "src/renderer/canvas/CanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/CanvasRenderer.js~drawCurrentStroke", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/CanvasRenderer.js", - "importStyle": "{drawCurrentStroke}", - "description": "Draw the current stroke from the model", - "lineNumber": 171, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Stroker" - ], - "spread": false, - "optional": false, - "name": "stroker", - "description": "Current stroker" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 419, - "kind": "function", - "name": "drawModel", - "memberof": "src/renderer/canvas/CanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/CanvasRenderer.js~drawModel", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/CanvasRenderer.js", - "importStyle": "{drawModel}", - "description": "Draw all symbols contained into the model", - "lineNumber": 186, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Stroker" - ], - "spread": false, - "optional": false, - "name": "stroker", - "description": "Current stroker" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 420, - "kind": "file", - "name": "src/renderer/canvas/ImageRenderer.js", - "content": "import { drawModel } from './CanvasRenderer';\nimport * as InkModel from '../../model/InkModel';\n\nfunction createCanvas(borderCoordinates, margin = 10) {\n // eslint-disable-next-line no-undef\n const browserDocument = document;\n const canvas = browserDocument.createElement('canvas');\n canvas.width = Math.abs(borderCoordinates.maxX - borderCoordinates.minX) + (2 * margin);\n canvas.style.width = `${canvas.width}px`;\n canvas.height = Math.abs(borderCoordinates.maxY - borderCoordinates.minY) + (2 * margin);\n canvas.style.height = `${canvas.height}px`;\n return canvas;\n}\n\n/**\n * Generate a PNG image data url from the model\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @param {Number} [margin=10] Margins to apply around the image\n * @return {String} Image data string result\n */\nexport function getImage(model, stroker, margin = 10) {\n if (model.rawStrokes.length > 0) {\n const borderCoordinates = InkModel.getBorderCoordinates(model);\n\n const capturingCanvas = createCanvas(borderCoordinates, margin);\n const renderingCanvas = createCanvas(borderCoordinates, margin);\n const renderStructure = {\n renderingCanvas,\n renderingCanvasContext: renderingCanvas.getContext('2d'),\n capturingCanvas,\n capturingCanvasContext: capturingCanvas.getContext('2d')\n };\n // Change canvas origin\n renderStructure.renderingCanvasContext.translate(-borderCoordinates.minX + margin, -borderCoordinates.minY + margin);\n drawModel(renderStructure, model, stroker);\n return renderStructure.renderingCanvas.toDataURL('image/png');\n }\n return null;\n}\n", - "static": true, - "longname": "src/renderer/canvas/ImageRenderer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 421, - "kind": "function", - "name": "createCanvas", - "memberof": "src/renderer/canvas/ImageRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/ImageRenderer.js~createCanvas", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/ImageRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 4, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "borderCoordinates", - "types": [ - "*" - ] - }, - { - "name": "margin", - "optional": true, - "types": [ - "number" - ], - "defaultRaw": 10, - "defaultValue": "10" - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 422, - "kind": "function", - "name": "getImage", - "memberof": "src/renderer/canvas/ImageRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/ImageRenderer.js~getImage", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/ImageRenderer.js", - "importStyle": "{getImage}", - "description": "Generate a PNG image data url from the model", - "lineNumber": 22, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Stroker" - ], - "spread": false, - "optional": false, - "name": "stroker", - "description": "Current stroker" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": true, - "defaultValue": "10", - "defaultRaw": 10, - "name": "margin", - "description": "Margins to apply around the image" - } - ], - "return": { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "description": "Image data string result" - } - }, - { - "__docId__": 423, - "kind": "file", - "name": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "content": "import * as StrokeComponent from '../../../model/StrokeComponent';\nimport { computeLinksPoints, computeMiddlePoint, computeAxeAngle } from '../../QuadraticUtils';\n\n/**\n * Stroker info\n * @typedef {Object} StrokerInfo\n * @property {String} type Renderer type.\n * @property {String} name Stroker name.\n * @property {String} apiVersion Supported api version.\n */\n\n/**\n * Define how a stroke should be drawn\n * @typedef {Object} Stroker\n * @property {function(): StrokerInfo} getInfo Get some information about this stroker\n * @property {function(context: Object, stroke: Stroke)} drawStroke Render a stroke on the current context.\n */\n\n/**\n * Get info\n * @return {StrokerInfo} Information about this stroker\n */\nexport function getInfo() {\n return {\n type: 'canvas',\n name: 'quadratic',\n apiVersion: 'V3'\n };\n}\n\nfunction renderArc(context, center, radius) {\n context.arc(center.x, center.y, radius, 0, Math.PI * 2, true);\n}\n\nfunction renderLine(context, begin, end, width) {\n const linkPoints1 = computeLinksPoints(begin, computeAxeAngle(begin, end), width);\n const linkPoints2 = computeLinksPoints(end, computeAxeAngle(begin, end), width);\n\n context.moveTo(linkPoints1[0].x, linkPoints1[0].y);\n context.lineTo(linkPoints2[0].x, linkPoints2[0].y);\n context.lineTo(linkPoints2[1].x, linkPoints2[1].y);\n context.lineTo(linkPoints1[1].x, linkPoints1[1].y);\n}\n\nfunction renderFinal(context, begin, end, width) {\n const ARCSPLIT = 6;\n const angle = computeAxeAngle(begin, end);\n const linkPoints = computeLinksPoints(end, angle, width);\n context.moveTo(linkPoints[0].x, linkPoints[0].y);\n for (let i = 1; i <= ARCSPLIT; i++) {\n const newAngle = angle - ((i * Math.PI) / ARCSPLIT);\n context.lineTo(end.x - ((end.p * width) * Math.sin(newAngle)), end.y + (end.p * width * Math.cos(newAngle)));\n }\n}\n\nfunction renderQuadratic(context, begin, end, ctrl, width) {\n const linkPoints1 = computeLinksPoints(begin, computeAxeAngle(begin, ctrl), width);\n const linkPoints2 = computeLinksPoints(end, computeAxeAngle(ctrl, end), width);\n const linkPoints3 = computeLinksPoints(ctrl, computeAxeAngle(begin, end), width);\n\n context.moveTo(linkPoints1[0].x, linkPoints1[0].y);\n context.quadraticCurveTo(linkPoints3[0].x, linkPoints3[0].y, linkPoints2[0].x, linkPoints2[0].y);\n context.lineTo(linkPoints2[1].x, linkPoints2[1].y);\n context.quadraticCurveTo(linkPoints3[1].x, linkPoints3[1].y, linkPoints1[1].x, linkPoints1[1].y);\n}\n\n/**\n * Draw a stroke on a canvas, using quadratics\n * @param {Object} context Current rendering context\n * @param {Stroke} stroke Current stroke to be drawn\n */\nexport function drawStroke(context, stroke) {\n const contextReference = context;\n const length = stroke.x.length;\n const width = stroke.width > 0 ? stroke.width : contextReference.lineWidth;\n const color = stroke.color ? stroke.color : contextReference.strokeStyle;\n const firstPoint = StrokeComponent.getPointByIndex(stroke, 0);\n const nbquadratics = length - 2;\n\n contextReference.save();\n try {\n contextReference.beginPath();\n if (length < 3) {\n renderArc(contextReference, firstPoint, width * 0.6);\n } else {\n renderArc(contextReference, firstPoint, width * firstPoint.p);\n renderLine(contextReference, firstPoint, computeMiddlePoint(firstPoint, StrokeComponent.getPointByIndex(stroke, 1)), width);\n\n // Possibility to try this (the start looks better when the ink is large)\n // var first = computeMiddlePoint(stroke[0], stroke[1]);\n // contextReference.arc(first.x, first.y, width * first.p, 0, Math.PI * 2, true);\n\n for (let i = 0; i < nbquadratics; i++) {\n renderQuadratic(contextReference, computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, i), StrokeComponent.getPointByIndex(stroke, i + 1)), computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, i + 1), StrokeComponent.getPointByIndex(stroke, i + 2)), StrokeComponent.getPointByIndex(stroke, i + 1), width);\n }\n renderLine(contextReference, computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, length - 2), StrokeComponent.getPointByIndex(stroke, length - 1)), StrokeComponent.getPointByIndex(stroke, length - 1), width);\n renderFinal(contextReference, StrokeComponent.getPointByIndex(stroke, length - 2), StrokeComponent.getPointByIndex(stroke, length - 1), width);\n }\n contextReference.closePath();\n if (color !== undefined) {\n contextReference.fillStyle = color;\n contextReference.fill();\n }\n } finally {\n contextReference.restore();\n }\n}\n", - "static": true, - "longname": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 424, - "kind": "typedef", - "name": "StrokerInfo", - "memberof": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "static": true, - "longname": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js~StrokerInfo", - "access": null, - "description": "Stroker info", - "properties": [ - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "type", - "description": "Renderer type." - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "name", - "description": "Stroker name." - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "apiVersion", - "description": "Supported api version." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "StrokerInfo" - } - }, - { - "__docId__": 425, - "kind": "typedef", - "name": "Stroker", - "memberof": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "static": true, - "longname": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js~Stroker", - "access": null, - "description": "Define how a stroke should be drawn", - "properties": [ - { - "nullable": null, - "types": [ - "function(): StrokerInfo" - ], - "spread": false, - "optional": false, - "name": "getInfo", - "description": "Get some information about this stroker" - }, - { - "nullable": null, - "types": [ - "function(context: Object, stroke: Stroke)" - ], - "spread": false, - "optional": false, - "name": "drawStroke", - "description": "Render a stroke on the current context." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "Stroker" - } - }, - { - "__docId__": 426, - "kind": "function", - "name": "getInfo", - "memberof": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js~getInfo", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "importStyle": "{getInfo}", - "description": "Get info", - "lineNumber": 23, - "params": [], - "return": { - "nullable": null, - "types": [ - "StrokerInfo" - ], - "spread": false, - "description": "Information about this stroker" - } - }, - { - "__docId__": 427, - "kind": "function", - "name": "renderArc", - "memberof": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js~renderArc", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "importStyle": null, - "description": null, - "lineNumber": 31, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "center", - "types": [ - "*" - ] - }, - { - "name": "radius", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 428, - "kind": "function", - "name": "renderLine", - "memberof": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js~renderLine", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "importStyle": null, - "description": null, - "lineNumber": 35, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "begin", - "types": [ - "*" - ] - }, - { - "name": "end", - "types": [ - "*" - ] - }, - { - "name": "width", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 429, - "kind": "function", - "name": "renderFinal", - "memberof": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js~renderFinal", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "importStyle": null, - "description": null, - "lineNumber": 45, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "begin", - "types": [ - "*" - ] - }, - { - "name": "end", - "types": [ - "*" - ] - }, - { - "name": "width", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 430, - "kind": "function", - "name": "renderQuadratic", - "memberof": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js~renderQuadratic", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "importStyle": null, - "description": null, - "lineNumber": 56, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "begin", - "types": [ - "*" - ] - }, - { - "name": "end", - "types": [ - "*" - ] - }, - { - "name": "ctrl", - "types": [ - "*" - ] - }, - { - "name": "width", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 431, - "kind": "function", - "name": "drawStroke", - "memberof": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/stroker/QuadraticCanvasStroker.js~drawStroke", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/stroker/QuadraticCanvasStroker.js", - "importStyle": "{drawStroke}", - "description": "Draw a stroke on a canvas, using quadratics", - "lineNumber": 72, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "optional": false, - "name": "stroke", - "description": "Current stroke to be drawn" - } - ] - }, - { - "__docId__": 432, - "kind": "file", - "name": "src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js", - "content": "import { rendererLogger as logger } from '../../../configuration/LoggerConfig';\nimport { drawStroke } from './StrokeSymbolCanvasRenderer';\nimport * as InkModel from '../../../model/InkModel';\n\n/**\n * @type {{inputCharacter: String, char: String, string: String, textLine: String}}\n */\nexport const MathSymbols = {\n nonTerminalNode: 'nonTerminalNode',\n terminalNode: 'terminalNode',\n rule: 'rule'\n};\n\nfunction drawTerminalNode(context, terminalNode, model, stroker) {\n terminalNode.inkRanges.forEach((inkRange) => {\n InkModel.extractStrokesFromInkRange(model, inkRange.component, inkRange.component, inkRange.firstItem, inkRange.lastItem)\n .forEach(stroke => drawStroke(context, stroke, stroker));\n });\n}\n\n/**\n * Draw a math symbol\n * @param {Object} context Current rendering context\n * @param {Object} symbol Symbol to draw\n * @param {Model} model Current model\n * @param {Stroker} stroker Stroker to use to render a stroke\n */\nexport function drawMathSymbol(context, symbol, model, stroker) {\n logger.debug(`draw ${symbol.type} text input`);\n const contextReference = context;\n contextReference.save();\n try {\n contextReference.lineWidth = symbol.width;\n contextReference.strokeStyle = symbol.color;\n\n switch (symbol.type) {\n case MathSymbols.nonTerminalNode:\n drawMathSymbol(contextReference, symbol.candidates[symbol.selectedCandidate], model, stroker);\n break;\n case MathSymbols.terminalNode:\n drawTerminalNode(contextReference, symbol, model, stroker);\n break;\n case MathSymbols.rule:\n symbol.children.forEach(child => drawMathSymbol(contextReference, child, model, stroker));\n break;\n default:\n logger.error(`${symbol.type} not implemented`);\n }\n } finally {\n contextReference.restore();\n }\n}\n", - "static": true, - "longname": "src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 433, - "kind": "variable", - "name": "MathSymbols", - "memberof": "src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js", - "static": true, - "longname": "src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js~MathSymbols", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js", - "importStyle": "{MathSymbols}", - "description": "", - "lineNumber": 8, - "type": { - "nullable": null, - "types": [ - "{inputCharacter: String, char: String, string: String, textLine: String}" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 434, - "kind": "function", - "name": "drawTerminalNode", - "memberof": "src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js~drawTerminalNode", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 14, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "terminalNode", - "types": [ - "*" - ] - }, - { - "name": "model", - "types": [ - "*" - ] - }, - { - "name": "stroker", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 435, - "kind": "function", - "name": "drawMathSymbol", - "memberof": "src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js~drawMathSymbol", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js", - "importStyle": "{drawMathSymbol}", - "description": "Draw a math symbol", - "lineNumber": 28, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "symbol", - "description": "Symbol to draw" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Stroker" - ], - "spread": false, - "optional": false, - "name": "stroker", - "description": "Stroker to use to render a stroke" - } - ] - }, - { - "__docId__": 436, - "kind": "file", - "name": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "content": "import { rendererLogger as logger } from '../../../configuration/LoggerConfig';\nimport { drawLine } from './ShapeSymbolCanvasRenderer';\n\n/**\n * @type {{F: {svg: String, getBoundingBox: function}, C: {svg: String, getBoundingBox: function}, G: {svg: String, getBoundingBox: function}}}\n */\nexport const MusicClefs = { // constants was calculated from the svg image, so it should remains together\n F: {\n svg: '',\n getBoundingBox: (gap, xAnchor, yAnchor) => ({\n height: gap * 3,\n width: (gap * 3) * (18 / 20),\n x: xAnchor,\n y: yAnchor - gap\n })\n },\n C: {\n svg: '',\n getBoundingBox: (gap, xAnchor, yAnchor) => ({\n height: gap * 3,\n width: (gap * 3) * (18 / 25),\n x: xAnchor,\n y: yAnchor - (gap * (3 / 2))\n })\n },\n G: {\n svg: '',\n getBoundingBox: (gap, xAnchor, yAnchor) => ({\n height: gap * (15 / 2),\n width: (gap * (15 / 2)) * (15 / 40),\n x: xAnchor,\n y: yAnchor - (gap * (9 / 2))\n })\n }\n};\n\n/**\n * @type {{accidental: String, arpeggiate: String, bar: String, beam: String, clef: String, decoration: String, dots: String, head: String, ledgerLine: String, rest: String, staff: String, stem: String, tieOrSlur: String, timeSignature: String}}\n */\nexport const MusicSymbols = {\n accidental: 'accidental',\n arpeggiate: 'arpeggiate',\n bar: 'bar',\n beam: 'beam',\n clef: 'clef',\n decoration: 'decoration',\n dots: 'dots',\n head: 'head',\n ledgerLine: 'ledgerLine',\n rest: 'rest',\n staff: 'staff',\n stem: 'stem',\n tieOrSlur: 'tieOrSlur',\n timeSignature: 'timeSignature',\n};\n\nfunction createImage(clef, src) {\n // eslint-disable-next-line no-undef\n const browserDocument = document;\n const img = browserDocument.createElement('img');\n img.dataset.clef = clef;\n img.src = src;\n img.style.display = 'none';\n return img;\n}\n\n/**\n * Retrieve music symbols elements\n * @return {Array} music symbols elements to attach\n */\nexport function getMusicClefElements() {\n return Object.keys(MusicClefs)\n .map(key => createImage(key, `data:image/svg+xml,${MusicClefs[key].svg}`));\n}\n\nfunction drawStaff(context, staff) {\n for (let i = 0; i < staff.count; i++) {\n const p1 = { x: 0, y: staff.top + (i * staff.gap) };\n const p2 = { x: context.canvas.width, y: staff.top + (i * staff.gap) };\n drawLine(context, p1, p2);\n }\n}\n\nfunction drawClef(context, clef) {\n // eslint-disable-next-line no-undef\n context.drawImage(context.canvas.parentElement.querySelector(`img[data-clef=${clef.value.symbol}]`), clef.boundingBox.x, clef.boundingBox.y, clef.boundingBox.width, clef.boundingBox.height);\n}\n\n/**\n * Draw a music symbol\n * @param {Object} context Current rendering context\n * @param {Object} symbol Symbol to draw\n */\nexport function drawMusicSymbol(context, symbol) {\n logger.debug(`draw ${symbol.type} symbol`);\n switch (symbol.type) {\n case MusicSymbols.clef:\n drawClef(context, symbol);\n break;\n case MusicSymbols.staff:\n drawStaff(context, symbol);\n break;\n default:\n logger.error(`${symbol.type} not implemented`);\n }\n}\n", - "static": true, - "longname": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 437, - "kind": "variable", - "name": "MusicClefs", - "memberof": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "static": true, - "longname": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js~MusicClefs", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "importStyle": "{MusicClefs}", - "description": "", - "lineNumber": 7, - "type": { - "nullable": null, - "types": [ - "{F: {svg: String, getBoundingBox: function}, C: {svg: String, getBoundingBox: function}, G: {svg: String, getBoundingBox: function}}" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 438, - "kind": "variable", - "name": "MusicSymbols", - "memberof": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "static": true, - "longname": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js~MusicSymbols", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "importStyle": "{MusicSymbols}", - "description": "", - "lineNumber": 40, - "type": { - "nullable": null, - "types": [ - "{accidental: String, arpeggiate: String, bar: String, beam: String, clef: String, decoration: String, dots: String, head: String, ledgerLine: String, rest: String, staff: String, stem: String, tieOrSlur: String, timeSignature: String}" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 439, - "kind": "function", - "name": "createImage", - "memberof": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js~createImage", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 57, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "clef", - "types": [ - "*" - ] - }, - { - "name": "src", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 440, - "kind": "function", - "name": "getMusicClefElements", - "memberof": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js~getMusicClefElements", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "importStyle": "{getMusicClefElements}", - "description": "Retrieve music symbols elements", - "lineNumber": 71, - "params": [], - "return": { - "nullable": null, - "types": [ - "Array" - ], - "spread": false, - "description": "music symbols elements to attach" - } - }, - { - "__docId__": 441, - "kind": "function", - "name": "drawStaff", - "memberof": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js~drawStaff", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 76, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "staff", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 442, - "kind": "function", - "name": "drawClef", - "memberof": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js~drawClef", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 84, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "clef", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 443, - "kind": "function", - "name": "drawMusicSymbol", - "memberof": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js~drawMusicSymbol", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js", - "importStyle": "{drawMusicSymbol}", - "description": "Draw a music symbol", - "lineNumber": 94, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "symbol", - "description": "Symbol to draw" - } - ] - }, - { - "__docId__": 444, - "kind": "file", - "name": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "content": "import { rendererLogger as logger } from '../../../configuration/LoggerConfig';\n\n/**\n * @type {{table: String, shape: String, recognizedShape: String, ellipse: String, line: String}}\n */\nexport const ShapeSymbols = {\n table: 'table',\n shape: 'shape',\n recognizedShape: 'recognizedShape',\n ellipse: 'ellipse',\n line: 'line'\n};\n\nfunction phi(angle) {\n let returnedAngle = ((angle + Math.PI) % (Math.PI * 2)) - Math.PI;\n if (returnedAngle < -Math.PI) {\n returnedAngle += Math.PI * 2;\n }\n return returnedAngle;\n}\n\nfunction drawEllipseArc(context, centerPoint, maxRadius, minRadius, orientation, startAngle, sweepAngle) {\n const angleStep = 0.02; // angle delta between interpolated\n\n let z1 = Math.cos(orientation);\n let z3 = Math.sin(orientation);\n let z2 = z1;\n let z4 = z3;\n z1 *= maxRadius;\n z2 *= minRadius;\n z3 *= maxRadius;\n z4 *= minRadius;\n\n const n = Math.floor(Math.abs(sweepAngle) / angleStep);\n\n const boundariesPoints = [];\n\n context.save();\n try {\n context.beginPath();\n\n for (let i = 0; i <= n; i++) {\n const angle = startAngle + ((i / n) * sweepAngle); // points on the arc, in radian\n const alpha = Math.atan2(Math.sin(angle) / minRadius, Math.cos(angle) / maxRadius);\n\n const cosAlpha = Math.cos(alpha);\n const sinAlpha = Math.sin(alpha);\n\n // current point\n const x = (centerPoint.x + (z1 * cosAlpha)) - (z4 * sinAlpha);\n const y = (centerPoint.y + (z2 * sinAlpha)) + (z3 * cosAlpha);\n if (i === 0) {\n context.moveTo(x, y);\n } else {\n context.lineTo(x, y);\n }\n\n if (i === 0 || i === n) {\n boundariesPoints.push({ x, y });\n }\n }\n\n context.stroke();\n } finally {\n context.restore();\n }\n\n return boundariesPoints;\n}\n\nfunction drawArrowHead(context, headPoint, angle, length) {\n const alpha = phi(angle + (Math.PI * (7 / 8)));\n const beta = phi(angle - (Math.PI * (7 / 8)));\n\n const contextReference = context;\n contextReference.save();\n try {\n contextReference.fillStyle = contextReference.strokeStyle;\n\n contextReference.moveTo(headPoint.x, headPoint.y);\n contextReference.beginPath();\n contextReference.lineTo(headPoint.x + (length * Math.cos(alpha)), headPoint.y + (length * Math.sin(alpha)));\n contextReference.lineTo(headPoint.x + (length * Math.cos(beta)), headPoint.y + (length * Math.sin(beta)));\n contextReference.lineTo(headPoint.x, headPoint.y);\n contextReference.fill();\n } finally {\n contextReference.restore();\n }\n}\n\nfunction drawShapeEllipse(context, shapeEllipse) {\n const points = drawEllipseArc(\n context,\n shapeEllipse.center,\n shapeEllipse.maxRadius,\n shapeEllipse.minRadius,\n shapeEllipse.orientation,\n shapeEllipse.startAngle,\n shapeEllipse.sweepAngle);\n\n if (shapeEllipse.beginDecoration && shapeEllipse.beginDecoration === 'ARROW_HEAD') {\n drawArrowHead(context, points[0], shapeEllipse.beginTangentAngle, 12.0);\n }\n if (shapeEllipse.endDecoration && shapeEllipse.endDecoration === 'ARROW_HEAD') {\n drawArrowHead(context, points[1], shapeEllipse.endTangentAngle, 12.0);\n }\n}\n\n/**\n * Draw a line\n * @param {Object} context Current rendering context\n * @param {{x: Number, y: Number}} p1 Origin point\n * @param {{x: Number, y: Number}} p2 Destination point\n */\nexport function drawLine(context, p1, p2) {\n context.save();\n try {\n context.beginPath();\n context.moveTo(p1.x, p1.y);\n context.lineTo(p2.x, p2.y);\n context.stroke();\n } finally {\n context.restore();\n }\n}\n\nfunction drawShapeLine(context, shapeLine) {\n drawLine(context, shapeLine.firstPoint, shapeLine.lastPoint);\n if (shapeLine.beginDecoration === 'ARROW_HEAD') {\n drawArrowHead(context, shapeLine.firstPoint, shapeLine.beginTangentAngle, 12.0);\n }\n if (shapeLine.endDecoration === 'ARROW_HEAD') {\n drawArrowHead(context, shapeLine.lastPoint, shapeLine.endTangentAngle, 12.0);\n }\n}\n\n/**\n * Draw a shape symbol\n * @param {Object} context Current rendering context\n * @param {Object} symbol Symbol to draw\n */\nexport function drawShapeSymbol(context, symbol) {\n logger.debug(`draw ${symbol.type} symbol`);\n const contextReference = context;\n contextReference.save();\n try {\n contextReference.lineWidth = symbol.width;\n contextReference.strokeStyle = symbol.color;\n\n if (symbol.elementType) {\n switch (symbol.elementType) {\n case ShapeSymbols.shape:\n drawShapeSymbol(contextReference, symbol.candidates[symbol.selectedCandidateIndex]);\n break;\n case ShapeSymbols.table:\n symbol.lines.forEach(line => drawShapeSymbol(contextReference, line));\n break;\n case ShapeSymbols.line:\n drawLine(contextReference, symbol.data.p1, symbol.data.p2);\n break;\n default:\n logger.error(`${symbol.elementType} not implemented`);\n break;\n }\n } else {\n switch (symbol.type) {\n case ShapeSymbols.ellipse:\n drawShapeEllipse(contextReference, symbol);\n break;\n case ShapeSymbols.line:\n drawShapeLine(contextReference, symbol);\n break;\n case ShapeSymbols.recognizedShape:\n symbol.primitives.forEach(primitive => drawShapeSymbol(contextReference, primitive));\n break;\n default:\n logger.error(`${symbol.type} not implemented`);\n break;\n }\n }\n } finally {\n contextReference.restore();\n }\n}\n", - "static": true, - "longname": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 445, - "kind": "variable", - "name": "ShapeSymbols", - "memberof": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "static": true, - "longname": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js~ShapeSymbols", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "importStyle": "{ShapeSymbols}", - "description": "", - "lineNumber": 6, - "type": { - "nullable": null, - "types": [ - "{table: String, shape: String, recognizedShape: String, ellipse: String, line: String}" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 446, - "kind": "function", - "name": "phi", - "memberof": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js~phi", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 14, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "angle", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 447, - "kind": "function", - "name": "drawEllipseArc", - "memberof": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js~drawEllipseArc", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 22, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "centerPoint", - "types": [ - "*" - ] - }, - { - "name": "maxRadius", - "types": [ - "*" - ] - }, - { - "name": "minRadius", - "types": [ - "*" - ] - }, - { - "name": "orientation", - "types": [ - "*" - ] - }, - { - "name": "startAngle", - "types": [ - "*" - ] - }, - { - "name": "sweepAngle", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 448, - "kind": "function", - "name": "drawArrowHead", - "memberof": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js~drawArrowHead", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 71, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "headPoint", - "types": [ - "*" - ] - }, - { - "name": "angle", - "types": [ - "*" - ] - }, - { - "name": "length", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 449, - "kind": "function", - "name": "drawShapeEllipse", - "memberof": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js~drawShapeEllipse", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 91, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "shapeEllipse", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 450, - "kind": "function", - "name": "drawLine", - "memberof": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js~drawLine", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "importStyle": "{drawLine}", - "description": "Draw a line", - "lineNumber": 115, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "{x: Number, y: Number}" - ], - "spread": false, - "optional": false, - "name": "p1", - "description": "Origin point" - }, - { - "nullable": null, - "types": [ - "{x: Number, y: Number}" - ], - "spread": false, - "optional": false, - "name": "p2", - "description": "Destination point" - } - ] - }, - { - "__docId__": 451, - "kind": "function", - "name": "drawShapeLine", - "memberof": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js~drawShapeLine", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 127, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "shapeLine", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 452, - "kind": "function", - "name": "drawShapeSymbol", - "memberof": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js~drawShapeSymbol", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js", - "importStyle": "{drawShapeSymbol}", - "description": "Draw a shape symbol", - "lineNumber": 142, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "symbol", - "description": "Symbol to draw" - } - ] - }, - { - "__docId__": 453, - "kind": "file", - "name": "src/renderer/canvas/symbols/StrokeSymbolCanvasRenderer.js", - "content": "/**\n * Draw a stroke symbol\n * @param {Object} context Current rendering context\n * @param {Stroke} stroke Stroke to be drawn\n * @param {Stroker} stroker Stroker to use to render a stroke\n */\nexport function drawStroke(context, stroke, stroker) {\n if (stroker) {\n stroker.drawStroke(context, stroke);\n }\n}\n", - "static": true, - "longname": "src/renderer/canvas/symbols/StrokeSymbolCanvasRenderer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 454, - "kind": "function", - "name": "drawStroke", - "memberof": "src/renderer/canvas/symbols/StrokeSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/StrokeSymbolCanvasRenderer.js~drawStroke", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/symbols/StrokeSymbolCanvasRenderer.js", - "importStyle": "{drawStroke}", - "description": "Draw a stroke symbol", - "lineNumber": 7, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "optional": false, - "name": "stroke", - "description": "Stroke to be drawn" - }, - { - "nullable": null, - "types": [ - "Stroker" - ], - "spread": false, - "optional": false, - "name": "stroker", - "description": "Stroker to use to render a stroke" - } - ] - }, - { - "__docId__": 455, - "kind": "file", - "name": "src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js", - "content": "import { rendererLogger as logger } from '../../../configuration/LoggerConfig';\nimport { drawLine } from './ShapeSymbolCanvasRenderer';\n\n/**\n * @type {{inputCharacter: String, char: String, string: String, textLine: String}}\n */\nexport const TextSymbols = {\n inputCharacter: 'inputCharacter',\n char: 'char',\n string: 'string',\n textLine: 'textLine'\n};\n\nfunction drawUnderline(context, underline, label, data) {\n const delta = data.width / label.length;\n const p1 = {\n x: data.topLeftPoint.x + (underline.data.firstCharacter * delta),\n y: data.topLeftPoint.y + data.height\n };\n const p2 = {\n x: data.topLeftPoint.x + (underline.data.lastCharacter * delta),\n y: data.topLeftPoint.y + data.height\n };\n drawLine(context, p1, p2);\n}\n\nfunction drawText(context, label, data) {\n const contextReference = context;\n contextReference.save();\n try {\n contextReference.font = `${data.textHeight}px serif`;\n contextReference.textAlign = (data.justificationType === 'CENTER') ? 'center' : 'left';\n contextReference.textBaseline = 'bottom';\n contextReference.fillStyle = contextReference.strokeStyle;\n contextReference.fillText(label, data.topLeftPoint.x, (data.topLeftPoint.y + data.height));\n } finally {\n contextReference.restore();\n }\n}\n\nfunction drawTextLine(context, textLine) {\n drawText(context, textLine.label, textLine.data);\n textLine.underlineList.forEach((underline) => {\n drawUnderline(context, underline, textLine.label, textLine.data);\n });\n}\n\n/**\n * Draw a text symbol\n * @param {Object} context Current rendering context\n * @param {Object} symbol Symbol to draw\n */\nexport function drawTextSymbol(context, symbol) {\n logger.debug(`draw ${symbol.type} symbol`);\n const contextReference = context;\n contextReference.save();\n try {\n contextReference.lineWidth = symbol.width;\n contextReference.strokeStyle = symbol.color;\n\n if (symbol.elementType) {\n switch (symbol.elementType) {\n case TextSymbols.textLine:\n drawTextLine(contextReference, symbol);\n break;\n default:\n logger.error(`${symbol.elementType} not implemented`);\n break;\n }\n } else {\n switch (symbol.type) {\n case TextSymbols.textLine:\n drawTextLine(contextReference, symbol);\n break;\n default:\n logger.error(`${symbol.type} not implemented`);\n }\n }\n } finally {\n contextReference.restore();\n }\n}\n", - "static": true, - "longname": "src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 456, - "kind": "variable", - "name": "TextSymbols", - "memberof": "src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js", - "static": true, - "longname": "src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js~TextSymbols", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js", - "importStyle": "{TextSymbols}", - "description": "", - "lineNumber": 7, - "type": { - "nullable": null, - "types": [ - "{inputCharacter: String, char: String, string: String, textLine: String}" - ], - "spread": false, - "description": null - } - }, - { - "__docId__": 457, - "kind": "function", - "name": "drawUnderline", - "memberof": "src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js~drawUnderline", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 14, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "underline", - "types": [ - "*" - ] - }, - { - "name": "label", - "types": [ - "*" - ] - }, - { - "name": "data", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 458, - "kind": "function", - "name": "drawText", - "memberof": "src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js~drawText", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 27, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "label", - "types": [ - "*" - ] - }, - { - "name": "data", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 459, - "kind": "function", - "name": "drawTextLine", - "memberof": "src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js~drawTextLine", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 41, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "textLine", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 460, - "kind": "function", - "name": "drawTextSymbol", - "memberof": "src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js~drawTextSymbol", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js", - "importStyle": "{drawTextSymbol}", - "description": "Draw a text symbol", - "lineNumber": 53, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "symbol", - "description": "Symbol to draw" - } - ] - }, - { - "__docId__": 461, - "kind": "file", - "name": "src/renderer/svg/SVGRenderer.js", - "content": "import * as d3 from 'd3-selection';\nimport { rendererLogger as logger } from '../../configuration/LoggerConfig';\nimport { drawStroke } from './symbols/StrokeSymbolSVGRenderer';\nimport * as InkModel from '../../model/InkModel';\n\n\n/**\n * Get info\n * @return {RendererInfo} Information about this renderer\n */\nexport function getInfo() {\n return {\n type: 'svg',\n apiVersion: 'V4'\n };\n}\n\n/**\n * Populate the dom element\n * @param {Element} element DOM element to attach the rendering elements\n * @return {Object} The renderer context to give as parameter when a draw model will be call\n */\nexport function attach(element) {\n const elementRef = element;\n logger.debug('populate root element', elementRef);\n elementRef.style.fontSize = '10px';\n return d3.select(elementRef);\n}\n\n/**\n * Detach the renderer from the DOM element\n * @param {Element} element DOM element to attach the rendering elements\n * @param {Object} context Current rendering context\n */\nexport function detach(element, context) {\n logger.debug('detach renderer', element);\n context.select('svg').remove();\n}\n\n/**\n * Update the rendering context size\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @param {Number} minHeight Minimal height for resize\n * @param {Number} minWidth Minimal Width for resize\n * @return {Model}\n */\nexport function resize(context, model, stroker, minHeight, minWidth) {\n const rect = context.node().getBoundingClientRect();\n const svg = context.selectAll('svg');\n const width = rect.width < minWidth ? minWidth : rect.width;\n const height = rect.height < minHeight ? minHeight : rect.height;\n svg.attr('viewBox', `0 0 ${width}, ${height}`);\n svg.attr('width', `${width}px`);\n svg.attr('height', `${height}px`);\n logger.debug('svg viewBox changed', svg);\n return model;\n}\n\n/**\n * Draw the current stroke from the model\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function drawCurrentStroke(context, model, stroker) {\n const modelRef = model;\n // Add a pending id for pending strokes rendering\n modelRef.currentStroke.id = `pendingStroke-${model.rawStrokes.length}`;\n // Render the current stroke\n logger.trace('drawing current stroke ', model.currentStroke);\n context.select(`#pendingStrokes #${modelRef.currentStroke.id}`).remove();\n drawStroke(context.select('#pendingStrokes').append('path').attr('id', model.currentStroke.id), model.currentStroke, stroker);\n return modelRef;\n}\n\nfunction insertAdjacentSVG(element, position, html) {\n const container = element.ownerDocument.createElementNS('http://www.w3.org/2000/svg', '_');\n container.innerHTML = html;\n\n switch (position.toLowerCase()) {\n case 'beforebegin':\n element.parentNode.insertBefore(container.firstChild, element);\n break;\n case 'afterbegin':\n element.insertBefore(container.lastChild, element.firstChild);\n break;\n case 'beforeend':\n element.appendChild(container.firstChild);\n break;\n case 'afterend':\n element.parentNode.insertBefore(container.lastChild, element.nextSibling);\n break;\n default:\n logger.warn('Invalid insertAdjacentHTML position');\n break;\n }\n}\n\n/**\n * Draw all symbols contained into the model\n * @param {Object} context Current rendering context\n * @param {Model} model Current model\n * @param {Stroker} stroker Current stroker\n * @return {Model}\n */\nexport function drawModel(context, model, stroker) {\n const drawSymbol = (symbol, symbolContext) => {\n logger.trace(`attempting to draw ${symbol.type} symbol`);\n if (symbol.type === 'stroke' && !symbolContext.select('id', symbol.id)) {\n drawStroke(symbolContext.append('path').attr('id', symbol.id), symbol, stroker);\n } else {\n logger.warn(`impossible to draw ${symbol.type} symbol`);\n }\n };\n\n const updateView = (patchUpdate) => {\n // We only add in the stack patch with updates\n patchUpdate.updates.forEach((update) => {\n try {\n const svgElementSelector = 'svg[data-layer=\"' + patchUpdate.layer + '\"]';\n switch (update.type) {\n case 'REPLACE_ALL': {\n context.select(svgElementSelector).remove();\n const parent = context.node();\n if (parent.insertAdjacentHTML) {\n parent.insertAdjacentHTML('beforeEnd', update.svg);\n } else {\n insertAdjacentSVG(parent, 'beforeEnd', update.svg);\n }\n if (patchUpdate.layer === 'MODEL') {\n context.select(svgElementSelector).append('g').attr('id', 'pendingStrokes');\n }\n }\n break;\n case 'REMOVE_ELEMENT': {\n if (update.id.includes('s') || update.id.includes('MODEL')) {\n context.select(`#${update.id}`).remove();\n } else {\n context.select(`#${update.id}`).attr('class', 'removed-stroke');\n setTimeout(() => {\n context.select(`#${update.id}`).remove();\n }, 100);\n }\n break;\n }\n case 'REPLACE_ELEMENT': {\n const parent = context.select(`#${update.id}`).node().parentNode;\n context.select(`#${update.id}`).remove();\n if (parent.insertAdjacentHTML) {\n parent.insertAdjacentHTML('beforeEnd', update.svg);\n } else {\n insertAdjacentSVG(parent, 'beforeEnd', update.svg);\n context.node().insertAdjacentHTML('beforeEnd', context.select(svgElementSelector).remove().node().outerHTML);\n }\n }\n break;\n case 'REMOVE_CHILD':\n context.select(`#${update.parentId} > *:nth-child(${update.index + 1})`).remove();\n break;\n case 'APPEND_CHILD': {\n const parent = context.select(update.parentId ? `#${update.parentId}` : svgElementSelector).node();\n if (parent.insertAdjacentHTML) {\n parent.insertAdjacentHTML('beforeEnd', update.svg);\n } else {\n insertAdjacentSVG(parent, 'beforeEnd', update.svg);\n context.node().insertAdjacentHTML('beforeEnd', context.select(svgElementSelector).remove().node().outerHTML);\n }\n }\n break;\n case 'INSERT_BEFORE': {\n const parent = context.select(`#${update.refId}`).node();\n if (parent.insertAdjacentHTML) {\n parent.insertAdjacentHTML('beforeBegin', update.svg);\n } else {\n insertAdjacentSVG(parent, 'beforeBegin', update.svg);\n context.node().insertAdjacentHTML('beforeEnd', context.select(svgElementSelector).remove().node().outerHTML);\n }\n }\n break;\n case 'REMOVE_ATTRIBUTE':\n context.selectAll(update.id ? `#${update.id}` : 'svg').attr(update.name, null);\n break;\n case 'SET_ATTRIBUTE': {\n // We ignore setAttributes on the svg element because we handle the resize elsewhere to prevent a blink effect\n // that occurs if we are waiting for the server to resize.\n if (update.id) {\n context.selectAll(`#${update.id}`).attr(update.name, update.value);\n }\n break;\n }\n default:\n logger.debug(`unknown update ${update.type} action`);\n break;\n }\n } catch (e) {\n logger.error(`Invalid update ${update.type}`, update);\n logger.error('Error on svg patch', e);\n }\n });\n };\n\n const pendingRecognizedSymbols = InkModel.extractPendingRecognizedSymbols(model);\n if (pendingRecognizedSymbols) {\n pendingRecognizedSymbols.forEach(patch => updateView(patch));\n InkModel.updateModelRenderedPosition(model);\n }\n\n const pendingStrokes = InkModel.extractPendingStrokes(model);\n if (pendingStrokes) {\n pendingStrokes.forEach(stroke => drawSymbol(stroke, context.select('#pendingStrokes')));\n }\n return model;\n}\n", - "static": true, - "longname": "src/renderer/svg/SVGRenderer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 462, - "kind": "function", - "name": "getInfo", - "memberof": "src/renderer/svg/SVGRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/svg/SVGRenderer.js~getInfo", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/svg/SVGRenderer.js", - "importStyle": "{getInfo}", - "description": "Get info", - "lineNumber": 11, - "params": [], - "return": { - "nullable": null, - "types": [ - "RendererInfo" - ], - "spread": false, - "description": "Information about this renderer" - } - }, - { - "__docId__": 463, - "kind": "function", - "name": "attach", - "memberof": "src/renderer/svg/SVGRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/svg/SVGRenderer.js~attach", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/svg/SVGRenderer.js", - "importStyle": "{attach}", - "description": "Populate the dom element", - "lineNumber": 23, - "params": [ - { - "nullable": null, - "types": [ - "Element" - ], - "spread": false, - "optional": false, - "name": "element", - "description": "DOM element to attach the rendering elements" - } - ], - "return": { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "description": "The renderer context to give as parameter when a draw model will be call" - } - }, - { - "__docId__": 464, - "kind": "function", - "name": "detach", - "memberof": "src/renderer/svg/SVGRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/svg/SVGRenderer.js~detach", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/svg/SVGRenderer.js", - "importStyle": "{detach}", - "description": "Detach the renderer from the DOM element", - "lineNumber": 35, - "params": [ - { - "nullable": null, - "types": [ - "Element" - ], - "spread": false, - "optional": false, - "name": "element", - "description": "DOM element to attach the rendering elements" - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - } - ] - }, - { - "__docId__": 465, - "kind": "function", - "name": "resize", - "memberof": "src/renderer/svg/SVGRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/svg/SVGRenderer.js~resize", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/svg/SVGRenderer.js", - "importStyle": "{resize}", - "description": "Update the rendering context size", - "lineNumber": 49, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Stroker" - ], - "spread": false, - "optional": false, - "name": "stroker", - "description": "Current stroker" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "minHeight", - "description": "Minimal height for resize" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "minWidth", - "description": "Minimal Width for resize" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 466, - "kind": "function", - "name": "drawCurrentStroke", - "memberof": "src/renderer/svg/SVGRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/svg/SVGRenderer.js~drawCurrentStroke", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/svg/SVGRenderer.js", - "importStyle": "{drawCurrentStroke}", - "description": "Draw the current stroke from the model", - "lineNumber": 68, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Stroker" - ], - "spread": false, - "optional": false, - "name": "stroker", - "description": "Current stroker" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 467, - "kind": "function", - "name": "insertAdjacentSVG", - "memberof": "src/renderer/svg/SVGRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/svg/SVGRenderer.js~insertAdjacentSVG", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/svg/SVGRenderer.js", - "importStyle": null, - "description": null, - "lineNumber": 79, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "element", - "types": [ - "*" - ] - }, - { - "name": "position", - "types": [ - "*" - ] - }, - { - "name": "html", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 468, - "kind": "function", - "name": "drawModel", - "memberof": "src/renderer/svg/SVGRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/svg/SVGRenderer.js~drawModel", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/svg/SVGRenderer.js", - "importStyle": "{drawModel}", - "description": "Draw all symbols contained into the model", - "lineNumber": 109, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - }, - { - "nullable": null, - "types": [ - "Stroker" - ], - "spread": false, - "optional": false, - "name": "stroker", - "description": "Current stroker" - } - ], - "return": { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 469, - "kind": "file", - "name": "src/renderer/svg/stroker/QuadraticSVGStroker.js", - "content": "import * as StrokeComponent from '../../../model/StrokeComponent';\nimport { computeLinksPoints, computeMiddlePoint, computeAxeAngle } from '../../QuadraticUtils';\n\n/**\n * Get info\n * @return {StrokerInfo} Information about this stroker\n */\nexport function getInfo() {\n return {\n type: 'svg',\n name: 'quadratic',\n apiVersion: 'V4'\n };\n}\n\nfunction renderArc(context, center, radius) {\n const svgPath = [\n `M ${center.x},${center.y}`,\n `m ${-radius},0`,\n `a ${radius},${radius} 0 1 0 ${radius * 2},0`,\n `a ${radius},${radius} 0 1 0 ${-(radius * 2)},0`\n ].join(' ');\n return svgPath;\n}\n\nfunction renderLine(context, begin, end, width) {\n const linkPoints1 = computeLinksPoints(begin, computeAxeAngle(begin, end), width);\n const linkPoints2 = computeLinksPoints(end, computeAxeAngle(begin, end), width);\n\n const svgPath = [\n `M ${linkPoints1[0].x},${linkPoints1[0].y}`,\n `L ${linkPoints2[0].x},${linkPoints2[0].y}`,\n `L ${linkPoints2[1].x},${linkPoints2[1].y}`,\n `L ${linkPoints1[1].x},${linkPoints1[1].y}`\n ].join(' ');\n return svgPath;\n}\n\nfunction renderFinal(context, begin, end, width) {\n const ARCSPLIT = 6;\n const angle = computeAxeAngle(begin, end);\n const linkPoints = computeLinksPoints(end, angle, width);\n\n const parts = [`M ${linkPoints[0].x},${linkPoints[0].y}`];\n for (let i = 1; i <= ARCSPLIT; i++) {\n const newAngle = angle - (i * (Math.PI / ARCSPLIT));\n parts.push(`L ${end.x - (end.p * width * Math.sin(newAngle))},${end.y + (end.p * width * Math.cos(newAngle))}`);\n }\n const svgPath = parts.join(' ');\n return svgPath;\n}\n\nfunction renderQuadratic(context, begin, end, ctrl, width) {\n const linkPoints1 = computeLinksPoints(begin, computeAxeAngle(begin, ctrl), width);\n const linkPoints2 = computeLinksPoints(end, computeAxeAngle(ctrl, end), width);\n const linkPoints3 = computeLinksPoints(ctrl, computeAxeAngle(begin, end), width);\n\n const svgPath = [\n `M ${linkPoints1[0].x},${linkPoints1[0].y}`,\n `Q ${linkPoints3[0].x},${linkPoints3[0].y} ${linkPoints2[0].x},${linkPoints2[0].y}`,\n `L ${linkPoints2[1].x},${linkPoints2[1].y}`,\n `Q ${linkPoints3[1].x},${linkPoints3[1].y} ${linkPoints1[1].x},${linkPoints1[1].y}`\n ].join(' ');\n return svgPath;\n}\n\n/**\n * Draw a stroke on a svg tag, using quadratics\n * @param {Object} context Current rendering context\n * @param {Stroke} stroke Current stroke to be drawn\n */\nexport function drawStroke(context, stroke) {\n const length = stroke.x.length;\n const width = stroke.width;\n const firstPoint = StrokeComponent.getPointByIndex(stroke, 0);\n const nbquadratics = length - 2;\n\n const parts = [];\n if (length < 3) {\n parts.push(renderArc(context, firstPoint, width * 0.6));\n } else {\n parts.push(renderArc(context, firstPoint, width * firstPoint.p));\n parts.push(renderLine(context, firstPoint, computeMiddlePoint(firstPoint, StrokeComponent.getPointByIndex(stroke, 1)), width));\n\n for (let i = 0; i < nbquadratics; i++) {\n parts.push(renderQuadratic(context, computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, i), StrokeComponent.getPointByIndex(stroke, i + 1)), computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, i + 1), StrokeComponent.getPointByIndex(stroke, i + 2)), StrokeComponent.getPointByIndex(stroke, i + 1), width));\n }\n parts.push(renderLine(context, computeMiddlePoint(StrokeComponent.getPointByIndex(stroke, length - 2), StrokeComponent.getPointByIndex(stroke, length - 1)), StrokeComponent.getPointByIndex(stroke, length - 1), width));\n parts.push(renderFinal(context, StrokeComponent.getPointByIndex(stroke, length - 2), StrokeComponent.getPointByIndex(stroke, length - 1), width));\n }\n const svgPath = parts.join(' ');\n\n context\n .attr('color', stroke.color)\n .style('fill', stroke.color)\n .style('stroke', 'transparent')\n .classed('pending-stroke', true)\n .attr('d', `${svgPath}Z`);\n}\n", - "static": true, - "longname": "src/renderer/svg/stroker/QuadraticSVGStroker.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 470, - "kind": "function", - "name": "getInfo", - "memberof": "src/renderer/svg/stroker/QuadraticSVGStroker.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/svg/stroker/QuadraticSVGStroker.js~getInfo", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/svg/stroker/QuadraticSVGStroker.js", - "importStyle": "{getInfo}", - "description": "Get info", - "lineNumber": 8, - "params": [], - "return": { - "nullable": null, - "types": [ - "StrokerInfo" - ], - "spread": false, - "description": "Information about this stroker" - } - }, - { - "__docId__": 471, - "kind": "function", - "name": "renderArc", - "memberof": "src/renderer/svg/stroker/QuadraticSVGStroker.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/svg/stroker/QuadraticSVGStroker.js~renderArc", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/svg/stroker/QuadraticSVGStroker.js", - "importStyle": null, - "description": null, - "lineNumber": 16, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "center", - "types": [ - "*" - ] - }, - { - "name": "radius", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 472, - "kind": "function", - "name": "renderLine", - "memberof": "src/renderer/svg/stroker/QuadraticSVGStroker.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/svg/stroker/QuadraticSVGStroker.js~renderLine", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/svg/stroker/QuadraticSVGStroker.js", - "importStyle": null, - "description": null, - "lineNumber": 26, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "begin", - "types": [ - "*" - ] - }, - { - "name": "end", - "types": [ - "*" - ] - }, - { - "name": "width", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 473, - "kind": "function", - "name": "renderFinal", - "memberof": "src/renderer/svg/stroker/QuadraticSVGStroker.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/svg/stroker/QuadraticSVGStroker.js~renderFinal", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/svg/stroker/QuadraticSVGStroker.js", - "importStyle": null, - "description": null, - "lineNumber": 39, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "begin", - "types": [ - "*" - ] - }, - { - "name": "end", - "types": [ - "*" - ] - }, - { - "name": "width", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 474, - "kind": "function", - "name": "renderQuadratic", - "memberof": "src/renderer/svg/stroker/QuadraticSVGStroker.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/svg/stroker/QuadraticSVGStroker.js~renderQuadratic", - "access": null, - "export": false, - "importPath": "myscript/src/renderer/svg/stroker/QuadraticSVGStroker.js", - "importStyle": null, - "description": null, - "lineNumber": 53, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "context", - "types": [ - "*" - ] - }, - { - "name": "begin", - "types": [ - "*" - ] - }, - { - "name": "end", - "types": [ - "*" - ] - }, - { - "name": "ctrl", - "types": [ - "*" - ] - }, - { - "name": "width", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 475, - "kind": "function", - "name": "drawStroke", - "memberof": "src/renderer/svg/stroker/QuadraticSVGStroker.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/svg/stroker/QuadraticSVGStroker.js~drawStroke", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/svg/stroker/QuadraticSVGStroker.js", - "importStyle": "{drawStroke}", - "description": "Draw a stroke on a svg tag, using quadratics", - "lineNumber": 72, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "optional": false, - "name": "stroke", - "description": "Current stroke to be drawn" - } - ] - }, - { - "__docId__": 476, - "kind": "file", - "name": "src/renderer/svg/symbols/StrokeSymbolSVGRenderer.js", - "content": "/**\n * Draw a stroke symbol\n * @param {Object} context Current rendering context\n * @param {Stroke} stroke Stroke to be drawn\n * @param {Stroker} stroker Stroker to use to render a stroke\n */\nexport function drawStroke(context, stroke, stroker) {\n if (stroker) {\n stroker.drawStroke(context, stroke);\n }\n}\n", - "static": true, - "longname": "src/renderer/svg/symbols/StrokeSymbolSVGRenderer.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 477, - "kind": "function", - "name": "drawStroke", - "memberof": "src/renderer/svg/symbols/StrokeSymbolSVGRenderer.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/renderer/svg/symbols/StrokeSymbolSVGRenderer.js~drawStroke", - "access": null, - "export": true, - "importPath": "myscript/src/renderer/svg/symbols/StrokeSymbolSVGRenderer.js", - "importStyle": "{drawStroke}", - "description": "Draw a stroke symbol", - "lineNumber": 7, - "params": [ - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "context", - "description": "Current rendering context" - }, - { - "nullable": null, - "types": [ - "Stroke" - ], - "spread": false, - "optional": false, - "name": "stroke", - "description": "Stroke to be drawn" - }, - { - "nullable": null, - "types": [ - "Stroker" - ], - "spread": false, - "optional": false, - "name": "stroker", - "description": "Stroker to use to render a stroke" - } - ] - }, - { - "__docId__": 478, - "kind": "file", - "name": "src/smartguide/SmartGuide.js", - "content": "import PerfectScrollbar from 'perfect-scrollbar';\nimport Clipboard from 'clipboard';\nimport Constants from '../configuration/Constants';\n\n/**\n * Smart guide\n * @typedef {Object} SmartGuide\n * @property {Editor} editor - A reference to the current editor.\n * @property {String} wordToChange - Word to change following a click on a word.\n * @property {String} lastWord - Keep the last word of the previous export to compare with the new and scroll if it's different.\n * @property {String} previousLabelExport - Keep the previous label export to know if we should repopulate the prompter text.\n * @property {PerfectScrollbar} perfectScrollbar - Perfect Scrollbar used to get gestures from smart guide using touch-action none anyway and get scrolling too.\n * @property {Object} elements - All the HTML elements of the smart guide.\n * @property {Number} smartGuideTimeOutId - Id of the setTimeOut from fade out animation to clear.\n * @property {String} randomString - Random string used in case of multiple smart guide.\n */\n\n/**\n * Create all the smart guide HTML elements.\n */\nfunction createHTMLElements(randomString) {\n /**\n * The smart guide element.\n * @type {HTMLDivElement}\n */\n const smartGuideElement = document.createElement('div');\n smartGuideElement.id = 'smartguide' + randomString;\n smartGuideElement.classList.add('smartguide');\n\n /**\n * The prompter text element that contains the text to get the overflow working.\n * @type {HTMLDivElement}\n */\n const textElement = document.createElement('div');\n textElement.id = 'prompter-text' + randomString;\n textElement.classList.add('prompter-text');\n textElement.setAttribute('touch-action', 'none');\n\n /**\n * The text container element that contains the text element.\n * @type {HTMLDivElement}\n */\n const textContainer = document.createElement('div');\n textContainer.id = 'prompter-text-container' + randomString;\n textContainer.classList.add('prompter-text-container');\n textContainer.appendChild(textElement);\n\n /**\n * The actions menu represented by the ellipsis character.\n * @type {HTMLDivElement}\n */\n const ellipsisElement = document.createElement('div');\n ellipsisElement.id = 'ellipsis' + randomString;\n ellipsisElement.classList.add('ellipsis');\n ellipsisElement.innerHTML = '...';\n\n /**\n * The tag element.\n * @type {HTMLDivElement}\n */\n const tagElement = document.createElement('div');\n tagElement.id = 'tag-icon' + randomString;\n tagElement.classList.add('tag-icon');\n tagElement.innerHTML = '¶';\n\n /**\n * The candidates element that contains the candidates for a word.\n * @type {HTMLDivElement}\n */\n const candidatesElement = document.createElement('div');\n candidatesElement.id = 'candidates' + randomString;\n candidatesElement.classList.add('candidates');\n\n /**\n * The menu element that contains the actions.\n * @type {HTMLDivElement}\n */\n const menuElement = document.createElement('div');\n menuElement.id = 'more-menu' + randomString;\n menuElement.classList.add('more-menu');\n\n /**\n * The convert button from actions menu.\n * @type {HTMLButtonElement}\n */\n const convertElement = document.createElement('button');\n convertElement.classList.add('options-label-button');\n convertElement.id = 'convert' + randomString;\n convertElement.innerHTML = 'Convert';\n\n /**\n * The copy button from actions menu.\n * @type {HTMLButtonElement}\n */\n const copyElement = document.createElement('button');\n copyElement.classList.add('options-label-button');\n copyElement.id = 'copy' + randomString;\n copyElement.innerHTML = 'Copy';\n\n /**\n * The delete button from actions menu.\n * @type {HTMLButtonElement}\n */\n const deleteElement = document.createElement('button');\n deleteElement.classList.add('options-label-button');\n deleteElement.id = 'delete' + randomString;\n deleteElement.innerHTML = 'Delete';\n\n return {\n smartGuideElement,\n textElement,\n textContainer,\n candidatesElement,\n menuElement,\n tagElement,\n ellipsisElement,\n convertElement,\n copyElement,\n deleteElement,\n };\n}\n\n/**\n * Check if node is in shadow dom\n * @param {Node} node - A node element.\n * @returns {boolean} true if is in shadow dom, false otherwise.\n */\nfunction isInShadow(node) {\n let parent = (node && node.parentNode);\n while (parent) {\n if (parent.toString() === '[object ShadowRoot]') {\n return true;\n }\n parent = parent.parentNode;\n }\n return false;\n}\n\n/**\n * Show the actions of the action menu.\n * @param {Event} evt - Event used to insert the option div using the event's target.\n * @param {Object} elements - All the elements of the smart guide.\n * @param {SmartGuide} smartGuide\n */\nfunction showActions(evt, elements) {\n const elementsRef = elements;\n\n const insertActions = () => {\n elementsRef.menuElement.appendChild(elementsRef.convertElement);\n elementsRef.menuElement.appendChild(elementsRef.copyElement);\n elementsRef.menuElement.appendChild(elementsRef.deleteElement);\n\n const parent = evt.target.parentNode;\n parent.insertBefore(elementsRef.menuElement, evt.target);\n };\n\n const positionActions = () => {\n // 48 to get the boundary of smart guide element.\n const left = evt.target.offsetLeft - 68;\n elementsRef.menuElement.style.left = `${left}px`;\n };\n\n const isMenuInDocument = document.contains(elementsRef.menuElement);\n if (!isInShadow(elementsRef.menuElement) && !isMenuInDocument) {\n elementsRef.menuElement.style.display = 'flex';\n positionActions();\n insertActions();\n } else if (elementsRef.menuElement.style.display === 'none') {\n positionActions();\n elementsRef.menuElement.style.display = 'flex';\n }\n}\n\n/**\n * Show the candidates of the clicked word.\n * @param {Event} evt - Event used to determine the clicked word.\n * @param {Editor} editor - A reference to the editor.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nfunction showCandidates(evt, editor, smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n\n if (evt.target.id !== `prompter-text${smartGuide.randomString}`) {\n const id = evt.target.id.replace('word-', '').replace(smartGuide.randomString, '');\n const words = JSON.parse(editor.exports[Constants.Exports.JIIX]).words;\n smartGuideRef.wordToChange = words[id];\n smartGuideRef.wordToChange.id = id;\n elementsRef.candidatesElement.innerHTML = '';\n if (smartGuideRef.wordToChange && smartGuideRef.wordToChange.candidates) {\n elementsRef.candidatesElement.style.display = 'flex';\n smartGuideRef.wordToChange.candidates.forEach((word, index) => {\n if (smartGuideRef.wordToChange.label === word) {\n elementsRef.candidatesElement.innerHTML += `${word}`;\n } else {\n elementsRef.candidatesElement.innerHTML += `${word}`;\n }\n });\n // get the parent parent of word to insert just before smart guide, 48 to get the boundary of smart guide element.\n const top = 48;\n const left = evt.target.getBoundingClientRect().left - 60;\n elementsRef.candidatesElement.style.top = `${top}px`;\n elementsRef.candidatesElement.style.left = `${left}px`;\n\n const parent = evt.target.parentNode.parentNode.parentNode;\n parent.insertBefore(elementsRef.candidatesElement, evt.target.parentNode.parentNode);\n }\n }\n}\n\n/**\n * Call the import_ function of the editor to import the modified Jiix with the new label.\n * @param {Event} evt - Event to determine the clicked candidate.\n * @param {Editor} editor - A reference to the editor.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nfunction clickCandidate(evt, editor, smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n const candidate = evt.target.innerText;\n\n if (candidate !== smartGuideRef.wordToChange.label && smartGuideRef.wordToChange.candidates.includes(candidate)) {\n const jiixToImport = JSON.parse(editor.exports[Constants.Exports.JIIX]);\n jiixToImport.words[smartGuideRef.wordToChange.id].label = candidate;\n // eslint-disable-next-line no-underscore-dangle\n editor.import_(JSON.stringify(jiixToImport), Constants.Exports.JIIX);\n }\n elementsRef.candidatesElement.style.display = 'none';\n}\n\n/**\n * Add the listeners to the smart guide elements.\n * @param {Editor} editor - A reference to the editor.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nfunction addListeners(editor, smartGuide) {\n const elementsRef = smartGuide.elements;\n\n elementsRef.textElement.addEventListener('click', evt => showCandidates(evt, editor, smartGuide));\n elementsRef.candidatesElement.addEventListener('click', evt => clickCandidate(evt, editor, smartGuide));\n elementsRef.ellipsisElement.addEventListener('click', evt => showActions(evt, elementsRef));\n elementsRef.copyElement.addEventListener('click', () => {\n elementsRef.menuElement.style.display = 'none';\n });\n elementsRef.convertElement.addEventListener('click', () => {\n elementsRef.menuElement.style.display = 'none';\n editor.convert();\n });\n elementsRef.deleteElement.addEventListener('click', () => {\n elementsRef.menuElement.style.display = 'none';\n editor.clear();\n });\n}\n\n/**\n * Call mutation observer to trigger fade out animation.\n * @param {number} [duration=10000] - the duration in milliseconds before calling the fade out animation.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nfunction callFadeOutObserver(duration = 10000, smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n // eslint-disable-next-line no-undef\n const observer = new MutationObserver((mutations) => {\n mutations.forEach(() => {\n if (smartGuideRef.smartGuideTimeOutId) {\n clearTimeout(smartGuideRef.smartGuideTimeOutId);\n }\n if (elementsRef.candidatesElement.style.display === 'none' && elementsRef.menuElement.style.display === 'none') {\n smartGuideRef.smartGuideTimeOutId = setTimeout(() => {\n elementsRef.smartGuideElement.classList.add('smartguide-out');\n elementsRef.smartGuideElement.classList.remove('smartguide-in');\n }, duration);\n } else if (!document.contains(elementsRef.candidatesElement) && !document.contains(elementsRef.menuElement)) {\n smartGuideRef.smartGuideTimeOutId = setTimeout(() => {\n elementsRef.smartGuideElement.classList.add('smartguide-out');\n elementsRef.smartGuideElement.classList.remove('smartguide-in');\n }, duration);\n }\n });\n });\n observer.observe(elementsRef.smartGuideElement, { childList: true, subtree: true, attributes: true });\n}\n\n/**\n * Create a new smart guide\n * @param {Editor} editor - A reference to the editor.\n * @returns {SmartGuide} New smart guide\n */\nexport function createSmartGuide(editor) {\n const randomString = '-' + Math.random().toString(10).substring(2, 12);\n const elements = createHTMLElements(randomString);\n\n /**\n * Clipboard from clipboard.js used to get copy across all browsers.\n * @type {Clipboard}\n */\n const clipboard = new Clipboard(elements.copyElement);\n const perfectScrollbar = new PerfectScrollbar(elements.textContainer, { suppressScrollY: true });\n\n const smartGuide = {\n editor,\n wordToChange: '',\n lastWord: '',\n previousLabelExport: ' ',\n perfectScrollbar,\n elements,\n smartGuideTimeOutId: 0,\n randomString\n };\n addListeners(editor, smartGuide);\n\n if (editor.configuration.recognitionParams.v4.text.smartGuideFadeOut.enable) {\n callFadeOutObserver(editor.configuration.recognitionParams.v4.text.smartGuideFadeOut.duration, smartGuide);\n }\n\n return smartGuide;\n}\n\nexport function resize(smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n\n const mmToPixels = 3.779527559;\n let left = smartGuideRef.editor.configuration.recognitionParams.v4.text.margin.left * mmToPixels;\n\n const maxWidthTextContainer = smartGuideRef.editor.domElement.clientWidth - left - elementsRef.tagElement.offsetWidth - 35 - left;\n\n // Assign a max width to the smartguide based on the editor width, the left position and a small margin for the ellipsis (48px)\n elementsRef.textContainer.style.width = `${maxWidthTextContainer}px`;\n elementsRef.textContainer.style.maxWidth = `${maxWidthTextContainer}px`;\n\n left = elementsRef.tagElement.offsetWidth;\n left += maxWidthTextContainer;\n elementsRef.ellipsisElement.style.left = `${left}px`;\n\n elementsRef.smartGuideElement.style.width = `${elementsRef.tagElement.offsetWidth + elementsRef.textContainer.offsetWidth + elementsRef.ellipsisElement.offsetWidth}px`;\n smartGuideRef.perfectScrollbar.update();\n}\n\n/**\n * Insert the smart guide HTML elements in the DOM.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n */\nexport function insertSmartGuide(smartGuide) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n\n const insertSmartGuideElement = (left, top) => {\n elementsRef.smartGuideElement.style.top = `${top}px`;\n elementsRef.smartGuideElement.style.left = `${left}px`;\n elementsRef.smartGuideElement.style.visibility = 'hidden';\n\n const parent = smartGuideRef.editor.domElement;\n parent.insertBefore(elementsRef.smartGuideElement, smartGuideRef.editor.loader);\n };\n const insertTag = () => {\n elementsRef.smartGuideElement.appendChild(elementsRef.tagElement);\n };\n const insertTextContainer = (left, maxWidth) => {\n elementsRef.textContainer.style.left = `${left}px`;\n\n // Assign a max width to the smartguide based on the editor width, the left position and a small margin for the ellipsis (48px)\n elementsRef.textContainer.style.width = `${maxWidth}px`;\n elementsRef.textContainer.style.maxWidth = `${maxWidth}px`;\n\n elementsRef.smartGuideElement.appendChild(elementsRef.textContainer);\n };\n const insertEllipsis = (left) => {\n elementsRef.ellipsisElement.style.left = `${left}px`;\n\n elementsRef.smartGuideElement.appendChild(elementsRef.ellipsisElement);\n };\n\n\n // FIXME Use value from contentChanged when available\n\n const mmToPixels = 3.779527559;\n\n const marginTop = smartGuideRef.editor.configuration.recognitionParams.v4.text.margin.top * mmToPixels;\n const marginLeft = smartGuideRef.editor.configuration.recognitionParams.v4.text.margin.left * mmToPixels;\n\n // 12 is the space between line in mm\n const top = marginTop - (12 * mmToPixels);\n let left = marginLeft;\n\n insertSmartGuideElement(left, top);\n insertTag();\n\n // 35 is the ellipsis element width\n const maxWidthTextContainer = smartGuideRef.editor.domElement.clientWidth - left - elementsRef.tagElement.offsetWidth - 35 - left;\n left = elementsRef.tagElement.offsetWidth;\n insertTextContainer(left, maxWidthTextContainer);\n\n left += maxWidthTextContainer;\n insertEllipsis(left);\n\n elementsRef.menuElement.style.display = 'none';\n elementsRef.menuElement.appendChild(elementsRef.convertElement);\n elementsRef.menuElement.appendChild(elementsRef.copyElement);\n elementsRef.menuElement.appendChild(elementsRef.deleteElement);\n elementsRef.smartGuideElement.appendChild(elementsRef.menuElement);\n\n elementsRef.candidatesElement.style.display = 'none';\n elementsRef.smartGuideElement.appendChild(elementsRef.candidatesElement);\n\n // 48px as set in css\n elementsRef.smartGuideElement.style.height = '48px';\n elementsRef.smartGuideElement.style.width = `${elementsRef.tagElement.offsetWidth + elementsRef.textContainer.offsetWidth + elementsRef.ellipsisElement.offsetWidth}px`;\n smartGuideRef.perfectScrollbar.update();\n}\n\n/**\n * Launch the smartguide.\n * @param {SmartGuide} smartGuide - A reference to the smart guide.\n * @param {Object} exports - The export from the editor.\n */\nexport function launchSmartGuide(smartGuide, exports) {\n const smartGuideRef = smartGuide;\n const elementsRef = smartGuide.elements;\n\n const isSmartGuideInDocument = document.contains(elementsRef.smartGuideElement);\n\n if (!isInShadow(elementsRef.smartGuideElement) && !isSmartGuideInDocument) {\n insertSmartGuide(smartGuide);\n }\n\n const addAnimationToModifiedWord = (words) => {\n if (smartGuideRef.tempWords && smartGuideRef.tempWords.length === words.length) {\n const labelWordsArray = words.map(word => word.label);\n const tempLabelWordsArray = smartGuideRef.tempWords.map(word => word.label);\n const wordChangedId = labelWordsArray.indexOf(labelWordsArray.filter(a => tempLabelWordsArray.indexOf(a) === -1)[0]);\n if (document.getElementById(`word-${wordChangedId}${smartGuide.randomString}`) && wordChangedId > -1) {\n document.getElementById(`word-${wordChangedId}${smartGuide.randomString}`).classList.add('modified-word');\n elementsRef.textContainer.scrollLeft = document.getElementById(`word-${wordChangedId}${smartGuide.randomString}`).offsetLeft - 10;\n }\n }\n smartGuideRef.tempWords = JSON.parse(exports[Constants.Exports.JIIX]).words;\n };\n\n const createWordSpan = (empty, index, word) => {\n const span = document.createElement('span');\n span.id = `word-${index}${smartGuide.randomString}`;\n if (empty) {\n span.innerHTML = ' ';\n } else {\n span.textContent = word.label;\n }\n return span;\n };\n\n // Possible optimisation ? Check if we can find a way to not repopulate the smartguide every time even if we now use Document fragment\n const populatePrompter = (words) => {\n elementsRef.textElement.innerHTML = '';\n // We use a DocumentFragment to reflow the DOM only one time as it is not part of the DOM\n const myFragment = document.createDocumentFragment();\n words.forEach((word, index) => {\n if (word.label === ' ' || word.label.includes('\\n')) {\n myFragment.appendChild(createWordSpan(true, index));\n } else if (index !== words.length - 1) {\n myFragment.appendChild(createWordSpan(false, index, word));\n } else {\n elementsRef.textElement.appendChild(myFragment);\n smartGuideRef.perfectScrollbar.update();\n if (smartGuideRef.lastWord === '') {\n smartGuideRef.lastWord = word;\n }\n const span = createWordSpan(false, index, word);\n // This is used to scroll to last word if last word is modified\n if ((smartGuideRef.lastWord.candidates !== word.candidates) && (smartGuideRef.lastWord.label !== word.label)) {\n span.classList.add('added-word');\n elementsRef.textElement.appendChild(span);\n elementsRef.textContainer.scrollLeft = span.offsetLeft;\n smartGuideRef.lastWord = word;\n } else {\n elementsRef.textElement.appendChild(span);\n elementsRef.textContainer.scrollLeft = span.offsetLeft;\n }\n }\n });\n };\n\n if (exports && JSON.parse(exports[Constants.Exports.JIIX]).words.length > 0) {\n elementsRef.smartGuideElement.classList.add('smartguide-in');\n elementsRef.smartGuideElement.classList.remove('smartguide-out');\n elementsRef.candidatesElement.style.display = 'none';\n elementsRef.menuElement.style.display = 'none';\n if (smartGuideRef.previousLabelExport && smartGuideRef.previousLabelExport !== JSON.parse(exports[Constants.Exports.JIIX]).label) {\n const words = JSON.parse(exports[Constants.Exports.JIIX]).words;\n populatePrompter(words);\n addAnimationToModifiedWord(words);\n }\n smartGuideRef.previousLabelExport = JSON.parse(exports[Constants.Exports.JIIX]).label;\n // This is required by clipboard.js to get the text to be copied.\n elementsRef.copyElement.setAttribute('data-clipboard-text', JSON.parse(exports[Constants.Exports.JIIX]).label);\n } else {\n elementsRef.smartGuideElement.classList.add('smartguide-out');\n elementsRef.smartGuideElement.classList.remove('smartguide-in');\n }\n\n return smartGuideRef;\n}\n", - "static": true, - "longname": "src/smartguide/SmartGuide.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 479, - "kind": "typedef", - "name": "SmartGuide", - "memberof": "src/smartguide/SmartGuide.js", - "static": true, - "longname": "src/smartguide/SmartGuide.js~SmartGuide", - "access": null, - "description": "Smart guide", - "properties": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "A reference to the current editor." - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "wordToChange", - "description": "Word to change following a click on a word." - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "lastWord", - "description": "Keep the last word of the previous export to compare with the new and scroll if it's different." - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "previousLabelExport", - "description": "Keep the previous label export to know if we should repopulate the prompter text." - }, - { - "nullable": null, - "types": [ - "PerfectScrollbar" - ], - "spread": false, - "optional": false, - "name": "perfectScrollbar", - "description": "Perfect Scrollbar used to get gestures from smart guide using touch-action none anyway and get scrolling too." - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "elements", - "description": "All the HTML elements of the smart guide." - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "name": "smartGuideTimeOutId", - "description": "Id of the setTimeOut from fade out animation to clear." - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "name": "randomString", - "description": "Random string used in case of multiple smart guide." - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "SmartGuide" - } - }, - { - "__docId__": 480, - "kind": "function", - "name": "createHTMLElements", - "memberof": "src/smartguide/SmartGuide.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/smartguide/SmartGuide.js~createHTMLElements", - "access": null, - "export": false, - "importPath": "myscript/src/smartguide/SmartGuide.js", - "importStyle": null, - "description": "Create all the smart guide HTML elements.", - "lineNumber": 21, - "params": [ - { - "name": "randomString", - "types": [ - "*" - ] - } - ], - "return": { - "types": [ - "{\"smartGuideElement\": *, \"textElement\": *, \"textContainer\": *, \"candidatesElement\": *, \"menuElement\": *, \"tagElement\": *, \"ellipsisElement\": *, \"convertElement\": *, \"copyElement\": *, \"deleteElement\": *}" - ] - } - }, - { - "__docId__": 481, - "kind": "function", - "name": "isInShadow", - "memberof": "src/smartguide/SmartGuide.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/smartguide/SmartGuide.js~isInShadow", - "access": null, - "export": false, - "importPath": "myscript/src/smartguide/SmartGuide.js", - "importStyle": null, - "description": "Check if node is in shadow dom", - "lineNumber": 128, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{boolean} true if is in shadow dom, false otherwise." - } - ], - "params": [ - { - "nullable": null, - "types": [ - "Node" - ], - "spread": false, - "optional": false, - "name": "node", - "description": "A node element." - } - ], - "return": { - "nullable": null, - "types": [ - "boolean" - ], - "spread": false, - "description": "true if is in shadow dom, false otherwise." - } - }, - { - "__docId__": 482, - "kind": "function", - "name": "showActions", - "memberof": "src/smartguide/SmartGuide.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/smartguide/SmartGuide.js~showActions", - "access": null, - "export": false, - "importPath": "myscript/src/smartguide/SmartGuide.js", - "importStyle": null, - "description": "Show the actions of the action menu.", - "lineNumber": 145, - "params": [ - { - "nullable": null, - "types": [ - "Event" - ], - "spread": false, - "optional": false, - "name": "evt", - "description": "Event used to insert the option div using the event's target." - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "elements", - "description": "All the elements of the smart guide." - }, - { - "nullable": null, - "types": [ - "SmartGuide" - ], - "spread": false, - "optional": false, - "name": "smartGuide", - "description": "" - } - ] - }, - { - "__docId__": 483, - "kind": "function", - "name": "showCandidates", - "memberof": "src/smartguide/SmartGuide.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/smartguide/SmartGuide.js~showCandidates", - "access": null, - "export": false, - "importPath": "myscript/src/smartguide/SmartGuide.js", - "importStyle": null, - "description": "Show the candidates of the clicked word.", - "lineNumber": 180, - "params": [ - { - "nullable": null, - "types": [ - "Event" - ], - "spread": false, - "optional": false, - "name": "evt", - "description": "Event used to determine the clicked word." - }, - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "A reference to the editor." - }, - { - "nullable": null, - "types": [ - "SmartGuide" - ], - "spread": false, - "optional": false, - "name": "smartGuide", - "description": "A reference to the smart guide." - } - ] - }, - { - "__docId__": 484, - "kind": "function", - "name": "clickCandidate", - "memberof": "src/smartguide/SmartGuide.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/smartguide/SmartGuide.js~clickCandidate", - "access": null, - "export": false, - "importPath": "myscript/src/smartguide/SmartGuide.js", - "importStyle": null, - "description": "Call the import_ function of the editor to import the modified Jiix with the new label.", - "lineNumber": 217, - "params": [ - { - "nullable": null, - "types": [ - "Event" - ], - "spread": false, - "optional": false, - "name": "evt", - "description": "Event to determine the clicked candidate." - }, - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "A reference to the editor." - }, - { - "nullable": null, - "types": [ - "SmartGuide" - ], - "spread": false, - "optional": false, - "name": "smartGuide", - "description": "A reference to the smart guide." - } - ] - }, - { - "__docId__": 485, - "kind": "function", - "name": "addListeners", - "memberof": "src/smartguide/SmartGuide.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/smartguide/SmartGuide.js~addListeners", - "access": null, - "export": false, - "importPath": "myscript/src/smartguide/SmartGuide.js", - "importStyle": null, - "description": "Add the listeners to the smart guide elements.", - "lineNumber": 236, - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "A reference to the editor." - }, - { - "nullable": null, - "types": [ - "SmartGuide" - ], - "spread": false, - "optional": false, - "name": "smartGuide", - "description": "A reference to the smart guide." - } - ] - }, - { - "__docId__": 486, - "kind": "function", - "name": "callFadeOutObserver", - "memberof": "src/smartguide/SmartGuide.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/smartguide/SmartGuide.js~callFadeOutObserver", - "access": null, - "export": false, - "importPath": "myscript/src/smartguide/SmartGuide.js", - "importStyle": null, - "description": "Call mutation observer to trigger fade out animation.", - "lineNumber": 260, - "params": [ - { - "nullable": null, - "types": [ - "number" - ], - "spread": false, - "optional": true, - "defaultValue": "10000", - "defaultRaw": 10000, - "name": "duration", - "description": "the duration in milliseconds before calling the fade out animation." - }, - { - "nullable": null, - "types": [ - "SmartGuide" - ], - "spread": false, - "optional": false, - "name": "smartGuide", - "description": "A reference to the smart guide." - } - ] - }, - { - "__docId__": 487, - "kind": "function", - "name": "createSmartGuide", - "memberof": "src/smartguide/SmartGuide.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/smartguide/SmartGuide.js~createSmartGuide", - "access": null, - "export": true, - "importPath": "myscript/src/smartguide/SmartGuide.js", - "importStyle": "{createSmartGuide}", - "description": "Create a new smart guide", - "lineNumber": 290, - "unknown": [ - { - "tagName": "@returns", - "tagValue": "{SmartGuide} New smart guide" - } - ], - "params": [ - { - "nullable": null, - "types": [ - "Editor" - ], - "spread": false, - "optional": false, - "name": "editor", - "description": "A reference to the editor." - } - ], - "return": { - "nullable": null, - "types": [ - "SmartGuide" - ], - "spread": false, - "description": "New smart guide" - } - }, - { - "__docId__": 488, - "kind": "function", - "name": "resize", - "memberof": "src/smartguide/SmartGuide.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/smartguide/SmartGuide.js~resize", - "access": null, - "export": true, - "importPath": "myscript/src/smartguide/SmartGuide.js", - "importStyle": "{resize}", - "description": null, - "lineNumber": 320, - "undocument": true, - "unknown": [ - { - "tagName": "@_undocument", - "tagValue": "" - } - ], - "params": [ - { - "name": "smartGuide", - "types": [ - "*" - ] - } - ] - }, - { - "__docId__": 489, - "kind": "function", - "name": "insertSmartGuide", - "memberof": "src/smartguide/SmartGuide.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/smartguide/SmartGuide.js~insertSmartGuide", - "access": null, - "export": true, - "importPath": "myscript/src/smartguide/SmartGuide.js", - "importStyle": "{insertSmartGuide}", - "description": "Insert the smart guide HTML elements in the DOM.", - "lineNumber": 345, - "params": [ - { - "nullable": null, - "types": [ - "SmartGuide" - ], - "spread": false, - "optional": false, - "name": "smartGuide", - "description": "A reference to the smart guide." - } - ] - }, - { - "__docId__": 490, - "kind": "function", - "name": "launchSmartGuide", - "memberof": "src/smartguide/SmartGuide.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/smartguide/SmartGuide.js~launchSmartGuide", - "access": null, - "export": true, - "importPath": "myscript/src/smartguide/SmartGuide.js", - "importStyle": "{launchSmartGuide}", - "description": "Launch the smartguide.", - "lineNumber": 418, - "params": [ - { - "nullable": null, - "types": [ - "SmartGuide" - ], - "spread": false, - "optional": false, - "name": "smartGuide", - "description": "A reference to the smart guide." - }, - { - "nullable": null, - "types": [ - "Object" - ], - "spread": false, - "optional": false, - "name": "exports", - "description": "The export from the editor." - } - ], - "return": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 491, - "kind": "file", - "name": "src/util/ModelStats.js", - "content": "import { utilLogger as logger } from '../configuration/LoggerConfig';\nimport * as Cdkv3RestTextRecognizer from '../recognizer/rest/v3/Cdkv3RestTextRecognizer';\nimport * as RecognizerContext from '../model/RecognizerContext';\nimport defaultConfiguration from '../configuration/DefaultConfiguration';\n\n/**\n * @typedef {Object} Stats\n * @property {Number} strokesCount=0\n * @property {Number} pointsCount=0\n * @property {Number} byteSize=0\n * @property {Number} humanSize=0\n * @property {String} humanUnit=BYTE\n */\n\n/**\n * @param {Model} model Current model\n * @return {Stats} Statistics about recognition\n */\nexport function computeStats(model) {\n const stats = { strokesCount: 0, pointsCount: 0, byteSize: 0, humanSize: 0, humanUnit: 'BYTE' };\n if (model.rawStrokes) {\n stats.strokesCount = model.rawStrokes.length;\n\n const restMessage = Cdkv3RestTextRecognizer.buildInput(RecognizerContext.createEmptyRecognizerContext({ configuration: defaultConfiguration }), model);\n stats.pointsCount = model.rawStrokes.map(stroke => stroke.x.length).reduce((a, b) => a + b, 0);\n // We start with 270 as it is the size in bytes. Make a real computation implies to recode a doRecognition\n const byteSize = restMessage.textInput.length;\n stats.byteSize = byteSize;\n if (byteSize < 270) {\n stats.humanUnit = 'BYTE';\n stats.byteSize = 0;\n stats.humanSize = 0;\n } else if (byteSize < 2048) {\n stats.humanUnit = 'BYTES';\n stats.humanSize = byteSize;\n } else if (byteSize < 1024 * 1024) {\n stats.humanUnit = 'KiB';\n stats.humanSize = (byteSize / 1024).toFixed(2);\n } else {\n stats.humanUnit = 'MiB';\n stats.humanSize = (byteSize / 1024 / 1024).toFixed(2);\n }\n }\n logger.info('Stats', stats);\n return stats;\n}\n", - "static": true, - "longname": "src/util/ModelStats.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 492, - "kind": "typedef", - "name": "Stats", - "memberof": "src/util/ModelStats.js", - "static": true, - "longname": "src/util/ModelStats.js~Stats", - "access": null, - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "defaultValue": "0", - "defaultRaw": 0, - "name": "strokesCount", - "description": "" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "defaultValue": "0", - "defaultRaw": 0, - "name": "pointsCount", - "description": "" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "defaultValue": "0", - "defaultRaw": 0, - "name": "byteSize", - "description": "" - }, - { - "nullable": null, - "types": [ - "Number" - ], - "spread": false, - "optional": false, - "defaultValue": "0", - "defaultRaw": 0, - "name": "humanSize", - "description": "" - }, - { - "nullable": null, - "types": [ - "String" - ], - "spread": false, - "optional": false, - "defaultValue": "BYTE", - "defaultRaw": "BYTE", - "name": "humanUnit", - "description": "" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "Stats" - } - }, - { - "__docId__": 493, - "kind": "function", - "name": "computeStats", - "memberof": "src/util/ModelStats.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/util/ModelStats.js~computeStats", - "access": null, - "export": true, - "importPath": "myscript/src/util/ModelStats.js", - "importStyle": "{computeStats}", - "description": "", - "lineNumber": 19, - "params": [ - { - "nullable": null, - "types": [ - "Model" - ], - "spread": false, - "optional": false, - "name": "model", - "description": "Current model" - } - ], - "return": { - "nullable": null, - "types": [ - "Stats" - ], - "spread": false, - "description": "Statistics about recognition" - } - }, - { - "__docId__": 494, - "kind": "file", - "name": "src/util/PromiseHelper.js", - "content": "/**\n * @typedef {Object} DestructuredPromise\n * @property {Promise} promise\n * @property {function(value: Object)} resolve\n * @property {function(reason: Object)} reject\n */\n\n/**\n * @return {DestructuredPromise}\n */\nexport function destructurePromise() {\n let resolve;\n let reject;\n const initPromise = new Promise(\n (resolveParam, rejectParam) => {\n resolve = resolveParam;\n reject = rejectParam;\n });\n return { promise: initPromise, resolve, reject };\n}\n", - "static": true, - "longname": "src/util/PromiseHelper.js", - "access": null, - "description": null, - "lineNumber": 1 - }, - { - "__docId__": 495, - "kind": "typedef", - "name": "DestructuredPromise", - "memberof": "src/util/PromiseHelper.js", - "static": true, - "longname": "src/util/PromiseHelper.js~DestructuredPromise", - "access": null, - "description": "", - "properties": [ - { - "nullable": null, - "types": [ - "Promise" - ], - "spread": false, - "optional": false, - "name": "promise", - "description": "" - }, - { - "nullable": null, - "types": [ - "function(value: Object)" - ], - "spread": false, - "optional": false, - "name": "resolve", - "description": "" - }, - { - "nullable": null, - "types": [ - "function(reason: Object)" - ], - "spread": false, - "optional": false, - "name": "reject", - "description": "" - } - ], - "type": { - "types": [ - "Object" - ], - "optional": false, - "name": "DestructuredPromise" - } - }, - { - "__docId__": 496, - "kind": "function", - "name": "destructurePromise", - "memberof": "src/util/PromiseHelper.js", - "generator": false, - "async": false, - "static": true, - "longname": "src/util/PromiseHelper.js~destructurePromise", - "access": null, - "export": true, - "importPath": "myscript/src/util/PromiseHelper.js", - "importStyle": "{destructurePromise}", - "description": "", - "lineNumber": 11, - "params": [], - "return": { - "nullable": null, - "types": [ - "DestructuredPromise" - ], - "spread": false, - "description": "" - } - }, - { - "__docId__": 498, - "kind": "external", - "name": "Infinity", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Infinity", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 499, - "kind": "external", - "name": "NaN", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~NaN", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 500, - "kind": "external", - "name": "undefined", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~undefined", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 501, - "kind": "external", - "name": "null", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~null", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 502, - "kind": "external", - "name": "Object", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Object", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 503, - "kind": "external", - "name": "object", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~object", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 504, - "kind": "external", - "name": "Function", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Function", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 505, - "kind": "external", - "name": "function", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~function", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 506, - "kind": "external", - "name": "Boolean", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Boolean", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 507, - "kind": "external", - "name": "boolean", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~boolean", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 508, - "kind": "external", - "name": "Symbol", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Symbol", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 509, - "kind": "external", - "name": "Error", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Error", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 510, - "kind": "external", - "name": "EvalError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~EvalError", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 511, - "kind": "external", - "name": "InternalError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~InternalError", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 512, - "kind": "external", - "name": "RangeError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~RangeError", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 513, - "kind": "external", - "name": "ReferenceError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~ReferenceError", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 514, - "kind": "external", - "name": "SyntaxError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~SyntaxError", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 515, - "kind": "external", - "name": "TypeError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~TypeError", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 516, - "kind": "external", - "name": "URIError", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~URIError", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 517, - "kind": "external", - "name": "Number", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Number", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 518, - "kind": "external", - "name": "number", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~number", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 519, - "kind": "external", - "name": "Date", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Date", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 520, - "kind": "external", - "name": "String", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~String", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 521, - "kind": "external", - "name": "string", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~string", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 522, - "kind": "external", - "name": "RegExp", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~RegExp", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 523, - "kind": "external", - "name": "Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Array", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 524, - "kind": "external", - "name": "Int8Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Int8Array", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 525, - "kind": "external", - "name": "Uint8Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8Array", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 526, - "kind": "external", - "name": "Uint8ClampedArray", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint8ClampedArray", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 527, - "kind": "external", - "name": "Int16Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Int16Array", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 528, - "kind": "external", - "name": "Uint16Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint16Array", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 529, - "kind": "external", - "name": "Int32Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Int32Array", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 530, - "kind": "external", - "name": "Uint32Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Uint32Array", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 531, - "kind": "external", - "name": "Float32Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Float32Array", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 532, - "kind": "external", - "name": "Float64Array", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Float64Array", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 533, - "kind": "external", - "name": "Map", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Map", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 534, - "kind": "external", - "name": "Set", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Set", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 535, - "kind": "external", - "name": "WeakMap", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakMap", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 536, - "kind": "external", - "name": "WeakSet", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~WeakSet", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 537, - "kind": "external", - "name": "ArrayBuffer", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~ArrayBuffer", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 538, - "kind": "external", - "name": "DataView", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~DataView", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 539, - "kind": "external", - "name": "JSON", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~JSON", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 540, - "kind": "external", - "name": "Promise", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Promise", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 541, - "kind": "external", - "name": "Generator", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Generator", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 542, - "kind": "external", - "name": "GeneratorFunction", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~GeneratorFunction", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 543, - "kind": "external", - "name": "Reflect", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Reflect", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 544, - "kind": "external", - "name": "Proxy", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", - "memberof": "BuiltinExternal/ECMAScriptExternal.js", - "static": true, - "longname": "BuiltinExternal/ECMAScriptExternal.js~Proxy", - "access": null, - "description": "", - "lineNumber": 193, - "builtinExternal": true - }, - { - "__docId__": 546, - "kind": "external", - "name": "CanvasRenderingContext2D", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D", - "memberof": "BuiltinExternal/WebAPIExternal.js", - "static": true, - "longname": "BuiltinExternal/WebAPIExternal.js~CanvasRenderingContext2D", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 547, - "kind": "external", - "name": "DocumentFragment", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment", - "memberof": "BuiltinExternal/WebAPIExternal.js", - "static": true, - "longname": "BuiltinExternal/WebAPIExternal.js~DocumentFragment", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 548, - "kind": "external", - "name": "Element", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Element", - "memberof": "BuiltinExternal/WebAPIExternal.js", - "static": true, - "longname": "BuiltinExternal/WebAPIExternal.js~Element", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 549, - "kind": "external", - "name": "Event", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Event", - "memberof": "BuiltinExternal/WebAPIExternal.js", - "static": true, - "longname": "BuiltinExternal/WebAPIExternal.js~Event", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 550, - "kind": "external", - "name": "Node", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/Node", - "memberof": "BuiltinExternal/WebAPIExternal.js", - "static": true, - "longname": "BuiltinExternal/WebAPIExternal.js~Node", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 551, - "kind": "external", - "name": "NodeList", - "externalLink": "https://developer.mozilla.org/en-US/docs/Web/API/NodeList", - "memberof": "BuiltinExternal/WebAPIExternal.js", - "static": true, - "longname": "BuiltinExternal/WebAPIExternal.js~NodeList", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 552, - "kind": "external", - "name": "XMLHttpRequest", - "externalLink": "https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest", - "memberof": "BuiltinExternal/WebAPIExternal.js", - "static": true, - "longname": "BuiltinExternal/WebAPIExternal.js~XMLHttpRequest", - "access": null, - "description": "", - "builtinExternal": true - }, - { - "__docId__": 553, - "kind": "external", - "name": "AudioContext", - "externalLink": "https://developer.mozilla.org/en/docs/Web/API/AudioContext", - "memberof": "BuiltinExternal/WebAPIExternal.js", - "static": true, - "longname": "BuiltinExternal/WebAPIExternal.js~AudioContext", - "access": null, - "description": "", - "lineNumber": 34, - "builtinExternal": true - } -] \ No newline at end of file diff --git a/docs/file/src/Editor.js.html b/docs/file/src/Editor.js.html index d78e7c6a..93f762af 100644 --- a/docs/file/src/Editor.js.html +++ b/docs/file/src/Editor.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • @@ -282,7 +283,7 @@ import * as RecognizerContext from './model/RecognizerContext'; import * as SmartGuide from './smartguide/SmartGuide'; import Constants from './configuration/Constants'; -import { inkImporter } from './eastereggs/InkImporter'; +import * as eastereggs from './eastereggs/InkImporter'; /** @@ -445,19 +446,24 @@ if (err.type !== 'close') { logger.error('Error while firing the recognition', err.stack || err); // Handle any error from all above steps } - if ((err.message === 'Invalid application key.') || (err.message === 'Invalid HMAC') || - (err.error && - err.error.result && - err.error.result.error && - (err.error.result.error === 'InvalidApplicationKeyException' || err.error.result.error === 'InvalidHMACSignatureException') - )) { + if ( + // IInk error managment before refactor + (err.message === 'Invalid application key.') || (err.message === 'Invalid HMAC') || + // CDK error managment + (err.error && + err.error.result && + err.error.result.error && + (err.error.result.error === 'InvalidApplicationKeyException' || err.error.result.error === 'InvalidHMACSignatureException')) || + // IInk error managment after refactor + (err.code && err.code === 'access.not.granted')) { editorRef.error.innerText = Constants.Error.WRONG_CREDENTIALS; - } else if (err.message === 'Session is too old. Max Session Duration Reached') { + } 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; - } else if (err.message && editorRef.error.style.display === 'none') { + } else if ((err.message || err.code === 1006) && editorRef.error.style.display === 'none') { editorRef.error.innerText = Constants.Error.NOT_REACHABLE; } - if ((editorRef.error.innerText === Constants.Error.TOO_OLD || err.code === 1006 || err.reason === 'CLOSE_RECOGNIZER') && RecognizerContext.canReconnect(editor.recognizerContext)) { + if ((editorRef.error.innerText === Constants.Error.TOO_OLD || err.code === 1000 || err.reason === 'CLOSE_RECOGNIZER') && RecognizerContext.canReconnect(editor.recognizerContext)) { logger.info('Reconnection is available', err.stack || err); editorRef.error.style.display = 'none'; } else { @@ -617,9 +623,9 @@ const editorRef = editor; window.clearTimeout(editor.resizeTimer); editorRef.resizeTimer = window.setTimeout(() => { - editor.recognizer.resize(editor.recognizerContext, model, editor.domElement, (err, res, ...types) => { + editor.recognizer.resize(editor.recognizerContext, model, (err, res, ...types) => { recognizerCallback(editor, err, res, ...types); - }); + }, editor.domElement); }, editor.configuration.resizeTriggerDelay); }); SmartGuide.resize(editor.smartGuide); @@ -1097,6 +1103,11 @@ } } + /** + * @Deprecated + * @param rawStrokes + * @param strokeGroups + */ reDraw(rawStrokes, strokeGroups) { rawStrokes.forEach((stroke) => { InkModel.addStroke(this.model, stroke); @@ -1316,13 +1327,31 @@ }; } + /** + * Detach event listeners from the DOM element created at editor creation. + */ + unload() { + if (this.grabber) { // Remove event handlers to avoid multiplication (detach grabber) + this.grabber.detach(this.domElement, this.grabberContext); + } + if (this.innerRenderer) { + this.innerRenderer.detach(this.domElement, this.rendererContext); + } + } + + /** + * Trigger the change callbacks (and by default send a change event). + */ + forceChange() { + triggerCallbacks(this, undefined, Constants.EventType.CHANGED); + } + /* eslint-disable class-methods-use-this */ /** * Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice). - * @returns {{inkImporter: inkImporter}} */ get eastereggs() { - return { inkImporter }; + return eastereggs; } /* eslint-enable class-methods-use-this */ } diff --git a/docs/file/src/EditorFacade.js.html b/docs/file/src/EditorFacade.js.html index 22293789..15b5a472 100644 --- a/docs/file/src/EditorFacade.js.html +++ b/docs/file/src/EditorFacade.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/callback/EventCallback.js.html b/docs/file/src/callback/EventCallback.js.html index 69b071e0..32735595 100644 --- a/docs/file/src/callback/EventCallback.js.html +++ b/docs/file/src/callback/EventCallback.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/configuration/Constants.js.html b/docs/file/src/configuration/Constants.js.html index 28e53335..60e0561c 100644 --- a/docs/file/src/configuration/Constants.js.html +++ b/docs/file/src/configuration/Constants.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/configuration/DefaultBehaviors.js.html b/docs/file/src/configuration/DefaultBehaviors.js.html index 3d506660..cf9a8cce 100644 --- a/docs/file/src/configuration/DefaultBehaviors.js.html +++ b/docs/file/src/configuration/DefaultBehaviors.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • @@ -364,6 +365,8 @@ } return defaultBehaviors; } + +export default defaultBehaviors; diff --git a/docs/file/src/configuration/DefaultConfiguration.js.html b/docs/file/src/configuration/DefaultConfiguration.js.html index c198da2a..63884769 100644 --- a/docs/file/src/configuration/DefaultConfiguration.js.html +++ b/docs/file/src/configuration/DefaultConfiguration.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • @@ -298,7 +299,7 @@ } }, v4: { - alwaysConnected: false, + alwaysConnected: true, lang: 'en_US', export: { 'image-resolution': 300, diff --git a/docs/file/src/configuration/DefaultPenStyle.js.html b/docs/file/src/configuration/DefaultPenStyle.js.html index baa73a95..eb871a61 100644 --- a/docs/file/src/configuration/DefaultPenStyle.js.html +++ b/docs/file/src/configuration/DefaultPenStyle.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/configuration/DefaultTheme.js.html b/docs/file/src/configuration/DefaultTheme.js.html index fa70a851..ded92ee7 100644 --- a/docs/file/src/configuration/DefaultTheme.js.html +++ b/docs/file/src/configuration/DefaultTheme.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/configuration/LoggerConfig.js.html b/docs/file/src/configuration/LoggerConfig.js.html index d7f14fcc..1ec8e03b 100644 --- a/docs/file/src/configuration/LoggerConfig.js.html +++ b/docs/file/src/configuration/LoggerConfig.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/grabber/PointerEventGrabber.js.html b/docs/file/src/grabber/PointerEventGrabber.js.html index cf797974..5e75a243 100644 --- a/docs/file/src/grabber/PointerEventGrabber.js.html +++ b/docs/file/src/grabber/PointerEventGrabber.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • @@ -418,10 +419,18 @@ const smartGuideIds = ['smartguide', 'prompter-text-container', 'prompter-text', 'tag-icon', 'ellipsis']; const scrollbarClasses = ['ps__rail-x', 'ps__thumb-x']; // Check if pointer entered into any smartguide elements or scrollbar + // Use case : when the pointer is entering the smartguide or scrollbar, a pointerout (or leave) is fired. + // The related target is then the DOM element that was left. + // We don't want this to cause editor.pointerUp because the stroke isn't finished. const pointerEnteredSmartGuide = evt.relatedTarget && (smartGuideIds.includes(evt.relatedTarget.className) || scrollbarClasses.includes(evt.relatedTarget.className)); // Check if pointer didn't stay in the smartguide and pointer exited the smartguide or scrollbar + // Use case : when the pointer is leaving the smartguide or scrollbar, a pointerout (or leave) is fired. + // The related target is then the DOM element that was left (the smart guide) + // We are entering again the editor + // We don't want this to cause editor.pointerUp because the stroke isn't finished. const pointerExitedSmartGuide = evt.relatedTarget && evt.target && (smartGuideIds.includes(evt.target.className) || scrollbarClasses.includes(evt.target.className)); // Check if pointer moved between words in smartguide + // Same use case as pointerEnteredSmartGuide but for the words in the smartguide (each word is a span). const pointerMovedWords = evt.relatedTarget && evt.target && (evt.target.tagName === 'SPAN' || evt.relatedTarget.tagName === 'SPAN'); if (pointerEnteredSmartGuide || pointerExitedSmartGuide || pointerMovedWords) { evt.stopPropagation(); diff --git a/docs/file/src/model/InkModel.js.html b/docs/file/src/model/InkModel.js.html index ccba03e2..e14a8656 100644 --- a/docs/file/src/model/InkModel.js.html +++ b/docs/file/src/model/InkModel.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/model/RecognizerContext.js.html b/docs/file/src/model/RecognizerContext.js.html index f51843c7..57aa737e 100644 --- a/docs/file/src/model/RecognizerContext.js.html +++ b/docs/file/src/model/RecognizerContext.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/model/StrokeComponent.js.html b/docs/file/src/model/StrokeComponent.js.html index 42ad3cf1..f0eff9be 100644 --- a/docs/file/src/model/StrokeComponent.js.html +++ b/docs/file/src/model/StrokeComponent.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/model/Symbol.js.html b/docs/file/src/model/Symbol.js.html index b71adcbb..fa715918 100644 --- a/docs/file/src/model/Symbol.js.html +++ b/docs/file/src/model/Symbol.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/model/UndoRedoContext.js.html b/docs/file/src/model/UndoRedoContext.js.html index d5c9ce2c..3e696274 100644 --- a/docs/file/src/model/UndoRedoContext.js.html +++ b/docs/file/src/model/UndoRedoContext.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/model/UndoRedoManager.js.html b/docs/file/src/model/UndoRedoManager.js.html index 7c8b02be..0477dda7 100644 --- a/docs/file/src/model/UndoRedoManager.js.html +++ b/docs/file/src/model/UndoRedoManager.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/myscript.js.html b/docs/file/src/myscript.js.html index e8da490b..9b472cb2 100644 --- a/docs/file/src/myscript.js.html +++ b/docs/file/src/myscript.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • @@ -273,30 +274,45 @@ import DefaultConfiguration from './configuration/DefaultConfiguration'; import DefaultPenStyle from './configuration/DefaultPenStyle'; import DefaultTheme from './configuration/DefaultTheme'; +import DefaultBehaviors from './configuration/DefaultBehaviors'; +import * as InkModel from './model/InkModel'; import { Editor } from './Editor'; import { register, getAvailableLanguageList } from './EditorFacade'; +import * as RecognizerContext from './model/RecognizerContext'; const MyScript = { Constants, - LoggerConfig, - Editor, + // Default instantiations DefaultConfiguration, + DefaultBehaviors, DefaultPenStyle, DefaultTheme, + // Helper functions register, - getAvailableLanguageList + getAvailableLanguageList, + // Internals + LoggerConfig, + Editor, + InkModel, + RecognizerContext, }; export { MyScript as default, Constants, - LoggerConfig, - Editor, + // Default instantiations DefaultConfiguration, + DefaultBehaviors, DefaultPenStyle, DefaultTheme, + // Helper functions register, - getAvailableLanguageList + getAvailableLanguageList, + // Internals + LoggerConfig, + Editor, + InkModel, + RecognizerContext, }; diff --git a/docs/file/src/recognizer/CryptoHelper.js.html b/docs/file/src/recognizer/CryptoHelper.js.html index 0c6586ff..bd97bfb2 100644 --- a/docs/file/src/recognizer/CryptoHelper.js.html +++ b/docs/file/src/recognizer/CryptoHelper.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/DefaultRecognizer.js.html b/docs/file/src/recognizer/DefaultRecognizer.js.html index 4db35276..a550dcef 100644 --- a/docs/file/src/recognizer/DefaultRecognizer.js.html +++ b/docs/file/src/recognizer/DefaultRecognizer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • @@ -313,7 +314,7 @@ * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} close Close and free all resources that will no longer be used by the recognizer. * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [undo] Undo Undo the last done action. * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [redo] Redo Redo the previously undone action. - * @property {function(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback)} [resize] Resize. + * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, element: Element)} [resize] Resize. * @property {function(recognizerContext: RecognizerContext, model: Model, strokes: Array<Stroke>, callback: RecognizerCallback)} [pointerEvents] Pointer Events. * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [addStrokes] Add strokes. * @property {function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)} [export_] Export content. diff --git a/docs/file/src/recognizer/common/CdkCommonUtil.js.html b/docs/file/src/recognizer/common/CdkCommonUtil.js.html index 0a38590c..7e07dd5f 100644 --- a/docs/file/src/recognizer/common/CdkCommonUtil.js.html +++ b/docs/file/src/recognizer/common/CdkCommonUtil.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/common/v3/Cdkv3CommonMathRecognizer.js.html b/docs/file/src/recognizer/common/v3/Cdkv3CommonMathRecognizer.js.html index 1a08089d..d02fc44a 100644 --- a/docs/file/src/recognizer/common/v3/Cdkv3CommonMathRecognizer.js.html +++ b/docs/file/src/recognizer/common/v3/Cdkv3CommonMathRecognizer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js.html b/docs/file/src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js.html index 3869b384..cc60ec43 100644 --- a/docs/file/src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js.html +++ b/docs/file/src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/common/v3/Cdkv3CommonTextRecognizer.js.html b/docs/file/src/recognizer/common/v3/Cdkv3CommonTextRecognizer.js.html index 91080978..c9c38f8b 100644 --- a/docs/file/src/recognizer/common/v3/Cdkv3CommonTextRecognizer.js.html +++ b/docs/file/src/recognizer/common/v3/Cdkv3CommonTextRecognizer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/rest/networkInterface.js.html b/docs/file/src/recognizer/rest/networkInterface.js.html index e7d2323c..5a07718f 100644 --- a/docs/file/src/recognizer/rest/networkInterface.js.html +++ b/docs/file/src/recognizer/rest/networkInterface.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • @@ -347,7 +348,8 @@ request.setRequestHeader('Content-Type', 'application/json'); } - if (mimeType === pptxMimeType) { + const isBlobType = mimeType && (mimeType === pptxMimeType || mimeType.startsWith('image/png') || mimeType.startsWith('image/jpeg')); + if (isBlobType) { request.responseType = 'blob'; } @@ -357,7 +359,7 @@ request.onload = () => { if (request.status >= 200 && request.status < 300) { - mimeType === pptxMimeType ? resolve(request.response) : resolve(parse(request)); + isBlobType ? resolve(request.response) : resolve(parse(request)); } else { reject(new Error(request.responseText)); } @@ -366,7 +368,7 @@ request.onreadystatechange = () => { if (request.readyState === 4) { if (request.status >= 200 && request.status < 300) { - mimeType === pptxMimeType ? resolve(request.response) : resolve(parse(request)); + isBlobType ? resolve(request.response) : resolve(parse(request)); } } }; diff --git a/docs/file/src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js.html b/docs/file/src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js.html index fc966429..1c843ab9 100644 --- a/docs/file/src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js.html +++ b/docs/file/src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js.html b/docs/file/src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js.html index 64cf41b1..b2377108 100644 --- a/docs/file/src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js.html +++ b/docs/file/src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js.html b/docs/file/src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js.html index 966fdd5d..29bb73a5 100644 --- a/docs/file/src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js.html +++ b/docs/file/src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/rest/v3/Cdkv3RestRecognizerUtil.js.html b/docs/file/src/recognizer/rest/v3/Cdkv3RestRecognizerUtil.js.html index 6a09075d..a586b792 100644 --- a/docs/file/src/recognizer/rest/v3/Cdkv3RestRecognizerUtil.js.html +++ b/docs/file/src/recognizer/rest/v3/Cdkv3RestRecognizerUtil.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js.html b/docs/file/src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js.html index 2044e8b8..9eb42092 100644 --- a/docs/file/src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js.html +++ b/docs/file/src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js.html b/docs/file/src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js.html index 3d790e39..04f73343 100644 --- a/docs/file/src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js.html +++ b/docs/file/src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/websocket/CdkWSRecognizerUtil.js.html b/docs/file/src/recognizer/websocket/CdkWSRecognizerUtil.js.html index a62ed9b5..239cdab5 100644 --- a/docs/file/src/recognizer/websocket/CdkWSRecognizerUtil.js.html +++ b/docs/file/src/recognizer/websocket/CdkWSRecognizerUtil.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/websocket/networkWSInterface.js.html b/docs/file/src/recognizer/websocket/networkWSInterface.js.html index 33a3dfaa..ab80a979 100644 --- a/docs/file/src/recognizer/websocket/networkWSInterface.js.html +++ b/docs/file/src/recognizer/websocket/networkWSInterface.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/websocket/v3/Cdkv3WSBuilder.js.html b/docs/file/src/recognizer/websocket/v3/Cdkv3WSBuilder.js.html index c5bced99..e31582ed 100644 --- a/docs/file/src/recognizer/websocket/v3/Cdkv3WSBuilder.js.html +++ b/docs/file/src/recognizer/websocket/v3/Cdkv3WSBuilder.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js.html b/docs/file/src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js.html index 6102f7c7..4aa4274d 100644 --- a/docs/file/src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js.html +++ b/docs/file/src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js.html b/docs/file/src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js.html index bb1e128e..68ad137e 100644 --- a/docs/file/src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js.html +++ b/docs/file/src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/websocket/v4/Cdkv4WSBuilder.js.html b/docs/file/src/recognizer/websocket/v4/Cdkv4WSBuilder.js.html index 9a1270c8..6ab01482 100644 --- a/docs/file/src/recognizer/websocket/v4/Cdkv4WSBuilder.js.html +++ b/docs/file/src/recognizer/websocket/v4/Cdkv4WSBuilder.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js.html b/docs/file/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js.html index bfd94fc9..fffb15b8 100644 --- a/docs/file/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js.html +++ b/docs/file/src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • @@ -773,16 +774,16 @@ * Resize * @param {RecognizerContext} recognizerContext Current recognition context * @param {Model} model Current model - * @param {Element} element Current element * @param {RecognizerCallback} callback + * @param {Element} element Current element */ -export function resize(recognizerContext, model, element, callback) { +export function resize(recognizerContext, model, callback, element) { const recognizerContextRef = RecognizerContext.setRecognitionContext(recognizerContext, { model, callback: (err, res) => iinkCallback(model, err, res, callback) }); CdkWSRecognizerUtil.sendMessage(recognizerContextRef, buildResize, element, recognizerContext.editor.configuration.renderingParams.minHeight, recognizerContext.editor.configuration.renderingParams.minWidth) - .catch(exception => CdkWSRecognizerUtil.retry(resize, recognizerContext, model, callback)); + .catch(exception => CdkWSRecognizerUtil.retry(resize, recognizerContext, model, callback, element)); } /** diff --git a/docs/file/src/renderer/QuadraticUtils.js.html b/docs/file/src/renderer/QuadraticUtils.js.html index 147932ae..fcbf599e 100644 --- a/docs/file/src/renderer/QuadraticUtils.js.html +++ b/docs/file/src/renderer/QuadraticUtils.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/renderer/canvas/CanvasRenderer.js.html b/docs/file/src/renderer/canvas/CanvasRenderer.js.html index 14f52656..154ed61b 100644 --- a/docs/file/src/renderer/canvas/CanvasRenderer.js.html +++ b/docs/file/src/renderer/canvas/CanvasRenderer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/renderer/canvas/ImageRenderer.js.html b/docs/file/src/renderer/canvas/ImageRenderer.js.html index c5d72907..e0f1cf17 100644 --- a/docs/file/src/renderer/canvas/ImageRenderer.js.html +++ b/docs/file/src/renderer/canvas/ImageRenderer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/renderer/canvas/stroker/QuadraticCanvasStroker.js.html b/docs/file/src/renderer/canvas/stroker/QuadraticCanvasStroker.js.html index c73c1564..b405aa4d 100644 --- a/docs/file/src/renderer/canvas/stroker/QuadraticCanvasStroker.js.html +++ b/docs/file/src/renderer/canvas/stroker/QuadraticCanvasStroker.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js.html b/docs/file/src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js.html index f9b54f3c..382ad82f 100644 --- a/docs/file/src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js.html +++ b/docs/file/src/renderer/canvas/symbols/MathSymbolCanvasRenderer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js.html b/docs/file/src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js.html index 0b85a1bd..4f73b140 100644 --- a/docs/file/src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js.html +++ b/docs/file/src/renderer/canvas/symbols/MusicSymbolCanvasRenderer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js.html b/docs/file/src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js.html index 88b4e459..4f4a5ca4 100644 --- a/docs/file/src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js.html +++ b/docs/file/src/renderer/canvas/symbols/ShapeSymbolCanvasRenderer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/renderer/canvas/symbols/StrokeSymbolCanvasRenderer.js.html b/docs/file/src/renderer/canvas/symbols/StrokeSymbolCanvasRenderer.js.html index 43beecd7..c00e43fc 100644 --- a/docs/file/src/renderer/canvas/symbols/StrokeSymbolCanvasRenderer.js.html +++ b/docs/file/src/renderer/canvas/symbols/StrokeSymbolCanvasRenderer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js.html b/docs/file/src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js.html index 9fa451fc..b6540265 100644 --- a/docs/file/src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js.html +++ b/docs/file/src/renderer/canvas/symbols/TextSymbolCanvasRenderer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/renderer/svg/SVGRenderer.js.html b/docs/file/src/renderer/svg/SVGRenderer.js.html index 99a21fbb..5920489f 100644 --- a/docs/file/src/renderer/svg/SVGRenderer.js.html +++ b/docs/file/src/renderer/svg/SVGRenderer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/renderer/svg/stroker/QuadraticSVGStroker.js.html b/docs/file/src/renderer/svg/stroker/QuadraticSVGStroker.js.html index 0355681c..126557c7 100644 --- a/docs/file/src/renderer/svg/stroker/QuadraticSVGStroker.js.html +++ b/docs/file/src/renderer/svg/stroker/QuadraticSVGStroker.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/renderer/svg/symbols/StrokeSymbolSVGRenderer.js.html b/docs/file/src/renderer/svg/symbols/StrokeSymbolSVGRenderer.js.html index 5f30816f..98b6ac6b 100644 --- a/docs/file/src/renderer/svg/symbols/StrokeSymbolSVGRenderer.js.html +++ b/docs/file/src/renderer/svg/symbols/StrokeSymbolSVGRenderer.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/util/ModelStats.js.html b/docs/file/src/util/ModelStats.js.html index 791add78..7196d919 100644 --- a/docs/file/src/util/ModelStats.js.html +++ b/docs/file/src/util/ModelStats.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/file/src/util/PromiseHelper.js.html b/docs/file/src/util/PromiseHelper.js.html index ea5d4742..ddd23cf7 100644 --- a/docs/file/src/util/PromiseHelper.js.html +++ b/docs/file/src/util/PromiseHelper.js.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/function/index.html b/docs/function/index.html index 8cb0a386..4045772a 100644 --- a/docs/function/index.html +++ b/docs/function/index.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • @@ -431,13 +432,13 @@ - attach(element: Element, editor: Editor, offsetTop: Number, offsetLeft: Number): GrabberContext + attach(element: Element): Object

    -

    Listen for the desired events

    +

    Populate the dom element

    @@ -489,13 +490,13 @@ - attach(element: Element): Object + attach(element: Element, editor: Editor, offsetTop: Number, offsetLeft: Number): GrabberContext

    -

    Populate the dom element

    +

    Listen for the desired events

    @@ -893,7 +894,7 @@
    -

    Clear action

    +

    Do what is needed to clean the server context.

    @@ -980,7 +981,7 @@
    -

    Do what is needed to clean the server context.

    +

    Clear action

    @@ -1318,13 +1319,13 @@ - convert(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String) + convert(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)

    -

    Convert action

    +

    Ask for conversion using DIGITAL_EDIT

    @@ -1347,13 +1348,13 @@ - convert(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) + convert(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String)

    -

    Ask for conversion using DIGITAL_EDIT

    +

    Convert action

    @@ -1578,14 +1579,13 @@ - detach(element: Element, context: Object) + detach(element: *, context: *)

    -

    Detach the renderer from the DOM element

    -
    +
    @@ -1607,13 +1607,14 @@ - detach(element: *, context: *) + detach(element: Element, context: Object)

    - +

    Detach the renderer from the DOM element

    +
    @@ -1867,13 +1868,13 @@ - drawStroke(context: Object, stroke: Stroke, stroker: Stroker) + drawStroke(context: Object, stroke: Stroke)

    -

    Draw a stroke symbol

    +

    Draw a stroke on a canvas, using quadratics

    @@ -1896,13 +1897,13 @@ - drawStroke(context: Object, stroke: Stroke) + drawStroke(context: Object, stroke: Stroke, stroker: Stroker)

    -

    Draw a stroke on a svg tag, using quadratics

    +

    Draw a stroke symbol

    @@ -1960,7 +1961,7 @@
    -

    Draw a stroke on a canvas, using quadratics

    +

    Draw a stroke on a svg tag, using quadratics

    @@ -2128,7 +2129,7 @@ - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) + export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback): *

    @@ -2157,13 +2158,13 @@ - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, requestedMimeTypes: Array[String]) + export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)

    -

    Export action

    +

    Export content

    @@ -2186,7 +2187,7 @@ - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) + export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback): *

    @@ -2215,7 +2216,7 @@ - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) + export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, requestedMimeTypes: Array[String])

    @@ -2244,13 +2245,13 @@ - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback): * + export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, requestedMimeTypes: Array[String])

    -

    Export content

    +

    Export action

    @@ -2302,7 +2303,7 @@ - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback): * + export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)

    @@ -2737,13 +2738,13 @@ - getInfo(): RecognizerInfo + getInfo(): StrokerInfo

    -

    Get the configuration supported by this recognizer

    +

    Get info

    @@ -2766,7 +2767,7 @@ - getInfo(): StrokerInfo + getInfo(): RendererInfo

    @@ -2824,13 +2825,13 @@ - getInfo(): RecognizerInfo + getInfo(): RendererInfo

    -

    Get the configuration supported by this recognizer

    +

    Get info

    @@ -2911,13 +2912,13 @@ - getInfo(): RecognizerInfo + getInfo(): StrokerInfo

    -

    Get the configuration supported by this recognizer

    +

    Get info

    @@ -2940,13 +2941,13 @@ - getInfo(): RendererInfo + getInfo(): RecognizerInfo

    -

    Get info

    +

    Get the configuration supported by this recognizer

    @@ -3027,13 +3028,13 @@ - getInfo(): StrokerInfo + getInfo(): RecognizerInfo

    -

    Get info

    +

    Get the configuration supported by this recognizer

    @@ -3056,13 +3057,13 @@ - getInfo(): RendererInfo + getInfo(): RecognizerInfo

    -

    Get info

    +

    Get the configuration supported by this recognizer

    @@ -3279,6 +3280,34 @@ + + + +
    +

    + + + + importStrokeGroups(editorParam: *, strokeGroups: *) +

    +
    +
    + + + +
    + + + + + + + + + public + + + @@ -4009,13 +4038,13 @@ - redo(undoRedoContext: UndoRedoContext, model: Model, callback: function(err: Object, res: Model, types: ...String)) + redo(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)

    -

    Redo

    +

    Redo last action

    @@ -4038,13 +4067,13 @@ - redo(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) + redo(undoRedoContext: UndoRedoContext, model: Model, callback: function(err: Object, res: Model, types: ...String))

    -

    Redo last action

    +

    Redo

    @@ -4160,7 +4189,7 @@
    -

    Reset server context.

    +

    Reset the recognition context

    @@ -4189,7 +4218,7 @@
    -

    Reset the recognition context

    +

    Reset server context.

    @@ -4270,13 +4299,13 @@ - resize(context: Object, model: Model, stroker: Stroker): Model + resize(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, element: Element)

    -

    Update the rendering context size

    +

    Resize

    @@ -4327,13 +4356,13 @@ - resize(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback) + resize(context: Object, model: Model, stroker: Stroker): Model

    -

    Resize

    +

    Update the rendering context size

    @@ -4672,7 +4701,7 @@ - toCSS(theme: *): * + toCSS(penStyle: *): *

    @@ -4700,7 +4729,7 @@ - toCSS(penStyle: *): * + toCSS(theme: *): *

    @@ -5535,18 +5564,18 @@

    - attach(element: Element, editor: Editor, offsetTop: Number, offsetLeft: Number): GrabberContext + attach(element: Element): Object - source + source

    - + -

    Listen for the desired events

    +

    Populate the dom element

    @@ -5563,30 +5592,9 @@

    Params:

    element Element -

    DOM element to attach events listeners

    - - - - editor - Editor - -

    Editor to received down/move/up events

    +

    DOM element to attach the rendering elements

    - - offsetTop - Number -
    • optional
    • -
    • default: 0
    - - - - offsetLeft - Number -
    • optional
    • -
    • default: 0
    - -
    @@ -5597,8 +5605,8 @@

    Return:

    - - + @@ -5609,54 +5617,7 @@

    Return:

    -
    -

    Listen:

    -
    GrabberContext

    Grabber context

    +
    Object

    The renderer context to give as parameter when a draw model will be call

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Event

    pointermove: a pointer moves, similar to touchmove or mousemove.

    -

    Event

    pointerdown: a pointer is activated, or a device button held.

    -

    Event

    pointerup: a pointer is deactivated, or a device button released.

    -

    Event

    pointerover: a pointer has moved onto an element.

    -

    Event

    pointerout: a pointer is no longer on an element it once was.

    -

    Event

    pointerenter: a pointer enters the bounding box of an element.

    -

    Event

    pointerleave: a pointer leaves the bounding box of an element.

    -

    Event

    pointercancel: a pointer will no longer generate events.

    -
    -
    + @@ -5767,18 +5728,18 @@

    - attach(element: Element): Object + attach(element: Element, editor: Editor, offsetTop: Number, offsetLeft: Number): GrabberContext - source + source

    - + -

    Populate the dom element

    +

    Listen for the desired events

    @@ -5795,9 +5756,30 @@

    Params:

    element Element -

    DOM element to attach the rendering elements

    +

    DOM element to attach events listeners

    + + + + editor + Editor + +

    Editor to received down/move/up events

    + + offsetTop + Number +
    • optional
    • +
    • default: 0
    + + + + offsetLeft + Number +
    • optional
    • +
    • default: 0
    + +
    @@ -5808,8 +5790,8 @@

    Return:

    - - + @@ -5820,17 +5802,64 @@

    Return:

    +
    +

    Listen:

    +
    Object

    The renderer context to give as parameter when a draw model will be call

    +
    GrabberContext

    Grabber context

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Event

    pointermove: a pointer moves, similar to touchmove or mousemove.

    +

    Event

    pointerdown: a pointer is activated, or a device button held.

    +

    Event

    pointerup: a pointer is deactivated, or a device button released.

    +

    Event

    pointerover: a pointer has moved onto an element.

    +

    Event

    pointerout: a pointer is no longer on an element it once was.

    +

    Event

    pointerenter: a pointer enters the bounding box of an element.

    +

    Event

    pointerleave: a pointer leaves the bounding box of an element.

    +

    Event

    pointercancel: a pointer will no longer generate events.

    +
    +
    + + + + + - - - - - -
    @@ -6515,11 +6544,11 @@

    - source + source

    -
    import {buildWebSocketCallback} from 'myscript/src/recognizer/websocket/v3/Cdkv3WSBuilder.js'
    +
    import {buildWebSocketCallback} from 'myscript/src/recognizer/websocket/v4/Cdkv4WSBuilder.js'

    This function bind the right behaviour when a message is receive by the websocket.

    @@ -6595,11 +6624,11 @@

    - source + source

    -
    import {buildWebSocketCallback} from 'myscript/src/recognizer/websocket/v4/Cdkv4WSBuilder.js'
    +
    import {buildWebSocketCallback} from 'myscript/src/recognizer/websocket/v3/Cdkv3WSBuilder.js'

    This function bind the right behaviour when a message is receive by the websocket.

    @@ -6822,14 +6851,14 @@

    - source + source

    - + -

    Clear action

    +

    Do what is needed to clean the server context.

    @@ -6846,7 +6875,7 @@

    Params:

    recognizerContext RecognizerContext -

    Current recognition context

    +

    Current recognizer context

    @@ -6896,11 +6925,11 @@

    - source + source

    - +

    Clear server context. Currently nothing to do there.

    @@ -7044,14 +7073,14 @@

    - source + source

    - + -

    Do what is needed to clean the server context.

    +

    Clear action

    @@ -7068,7 +7097,7 @@

    Params:

    recognizerContext RecognizerContext -

    Current recognizer context

    +

    Current recognition context

    @@ -7118,11 +7147,11 @@

    - source + source

    - +

    Clear server context. Currently nothing to do there.

    @@ -7415,11 +7444,11 @@

    - source + source

    - +

    Close and free all resources that will no longer be used by the recognizer.

    @@ -7439,15 +7468,13 @@

    Params:

    recognizerContext RecognizerContext -

    Current recognizer context

    - + model Model -

    Current model

    - + callback @@ -7489,11 +7516,11 @@

    - source + source

    - +

    Close and free all resources that will no longer be used by the recognizer.

    @@ -7513,13 +7540,15 @@

    Params:

    recognizerContext RecognizerContext - +

    Current recognizer context

    + model Model - +

    Current model

    + callback @@ -7955,18 +7984,18 @@

    - convert(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String) + convert(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) - source + source

    - + -

    Convert action

    +

    Ask for conversion using DIGITAL_EDIT

    @@ -7983,7 +8012,7 @@

    Params:

    recognizerContext RecognizerContext -

    Current recognition context

    +

    Current recognizer context

    @@ -7999,13 +8028,6 @@

    Params:

    - - conversionState - String - -

    Conversion State, by default DigitalEdit

    - -
    @@ -8036,18 +8058,18 @@

    - convert(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) + convert(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String) - source + source

    - + -

    Ask for conversion using DIGITAL_EDIT

    +

    Convert action

    @@ -8064,7 +8086,7 @@

    Params:

    recognizerContext RecognizerContext -

    Current recognizer context

    +

    Current recognition context

    @@ -8080,6 +8102,13 @@

    Params:

    + + conversionState + String + +

    Conversion State, by default DigitalEdit

    + +
    @@ -8538,11 +8567,11 @@

    - source + source

    - +

    Detach the renderer from the DOM element

    @@ -8602,19 +8631,18 @@

    - detach(element: Element, context: Object) + detach(element: *, context: *) - source + source

    - + + -

    Detach the renderer from the DOM element

    -
    @@ -8628,17 +8656,15 @@

    Params:

    element - Element + * -

    DOM element to attach the rendering elements

    - + context - Object + * -

    Current rendering context

    - + @@ -8670,18 +8696,19 @@

    - detach(element: *, context: *) + detach(element: Element, context: Object) - source + source

    - - + +

    Detach the renderer from the DOM element

    +
    @@ -8695,15 +8722,17 @@

    Params:

    element - * + Element - +

    DOM element to attach the rendering elements

    + context - * + Object - +

    Current rendering context

    + @@ -8739,11 +8768,11 @@

    - source + source

    -
    import {drawCurrentStroke} from 'myscript/src/renderer/canvas/CanvasRenderer.js'
    +
    import {drawCurrentStroke} from 'myscript/src/renderer/svg/SVGRenderer.js'

    Draw the current stroke from the model

    @@ -8826,11 +8855,11 @@

    - source + source

    -
    import {drawCurrentStroke} from 'myscript/src/renderer/svg/SVGRenderer.js'
    +
    import {drawCurrentStroke} from 'myscript/src/renderer/canvas/CanvasRenderer.js'

    Draw the current stroke from the model

    @@ -9070,11 +9099,11 @@

    - source + source

    - +

    Draw all symbols contained into the model

    @@ -9157,11 +9186,11 @@

    - source + source

    - +

    Draw all symbols contained into the model

    @@ -9376,18 +9405,18 @@

    - drawStroke(context: Object, stroke: Stroke, stroker: Stroker) + drawStroke(context: Object, stroke: Stroke) - source + source

    - + -

    Draw a stroke symbol

    +

    Draw a stroke on a canvas, using quadratics

    @@ -9411,14 +9440,7 @@

    Params:

    stroke Stroke -

    Stroke to be drawn

    - - - - stroker - Stroker - -

    Stroker to use to render a stroke

    +

    Current stroke to be drawn

    @@ -9451,18 +9473,18 @@

    - drawStroke(context: Object, stroke: Stroke) + drawStroke(context: Object, stroke: Stroke, stroker: Stroker) - source + source

    - + -

    Draw a stroke on a svg tag, using quadratics

    +

    Draw a stroke symbol

    @@ -9486,7 +9508,14 @@

    Params:

    stroke Stroke -

    Current stroke to be drawn

    +

    Stroke to be drawn

    + + + + stroker + Stroker + +

    Stroker to use to render a stroke

    @@ -9598,14 +9627,14 @@

    - source + source

    - + -

    Draw a stroke on a canvas, using quadratics

    +

    Draw a stroke on a svg tag, using quadratics

    @@ -9898,11 +9927,11 @@

    - source + source

    - +

    Export content

    @@ -9972,11 +10001,11 @@

    - source + source

    - +

    Export content

    @@ -10042,15 +10071,15 @@

    - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) + export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback): * - source + source

    - +

    Export content

    @@ -10091,7 +10120,19 @@

    Params:

    - +
    +

    Return:

    + + + + + + + +
    *
    +
    +
    +
    @@ -10116,18 +10157,18 @@

    - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, requestedMimeTypes: Array[String]) + export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) - source + source

    - + -

    Export action

    +

    Export content

    @@ -10144,7 +10185,7 @@

    Params:

    recognizerContext RecognizerContext -

    Current recognition context

    +

    Current recognizer context

    @@ -10160,12 +10201,6 @@

    Params:

    - - requestedMimeTypes - Array[String] - - -
    @@ -10196,15 +10231,15 @@

    - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) + export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback): * - source + source

    - +

    Export content

    @@ -10245,7 +10280,19 @@

    Params:

    - +
    +

    Return:

    + + + + + + + +
    *
    +
    +
    +
    @@ -10270,15 +10317,15 @@

    - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) + export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, requestedMimeTypes: Array[String]) - source + source

    - +

    Export content

    @@ -10314,6 +10361,12 @@

    Params:

    + + requestedMimeTypes + Array[String] + + +
    @@ -10344,18 +10397,18 @@

    - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback): * + export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, requestedMimeTypes: Array[String]) - source + source

    - + -

    Export content

    +

    Export action

    @@ -10372,7 +10425,7 @@

    Params:

    recognizerContext RecognizerContext -

    Current recognizer context

    +

    Current recognition context

    @@ -10388,24 +10441,18 @@

    Params:

    + + requestedMimeTypes + Array[String] + + +
    -
    -

    Return:

    - - - - - - - -
    *
    -
    -
    -
    + @@ -10504,15 +10551,15 @@

    - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback): * + export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) - source + source

    - +

    Export content

    @@ -10553,19 +10600,7 @@

    Params:

    -
    -

    Return:

    - - - - - - - -
    *
    -
    -
    -
    + @@ -10594,11 +10629,11 @@

    - source + source

    - +

    Extract the exports

    @@ -10632,7 +10667,7 @@

    Return:

    Object -

    Recognition result

    +

    exports

    @@ -10742,11 +10777,11 @@

    - source + source

    - +

    Extract the exports

    @@ -10780,7 +10815,7 @@

    Return:

    Object -

    exports

    +

    Recognition result

    @@ -11310,11 +11345,11 @@

    - source + source

    - +

    Get request

    @@ -11704,18 +11739,18 @@

    - getInfo(): RecognizerInfo + getInfo(): StrokerInfo - source + source

    - + -

    Get the configuration supported by this recognizer

    +

    Get info

    @@ -11728,8 +11763,9 @@

    Return:

    - - + +
    RecognizerInfoStrokerInfo

    Information about this stroker

    +
    @@ -11760,15 +11796,15 @@

    - getInfo(): StrokerInfo + getInfo(): RendererInfo - source + source

    - +

    Get info

    @@ -11784,8 +11820,8 @@

    Return:

    - - + @@ -11821,11 +11857,11 @@

    - source + source

    - +

    Get the configuration supported by this recognizer

    @@ -11873,18 +11909,18 @@

    - getInfo(): RecognizerInfo + getInfo(): RendererInfo - source + source

    - + -

    Get the configuration supported by this recognizer

    +

    Get info

    @@ -11897,8 +11933,9 @@

    Return:

    StrokerInfo

    Information about this stroker

    +
    RendererInfo

    Information about this renderer

    - - + +
    RecognizerInfoRendererInfo

    Information about this renderer

    +
    @@ -11933,11 +11970,11 @@

    - source + source

    - +

    Get the configuration supported by this recognizer

    @@ -11989,11 +12026,11 @@

    - source + source

    - +

    Get the configuration supported by this recognizer

    @@ -12041,18 +12078,18 @@

    - getInfo(): RecognizerInfo + getInfo(): StrokerInfo - source + source

    - + -

    Get the configuration supported by this recognizer

    +

    Get info

    @@ -12065,8 +12102,9 @@

    Return:

    - - + +
    RecognizerInfoStrokerInfo

    Information about this stroker

    +
    @@ -12097,18 +12135,18 @@

    - getInfo(): RendererInfo + getInfo(): RecognizerInfo - source + source

    - + -

    Get info

    +

    Get the configuration supported by this recognizer

    @@ -12121,9 +12159,8 @@

    Return:

    - - + +
    RendererInfo

    Information about this renderer

    -
    RecognizerInfo
    @@ -12214,11 +12251,11 @@

    - source + source

    - +

    Get the configuration supported by this recognizer

    @@ -12266,18 +12303,18 @@

    - getInfo(): StrokerInfo + getInfo(): RecognizerInfo - source + source

    - + -

    Get info

    +

    Get the configuration supported by this recognizer

    @@ -12290,9 +12327,8 @@

    Return:

    - - + +
    StrokerInfo

    Information about this stroker

    -
    RecognizerInfo
    @@ -12323,18 +12359,18 @@

    - getInfo(): RendererInfo + getInfo(): RecognizerInfo - source + source

    - + -

    Get info

    +

    Get the configuration supported by this recognizer

    @@ -12347,9 +12383,8 @@

    Return:

    - - + +
    RendererInfo

    Information about this renderer

    -
    RecognizerInfo
    @@ -12384,11 +12419,11 @@

    - source + source

    - +

    Get the configuration supported by this recognizer

    @@ -12877,6 +12912,71 @@

    Return:

    +
    +
    +

    + public + + + + + + importStrokeGroups(editorParam: *, strokeGroups: *) + + + + source + +

    + +
    import {importStrokeGroups} from 'myscript/src/eastereggs/InkImporter.js'
    + + + + + + +
    +

    Params:

    + + + + + + + + + + + + + + + + + + + +
    NameTypeAttributeDescription
    editorParam*
    strokeGroups*
    +
    +
    + + + + + + + + + + + + + + + + +

    @@ -12971,11 +13071,11 @@

    - source + source

    - +

    Initialize recognition

    @@ -13045,11 +13145,11 @@

    - source + source

    - +

    Initialize recognition

    @@ -13119,11 +13219,11 @@

    - source + source

    - +

    Initialize recognition

    @@ -13267,11 +13367,11 @@

    - source + source

    - +

    Initialize recognition

    @@ -13529,11 +13629,11 @@

    - source + source

    -
    import {inkImporter} from 'myscript/src/eastereggs/InkImporter.js'
    +
    import {inkImporter} from 'myscript/src/eastereggs/InkImporter.js'

    Function to copy past to inject ink during tutorial.

    @@ -14572,11 +14672,11 @@

    - source + source

    - +

    Post request

    @@ -14861,18 +14961,18 @@

    - redo(undoRedoContext: UndoRedoContext, model: Model, callback: function(err: Object, res: Model, types: ...String)) + redo(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) - source + source

    - + -

    Redo

    +

    Redo last action

    @@ -14886,22 +14986,22 @@

    Params:

    - undoRedoContext - UndoRedoContext + recognizerContext + RecognizerContext -

    Current undo/redo context.

    +

    Current recognition context

    model Model -

    Current model.

    +

    Current model

    callback - function(err: Object, res: Model, types: ...String) + RecognizerCallback @@ -14935,18 +15035,18 @@

    - redo(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) + redo(undoRedoContext: UndoRedoContext, model: Model, callback: function(err: Object, res: Model, types: ...String)) - source + source

    - + -

    Redo last action

    +

    Redo

    @@ -14960,22 +15060,22 @@

    Params:

    - recognizerContext - RecognizerContext + undoRedoContext + UndoRedoContext -

    Current recognition context

    +

    Current undo/redo context.

    model Model -

    Current model

    +

    Current model.

    callback - RecognizerCallback + function(err: Object, res: Model, types: ...String) @@ -15189,11 +15289,11 @@

    - source + source

    - +

    Reset the recognition context

    @@ -15263,14 +15363,14 @@

    - source + source

    - + -

    Reset server context.

    +

    Reset the recognition context

    @@ -15337,14 +15437,14 @@

    - source + source

    - + -

    Reset the recognition context

    +

    Reset server context.

    @@ -15551,18 +15651,18 @@

    - resize(context: Object, model: Model, stroker: Stroker): Model + resize(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, element: Element) - source + source

    - + -

    Update the rendering context size

    +

    Resize

    @@ -15576,10 +15676,10 @@

    Params:

    - context - Object + recognizerContext + RecognizerContext -

    Current rendering context

    +

    Current recognition context

    @@ -15590,10 +15690,16 @@

    Params:

    - stroker - Stroker + callback + RecognizerCallback -

    Current stroker

    + + + + element + Element + +

    Current element

    @@ -15601,19 +15707,7 @@

    Params:

    -
    -

    Return:

    - - - - - - - -
    Model
    -
    -
    -
    + @@ -15697,18 +15791,18 @@

    - resize(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback) + resize(context: Object, model: Model, stroker: Stroker): Model - source + source

    - + -

    Resize

    +

    Update the rendering context size

    @@ -15722,10 +15816,10 @@

    Params:

    - recognizerContext - RecognizerContext + context + Object -

    Current recognition context

    +

    Current rendering context

    @@ -15736,24 +15830,30 @@

    Params:

    - element - Element + stroker + Stroker -

    Current element

    +

    Current stroker

    - - callback - RecognizerCallback - - -
    - +
    +

    Return:

    + + + + + + + +
    Model
    +
    +
    +
    @@ -16669,15 +16769,15 @@

    - toCSS(theme: *): * + toCSS(penStyle: *): * - source + source

    - + @@ -16693,7 +16793,7 @@

    Params:

    - theme + penStyle * @@ -16740,15 +16840,15 @@

    - toCSS(penStyle: *): * + toCSS(theme: *): * - source + source

    - + @@ -16764,7 +16864,7 @@

    Params:

    - penStyle + theme * diff --git a/docs/identifiers.html b/docs/identifiers.html index 82287885..e9944d10 100644 --- a/docs/identifiers.html +++ b/docs/identifiers.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • @@ -1318,6 +1319,34 @@

    eastereggs

    + + + +
    +

    + F + + + importStrokeGroups(editorParam: *, strokeGroups: *) +

    +
    +
    + + + +
    + + + + + + + + + public + + + @@ -4217,7 +4246,7 @@

    recognizer/rest/v4

    F - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) + export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, requestedMimeTypes: Array[String])

    @@ -5597,7 +5626,7 @@

    recognizer/websocket/v4

    F - resize(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback) + resize(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, element: Element)

    diff --git a/docs/image/github.png b/docs/image/github.png deleted file mode 100644 index ea6ff545a246caa64074ba809bbc86fcb8589071..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4268 zcmaJ_c|25m+@2YcEGe=tO+zT_42H4qTL_VT8D=nHX3PwRki9HfBH7BIQ7JCj_beeI z(PA%IQuZumf5*MI`@VnN`<~A^=eL~adA{p8f1EgTGXqv8J|+MFz-nZuYe^f)M;9Xl z?T$df2WbN@Nzaya1?NEuL=w;dEfmfT4L0&cdZI1SNK}yDE3_&AKqrE+vL)G?nkc*D ze5H{`7-_OEp2h|MR5i$Wq`Nno1a?DvVz6qEm4+4w7=u!S*eICFn&NfPUKqn*0{Tj@ znU#C6w>ts_(NG7gl9g!!zGxB>O!oD`5|znnkUw>mY4f9P83_1K2+3Ow@|RP#rsiNB z903hhkd~8jmxV&XaJV#7UI7k=N`hgsP?(G??SxA~<&_oS$}mOn-v@+djezn{w$#=C z+ZJu52Js@1@X9hWfq{Y2fpXF~f~O1=fj}H-z+h4|gcLCdOG1*RuteeC3c6^bI{||y zVQ^URks{I!=TB0D&^-Ms1Yi6=vRLBZX`&@ehK$6^K&54mLi!CfHU0mgzP|sUi6l$( z|N8r{!bGbeJX*#QO~m;V+-ZgL5I!=6SJok*kt7_!3WxLgokepm90^DC!r{R>SKwfA zQ=~fvd$e)kPllD+ zRvxaUgpifj{ms?Ix%>N~v83Nz6pahhl84G`Y3tCq(0}C~HG?mnW?2_azyzRC`UIRW z_|Kq~G5_t0?0@_67Z>#}zWf~rt)x_q6t=Rej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nd^ZegdA!J_j+KUwf*Q89r!GpX^tCjM-_vCiKDr%LHG*Tq?b|4*FY1 zr|I5VzQbkN?NfI!QSV9w{6i7N+PZuZNn#B7s)KDhPO1TQJe zZL1UgBIOOdRP;I*>7?O<3ezgLDn5OQ67L#>r1#{bKe8hz0Pg XLyRvu{aX3a{{tgEGu={c*U0|?Dtn-9 diff --git a/docs/index.html b/docs/index.html index 81bbdd56..7d72bfbc 100644 --- a/docs/index.html +++ b/docs/index.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/docs/manual-badge.svg b/docs/manual-badge.svg deleted file mode 100644 index 80b1c0ed..00000000 --- a/docs/manual-badge.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - manual - manual - 10% - 10% - - diff --git a/docs/manual/changelog/CHANGELOG.html b/docs/manual/changelog/CHANGELOG.html deleted file mode 100644 index 7221f386..00000000 --- a/docs/manual/changelog/CHANGELOG.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - Changelog - - - - - - - - - -
    - Home - Manual - Reference - Source - - - -
    - - - -
    -
    - Manual - » - Changelog -
    -

    v4.2.0

    -

    Features

    -
      -
    • New REST mode:
        -
      • Text, math and diagram recognition
      • -
      • Examples for each recognition type
      • -
      • Support for Raw Content type
      • -
      -
    • -
    • New build and development process:
        -
      • We now use Rollup to build our library,
      • -
      • Two outputs are now generated, UMD and ES6 Modules,
      • -
      • We use npm scripts to launch the development process.
      • -
      -
    • -
    • New always connected mode for WebSocket
    • -
    • New getSupportedImportMimeTypes method
    • -
    • New setGuides method used to add guides on a text part
    • -
    -

    Others

    -
      -
    • New local storage example
    • -
    • Add table of contents for examples page
    • -
    • Multiple improvements
        -
      • Remove bower install from npm scripts
      • -
      • Replace d3 to only use d3-selection
      • -
      • Errors management
      • -
      -
    • -
    -

    v4.1.1

    -

    Features

    -
      -
    • New export in myscript.js for better import using frameworks (as React).
    • -
    -

    Bugs fixed

    -
      -
    • Multiple smart guides now working in case of multiple editors,
    • -
    • Stix font removed from css as useless now,
    • -
    • Languages list for v3 now displaying correct list.
    • -
    -

    Breaking changes

    -

    In order to be consistent with the native API :

    -
      -
    • guide renamed to guides in the configuration.
    • -
    -

    v4.1.0

    -

    Features

    -
      -
    • New smart guide enabled by default:
        -
      • Show real time recognized text above writings,
      • -
      • Change recognized words on click using candidates,
      • -
      • Convert, copy or delete text using the action menu,
      • -
      • Fade out animation to make the smart guide disappear after a certain duration,
      • -
      -
    • -
    • Google Fonts support (see the example)
    • -
    • Custom resources support, upload your custom resources to modify the recognition behaviour. (see the text or the math example.)
    • -
    • New penStyleClasses property. Used to change the theme using a classes passed using the theme property (see the example).
    • -
    • New guides for text using a svg DOM element behind the model layer.
    • -
    • No more css background if api is set to V4.
    • -
    • New isEmpty, possibleUndoCount and undoStackIndex properties in details on changed event to help development of custom undo/redo stacks.
    • -
    -

    Breaking changes

    -

    In order to be consistent with the native API :

    -
      -
    • importContent() and exportContent() respectively renamed to import_() and export_().
    • -
    • importInk(strokes) changed to pointerEvents(events).
    • -
    -

    v4.0.0

    -

    Features

    -
      -
    • Change the underlying InkPaper editor to a new Editor class.
    • -
    • New events to be notified of editor changes.
    • -
    • New penStyle property. Used to change current pen style.
    • -
    • New theme property. Used to change the editor's theme.
    • -
    • New configuration property. Changing the configuration will clear the underlying editor, all currents strokes and results will be lost.
    • -
    -

    Breaking changes

    -
      -
    • Complete rewrite with ES6 syntax
    • -
    • Internal design improved to allow extensibility and support of upcoming recognition types. See the documentation and examples to discover new behavior.
    • -
    • Removal of all deprecated attributes and methods
    • -
    • All configuration has been merged into the configuration property.
    • -
    • All events has been renamed.
    • -
    • getAvailableLanguages() have been moved outside the editor. You can use it to retrieve the list of available languages for your configuration.
    • -
    -

    v1.2.1

    -

    Bugs

    -
      -
    • Fixes staff disappearing after recognition result
    • -
    • Fixes retina mode was only well display after a resizing
    • -
    • Fixes scratch-out were displayed when exporting as image
    • -
    -

    v1.2.0

    -

    Features

    -
      -
    • Change build task runner from grunt to gulp
    • -
    • Add accessors to host to make it mutable
    • -
    • Add accessors to protocol to make it mutable
    • -
    • Add accessors to parameters to make them mutable
    • -
    • Add accessors to components to make them mutable (@see mandatory clef on music)
    • -
    • Add enum style variables on string constants to ease implementation
    • -
    • Mark globalAlpha parameter as deprecated
    • -
    • Migrate JQuery Pointer Event Polyfill to 0.4.1
    • -
    -

    Bugs

    -
      -
    • Fixes parameters constructors to allow json construction, used also to copy them
    • -
    • Fixes components constructors to allow json construction, used also to copy them
    • -
    • Fixes issue on shape recognition undo/redo
    • -
    • Fixes issue on music recognition undo/redo (@see mutable components feature)
    • -
    • Fixes issue on network interfaces (@see mutable host feature)
    • -
    • Fixes missing callback call when timeout === 0
    • -
    • Fixes set parameters on WebSocket recognition (@see mutable parameters feature)
    • -
    • Fixes ink-paper positioning issue (CSS change)
    • -
    • Fixes wrong pointer events coordinates
    • -
    • Fixes getAvailableLanguages to use correct inputMode
    • -
    • Fixes high-resolution rendering
    • -
    -
    -
    -
    - - - - - - - - - - - - diff --git a/docs/manual/index.html b/docs/manual/index.html deleted file mode 100644 index 4b20c8f0..00000000 --- a/docs/manual/index.html +++ /dev/null @@ -1,6671 +0,0 @@ - - - - - - Manual - - - - - - - - - -
    - Home - Manual - Reference - Source - - - -
    - - - -
    - - -

    - -
    - -
    -

    References

    -
    -

    References

    -

    Class Summary

    - - - - - - - - - -
    Static Public Class Summary
    - public - - - - - -
    -

    - - - Editor -

    -
    -
    - - -

    Editor

    -
    -
    -
    - - -
    -
    - -

    Function Summary

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Static Public Function Summary
    - public - - - - - -
    -

    - - - addPoint(stroke: Stroke, point: {x: Number, y: Number, t: Number}): Stroke -

    -
    -
    - - -

    Mutate a stroke by adding a point to it.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - addStroke(model: Model, stroke: Stroke): Model -

    -
    -
    - - -

    Mutate the model given in parameter by adding the new strokeToAdd.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - addStrokeToGroup(model: Model, stroke: Stroke, strokePenStyle: PenStyle): Model -

    -
    -
    - - -

    Mutate the model given in parameter by adding the new strokeToAdd and the penstyle.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - addStrokes(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Add strokes to the model

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - appendToPendingStroke(model: Model, point: {x: Number, y: Number, t: Number}): Model -

    -
    -
    - - -

    Mutate the model by adding a point to the current pending stroke.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - attach(element: Element, editor: Editor, offsetTop: Number, offsetLeft: Number): GrabberContext -

    -
    -
    - - -

    Listen for the desired events

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - attach(element: Element, minHeight: Number, minWidth: Number): Object -

    -
    -
    - - -

    Attach the renderer to the DOM element

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - attach(element: Element): Object -

    -
    -
    - - -

    Populate the dom element

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - buildConfiguration(configuration: *): * -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - buildInput(recognizerContext: RecognizerContext, model: Model): Object -

    -
    -
    - - -

    Internal function to build the payload to ask for a recognition.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - buildNewContentPackageInput(configuration: *, element: *): {"type": string, "applicationKey": *, "xDpi": *, "yDpi": *, "viewSizeHeight": *, "viewSizeWidth": *} -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - buildNewContentPart(configuration: *): {"type": string, "contentType": *, "mimeTypes": *} -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - buildOpenContentPart(configuration: *, partId: *): {"type": string, "id": *, "mimeTypes": *} -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - buildRestoreIInkSessionInput(configuration: *, element: *, sessionId: *): {"type": string, "iinkSessionId": *, "applicationKey": *, "xDpi": *, "yDpi": *, "viewSizeHeight": *, "viewSizeWidth": *} -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - buildSetPenStyle(penStyle: *): {"type": string, "style": *} -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - buildSetPenStyleClasses(penStyleClasses: *): {"type": string, "styleClasses": *} -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - buildSetTheme(theme: *): {"type": string, "theme": *} -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - buildWebSocketCallback(destructuredPromise: DestructuredPromise, recognizerContext: RecognizerContext): function -

    -
    -
    - - -

    This function bind the right behaviour when a message is receive by the websocket.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - buildWebSocketCallback(destructuredPromise: DestructuredPromise, recognizerContext: RecognizerContext): function -

    -
    -
    - - -

    This function bind the right behaviour when a message is receive by the websocket.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - canReconnect(recognizerContext: RecognizerContext): Boolean -

    -
    -
    - - -

    Test if it is possible to reconnect

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - clear(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Do what is needed to clean the server context.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - clear(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Clear action

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - clear(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Clear server context.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - clear(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Clear server context.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - clear(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Do what is needed to clean the server context.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - clear(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Clear server context.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - clearModel(model: Model): Model -

    -
    -
    - - -

    Clear the model.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - cloneModel(model: Model): Model -

    -
    -
    - - -

    Clone model

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - close(recognizerContext: RecognizerContext, code: Number, reason: String) -

    -
    -
    - - -

    Close the websocket

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - close(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Close and free all resources that will no longer be used by the recognizer.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - close(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Close and free all resources that will no longer be used by the recognizer.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - computeAxeAngle(begin: {x: Number, y: Number}, end: {x: Number, y: Number}): Number -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - computeHmac(input: Object, applicationKey: String, hmacKey: String): String -

    -
    -
    - - -

    Compute HMAC signature for server authentication

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - computeLinksPoints(point: {x: Number, y: Number, p: Number}, angle: *, width: *): [{x: Number, y: Number},{x: Number, y: Number}] -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - computeMiddlePoint(point1: {x: Number, y: Number, p: Number}, point2: {x: Number, y: Number, p: Number}): {x: Number, y: Number, p: Number} -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - computeStats(model: Model): Stats -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - convert(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, conversionState: String) -

    -
    -
    - - -

    Convert action

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - convert(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Ask for conversion using DIGITAL_EDIT

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Create a new recognizer context

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - createModel(configuration: Configuration): Model -

    -
    -
    - - -

    Create a new model

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - createSmartGuide(editor: Editor): SmartGuide -

    -
    -
    - - -

    Create a new smart guide

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - createStrokeComponent(properties: Object): Stroke -

    -
    -
    - - -

    Create a new stroke

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - createUndoRedoContext(configuration: Configuration): UndoRedoContext -

    -
    -
    - - -

    Create a new undo/redo context

    -
    -
    -
    - - -
    - public - - - - - - -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - detach(element: Element, context: Object) -

    -
    -
    - - -

    Detach the renderer from the DOM element

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - detach(element: Element, context: Object) -

    -
    -
    - - -

    Detach the renderer from the DOM element

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - detach(element: *, context: *) -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - drawCurrentStroke(context: Object, model: Model, stroker: Stroker): Model -

    -
    -
    - - -

    Draw the current stroke from the model

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - drawCurrentStroke(context: Object, model: Model, stroker: Stroker): Model -

    -
    -
    - - -

    Draw the current stroke from the model

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - drawLine(context: Object, p1: {x: Number, y: Number}, p2: {x: Number, y: Number}) -

    -
    -
    - - -

    Draw a line

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - drawMathSymbol(context: Object, symbol: Object, model: Model, stroker: Stroker) -

    -
    -
    - - -

    Draw a math symbol

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - drawModel(context: Object, model: Model, stroker: Stroker): Model -

    -
    -
    - - -

    Draw all symbols contained into the model

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - drawModel(context: Object, model: Model, stroker: Stroker): Model -

    -
    -
    - - -

    Draw all symbols contained into the model

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - drawMusicSymbol(context: Object, symbol: Object) -

    -
    -
    - - -

    Draw a music symbol

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - drawShapeSymbol(context: Object, symbol: Object) -

    -
    -
    - - -

    Draw a shape symbol

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - drawStroke(context: Object, stroke: Stroke, stroker: Stroker) -

    -
    -
    - - -

    Draw a stroke symbol

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - drawStroke(context: Object, stroke: Stroke) -

    -
    -
    - - -

    Draw a stroke on a svg tag, using quadratics

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - drawStroke(context: Object, stroke: Stroke, stroker: Stroker) -

    -
    -
    - - -

    Draw a stroke symbol

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - drawStroke(context: Object, stroke: Stroke) -

    -
    -
    - - -

    Draw a stroke on a canvas, using quadratics

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - drawTextSymbol(context: Object, symbol: Object) -

    -
    -
    - - -

    Draw a text symbol

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - endPendingStroke(model: Model, point: {x: Number, y: Number, t: Number}, penStyle: PenStyle): Model -

    -
    -
    - - -

    Mutate the model by adding the new point on a initPendingStroke.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - eventCallback(type: String, data: Object) -

    -
    -
    - - -

    Emits an event when the editor state change

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Export content

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Export content

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Export content

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, requestedMimeTypes: Array[String]) -

    -
    -
    - - -

    Export action

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Export content

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Export content

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback): * -

    -
    -
    - - -

    Export content

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Export content

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - export_(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback): * -

    -
    -
    - - -

    Export content

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - extractExports(model: Model): Object -

    -
    -
    - - -

    Extract the exports

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - extractExports(model: Model): Object -

    -
    -
    - - -

    Extract the exports

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - extractExports(model: Model): Object -

    -
    -
    - - -

    Extract the exports

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - extractPendingRecognizedSymbols(model: Model, position: Number): Array<Object> -

    -
    -
    - - -

    Get the symbols that needs to be rendered

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - extractPendingStrokes(model: Model, position: Number): Array<Stroke> -

    -
    -
    - - -

    Get the strokes that needs to be recognized

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - extractRecognizedSymbols(model: Model): Array<Object> -

    -
    -
    - - -

    Extract the recognized symbols

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - extractRecognizedSymbols(model: Model): Array<Object> -

    -
    -
    - - -

    Extract the recognized symbols

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - extractShapeSymbols(model: Model, segment: Object): Array<Object> -

    -
    -
    - - -

    Extract recognized symbols from recognition output

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - extractStrokesFromInkRange(model: Model, firstStroke: Number, lastStroke: Number, firstPoint: Number, lastPoint: Number): Array<Stroke> -

    -
    -
    - - -

    Extract strokes from an ink range

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - get(recognizerContext: RecognizerContext, url: String, params: Object): Promise -

    -
    -
    - - -

    Get request

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getAvailableLanguageList(configuration: Configuration): JSON -

    -
    -
    - - -

    Return the list of available recognition languages

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getBorderCoordinates(model: Model): Bounds -

    -
    -
    - - -

    Get the bounds of the current model.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getDefaultSymbols(configuration: Configuration): Array -

    -
    -
    - - -

    Get the default symbols for the current recognition type

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getImage(model: Model, stroker: Stroker, margin: Number): String -

    -
    -
    - - -

    Generate a PNG image data url from the model

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getInfo(): RecognizerInfo -

    -
    -
    - - -

    Get the configuration supported by this recognizer

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getInfo(): StrokerInfo -

    -
    -
    - - -

    Get info

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getInfo(): RecognizerInfo -

    -
    -
    - - -

    Get the configuration supported by this recognizer

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getInfo(): RecognizerInfo -

    -
    -
    - - -

    Get the configuration supported by this recognizer

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getInfo(): RecognizerInfo -

    -
    -
    - - -

    Get the configuration supported by this recognizer

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getInfo(): RecognizerInfo -

    -
    -
    - - -

    Get the configuration supported by this recognizer

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getInfo(): RecognizerInfo -

    -
    -
    - - -

    Get the configuration supported by this recognizer

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getInfo(): RendererInfo -

    -
    -
    - - -

    Get info

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getInfo(): RecognizerInfo -

    -
    -
    - - -

    Get the configuration supported by this recognizer

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getInfo(): RecognizerInfo -

    -
    -
    - - -

    Get the configuration supported by this recognizer

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getInfo(): StrokerInfo -

    -
    -
    - - -

    Get info

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getInfo(): RendererInfo -

    -
    -
    - - -

    Get info

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getInfo(): RecognizerInfo -

    -
    -
    - - -

    Get the configuration supported by this recognizer

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getModel(undoRedoContext: UndoRedoContext, callback: function(err: Object, res: Model, types: ...String), clone: Boolean, types: ...String) -

    -
    -
    - - -

    Get current model in stack

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Retrieve music symbols elements

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getPointByIndex(stroke: Stroke, index: Number): {x: Number, y: Number, t: Number, p: Number, l: Number} -

    -
    -
    - - -

    Extract point by index

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getStyleFromInkRanges(model: Model, inkRanges: Array<Object>): {color: String, width: Number} -

    -
    -
    - - -

    Get style for the strokes matching the ink ranges

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - getSupportedImportMimeTypes(recognizerContext: *, model: *, callback: *) -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - getSymbolsBounds(symbols: Array, bounds: Bounds): Bounds -

    -
    -
    - - -

    Get the box enclosing the given symbols

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - import_(recognizerContext: RecognizerContext, model: Model, data: Blob, callback: RecognizerCallback) -

    -
    -
    - - -

    Import action

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - init(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Initialize recognition

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - init(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Initialize recognition

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - init(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Initialize recognition

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - init(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Initialize recognition

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - init(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Initialize recognition

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - init(suffixUrl: String, recognizerContext: RecognizerContext, buildWebSocketCallback: BuildWebSocketFunction, reconnect: function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback)): Promise -

    -
    -
    - - -

    Init the websocket recognizer.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - initPendingStroke(model: Model, point: {x: Number, y: Number, t: Number}, properties: Object, dpi: Number): Model -

    -
    -
    - - -

    Mutate the model by adding a point and close the current stroke.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - inkImporter(editorParam: *, strokes: *, delayBetweenStrokes: *, lastOneDelay: *) -

    -
    -
    - - -

    Function to copy past to inject ink during tutorial.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - insertSmartGuide(smartGuide: SmartGuide) -

    -
    -
    - - -

    Insert the smart guide HTML elements in the DOM.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - isResetRequired(recognizerContext: RecognizerContext, model: Model): Boolean -

    -
    -
    - - -

    Return true if a reset is required, false otherwise

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - launchSmartGuide(smartGuide: SmartGuide, exports: Object): * -

    -
    -
    - - -

    Launch the smartguide.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - mergeModels(models: ...Model): Model -

    -
    -
    - - -

    Merge models

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - needRedraw(model: Model): Boolean -

    -
    -
    - - -

    Check if the model needs to be redrawn.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - newContentPart(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Create a new content part

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - openContentPart(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Open the recognizer context content part

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - openWebSocket(recognizerContext: RecognizerContext): WebSocket -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - overrideDefaultBehaviors(behaviors: Behaviors): Behaviors -

    -
    -
    - - -

    Generate behaviors

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - overrideDefaultConfiguration(configuration: Configuration): Configuration -

    -
    -
    - - -

    Generate parameters

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Generate style

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - overrideDefaultTheme(theme: Theme): Theme -

    -
    -
    - - -

    Generate theme

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - pointerEvents(recognizerContext: RecognizerContext, model: Model, events: PointerEvents, callback: RecognizerCallback) -

    -
    -
    - - -

    Pointer Events

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - post(recognizerContext: RecognizerContext, url: String, data: Object, apiVersion: String, mimeType: String): Promise -

    -
    -
    - - -

    Post request

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - postMessage(suffixUrl: String, recognizerContext: RecognizerContext, model: Model, buildMessage: function(recognizerContext: RecognizerContext, model: Model, conversionState: String): Object, conversionState: String, mimeType: String): Promise<Model> -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - postMessage(suffixUrl: String, recognizerContext: RecognizerContext, model: Model, buildMessage: function(recognizerContext: RecognizerContext, model: Model): Object): Promise<Model> -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - redo(undoRedoContext: UndoRedoContext, model: Model, callback: function(err: Object, res: Model, types: ...String)) -

    -
    -
    - - -

    Redo

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - redo(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Redo last action

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - register(element: Element, configuration: Configuration, penStyle: PenStyle, theme: Theme, behaviors: Behaviors): Editor -

    -
    -
    - - -

    Attach an Editor to a DOMElement

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - reset(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Reset server context.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - reset(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Reset the recognition context

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - reset(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Reset server context.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - reset(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Reset the recognition context

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - resetModelPositions(model: Model): Model -

    -
    -
    - - -

    Reset model lastReceivedPosition and lastSentPosition

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - resetModelRendererPosition(model: Model): Model -

    -
    -
    - - -

    Reset model lastRenderedPosition

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - resize(context: Object, model: Model, stroker: Stroker): Model -

    -
    -
    - - -

    Update the rendering context size

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - resize(smartGuide: *) -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - resize(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback) -

    -
    -
    - - -

    Resize

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - resize(context: Object, model: Model, stroker: Stroker, minHeight: Number, minWidth: Number): Model -

    -
    -
    - - -

    Update the rendering context size

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - retry(func: *, recognizerContext: *, model: *, callback: *, params: ...*) -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - send(recognizerContext: RecognizerContext, message: Object) -

    -
    -
    - - -

    Send data message

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - sendConfiguration(recognizerContext: *, model: *, callback: *) -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - sendMessage(recognizerContext: RecognizerContext, buildMessage: function(params: ...Object): Object, params: ...Object): Promise -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - setPenStyle(recognizerContext: RecognizerContext, model: Model, penStyle: PenStyle, callback: RecognizerCallback) -

    -
    -
    - - -

    SetPenStyle action

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - setPenStyleClasses(recognizerContext: RecognizerContext, model: Model, penStyleClasses: String, callback: RecognizerCallback) -

    -
    -
    - - -

    setPenStyleClasses action

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - setRecognitionContext(recognizerContext: RecognizerContext, recognitionContext: RecognitionContext): RecognizerContext -

    -
    -
    - - -

    Set the recognition context

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - setTheme(recognizerContext: RecognizerContext, model: Model, theme: Theme, callback: RecognizerCallback) -

    -
    -
    - - -

    SetTheme action

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - shouldAttemptImmediateReconnect(recognizerContext: RecognizerContext): Boolean -

    -
    -
    - - -

    Test if it should attempt immediate reconnect

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - slice(stroke: Stroke, start: Number, end: Number): Stroke -

    -
    -
    - - -

    Slice a stroke and return the sliced part of it

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - toCSS(theme: *): * -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - toCSS(penStyle: *): * -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - toJSON(penStyle: *): * -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - toJSON(theme: *): * -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - toJSON(stroke: Stroke): {type: String, x: Array<Number>, y: Array<Number>, t: Array<Number>} -

    -
    -
    - - -

    Get a JSON copy of a stroke by filtering its properties

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - toJSONV4(stroke: Stroke): {x: Array<Number>, y: Array<Number>, t: Array<Number>} -

    -
    -
    - - -

    Get a JSON copy of a stroke by filtering its properties

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - undo(undoRedoContext: UndoRedoContext, model: Model, callback: function(err: Object, res: Model, types: ...String)) -

    -
    -
    - - -

    Undo

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - undo(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    Undo last action

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - updateModel(undoRedoContext: UndoRedoContext, model: Model, callback: function(err: Object, res: Model, types: ...String)) -

    -
    -
    - - -

    Mutate the undoRedo stack by adding a new model to it.

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - updateModelReceivedPosition(model: Model): Model -

    -
    -
    - - -

    Update model lastReceivedPosition regarding to lastSentPosition

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - updateModelRenderedPosition(model: Model, position: Number): Model -

    -
    -
    - - -

    Update model lastRenderedPosition

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - updateModelSentPosition(model: Model, position: Number): Model -

    -
    -
    - - -

    Update model lastSentPosition

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Update the recognition context positions

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - updateUndoRedoState(undoRedoContext: UndoRedoContext): UndoRedoContext -

    -
    -
    - - -

    Update the undo/redo state

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - waitForIdle(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback) -

    -
    -
    - - -

    WaitForIdle action

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - zoom(recognizerContext: RecognizerContext, model: Model, value: Number, callback: RecognizerCallback) -

    -
    -
    - - -

    Zoom action

    -
    -
    -
    - - -
    -
    -

    Variable Summary

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Static Public Variable Summary
    - public - - - - - - -
    - - -

    Explicit close message

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Recognizer configuration

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - LOST_CONNEXION_MESSAGE: {type: string} -

    -
    -
    - - -

    Lost connection message

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - MathSymbols: {inputCharacter: String, char: String, string: String, textLine: String} -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - MusicClefs: {F: {svg: String, getBoundingBox: function}, C: {svg: String, getBoundingBox: function}, G: {svg: String, getBoundingBox: function}} -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - MusicSymbols: {accidental: String, arpeggiate: String, bar: String, beam: String, clef: String, decoration: String, dots: String, head: String, ledgerLine: String, rest: String, staff: String, stem: String, tieOrSlur: String, timeSignature: String} -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - ShapeSymbols: {table: String, shape: String, recognizedShape: String, ellipse: String, line: String} -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - TextSymbols: {inputCharacter: String, char: String, string: String, textLine: String} -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - - -
    - - -

    Recognizer configuration

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - callbackLogger: Object -

    -
    -
    - - -

    Log callback events

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Default behaviors

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - defaultConfiguration: Configuration -

    -
    -
    - - -

    Default configuration

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - defaultPenStyle: PenStyle -

    -
    -
    - - -

    Default style

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - defaultTheme: Theme -

    -
    -
    - - -

    Default theme

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - editorLogger: Object -

    -
    -
    - - -

    Log editor events

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - grabberLogger: Object -

    -
    -
    - - -

    Log grabber events

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Recognizer configuration

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - log: Object -

    -
    -
    - - -

    Main log instance

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Recognizer configuration

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Recognizer configuration

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - modelLogger: Object -

    -
    -
    - - -

    Log model events

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Recognizer configuration

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - recognizerLogger: Object -

    -
    -
    - - -

    Log recognizer events

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - rendererLogger: Object -

    -
    -
    - - -

    Log grabber events

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Recognizer configuration

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - smartGuideLogger: Object -

    -
    -
    - - -

    Log editor events

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - testLogger: Object -

    -
    -
    - - -

    Log tests events

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Recognizer configuration

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Recognizer configuration

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - utilLogger: Object -

    -
    -
    - - -

    Log util events

    -
    -
    -
    - - -
    -
    -

    Typedef Summary

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Static Public Typedef Summary
    - public - - - - - -
    -

    - - - Behavior: Object -

    -
    -
    - - -

    Current behavior

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - Behaviors: Object -

    -
    -
    - - -

    Set of behaviors to be used by the Editor

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - Bounds: Object -

    -
    -
    - - -

    Bounding box

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - BuildWebSocketFunction(destructuredPromise: DestructuredPromise, recognizerContext: RecognizerContext): Callback: function -

    -
    -
    - - -

    Build websocket function

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - Callback(err: Object, res: Object): function -

    -
    -
    - - -

    Simple callback

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - Constants: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - - -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - GeneratedTheme: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - Grabber: Object -

    -
    -
    - - -

    Grab pointerDown, pointerMove and pointerUp events

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - GrabberContext: Object -

    -
    -
    - - -

    Grabber context

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - GrabberListener: Object -

    -
    -
    - - -

    Grabber listener

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - InkTheme: PenStyle -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - MathTheme: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - Model: Object -

    -
    -
    - - -

    Editor model

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - PenStyle: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - RawResults: Object -

    -
    -
    - - -

    Raw results

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - RecognitionContext: Object -

    -
    -
    - - -

    Recognition context

    -
    -
    -
    - - -
    - public - - - - - - -
    - - -

    Recognition positions

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - Recognizer: Object -

    -
    -
    - - -

    Recognition service entry point

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - RecognizerCallback(err: Object, model: Model, types: ...String): function -

    -
    -
    - - -

    Recognizer callback

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - RecognizerContext: Object -

    -
    -
    - - -

    Recognizer context

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - RecognizerInfo: Object -

    -
    -
    - - -

    Recognizer info

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - Renderer: Object -

    -
    -
    - - -

    Default renderer

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - RendererInfo: Object -

    -
    -
    - - -

    Renderer info

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - SmartGuide: Object -

    -
    -
    - - -

    Smart guide

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - Stats: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - Stroke: Object -

    -
    -
    - - -

    Stroke symbol

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - Stroker: Object -

    -
    -
    - - -

    Define how a stroke should be drawn

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - StrokerInfo: Object -

    -
    -
    - - -

    Stroker info

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - TextTheme: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - Theme: Object -

    -
    -
    - - - -
    -
    - - -
    - public - - - - - -
    -

    - - - Triggers: Object -

    -
    -
    - - -

    Triggers

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - UndoRedoContext: Object -

    -
    -
    - - -

    Undo/redo context

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - UndoRedoManager: Object -

    -
    -
    - - -

    Undo/redo manager

    -
    -
    -
    - - -
    - public - - - - - -
    -

    - - - pointerEvents: Object -

    -
    -
    - - -

    pointerEvents symbol

    -
    -
    -
    - - -
    -
    - -
    - -
    -
    -
    -

    v1.2.0

    -
    -

    v1.2.0

    Features

      -
    • Change build task runner from grunt to gulp
    • -
    • Add accessors to host to make it mutable
    • -
    • Add accessors to protocol to make it mutable
    • -
    • Add accessors to parameters to make them mutable
    • -
    • Add accessors to components to make them mutable (@see mandatory clef on music)
    • -
    • Add enum style variables on string constants to ease implementation
    • -
    • Mark globalAlpha parameter as deprecated
    • -
    • Migrate JQuery Pointer Event Polyfill to 0.4.1
    • -

    Bugs

      -
    • Fixes parameters constructors to allow json construction, used also to copy them
    • -
    • Fixes components constructors to allow json construction, used also to copy them
    • -
    • Fixes issue on shape recognition undo/redo
    • -
    • Fixes issue on music recognition undo/redo (@see mutable components feature)
    • -
    • Fixes issue on network interfaces (@see mutable host feature)
    • -
    • Fixes missing callback call when timeout === 0
    • -
    • Fixes set parameters on WebSocket recognition (@see mutable parameters feature)
    • -
    • Fixes ink-paper positioning issue (CSS change)
    • -
    • Fixes wrong pointer events coordinates
    • -
    • Fixes getAvailableLanguages to use correct inputMode
    • -
    • Fixes high-resolution rendering
    • -
    - -
    -
    -
    -
    -
    - - - - - - - - - - - - diff --git a/docs/package.json b/docs/package.json deleted file mode 100644 index acdfdf90..00000000 --- a/docs/package.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "name": "myscript", - "version": "4.2.0", - "main": "dist/myscript.min.js", - "module": "dist/myscript.esm.js", - "description": "MyScriptJS is the fastest way to integrate handwriting panel and recognition in your webapp", - "keywords": [ - "myscript", - "javascript", - "developer", - "handwriting", - "recognition", - "cloud" - ], - "files": [ - "dist" - ], - "license": "Apache-2.0", - "homepage": "https://myscript.github.io/MyScriptJS/", - "repository": { - "type": "git", - "url": "git://github.com/MyScript/MyScriptJS.git" - }, - "dependencies": { - "assign-deep": "^0.4.7", - "clipboard": "^1.7.1", - "crypto-js": "^3.1.9-1", - "d3-selection": "^1.3.0", - "json-css": "^1.5.6", - "loglevel": "^1.6.1", - "perfect-scrollbar": "^1.3.0", - "uuid-js": "^0.7.5" - }, - "devDependencies": { - "babel-cli": "^6.26.0", - "babel-core": "^6.26.3", - "babel-loader": "^7.1.4", - "babel-plugin-external-helpers": "^6.22.0", - "babel-plugin-transform-runtime": "^6.23.0", - "babel-polyfill": "^6.26.0", - "babel-preset-env": "^1.7.0", - "babel-register": "^6.26.0", - "chai": "^4.1.2", - "clean-css-cli": "^4.1.11", - "esdoc": "^0.5.2", - "eslint": "^4.19.1", - "eslint-config-airbnb": "^15.1.0", - "eslint-loader": "^1.9.0", - "eslint-plugin-import": "^2.11.0", - "eslint-plugin-jsx-a11y": "^5.1.1", - "eslint-plugin-react": "^7.8.2", - "mocha": "^5.1.1", - "npm-run-all": "^4.1.3", - "rollup": "0.58.2", - "rollup-plugin-babel": "^3.0.4", - "rollup-plugin-commonjs": "^9.1.3", - "rollup-plugin-json": "^2.3.1", - "rollup-plugin-livereload": "^0.6.0", - "rollup-plugin-node-resolve": "^3.3.0", - "rollup-plugin-serve": "^0.4.2", - "rollup-plugin-uglify": "^3.0.0", - "sinon": "^2.4.1" - }, - "scripts": { - "lint": "eslint --ext js src", - "docs": "esdoc", - "minify-css": "cleancss -o dist/myscript.min.css src/*.css", - "test:mocha": "mocha --require babel-core/register --recursive test/mocha/ --reporter progress", - "test:mocha-xunit": "mocha --require babel-core/register --recursive test/mocha/ --reporter xunit --reporter-options output=./test/mocha/results/xunit.xml", - "build:js": "rollup -c config/rollup.config.build.js --sourcemap", - "build": "npm-run-all test:mocha lint build:js minify-css docs", - "dev:js": "rollup -c config/rollup.config.dev.js -w --sourcemap", - "dev": "npm-run-all minify-css dev:js", - "start": "npm run dev" - } -} diff --git a/docs/script/search_index.js b/docs/script/search_index.js index a3996677..db7844d5 100644 --- a/docs/script/search_index.js +++ b/docs/script/search_index.js @@ -731,6 +731,12 @@ window.esdocSearchIndex = [ "iinkRestConfiguration myscript/src/recognizer/rest/v4/iinkRestRecognizer.js", "variable" ], + [ + "myscript/src/eastereggs/inkimporter.js~importstrokegroups", + "function/index.html#static-function-importStrokeGroups", + "importStrokeGroups myscript/src/eastereggs/InkImporter.js", + "function" + ], [ "myscript/src/recognizer/websocket/v4/cdkv4wsiinkrecognizer.js~import_", "function/index.html#static-function-import_", @@ -1483,13 +1489,13 @@ window.esdocSearchIndex = [ ], [ "src/editor.js~editor#behavior", - "class/src/Editor.js~Editor.html#instance-get-behavior", + "class/src/Editor.js~Editor.html#instance-set-behavior", "src/Editor.js~Editor#behavior", "member" ], [ "src/editor.js~editor#behavior", - "class/src/Editor.js~Editor.html#instance-set-behavior", + "class/src/Editor.js~Editor.html#instance-get-behavior", "src/Editor.js~Editor#behavior", "member" ], @@ -1543,13 +1549,13 @@ window.esdocSearchIndex = [ ], [ "src/editor.js~editor#configuration", - "class/src/Editor.js~Editor.html#instance-get-configuration", + "class/src/Editor.js~Editor.html#instance-set-configuration", "src/Editor.js~Editor#configuration", "member" ], [ "src/editor.js~editor#configuration", - "class/src/Editor.js~Editor.html#instance-set-configuration", + "class/src/Editor.js~Editor.html#instance-get-configuration", "src/Editor.js~Editor#configuration", "member" ], @@ -1601,6 +1607,12 @@ window.esdocSearchIndex = [ "src/Editor.js~Editor#exports", "member" ], + [ + "src/editor.js~editor#forcechange", + "class/src/Editor.js~Editor.html#instance-method-forceChange", + "src/Editor.js~Editor#forceChange", + "method" + ], [ "src/editor.js~editor#getstats", "class/src/Editor.js~Editor.html#instance-method-getStats", @@ -1741,13 +1753,13 @@ window.esdocSearchIndex = [ ], [ "src/editor.js~editor#penstyleclasses", - "class/src/Editor.js~Editor.html#instance-get-penStyleClasses", + "class/src/Editor.js~Editor.html#instance-set-penStyleClasses", "src/Editor.js~Editor#penStyleClasses", "member" ], [ "src/editor.js~editor#penstyleclasses", - "class/src/Editor.js~Editor.html#instance-set-penStyleClasses", + "class/src/Editor.js~Editor.html#instance-get-penStyleClasses", "src/Editor.js~Editor#penStyleClasses", "member" ], @@ -1795,13 +1807,13 @@ window.esdocSearchIndex = [ ], [ "src/editor.js~editor#recognizer", - "class/src/Editor.js~Editor.html#instance-set-recognizer", + "class/src/Editor.js~Editor.html#instance-get-recognizer", "src/Editor.js~Editor#recognizer", "member" ], [ "src/editor.js~editor#recognizer", - "class/src/Editor.js~Editor.html#instance-get-recognizer", + "class/src/Editor.js~Editor.html#instance-set-recognizer", "src/Editor.js~Editor#recognizer", "member" ], @@ -1885,13 +1897,13 @@ window.esdocSearchIndex = [ ], [ "src/editor.js~editor#theme", - "class/src/Editor.js~Editor.html#instance-set-theme", + "class/src/Editor.js~Editor.html#instance-get-theme", "src/Editor.js~Editor#theme", "member" ], [ "src/editor.js~editor#theme", - "class/src/Editor.js~Editor.html#instance-get-theme", + "class/src/Editor.js~Editor.html#instance-set-theme", "src/Editor.js~Editor#theme", "member" ], @@ -1919,6 +1931,12 @@ window.esdocSearchIndex = [ "src/Editor.js~Editor#undoStackIndex", "member" ], + [ + "src/editor.js~editor#unload", + "class/src/Editor.js~Editor.html#instance-method-unload", + "src/Editor.js~Editor#unload", + "method" + ], [ "src/editor.js~editor#waitforidle", "class/src/Editor.js~Editor.html#instance-method-waitForIdle", diff --git a/docs/source.html b/docs/source.html index c7038ea2..d7e40acd 100644 --- a/docs/source.html +++ b/docs/source.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • @@ -267,7 +268,7 @@
    -

    Source 281/392

    +

    Source 284/395

    @@ -283,12 +284,12 @@ - + - - - - + + + + @@ -297,7 +298,7 @@ - + @@ -305,7 +306,7 @@ - + @@ -320,18 +321,18 @@ - - - + + + - + - + @@ -373,21 +374,22 @@ - - - - - - + + + + + + - + - - - + + + @@ -441,7 +443,7 @@ - + @@ -473,12 +475,12 @@ - + - - - + + + @@ -497,7 +499,7 @@ - + @@ -505,7 +507,7 @@ - + @@ -513,7 +515,7 @@ - + @@ -524,7 +526,7 @@ - + @@ -532,16 +534,16 @@ - + - - - + + + @@ -551,7 +553,7 @@ - + @@ -561,7 +563,7 @@ - + @@ -572,7 +574,7 @@ - + @@ -580,7 +582,7 @@ - + @@ -592,7 +594,7 @@ - + @@ -603,19 +605,19 @@ - + - + - - - + + + @@ -627,7 +629,7 @@ - + @@ -637,7 +639,7 @@ - + @@ -645,7 +647,7 @@ - + @@ -658,7 +660,7 @@ - + @@ -671,7 +673,7 @@ - + @@ -679,7 +681,7 @@ - + @@ -713,9 +715,9 @@ waitForIdlezoom - + - + @@ -738,7 +740,7 @@ - + @@ -815,7 +817,7 @@ - + @@ -824,7 +826,7 @@ - + @@ -841,9 +843,9 @@ launchSmartGuideresize - + - + @@ -851,7 +853,7 @@ - + diff --git a/docs/typedef/index.html b/docs/typedef/index.html index 4c127455..c6036fbe 100644 --- a/docs/typedef/index.html +++ b/docs/typedef/index.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • @@ -2676,7 +2677,7 @@

    Properties:

    - + diff --git a/docs/variable/index.html b/docs/variable/index.html index 3d4559a6..aab0a393 100644 --- a/docs/variable/index.html +++ b/docs/variable/index.html @@ -64,7 +64,8 @@
  • TMathTheme
  • TTextTheme
  • TTheme
  • -
  • eastereggsFinkImporter
  • +
  • eastereggsFimportStrokeGroups
  • +
  • FinkImporter
  • grabberFattach
  • Fdetach
  • TGrabber
  • diff --git a/package-lock.json b/package-lock.json index 29cedd10..3903ba57 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "myscript", - "version": "4.2.0", + "version": "4.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -2907,12 +2907,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2927,17 +2929,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -3054,7 +3059,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -3066,6 +3072,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -3080,6 +3087,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -3087,12 +3095,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -3111,6 +3121,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -3191,7 +3202,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -3203,6 +3215,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -3324,6 +3337,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", diff --git a/package.json b/package.json index 5f9b2eab..4f2738e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "myscript", - "version": "4.2.0", + "version": "4.3.0", "main": "dist/myscript.min.js", "module": "dist/myscript.esm.js", "description": "MyScriptJS is the fastest way to integrate handwriting panel and recognition in your webapp",
    src/Editor.jssrc/Editor.js Editor88 %82/9332219 byte10582018-11-06 12:42:40 (UTC)89 %85/9533073 byte10862018-12-04 10:06:21 (UTC)
    src/EditorFacade.js100 %2/2 1313 byte 292018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/callback/EventCallback.js100 %1/1 521 byte 142018-10-03 14:26:49 (UTC)2018-11-06 10:08:16 (UTC)
    src/configuration/Constants.jsdefaultBehaviors overrideDefaultBehaviors 100 %2/25014 byte962018-10-03 14:26:49 (UTC)5048 byte982018-12-03 13:12:44 (UTC)
    src/configuration/DefaultConfiguration.js defaultConfiguration overrideDefaultConfiguration 100 %2/25596 byte5595 byte 2032018-10-03 14:26:49 (UTC)2018-12-04 10:06:21 (UTC)
    src/configuration/DefaultPenStyle.js2018-10-03 14:26:49 (UTC)
    src/eastereggs/InkImporter.jsinkImporter100 %1/12738 byte762018-10-03 14:26:49 (UTC)src/eastereggs/InkImporter.jsimportStrokeGroups +inkImporter50 %1/23202 byte882018-11-03 16:24:59 (UTC)
    src/grabber/PointerEventGrabber.jssrc/grabber/PointerEventGrabber.js attach detach 25 %1/48882 byte1932018-11-06 12:42:40 (UTC)9570 byte2012018-12-04 10:06:21 (UTC)
    src/model/InkModel.js66 %6/9 5468 byte 1562018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/model/Symbol.js2018-10-03 14:26:49 (UTC)
    src/myscript.jssrc/myscript.js - 0 %0/1739 byte312018-10-03 14:26:49 (UTC)1152 byte462018-11-03 16:24:59 (UTC)
    src/recognizer/CryptoHelper.js100 %4/4 6206 byte 1182018-10-03 14:26:49 (UTC)2018-12-04 10:06:21 (UTC)
    src/recognizer/common/CdkCommonUtil.js100 %1/1 798 byte 272018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/common/v3/Cdkv3CommonMathRecognizer.js100 %1/1 993 byte 232018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/common/v3/Cdkv3CommonShapeRecognizer.js100 %4/4 2953 byte 862018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/common/v3/Cdkv3CommonTextRecognizer.js100 %1/1 712 byte 192018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/rest/networkInterface.js get post 100 %5/54805 byte1462018-10-03 14:26:49 (UTC)4897 byte1472018-12-03 13:12:44 (UTC)
    src/recognizer/rest/v3/Cdkv3RestAnalyzerRecognizer.js62 %5/8 4592 byte 1292018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/rest/v3/Cdkv3RestMathRecognizer.js80 %4/5 3333 byte 862018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/rest/v3/Cdkv3RestMusicRecognizer.js83 %5/6 4355 byte 1142018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/rest/v3/Cdkv3RestRecognizerUtil.js100 %1/1 1400 byte 282018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/rest/v3/Cdkv3RestShapeRecognizer.js75 %6/8 4704 byte 1172018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/rest/v3/Cdkv3RestTextRecognizer.js80 %4/5 3305 byte 872018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/rest/v4/iinkRestRecognizer.jssrc/recognizer/rest/v4/iinkRestRecognizer.js convert export_ getInfo iinkRestConfiguration postMessage 41 %5/128724 byte2292018-10-03 14:26:49 (UTC)7970 byte2192018-12-03 13:12:44 (UTC)
    src/recognizer/websocket/CdkWSRecognizerUtil.js57 %4/7 5569 byte 1372018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/websocket/networkWSInterface.js80 %4/5 3514 byte 1142018-10-03 14:26:49 (UTC)2018-11-02 16:06:24 (UTC)
    src/recognizer/websocket/v3/Cdkv3WSBuilder.js66 %2/3 5228 byte 1162018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/websocket/v3/Cdkv3WSMathRecognizer.js66 %6/9 5335 byte 1412018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/websocket/v3/Cdkv3WSTextRecognizer.js66 %6/9 5367 byte 1462018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/websocket/v4/Cdkv4WSBuilder.js100 %2/2 7494 byte 1622018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/recognizer/websocket/v4/Cdkv4WSIInkRecognizer.js 42 %19/4521235 byte21244 byte 5802018-10-03 14:26:49 (UTC)2018-12-04 10:06:21 (UTC)
    src/renderer/QuadraticUtils.js54 %6/11 7362 byte 2002018-10-03 14:26:49 (UTC)2018-11-03 16:00:14 (UTC)
    src/renderer/canvas/ImageRenderer.js85 %6/7 8075 byte 2162018-10-03 14:26:49 (UTC)2018-11-02 14:07:40 (UTC)
    src/renderer/svg/stroker/QuadraticSVGStroker.js33 %2/6 3900 byte 992018-10-03 14:26:49 (UTC)2018-11-02 13:12:46 (UTC)
    src/renderer/svg/symbols/StrokeSymbolSVGRenderer.js 90 %10/1119975 byte19999 byte 5022018-11-06 16:18:36 (UTC)2018-11-06 10:48:11 (UTC)
    src/util/ModelStats.js100 %1/1 1772 byte 462018-10-03 14:26:49 (UTC)2018-12-03 13:12:44 (UTC)
    src/util/PromiseHelper.js
    resizefunction(recognizerContext: RecognizerContext, model: Model, element: Element, callback: RecognizerCallback)function(recognizerContext: RecognizerContext, model: Model, callback: RecognizerCallback, element: Element)
    • optional

    Resize.