MCPcopy Create free account
hub / github.com/Shitanshukumar607/Drawspace / handleRectangleDragEnd

Function handleRectangleDragEnd

components/CanvasComponent.tsx:227–230  ·  view source on GitHub ↗
(id: string, e: KonvaEventObject<Event>)

Source from the content-addressed store, hash-verified

225 };
226
227 const handleRectangleDragEnd = (id: string, e: KonvaEventObject<Event>) => {
228 const node = e.target as Konva.Rect;
229 drawingRectangle.updateRectangle(id, { x: node.x(), y: node.y() });
230 };
231
232 const handleRectangleTransformEnd = (
233 id: string,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected