Application Tool Kit

Answered

For imported strokes, editor.export_() does not export the strokes to the server at the first time I click the button.

I have a set of strokes, which are rendered on the editor by the pointerEvents method. Then I click an Export button, and editor.export_() will run. But the client does not send a message with "export", and so the server does not return a message with "exported". As a result, "exported" event won't fire. I clicked the button again. This time it works. Subsequent clicks all work. I'm really curious as to why this happens.


Best Answer

Dear Renyi,


thank you for contacting us and your questions.


After checking internally, normally when calling the editor.export_(), the "export" is sent. We are puzzled why it is not. Is it possible to have the implementation of your export button?


Also, how many strokes do you send on the server? Indeed, it has to be kept in mind that recognition is a demanding process, and even though our servers are well dimensioned, if sending many strokes, the result is not straighforward. Did you call the "waitForIdle": https://myscript.github.io/MyScriptJS/docs/function/index.html#static-function-waitForIdle ?


Best regards,


Olivier

1 Comment

Answer

Dear Renyi,


thank you for contacting us and your questions.


After checking internally, normally when calling the editor.export_(), the "export" is sent. We are puzzled why it is not. Is it possible to have the implementation of your export button?


Also, how many strokes do you send on the server? Indeed, it has to be kept in mind that recognition is a demanding process, and even though our servers are well dimensioned, if sending many strokes, the result is not straighforward. Did you call the "waitForIdle": https://myscript.github.io/MyScriptJS/docs/function/index.html#static-function-waitForIdle ?


Best regards,


Olivier