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

Function registerShapeRef

components/CanvasComponent.tsx:110–116  ·  view source on GitHub ↗
(id, node)

Source from the content-addressed store, hash-verified

108 }, [selectedTool, isPanning]);
109
110 const registerShapeRef: ShapeRefRegistry = (id, node) => {
111 if (node) {
112 shapeRefs.current.set(id, node);
113 } else {
114 shapeRefs.current.delete(id);
115 }
116 };
117
118 const handleShapeSelect = (id: string, type: TransformerSelectionType) => {
119 if (!isPointerTool) return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected