UNPKG

react-fabric-canvas-designer

Version:

A React-based wrapper for Fabric.js to create interactive and customizable canvas-based designs. This library provides tools for drawing, editing, and managing objects on a canvas with React-friendly APIs.

5 lines 162 B
export function bindThisInAllObjFn(thisArg: any, obj: { [key: string]: any }) { for (const key in obj) { obj[key] = obj[key].bind(thisArg) } }