MCPcopy
hub / github.com/bokuweb/react-rnd / getDraggablePosition

Method getDraggablePosition

src/index.tsx:251–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249
250 // HACK: To get `react-draggable` state x and y.
251 getDraggablePosition(): { x: number; y: number } {
252 const { x, y } = (this.draggable as any).state;
253 return { x, y };
254 }
255
256 getParent() {
257 return this.resizable && (this.resizable as any).parentNode;

Callers 5

componentDidMountMethod · 0.95
onDragStartMethod · 0.95
onResizeStartMethod · 0.95
onResizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected