Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR TypeError: this.x.toFixed is not a function at CanvasWhiteboardUpdate.stringify (ng2-canvas-whiteboard.js:61) #72

Open
kpratikoc opened this issue Oct 8, 2020 · 1 comment

Comments

@kpratikoc
Copy link

kpratikoc commented Oct 8, 2020

const historyUpdates: Array<CanvasWhiteboardUpdate> = this.CanvasWhiteboardComponent.getDrawingHistory();

Getting the above error while getting the array of string from the drawingHistory.
on this line of code: ** this.historyUpdates.map(update => update.stringify()) ;**

  // Stringify the updates, which will return an Array<string>
      const stringifiedUpdatesArray: Array<string> = this.historyUpdates.map(update => update.stringify());
@kpratikoc
Copy link
Author

@Peshou do you have any idea on this. I am stuck and need your help. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant