react-sketch icon indicating copy to clipboard operation
react-sketch copied to clipboard

Add functions like onUpdate() or onChange() with old snapshots and newly added objects.

Open mohsinht opened this issue 5 years ago • 3 comments

I was using React-Sketch for an app that runs on Socket.io to transfer drawings on multiple devices at a time. Your library is a great one but it lacks such a simple function that when a user draws something on the whiteboard, some callback event must be triggered.

I tried using onChange() for this purpose but it gets a lot of calls at once, even when nothing is done on the whiteboard.

mohsinht avatar Jul 18 '19 06:07 mohsinht

I was hoping to create something like Wyzant Online Tool. How are they doing this?

ref: https://www.wyzant.com/online/student

mohsinht avatar Jul 18 '19 06:07 mohsinht

@mohsinht Were you able to figure this out?

rohitkrishna094 avatar Mar 04 '21 05:03 rohitkrishna094

@rohitkrishna094 Nope. I shifted to core FabricJS for the workaround as I needed additional functionalities as well.

However I was able to add some changes in the React-Sketch library for callbacks but they had ripple effects over the other functionalities. It was becoming a headache to continue with this library. It was only good for basic stuff.

mohsinht avatar Mar 13 '21 19:03 mohsinht