Closed dakom closed 6 years ago
@dakom, if it helps I can even pass back reference of the canvas using a callback prop.
That can be expressed via issue #16 - it could pass back both the original and the cropped canvas. Will update that ticket now, thanks!
Cool 👍 Should we close this one ?
Doesn't seem to me like it's been implemented yet?
Might help to break it down a bit further. There's really two separate issues:
New property has been added. Here is an example usage: https://github.com/jewish-interactive/draft-canvas/blob/master/example/src/app/App-Main.tsx#L34
Instead of creating its own target canvas, it should be supplied as a prop.
This is conceptually two different different issues consolidated here:
example
, not the core libThis would allow various use cases and make UI/layout concerns of displaying the canvas the responsibility of the calling app (which could even hide it, or make the UX a 2-step process, etc.)