Closed agaertner closed 2 years ago
Hey, how can I get a list of drawn rectangles?
Eg.
rects: [ {"topLeftY": 122, "topLeftX": 122, "width": 122, "height": 122}, ]
Try this:
<SketchField ref={sketchRef} /> ... const drawnObjects = sketchRef.current.toJSON()
Hey, how can I get a list of drawn rectangles?
Eg.