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.

6 lines (5 loc) 131 B
export function bindThisInAllObjFn(thisArg, obj) { for (const key in obj) { obj[key] = obj[key].bind(thisArg); } }