ng2-canvas-whiteboard icon indicating copy to clipboard operation
ng2-canvas-whiteboard copied to clipboard

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

Open kpratikoc opened this issue 4 years ago • 1 comments

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 avatar Oct 08 '20 17:10 kpratikoc

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

kpratikoc avatar Oct 11 '20 04:10 kpratikoc