You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#143
Add support for custom path generator in `ReactSketchCanvas`.
* Add `getSvgPathFromPoints` prop to `ReactSketchCanvas` component to accept a callback function for custom path generation.
* Pass `getSvgPathFromPoints` prop to `Canvas` component.
* Add `getSvgPathFromPoints` prop to `Canvas` component to accept a callback function for custom path generation.
* Pass `getSvgPathFromPoints` prop to `SvgPath` component.
* Modify `SvgPath` component to use the custom path generator if provided.
* Update documentation in `README.md` to include the new `getSvgPathFromPoints` prop and its usage.
* Add tests in `export.spec.tsx` to verify the functionality of the custom path generator.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/vinothpandian/react-sketch-canvas/issues/143?shareId=XXXX-XXXX-XXXX-XXXX).
0 commit comments