Math

Why do I retract a step and still get a stroke that includes the retracted step

Why do I retract a step and still get a stroke that includes the retracted step


Hello !


Thank you for contacting us.


In oder to answer your question, could you please detail what you mean by retract a step? Do you mean erase a stroke? Perform an undo operation?

Do you have a video or snapshot showing your issue?


Which API are you using? 


Best regards,


Gwenaëlle



1 person likes this

iink SDK Web

 

undo this.$refs[`editor${k}`][0].editor.undo();

 

getstrokes  this.$refs[`editor${this.key}`][0].editor.model.strokeGroups[0].strokes

Sorry, my English is not so good

Hello,


Thank you for your update.

I am not sure to get your point.


For un undo implementation based on iinkJS you can refer to the following example:


https://myscript.github.io/iinkJS/examples/v4/websocket_text_iink.html


The corresponding code is https://github.com/MyScript/iinkJS/blob/master/examples/v4/websocket_text_iink.html


Best regards,


Gwenaëlle

Login or Signup to post a comment
  • Support
  • Forums
  • Math
  • Why do I retract a step and still get a stroke that includes the retracted step